.cookie-consent[hidden] {
    display: none !important;
}

.cookie-consent {
    position: fixed;
    z-index: 2147483000;
    inset: 0;
    display: grid;
    align-items: end;
    padding: 22px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}

.cookie-consent.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.cookie-consent__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(8px);
}

.cookie-consent__panel {
    position: relative;
    width: min(100%, 760px);
    max-height: min(88vh, 850px);
    margin: 0 auto;
    overflow: auto;
    padding: clamp(26px, 5vw, 48px);
    border: 1px solid rgba(199, 165, 106, 0.42);
    background:
        radial-gradient(circle at 0 0, rgba(199, 165, 106, 0.15), transparent 28rem),
        #0e0c09;
    color: #f4efe7;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.55);
    transform: translateY(25px);
    transition: transform 220ms ease;
}

.cookie-consent.is-visible .cookie-consent__panel {
    transform: translateY(0);
}

.cookie-consent__ornament {
    width: 62px;
    height: 1px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #d7b778, transparent);
}

.cookie-consent__close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(199, 165, 106, 0.25);
    border-radius: 50%;
    color: #d8cbb8;
    background: transparent;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}

.cookie-consent__eyebrow {
    margin: 0 0 11px;
    color: #c7a56a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.cookie-consent h2 {
    margin: 0 50px 17px 0;
    color: #f4efe7;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 400;
    line-height: 1.08;
}

.cookie-consent p {
    color: #b9ad9c;
    font-size: 15px;
    line-height: 1.65;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 28px;
}

.cookie-button {
    min-height: 46px;
    padding: 11px 20px;
    border-radius: 999px;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.07em;
    cursor: pointer;
    text-transform: uppercase;
}

.cookie-button--primary {
    border: 1px solid #d6b778;
    color: #090704;
    background: linear-gradient(135deg, #ead5a5, #bd9655);
}

.cookie-button--outline {
    border: 1px solid rgba(234, 213, 165, 0.55);
    color: #ead5a5;
    background: transparent;
}

.cookie-button--text {
    border: 1px solid transparent;
    color: #c4b8a7;
    background: transparent;
}

.cookie-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 21px 0;
    border-bottom: 1px solid rgba(199, 165, 106, 0.2);
    cursor: pointer;
}

.cookie-category h3,
.cookie-category strong {
    display: block;
    margin: 0 0 5px;
    color: #f4efe7;
    font-size: 15px;
}

.cookie-category p,
.cookie-category small {
    display: block;
    margin: 0;
    color: #a99d8d;
    font-size: 13px;
    line-height: 1.45;
}

.cookie-category__required {
    flex: 0 0 auto;
    color: #c7a56a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cookie-switch {
    position: relative;
    flex: 0 0 auto;
    width: 50px;
    height: 28px;
}

.cookie-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.cookie-switch span {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(234, 213, 165, 0.4);
    border-radius: 999px;
    background: #24201a;
    transition: 180ms ease;
}

.cookie-switch span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #c9bdac;
    transition: 180ms ease;
}

.cookie-switch input:checked + span {
    border-color: #c7a56a;
    background: #8f6e38;
}

.cookie-switch input:checked + span::after {
    left: 25px;
    background: #fff4d8;
}

.cookie-switch input:focus-visible + span {
    outline: 2px solid #ead5a5;
    outline-offset: 3px;
}

.cookie-consent__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 27px 0 0 !important;
    font-size: 12px !important;
}

.cookie-consent__legal a {
    color: #d9c49a;
    text-underline-offset: 3px;
}

@media (max-width: 600px) {
    .cookie-consent {
        padding: 0;
    }

    .cookie-consent__panel {
        width: 100%;
        max-height: 92vh;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
    }

    .cookie-consent__actions {
        flex-direction: column;
    }

    .cookie-button {
        width: 100%;
    }

    .cookie-category {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent,
    .cookie-consent__panel,
    .cookie-switch span,
    .cookie-switch span::after {
        transition: none;
    }
}
