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

.cookie-consent-banner {
    position: fixed;
    z-index: 1080;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    max-width: 1180px;
    margin-inline: auto;
    padding: 1rem;
    border: 1px solid rgba(143, 103, 41, .28);
    border-radius: 1.35rem;
    background: rgba(255, 253, 248, .98);
    box-shadow: 0 24px 70px rgba(32, 27, 21, .2);
    backdrop-filter: blur(12px);
}

.cookie-consent-banner-inner {
    display: flex;
    gap: 1rem 1.5rem;
    align-items: center;
}

.cookie-consent-icon {
    display: inline-grid;
    flex: 0 0 auto;
    width: 3.25rem;
    height: 3.25rem;
    place-items: center;
    border-radius: 50%;
    color: #8f6729;
    background: #f4e7c9;
    font-size: 1.2rem;
}

.cookie-consent-copy {
    min-width: 0;
    flex: 1 1 420px;
}

.cookie-consent-copy strong {
    display: block;
    margin-bottom: .2rem;
    color: #2d2924;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.18rem;
}

.cookie-consent-copy p {
    max-width: 720px;
    margin: 0;
    color: #70685e;
    font-size: .88rem;
    line-height: 1.55;
}

.cookie-consent-copy a {
    color: #8f6729;
    font-weight: 800;
}

.cookie-consent-actions {
    display: flex;
    flex: 0 0 auto;
    gap: .55rem;
    align-items: center;
}

.cookie-choice-button {
    min-width: 8.4rem;
    border: 1px solid #8f6729;
    color: #5d431c;
    background: #fff;
    font-weight: 900;
}

.cookie-choice-button:hover,
.cookie-choice-button:focus {
    border-color: #6f4d1d;
    color: #2d2924;
    background: #f8f2e8;
}

.cookie-customize-button {
    color: #5f584f;
    font-weight: 800;
}

.cookie-preferences-modal .modal-content {
    overflow: hidden;
    border: 1px solid rgba(143, 103, 41, .22);
    border-radius: 1.4rem;
    box-shadow: 0 24px 80px rgba(32, 27, 21, .24);
}

.cookie-preferences-modal .modal-header {
    padding: 1.3rem 1.35rem;
    border-bottom-color: rgba(143, 103, 41, .14);
    background:
        radial-gradient(circle at 90% 0%, rgba(182, 138, 58, .14), transparent 12rem),
        #fffdf8;
}

.cookie-preferences-modal .modal-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
}

.cookie-preferences-intro {
    margin-bottom: 1rem;
    color: #70685e;
    font-size: .91rem;
    line-height: 1.6;
}

.cookie-preference-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-top: 1px solid rgba(143, 103, 41, .12);
}

.cookie-preference-item:first-of-type {
    border-top: 0;
}

.cookie-preference-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.cookie-preference-copy strong {
    display: block;
    margin-bottom: .2rem;
    color: #2d2924;
}

.cookie-preference-copy p {
    margin: 0;
    color: #70685e;
    font-size: .84rem;
    line-height: 1.55;
}

.cookie-required-badge {
    display: inline-flex;
    flex: 0 0 auto;
    padding: .32rem .55rem;
    border-radius: 999px;
    color: #315c35;
    background: #e4f3e5;
    font-size: .72rem;
    font-weight: 900;
}

.cookie-preferences-modal .form-switch {
    flex: 0 0 auto;
    margin: .1rem 0 0;
    padding-left: 3rem;
}

.cookie-preferences-modal .form-check-input {
    width: 2.55rem;
    height: 1.35rem;
    cursor: pointer;
}

.cookie-preferences-modal .form-check-input:checked {
    border-color: #8f6729;
    background-color: #8f6729;
}

.cookie-preferences-modal .modal-footer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .55rem;
    padding: 1rem 1.35rem 1.25rem;
    border-top-color: rgba(143, 103, 41, .14);
}

.cookie-preferences-modal .modal-footer .btn {
    margin: 0;
    font-weight: 850;
}

.footer-cookie-button {
    display: inline;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    text-decoration: none;
}

.footer-cookie-button:hover,
.footer-cookie-button:focus {
    color: var(--bs-primary, #8f6729);
    text-decoration: underline;
    text-underline-offset: .18em;
}

@media (max-width: 991.98px) {
    .cookie-consent-banner-inner {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .cookie-consent-actions {
        width: 100%;
    }

    .cookie-consent-actions .btn {
        flex: 1 1 0;
    }
}

@media (max-width: 575.98px) {
    .cookie-consent-banner {
        right: .65rem;
        bottom: .65rem;
        left: .65rem;
        padding: .85rem;
        border-radius: 1.1rem;
    }

    .cookie-consent-icon {
        display: none;
    }

    .cookie-consent-copy {
        flex-basis: 100%;
    }

    .cookie-consent-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .cookie-customize-button {
        grid-column: 1 / -1;
    }

    .cookie-choice-button {
        min-width: 0;
    }

    .cookie-preferences-modal .modal-footer {
        grid-template-columns: 1fr;
    }
}
