html.cookie-consent-open,
body.cookie-consent-open {
    overflow: hidden;
}

.cookie-consent {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    color: #212121;
    background: rgba(30, 19, 14, .56);
    overflow-y: auto;
    overscroll-behavior: contain;
}

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

.cookie-consent__panel {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: calc(100vh - 2.5rem);
    max-height: calc(100dvh - 2.5rem);
    padding: 2rem;
    background: #fff;
    border: 1px solid rgba(30, 19, 14, .1);
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(30, 19, 14, .28);
    overflow-y: auto;
}

.cookie-consent__close {
    position: absolute;
    top: .75rem;
    right: .9rem;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    color: #514a44;
    font: inherit;
    font-size: 1.8rem;
    line-height: 1;
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

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

.cookie-consent__close:hover {
    color: #24170f;
    background: #f8f5f1;
}

.cookie-consent__brand {
    margin-bottom: 1.75rem;
    text-align: center;
}

.cookie-consent__brand img {
    width: 132px;
    max-width: 42%;
    height: auto;
}

.cookie-consent__title {
    margin-bottom: .85rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
}

.cookie-consent__description {
    margin-bottom: .9rem;
    color: #3e3a37;
    font-size: .98rem;
    line-height: 1.55;
}

.cookie-consent__policies {
    margin-bottom: 1.25rem;
    color: #6d655f;
    font-size: .82rem;
    line-height: 1.5;
}

.cookie-consent__policies a {
    color: #6d4a2d;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-consent__actions {
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

.cookie-consent__button {
    width: 100%;
    min-height: 52px;
    padding: .85rem 1.25rem;
    font-family: 'Poppins', sans-serif;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .035em;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    appearance: none;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}

.cookie-consent__button--accept {
    color: #24170f;
    background: #e88f2a;
    border-color: #e88f2a;
    box-shadow: 0 8px 20px rgba(232, 143, 42, .28);
}

.cookie-consent__button--accept:hover {
    color: #24170f;
    background: #cf7715;
    border-color: #cf7715;
    box-shadow: 0 10px 24px rgba(207, 119, 21, .32);
    transform: translateY(-1px);
}

.cookie-consent__button--reject {
    color: #2b2825;
    background: #fff;
    border-color: #2b2825;
    border-width: 2px;
    box-shadow: 0 8px 20px rgba(43, 40, 37, .14);
}

.cookie-consent__button--reject:hover {
    color: #2b2825;
    background: #f8f5f1;
    border-color: #2b2825;
    box-shadow: 0 10px 24px rgba(43, 40, 37, .2);
    transform: translateY(-1px);
}

.cookie-consent__button:focus-visible,
.cookie-consent__details-toggle:focus-visible,
.cookie-consent__save:focus-visible,
.cookie-consent__close:focus-visible,
.cookie-settings-button:focus-visible {
    outline: 3px solid #6d3a0e;
    outline-offset: 3px;
}

.cookie-consent__button:disabled,
.cookie-consent__details-toggle:disabled,
.cookie-consent__save:disabled {
    cursor: wait;
    opacity: .64;
    transform: none;
}

.cookie-consent__details-toggle {
    align-self: center;
    padding: .25rem .5rem;
    color: #98500b;
    font: inherit;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.4;
    background: transparent;
    border: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.cookie-consent__details-icon::before {
    display: inline-block;
    margin-left: .4rem;
    content: '\2304';
    text-decoration: none;
    transition: transform .18s ease;
}

.cookie-consent__details-toggle[aria-expanded="true"] .cookie-consent__details-icon::before {
    transform: rotate(180deg);
}

.cookie-consent__preferences {
    margin: 0 0 1.25rem;
    padding: 1rem;
    background: #faf7f2;
    border: 1px solid #e8e0d7;
    border-radius: 12px;
}

.cookie-consent__preference + .cookie-consent__preference {
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid #dee2e6;
}

.cookie-consent__status {
    min-height: 1.5rem;
    margin-top: .75rem;
    color: #8d390f;
    font-size: .85rem;
    text-align: center;
}

.cookie-consent__status:empty {
    min-height: 0;
    margin-top: 0;
}

.cookie-consent__save {
    width: 100%;
    margin-top: 1rem;
    padding: .75rem 1rem;
    color: #fff;
    font-weight: 700;
    background: #2b2825;
    border: 1px solid #2b2825;
    border-radius: 999px;
    cursor: pointer;
    appearance: none;
}

.cookie-settings-button {
    padding: 0;
    color: #212121;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    text-align: left;
    text-transform: uppercase;
    background: transparent;
    border: 0;
    text-decoration: none;
    cursor: pointer;
    appearance: none;
}

.cookie-settings-button:hover {
    color: #212121;
    text-decoration: none;
}

@media (max-width: 575.98px) {
    .cookie-consent {
        align-items: flex-end;
        padding: .5rem;
    }

    .cookie-consent__panel {
        max-height: calc(100vh - 1rem);
        max-height: calc(100dvh - 1rem);
        padding: 1.5rem 1.25rem;
        border-radius: 18px 18px 12px 12px;
    }

    .cookie-consent__brand {
        margin-bottom: 1.25rem;
    }

    .cookie-consent__title {
        font-size: 1.35rem;
    }

    .cookie-consent__description {
        font-size: .94rem;
    }
}
