:root {
    --privacy-consent-height: 0px;
}

.llasa-consent-decided .privacy-consent {
    display: none;
}

.privacy-consent {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    padding: 18px 24px calc(18px + env(safe-area-inset-bottom));
    background: #171717;
    color: #f5f5f5;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, .2);
}

.privacy-consent[hidden] {
    display: none;
}

.privacy-consent__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    width: min(100%, 1280px);
    margin: 0 auto;
}

.privacy-consent__copy {
    flex: 1;
}

.privacy-consent__copy h2,
.privacy-consent__copy p {
    margin: 0;
    color: inherit;
}

.privacy-consent__copy h2 {
    font-size: 1.8rem;
    line-height: 1.3;
}

.privacy-consent__copy p {
    margin-top: 5px;
    color: #dedede;
    font-size: 1.4rem;
    line-height: 1.55;
}

.privacy-consent a,
.privacy-consent__configure {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.privacy-consent__actions,
.privacy-preferences__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.privacy-consent__button,
.privacy-consent__configure {
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #f8ca48;
    border-radius: 8px;
    background: transparent;
    color: #ffffff;
    font: inherit;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
}

.privacy-consent__button--primary {
    background: #f8ca48;
    color: #171717;
}

.privacy-consent__configure {
    border-color: transparent;
}

.privacy-consent button:focus-visible,
.privacy-preferences button:focus-visible,
.privacy-preferences input:focus-visible,
.footer-privacy-preferences:focus-visible {
    outline: 3px solid #f8ca48;
    outline-offset: 3px;
}

.privacy-preferences {
    /* Explicit centering: pages with a global reset (e.g. /lp's "* { margin: 0 }") remove the
       browser's default auto margin and the dialog would stick to the top-left corner. */
    margin: auto;
    width: min(calc(100% - 32px), 680px);
    max-height: calc(100vh - 32px);
    padding: 0;
    border: 0;
    border-radius: 16px;
    color: #242424;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .35);
}

.privacy-preferences::backdrop {
    background: rgba(0, 0, 0, .62);
}

.privacy-preferences__panel {
    padding: 28px;
}

.privacy-preferences__header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.privacy-preferences__eyebrow,
.privacy-preferences__header h2,
.privacy-preferences__intro,
.privacy-preferences__option h3,
.privacy-preferences__option p {
    margin: 0;
}

.privacy-preferences__eyebrow {
    color: #8a6a00;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.privacy-preferences__header h2 {
    margin-top: 4px;
    font-size: 2.4rem;
}

.privacy-preferences__close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #f1f1f1;
    font-size: 2.8rem;
    line-height: 1;
    cursor: pointer;
}

.privacy-preferences__intro {
    margin-top: 14px;
    color: #555555;
    font-size: 1.45rem;
    line-height: 1.6;
}

.privacy-preferences__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 16px;
    padding: 18px;
    border: 1px solid #dedede;
    border-radius: 12px;
}

.privacy-preferences__option strong,
.privacy-preferences__option h3 {
    display: block;
    color: #171717;
    font-size: 1.6rem;
}

.privacy-preferences__option small,
.privacy-preferences__option p {
    display: block;
    margin-top: 4px;
    color: #5d5d5d;
    font-size: 1.35rem;
    line-height: 1.5;
}

.privacy-preferences__option input {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    accent-color: #d7a900;
}

.privacy-preferences__actions {
    justify-content: flex-end;
    margin-top: 22px;
}

.privacy-preferences .privacy-consent__button:not(.privacy-consent__button--primary) {
    color: #171717;
}

.footer-privacy-preferences {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.site-whatsapp-float {
    bottom: calc(136px + var(--privacy-consent-height));
}

#scroll__top {
    bottom: calc(50px + var(--privacy-consent-height));
}

@media (max-width: 900px) {
    .privacy-consent__inner {
        display: block;
    }

    .privacy-consent__actions {
        margin-top: 14px;
    }
}

@media (max-width: 575px) {
    .privacy-consent {
        padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    }

    .privacy-consent__actions,
    .privacy-preferences__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .privacy-consent__button,
    .privacy-consent__configure {
        width: 100%;
    }

    .privacy-preferences__panel {
        padding: 20px;
    }

    .privacy-preferences__option {
        padding: 14px;
    }

    .site-whatsapp-float {
        bottom: calc(160px + var(--privacy-consent-height));
    }
}

@media (prefers-reduced-motion: reduce) {
    .privacy-consent *,
    .privacy-preferences * {
        scroll-behavior: auto;
    }
}
