.cookie-consent,
.cookie-modal {
    font-family: "Segoe UI", sans-serif;
}

.cookie-consent[hidden],
.cookie-modal[hidden] {
    display: none;
}

.cookie-consent {
    position: fixed;
    left: clamp(1rem, 4vw, 2rem);
    right: clamp(1rem, 4vw, 2rem);
    bottom: 1rem;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1180px;
    margin: 0 auto;
    padding: 1rem;
    border: 1px solid rgba(47, 63, 8, 0.18);
    border-radius: 6px;
    background: rgba(247, 241, 223, 0.96);
    box-shadow: 0 18px 48px rgba(47, 63, 8, 0.22);
    color: #202414;
}

.cookie-consent__content {
    max-width: 720px;
}

.cookie-consent__content strong,
.cookie-modal h2,
.cookie-option strong {
    color: #2f3f08;
}

.cookie-consent__content p {
    margin: 0.25rem 0 0;
    color: #4f5537;
    font-size: 0.92rem;
}

.cookie-consent__actions,
.cookie-modal__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.cookie-btn {
    min-height: 38px;
    padding: 0.45rem 0.8rem;
    border: 1px solid #2f3f08;
    border-radius: 4px;
    font-weight: 700;
}

.cookie-btn--primary {
    background: #2f3f08;
    color: #fff;
}

.cookie-btn--primary:hover {
    background: #5f7f00;
    border-color: #5f7f00;
}

.cookie-btn--secondary,
.cookie-btn--ghost {
    background: rgba(255, 255, 255, 0.45);
    color: #2f3f08;
}

.cookie-btn--secondary:hover,
.cookie-btn--ghost:hover {
    background: rgba(95, 127, 0, 0.1);
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 2010;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(32, 36, 20, 0.45);
}

.cookie-modal__panel {
    width: min(640px, 100%);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    padding: 1rem;
    border: 1px solid rgba(47, 63, 8, 0.18);
    border-radius: 6px;
    background: #f7f1df;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.cookie-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(47, 63, 8, 0.14);
}

.cookie-modal h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
}

.cookie-modal__close {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(47, 63, 8, 0.2);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.5);
    color: #2f3f08;
    font-size: 1.5rem;
    line-height: 1;
}

.cookie-modal__body {
    display: grid;
    gap: 0.75rem;
    padding: 1rem 0;
}

.cookie-option {
    display: flex;
    gap: 0.75rem;
    padding: 0.8rem;
    border: 1px solid rgba(47, 63, 8, 0.14);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.56);
}

.cookie-option input {
    margin-top: 0.2rem;
}

.cookie-option small {
    display: block;
    margin-top: 0.2rem;
    color: #5d6545;
}

@media (max-width: 768px) {
    .cookie-consent {
        align-items: stretch;
        flex-direction: column;
    }

    .cookie-consent__actions,
    .cookie-modal__actions {
        justify-content: stretch;
    }

    .cookie-btn {
        flex: 1 1 auto;
    }
}
