.bd-consent {
    --consent-ink: #131914;
    --consent-muted: #5f6c62;
    --consent-line: rgba(35, 58, 41, .12);
    --consent-lime: #c1ed00;
    position: fixed;
    z-index: 1040;
    left: 24px;
    bottom: 24px;
    width: min(420px, calc(100vw - 48px));
    max-height: calc(100svh - 48px);
    padding: 22px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 26px;
    background:
        linear-gradient(142deg, rgba(255,255,255,.92), rgba(249,252,248,.79)) padding-box,
        linear-gradient(122deg, rgba(114,235,173,.52), rgba(112,181,255,.45) 35%, rgba(178,131,255,.42) 68%, rgba(255,153,203,.48)) border-box;
    color: var(--consent-ink);
    box-shadow:
        0 28px 70px rgba(24, 38, 28, .16),
        0 10px 25px rgba(24, 38, 28, .08),
        inset 0 1px 0 rgba(255,255,255,.9);
    opacity: 0;
    transform: translateY(18px) scale(.985);
    transition: opacity .22s ease, transform .22s ease, box-shadow .22s ease;
    isolation: isolate;
}

.bd-consent::before,
.bd-consent::after {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(30px);
    pointer-events: none;
    content: "";
}

.bd-consent::before {
    top: -70px;
    right: -55px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(159,114,255,.15), rgba(112,181,255,.08) 50%, transparent 72%);
}

.bd-consent::after {
    bottom: -80px;
    left: -60px;
    width: 190px;
    height: 190px;
    background: radial-gradient(circle, rgba(193,237,0,.13), rgba(114,235,173,.07) 52%, transparent 74%);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .bd-consent {
        -webkit-backdrop-filter: blur(28px) saturate(1.35);
        backdrop-filter: blur(28px) saturate(1.35);
        background:
            linear-gradient(142deg, rgba(255,255,255,.82), rgba(249,252,248,.69)) padding-box,
            linear-gradient(122deg, rgba(114,235,173,.54), rgba(112,181,255,.47) 35%, rgba(178,131,255,.44) 68%, rgba(255,153,203,.5)) border-box;
    }
}

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

.bd-consent.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.bd-consent__header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 28px;
}

.bd-consent__close {
    position: absolute;
    top: 17px;
    right: 17px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(35,58,41,.1);
    border-radius: 50%;
    background: rgba(255,255,255,.48);
    color: #526056;
    font-size: 17px;
    cursor: pointer;
    box-shadow: inset 0 1px rgba(255,255,255,.78);
    transition: color .16s ease, background .16s ease, transform .16s ease;
}

.bd-consent__close:hover { background: rgba(255,255,255,.82); color: #172019; transform: rotate(4deg); }

.bd-consent__icon {
    position: relative;
    display: grid;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 50%;
    background:
        radial-gradient(circle at 25% 20%, rgba(255,255,255,.98), transparent 33%),
        conic-gradient(from 210deg, rgba(121,231,164,.88), rgba(103,173,255,.88), rgba(174,126,255,.86), rgba(255,148,196,.82), rgba(193,237,0,.86), rgba(121,231,164,.88));
    color: #13201a;
    box-shadow: 0 10px 24px rgba(92, 112, 92, .2), inset 0 0 0 7px rgba(255,255,255,.5);
    font-size: 23px;
}

.bd-consent__icon > span {
    position: absolute;
    right: -2px;
    bottom: -1px;
    display: grid;
    width: 21px;
    height: 21px;
    place-items: center;
    border: 2px solid rgba(255,255,255,.92);
    border-radius: 50%;
    background: #172019;
    color: var(--consent-lime);
    font-size: 10px;
}

.bd-consent__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #61715f;
    font-size: 11.5px;
    font-weight: 750;
    letter-spacing: .12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.bd-consent h2 {
    margin: 0;
    color: var(--consent-ink);
    font-size: 22px;
    font-weight: 760;
    letter-spacing: -.035em;
    line-height: 1.12;
}

.bd-consent__description {
    margin: 17px 0 9px;
    color: var(--consent-muted);
    font-size: 15px;
    line-height: 1.65;
}

.bd-consent__policy-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #35563b;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.bd-consent__policy-link:hover { color: #172019; }
.bd-consent__policy-link i { transition: transform .18s ease; }
.bd-consent__policy-link:hover i { transform: translateX(2px); }

.bd-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 19px;
}

.bd-consent__button,
.bd-consent__customize,
.bd-consent__text-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: 13px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 14px;
    font-weight: 750;
    line-height: 1;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.bd-consent__button--primary {
    border-color: rgba(150,184,0,.35);
    background: linear-gradient(135deg, #d9ff38, #b9e600 56%, #9fd200);
    color: #142016;
    box-shadow: 0 9px 20px rgba(135,174,0,.2), inset 0 1px rgba(255,255,255,.7);
}

.bd-consent__button--glass {
    border-color: rgba(45,66,49,.14);
    background: rgba(255,255,255,.58);
    color: #263328;
    box-shadow: inset 0 1px rgba(255,255,255,.8), 0 6px 15px rgba(31,49,36,.06);
}

.bd-consent__customize {
    grid-column: 1 / -1;
    min-height: 38px;
    gap: 7px;
    padding: 0 10px;
    border: 0;
    background: transparent;
    color: #56645a;
}

.bd-consent__customize i { font-size: 16px; }
.bd-consent__button:hover,
.bd-consent__customize:hover,
.bd-consent__text-action:hover { transform: translateY(-1px); }
.bd-consent__button:active,
.bd-consent__customize:active,
.bd-consent__text-action:active { transform: translateY(0) scale(.985); }

.bd-consent :where(button, a, input):focus-visible {
    outline: 3px solid rgba(43,101,74,.34);
    outline-offset: 3px;
}

.bd-consent button:disabled {
    cursor: wait;
    opacity: .58;
}

.bd-consent__preferences {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    visibility: hidden;
    transition: grid-template-rows .28s ease, opacity .2s ease, visibility .28s;
}

.bd-consent__preferences-inner {
    min-height: 0;
    overflow: hidden;
}

.bd-consent.is-customizing .bd-consent__preferences {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
}

.bd-consent.is-customizing .bd-consent__preferences-inner { overflow: visible; }
.bd-consent.is-customizing > .bd-consent__actions { display: none; }

.bd-consent__preference-list {
    display: grid;
    gap: 9px;
    margin-top: 19px;
    padding-top: 16px;
    border-top: 1px solid var(--consent-line);
}

.bd-consent__preference {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 13px;
    border: 1px solid rgba(35,58,41,.1);
    border-radius: 15px;
    background: rgba(255,255,255,.45);
    box-shadow: inset 0 1px rgba(255,255,255,.76);
}

.bd-consent__preference h3 {
    margin: 0 0 4px;
    color: var(--consent-ink);
    font-size: 14px;
    font-weight: 720;
    letter-spacing: -.015em;
    line-height: 1.3;
}

.bd-consent__preference p {
    margin: 0;
    color: #68756b;
    font-size: 13px;
    line-height: 1.5;
}

.bd-consent__always {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(193,237,0,.17);
    color: #506600;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.bd-consent__toggle {
    position: relative;
    flex: 0 0 auto;
    margin: 0;
    cursor: pointer;
}

.bd-consent__toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.bd-consent__toggle > span:not(.visually-hidden) {
    position: relative;
    display: block;
    width: 46px;
    height: 27px;
    border: 1px solid rgba(40,58,45,.14);
    border-radius: 999px;
    background: rgba(119,132,121,.2);
    box-shadow: inset 0 2px 5px rgba(20,32,23,.1);
    transition: background .18s ease, border-color .18s ease;
}

.bd-consent__toggle > span:not(.visually-hidden) i {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 8px rgba(20,33,24,.22);
    transition: transform .18s ease;
}

.bd-consent__toggle input:checked + span {
    border-color: rgba(126,163,0,.35);
    background: linear-gradient(135deg, #d1f738, #a9d400);
}

.bd-consent__toggle input:checked + span i { transform: translateX(19px); }
.bd-consent__toggle input:focus-visible + span { outline: 3px solid rgba(43,101,74,.34); outline-offset: 3px; }

.bd-consent__preference-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 13px;
}

.bd-consent__text-action {
    grid-column: 1 / -1;
    min-height: 36px;
    border: 0;
    background: transparent;
    color: #4f5f54;
}

.bd-consent__status {
    min-height: 0;
    margin: 0;
    color: #435548;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
    text-align: center;
}

.bd-consent__status:not(:empty) { margin-top: 10px; }

.bd-cookie-preferences-trigger {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.bd-footer__column .bd-cookie-preferences-trigger,
.footer-menu .bd-cookie-preferences-trigger {
    color: rgba(255,255,255,.62);
    font-size: .875rem;
    line-height: 1.65;
}

.bd-footer__column .bd-cookie-preferences-trigger:hover,
.footer-menu .bd-cookie-preferences-trigger:hover { color: #fff; }

.bdd-footer .bd-cookie-preferences-trigger {
    color: #c7d1cc;
    font-size: .875rem;
    font-weight: 600;
}

.bdl-legal .bd-cookie-preferences-trigger,
.bdr-footer .bd-cookie-preferences-trigger {
    color: inherit;
    font-size: .8125rem;
    font-weight: 650;
}

.bd-merchant-register .bdr-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 14px;
}

.bd-merchant-register .bdr-footer .bdl-copyright { margin: 0; }

@media (max-width: 575px) {
    .bd-consent {
        right: 16px;
        bottom: max(88px, calc(env(safe-area-inset-bottom) + 72px));
        left: 16px;
        width: auto;
        max-height: calc(100svh - 104px - env(safe-area-inset-bottom));
        padding: 19px;
        border-radius: 23px;
    }

    .bd-consent__description { font-size: 14px; }
    .bd-consent__actions,
    .bd-consent__preference-actions { grid-template-columns: 1fr; }
    .bd-consent__preference-actions { gap: 6px; }
    .bd-consent__preference-actions .bd-consent__text-action { min-height: 32px; }
    .bd-consent__customize,
    .bd-consent__text-action { grid-column: auto; }

    .bd-consent.is-customizing .bd-consent__preferences-inner {
        max-height: min(58svh, 480px, calc(100svh - 363px - env(safe-area-inset-bottom)));
        padding-right: 3px;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
    }

    .bd-consent__preference { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .bd-consent,
    .bd-consent *,
    .bd-consent *::before,
    .bd-consent *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
