/*
 * Sensia Consent
 * Native cookie / optional-content preferences.
 */

body.sensia-consent-modal-open {
        overflow: hidden;
}


.sensia-consent {
        --sensia-consent-bg: #d4b98d;
        --sensia-consent-panel: #f2e8d9;
        --sensia-consent-ink: #332d29;
        --sensia-consent-burgundy: #8c372d;
        --sensia-consent-line: rgba(51, 45, 41, 0.28);

        position: relative;
        z-index: 99999;

        font-family: var(--sensia-font-serif);
        color: var(--sensia-consent-ink);
}


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


/* ==================================================
   BANNER
================================================== */

.sensia-consent-banner {
        position: fixed;

        left: clamp(16px, 2vw, 28px);
        right: clamp(16px, 2vw, 28px);
        bottom: clamp(16px, 2vw, 28px);

        z-index: 99999;

        display: grid;
        grid-template-columns:
                minmax(0, 1.25fr)
                minmax(360px, 0.75fr);

        gap: clamp(28px, 4vw, 64px);
        align-items: end;

        width: auto;
        max-width: 1380px;
        margin: 0 auto;

        padding:
                clamp(24px, 3vw, 38px)
                clamp(22px, 3.5vw, 46px);

        background:
                rgba(242, 232, 217, 0.96);

        border:
                1px solid
                rgba(140, 55, 45, 0.3);

        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);

        box-shadow:
                0 20px 70px
                rgba(51, 45, 41, 0.16);
}


.sensia-consent-kicker {
        margin: 0 0 10px;

        font-size: 10px;
        font-style: normal;
        font-weight: 300;
        letter-spacing: 0.16em;
        text-transform: uppercase;
}


.sensia-consent-banner h2,
.sensia-consent-preferences h2 {
        margin: 0;

        font-family: var(--sensia-font-serif);
        font-size: clamp(30px, 3vw, 46px);
        font-style: italic;
        font-weight: 300;
        line-height: 1;
}


.sensia-consent-banner__copy > p:not(.sensia-consent-kicker) {
        width: min(700px, 100%);

        margin:
                18px
                0
                0;

        font-size: 15px;
        font-weight: 300;
        line-height: 1.5;
}


.sensia-consent-privacy {
        display: inline-block;

        margin-top: 14px;

        color: inherit;

        font-size: 12px;
        font-weight: 300;

        text-decoration: none;

        border-bottom:
                1px solid
                currentColor;
}

.sensia-consent-privacy
+ .sensia-consent-privacy {
        margin-left: 14px;
}




.sensia-consent-banner__actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 9px;
}


.sensia-consent-banner__actions button,
.sensia-consent-preferences__actions button {
        min-height: 46px;

        padding:
                10px
                18px;

        font-family: var(--sensia-font-serif);
        font-size: 14px;
        font-weight: 300;

        color: var(--sensia-consent-burgundy);
        background: transparent;

        border:
                1px solid
                var(--sensia-consent-burgundy);

        border-radius: 0;

        cursor: pointer;

        transition:
                color 180ms ease,
                background-color 180ms ease;
}


.sensia-consent-banner__actions button:hover,
.sensia-consent-banner__actions button:focus-visible,
.sensia-consent-preferences__actions button:hover,
.sensia-consent-preferences__actions button:focus-visible {
        color: var(--sensia-consent-panel);
        background:
                var(--sensia-consent-burgundy);
}


/* ==================================================
   PREFERENCES MODAL
================================================== */

.sensia-consent-modal {
        position: fixed;
        inset: 0;

        z-index: 100000;

        display: grid;
        place-items: center;

        padding: 20px;
}


.sensia-consent-modal__backdrop {
        position: absolute;
        inset: 0;

        width: 100%;
        height: 100%;

        padding: 0;

        background:
                rgba(51, 45, 41, 0.45);

        border: 0;

        cursor: default;

        -webkit-backdrop-filter: blur(7px);
        backdrop-filter: blur(7px);
}


.sensia-consent-preferences {
        position: relative;
        z-index: 1;

        width: min(680px, 100%);
        max-height:
                min(
                        760px,
                        calc(100svh - 40px)
                );

        overflow: auto;

        padding:
                clamp(26px, 4vw, 48px);

        background:
                var(--sensia-consent-panel);

        border:
                1px solid
                rgba(140, 55, 45, 0.3);

        box-shadow:
                0 25px 90px
                rgba(51, 45, 41, 0.2);
}


.sensia-consent-preferences__header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;

        gap: 30px;
}


.sensia-consent-close {
        position: relative;

        flex: 0 0 auto;

        display: grid;
        place-items: center;

        width: 42px;
        height: 42px;

        padding: 0;

        font-size: 0;
        line-height: 0;

        color:
                var(--sensia-consent-burgundy);

        background: transparent;

        border:
                1px solid
                currentColor;

        border-radius: 50%;

        cursor: pointer;
}


.sensia-consent-close::before,
.sensia-consent-close::after {
        content: "";

        position: absolute;

        top: 50%;
        left: 50%;

        width: 17px;
        height: 1.25px;

        background: currentColor;

        border-radius: 999px;

        transform-origin: center;
}


.sensia-consent-close::before {
        transform:
                translate(-50%, -50%)
                rotate(45deg);
}


.sensia-consent-close::after {
        transform:
                translate(-50%, -50%)
                rotate(-45deg);
}


.sensia-consent-preferences__categories {
        margin-top:
                clamp(34px, 5vw, 54px);

        border-top:
                1px solid
                var(--sensia-consent-line);
}


.sensia-consent-category {
        display: grid;

        grid-template-columns:
                minmax(0, 1fr)
                auto;

        gap: 28px;
        align-items: center;

        padding:
                22px
                0;

        color: inherit;

        border-bottom:
                1px solid
                var(--sensia-consent-line);
}


.sensia-consent-category h3 {
        margin: 0 0 7px;

        font-family: var(--sensia-font-serif);
        font-size: 20px;
        font-style: normal;
        font-weight: 300;
}


.sensia-consent-category p {
        margin: 0;

        max-width: 500px;

        font-size: 13px;
        font-weight: 300;
        line-height: 1.5;
}


.sensia-consent-always-on {
        font-size: 11px;
        font-weight: 300;

        color:
                var(--sensia-consent-burgundy);

        white-space: nowrap;
}


/* ==================================================
   TOGGLE
================================================== */

.sensia-consent-switch {
        position: relative;

        display: inline-flex;

        width: 46px;
        height: 25px;
}


.sensia-consent-switch input {
        position: absolute;

        width: 1px;
        height: 1px;

        opacity: 0;
}


.sensia-consent-switch > span {
        position: absolute;
        inset: 0;

        background:
                rgba(51, 45, 41, 0.16);

        border:
                1px solid
                rgba(51, 45, 41, 0.28);

        border-radius: 999px;

        cursor: pointer;

        transition:
                background-color 180ms ease;
}


.sensia-consent-switch > span::after {
        content: "";

        position: absolute;

        top: 3px;
        left: 3px;

        width: 17px;
        height: 17px;

        background:
                var(--sensia-consent-panel);

        border-radius: 50%;

        transition:
                transform 180ms ease;
}


.sensia-consent-switch input:checked + span {
        background:
                var(--sensia-consent-burgundy);
}


.sensia-consent-switch input:checked + span::after {
        transform: translateX(21px);
}


.sensia-consent-switch input:focus-visible + span {
        outline:
                2px solid
                var(--sensia-consent-burgundy);

        outline-offset: 3px;
}


.sensia-consent-preferences__actions {
        display: flex;
        justify-content: flex-end;

        margin-top: 28px;
}


.sensia-consent-preferences__actions button {
        min-width: 180px;
}



/* ==================================================
   MINIMIZED COOKIE BUTTON
================================================== */

.sensia-consent-mini {
        position: fixed;

        left: 18px;
        bottom: 18px;

        z-index: 99998;

        display: grid;
        place-items: center;

        width: 44px;
        height: 44px;

        padding: 0;

        color: var(--sensia-consent-burgundy);
        background:
                rgba(242, 232, 217, 0.96);

        border:
                1px solid
                var(--sensia-consent-burgundy);

        border-radius: 50%;

        cursor: pointer;

        box-shadow:
                0 8px 30px
                rgba(51, 45, 41, 0.12);

        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);

        transition:
                background-color 180ms ease,
                color 180ms ease,
                transform 180ms ease;
}


.sensia-consent-mini:hover,
.sensia-consent-mini:focus-visible {
        color: var(--sensia-consent-panel);
        background:
                var(--sensia-consent-burgundy);

        transform: translateY(-2px);
}


.sensia-consent-mini__icon {
        position: relative;

        display: block;

        width: 20px;
        height: 20px;

        border:
                1.5px solid
                currentColor;

        border-radius: 50%;
}


.sensia-consent-mini__icon::before {
        content: "";

        position: absolute;

        width: 3px;
        height: 3px;

        top: 5px;
        left: 5px;

        background: currentColor;
        border-radius: 50%;

        box-shadow:
                7px 2px 0 currentColor,
                3px 8px 0 currentColor;
}


/* ==================================================
   FOOTER TRIGGER
================================================== */

.sensia-consent-footer-trigger {
        margin: 0;
        padding: 0;

        font: inherit;

        color: inherit;
        background: transparent;

        border: 0;

        cursor: pointer;

        text-align: inherit;

        text-decoration: none;
}


.sensia-consent-footer-trigger:hover,
.sensia-consent-footer-trigger:focus-visible {
        opacity: 0.72;
}


@media (max-width: 767px) {

        .sensia-consent-banner {
                grid-template-columns: 1fr;

                gap: 24px;

                padding:
                        24px
                        20px;
        }


        .sensia-consent-banner h2,
        .sensia-consent-preferences h2 {
                font-size:
                        clamp(
                                30px,
                                9vw,
                                40px
                        );
        }


        .sensia-consent-category {
                gap: 18px;
        }


        .sensia-consent-menu-item {
                grid-column: 1 / -1;
        }
}


@media (prefers-reduced-motion: reduce) {

        .sensia-consent *,
        .sensia-consent *::before,
        .sensia-consent *::after {
                transition: none !important;
        }
}

/* ==================================================
   HOTFIX — remove fuchsia from consent modal
================================================== */

.sensia-consent-modal,
.sensia-consent-root,
[data-sensia-consent-root] {
        background: transparent !important;
}

.sensia-consent-backdrop,
.sensia-consent-overlay,
[data-sensia-consent-backdrop],
[data-sensia-consent-overlay] {
        background: rgba(51, 45, 41, 0.34) !important;
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
}

.sensia-consent-panel,
.sensia-consent-modal__panel,
[data-sensia-consent-panel] {
        background: #f2e8d9 !important;
        color: #332d29 !important;
        border: 1px solid rgba(51, 45, 41, 0.14) !important;
        box-shadow: 0 20px 60px rgba(51, 45, 41, 0.18) !important;
}

.sensia-consent-close,
[data-sensia-consent-close] {
        background: #9b3f35 !important;
        color: #f2e8d9 !important;
        border: 1px solid #9b3f35 !important;
}

.sensia-consent-close:hover,
.sensia-consent-close:focus-visible,
[data-sensia-consent-close]:hover,
[data-sensia-consent-close]:focus-visible {
        background: #7f3028 !important;
        border-color: #7f3028 !important;
}

.sensia-consent-panel button,
.sensia-consent-panel .button,
.sensia-consent-modal__panel button {
        accent-color: #9b3f35;
}

/* ==================================================
   SENSIA CONSENT — COLOR OVERRIDES
================================================== */

/* Full-screen modal backdrop.
   It is a <button>, so neutralize global button states too. */
.sensia-consent-modal__backdrop,
.sensia-consent-modal__backdrop:hover,
.sensia-consent-modal__backdrop:focus,
.sensia-consent-modal__backdrop:focus-visible,
.sensia-consent-modal__backdrop:active {
        background-color: rgba(51, 45, 41, 0.45) !important;
        background-image: none !important;

        color: transparent !important;

        border: 0 !important;
        box-shadow: none !important;
        outline: 0 !important;
}

/* Close button */
.sensia-consent-close,
.sensia-consent-close:hover,
.sensia-consent-close:focus,
.sensia-consent-close:focus-visible,
.sensia-consent-close:active {
        background-color: #8c372d !important;
        background-image: none !important;

        color: #f2e8d9 !important;

        border-color: #8c372d !important;
        box-shadow: none !important;
}

/* Functional-content toggle */
.sensia-consent-switch input:checked + span {
        background-color: #8c372d !important;
        border-color: #8c372d !important;
}

/* ==================================================
   SENSIA CONSENT MINI BUTTON — FINAL COLOR OVERRIDE
================================================== */

.sensia-consent .sensia-consent-mini,
.sensia-consent .sensia-consent-mini:visited,
.sensia-consent .sensia-consent-mini:active {
        background: #f2e8d9 !important;
        background-color: #f2e8d9 !important;
        background-image: none !important;

        color: #8c372d !important;

        border: 1px solid #8c372d !important;
        box-shadow: 0 8px 30px rgba(51, 45, 41, 0.14) !important;

        outline: none !important;
}

.sensia-consent .sensia-consent-mini:hover,
.sensia-consent .sensia-consent-mini:focus,
.sensia-consent .sensia-consent-mini:focus-visible {
        background: #8c372d !important;
        background-color: #8c372d !important;
        background-image: none !important;

        color: #f2e8d9 !important;

        border-color: #8c372d !important;

        box-shadow: 0 8px 30px rgba(51, 45, 41, 0.18) !important;
}

.sensia-consent .sensia-consent-mini__icon {
        color: inherit !important;
        border-color: currentColor !important;
}

.sensia-consent .sensia-consent-mini__icon::before {
        background: currentColor !important;
        box-shadow:
                7px 2px 0 currentColor,
                3px 8px 0 currentColor !important;
}

/* ==================================================
   SENSIA CONSENT — FINAL BANNER BUTTON COLORS
   Prevent theme / Elementor button colors leaking in
================================================== */

.sensia-consent-banner__actions button,
.sensia-consent-banner__actions button:visited {
        color: #8c372d !important;

        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;

        border-color: #8c372d !important;

        box-shadow: none !important;
}


/* Interactive states */

.sensia-consent-banner__actions button:hover,
.sensia-consent-banner__actions button:focus,
.sensia-consent-banner__actions button:focus-visible,
.sensia-consent-banner__actions button:active {
        color: #f2e8d9 !important;

        background: #8c372d !important;
        background-color: #8c372d !important;
        background-image: none !important;

        border-color: #8c372d !important;

        box-shadow: none !important;
}


/* Explicitly protect each consent action from global styles */

[data-sensia-consent-reject],
[data-sensia-consent-manage],
[data-sensia-consent-accept] {
        --e-global-color-accent: #8c372d !important;
        accent-color: #8c372d !important;
}

