.bb-consent[hidden],
.bb-consent-reopen[hidden],
.bb-consent-modal[hidden] {
    display: none !important;
}

html.bb-consent-modal-open {
    overflow: hidden;
}

.bb-consent,
.bb-consent-modal,
.bb-consent-reopen,
.bb-consent-media {
    --bb-consent-navy: #1b2644;
    --bb-consent-paper: #f8f6f2;
    --bb-consent-beige: #e6ded1;
    --bb-consent-line: #cbb9a3;
    font-family: "Figtree", sans-serif;
}

.bb-consent {
    position: fixed;
    z-index: 999990;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 18px clamp(18px, 3.125vw, 60px);
    color: var(--bb-consent-navy);
    background: rgba(248, 246, 242, 0.98);
    border-top: 1px solid rgba(27, 38, 68, 0.18);
    box-shadow: 0 -14px 34px rgba(27, 38, 68, 0.12);
    backdrop-filter: blur(10px);
}

.bb-consent__inner {
    display: flex;
    width: min(1380px, 100%);
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.bb-consent__copy {
    max-width: 690px;
}

.bb-consent__title,
.bb-consent__copy p {
    margin: 0;
}

.bb-consent__title {
    margin-bottom: 5px;
    font-family: "Ranade", "Figtree", sans-serif;
    font-size: clamp(20px, 1.25vw, 24px);
    font-weight: 400;
    line-height: 1.15;
    text-transform: uppercase;
}

.bb-consent__copy p:not(.bb-consent__title) {
    font-size: 14px;
    line-height: 1.5;
}

.bb-consent__policy {
    display: inline-block;
    margin-top: 6px;
    color: inherit;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bb-consent__actions,
.bb-consent-modal__actions {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.bb-consent__button,
.bb-consent-media__placeholder button {
    min-height: 46px;
    padding: 10px 18px;
    border: 1px solid var(--bb-consent-navy);
    border-radius: 0;
    font-family: "Figtree", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease;
}

.bb-consent__button--outline {
    color: var(--bb-consent-navy);
    background: transparent;
}

.bb-consent__button--primary,
.bb-consent-media__placeholder button {
    color: #fff;
    background: var(--bb-consent-navy);
}

.bb-consent__button:hover,
.bb-consent__button:focus-visible,
.bb-consent-media__placeholder button:hover,
.bb-consent-media__placeholder button:focus-visible {
    color: var(--bb-consent-navy);
    background: var(--bb-consent-beige);
    outline: none;
}

.bb-consent-reopen {
    position: fixed;
    z-index: 999980;
    bottom: 14px;
    left: 14px;
    min-height: 36px;
    padding: 8px 12px;
    color: var(--bb-consent-navy);
    background: rgba(248, 246, 242, 0.96);
    border: 1px solid rgba(27, 38, 68, 0.42);
    border-radius: 0;
    box-shadow: 0 5px 18px rgba(27, 38, 68, 0.12);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.bb-consent-reopen:hover,
.bb-consent-reopen:focus-visible {
    color: #fff;
    background: var(--bb-consent-navy);
    outline: none;
}

.bb-consent-modal {
    position: fixed;
    z-index: 1000000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}

.bb-consent-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 22, 42, 0.64);
}

.bb-consent-modal__dialog {
    position: relative;
    width: min(620px, 100%);
    max-height: calc(100vh - 40px);
    padding: clamp(26px, 3.125vw, 48px);
    overflow: auto;
    color: var(--bb-consent-navy);
    background: var(--bb-consent-paper);
    box-shadow: 0 24px 70px rgba(15, 22, 42, 0.28);
}

.bb-consent-modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 38px;
    height: 38px;
    padding: 0;
    color: var(--bb-consent-navy);
    background: transparent;
    border: 0;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

.bb-consent-modal__eyebrow {
    margin: 0 0 7px;
    color: #6f7890;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bb-consent-modal h2 {
    margin: 0 0 24px;
    color: var(--bb-consent-navy);
    font-family: "Ranade", "Figtree", sans-serif;
    font-size: clamp(28px, 2.1vw, 40px);
    font-weight: 400;
    line-height: 1.1;
    text-transform: uppercase;
}

.bb-consent-option {
    display: flex;
    margin: 0;
    padding: 18px 0;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--bb-consent-navy);
    border-top: 1px solid rgba(27, 38, 68, 0.15);
}

.bb-consent-option strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
    line-height: 1.25;
}

.bb-consent-option p,
.bb-consent-option span span {
    display: block;
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
}

.bb-consent-option__status {
    flex: 0 0 auto;
    color: #6f7890;
    font-size: 12px;
    font-weight: 600;
}

.bb-consent-option input {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    accent-color: var(--bb-consent-navy);
}

.bb-consent-modal__provider {
    margin: 16px 0 24px;
    color: #5d667e;
    font-size: 12px;
    line-height: 1.5;
}

.bb-consent-modal__provider a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bb-consent-media {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
    overflow: hidden;
    background: var(--bb-consent-beige);
}

.bb-consent-media iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.bb-consent-media__placeholder {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: grid;
    padding: 24px;
    place-content: center;
    justify-items: center;
    gap: 16px;
    color: var(--bb-consent-navy);
    text-align: center;
    background:
        linear-gradient(rgba(230, 222, 209, 0.94), rgba(230, 222, 209, 0.94)),
        repeating-linear-gradient(45deg, rgba(27, 38, 68, 0.05) 0 1px, transparent 1px 16px);
}

.bb-consent-media__placeholder p {
    max-width: 470px;
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.bb-consent-media.is-enabled .bb-consent-media__placeholder {
    display: none;
}

@media (max-width: 1024px) {
    .bb-consent__inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 767px) {
    .bb-consent {
        padding: 18px;
    }

    .bb-consent__actions,
    .bb-consent-modal__actions {
        width: 100%;
        flex-direction: column;
    }

    .bb-consent__button {
        width: 100%;
    }

    .bb-consent-modal__dialog {
        padding: 28px 20px 22px;
    }

    .bb-consent-option {
        align-items: flex-start;
    }

    .bb-consent-reopen {
        bottom: 10px;
        left: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bb-consent__button,
    .bb-consent-media__placeholder button {
        transition: none;
    }
}
