.bc-consent-root,
.bc-consent-root *,
.bc-consent-root *::before,
.bc-consent-root *::after {
    box-sizing: border-box;
}

.bc-consent-root {
    --bc-consent-primary: #0f766e;
    --bc-consent-on-primary: #ffffff;
    --bc-consent-text: #17212b;
    --bc-consent-background: #ffffff;
    --bc-consent-border: rgba(100, 116, 139, 0.38);
    --bc-consent-muted-surface: rgba(148, 163, 184, 0.12);
    --bc-consent-shadow: 0 12px 36px rgba(15, 23, 42, 0.18);

    color: var(--bc-consent-text);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
}

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

.bc-consent-banner {
    position: fixed;
    z-index: 2147483000;
    bottom: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    width: min(440px, calc(100vw - 32px));
    max-height: calc(100vh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    margin: 0;
    padding: 22px 24px 20px;
    overflow: hidden;
    border: 1px solid var(--bc-consent-border);
    border-radius: 12px;
    background: var(--bc-consent-background);
    box-shadow: var(--bc-consent-shadow);
    color: var(--bc-consent-text);
}

.bc-consent-banner--right {
    right: 16px;
    right: calc(16px + env(safe-area-inset-right));
    left: auto;
}

.bc-consent-banner--left {
    right: auto;
    left: 16px;
    left: calc(16px + env(safe-area-inset-left));
}

.bc-consent-banner__copy,
.bc-consent-banner__actions,
.bc-consent-modal__header,
.bc-consent-modal__body,
.bc-consent-modal__footer,
.bc-consent-category__copy {
    min-width: 0;
}

.bc-consent-banner__copy {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.bc-consent-eyebrow {
    margin: 0 0 5px;
    color: var(--bc-consent-text);
    font: inherit;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.bc-consent-title {
    margin: 0 0 7px;
    color: var(--bc-consent-text);
    font: inherit;
    font-size: 20px;
    font-weight: 760;
    letter-spacing: -0.015em;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.bc-consent-description {
    margin: 0;
    color: var(--bc-consent-text);
    font: inherit;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.bc-consent-links,
.bc-consent-modal__links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-top: 9px;
}

.bc-consent-root a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 0;
    color: var(--bc-consent-text);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.bc-consent-root a:hover {
    color: var(--bc-consent-text);
    text-decoration-thickness: 2px;
}

.bc-consent-banner__actions {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 1.15fr);
    gap: 8px;
    flex: 0 0 auto;
    width: 100%;
}

.bc-consent-button,
.bc-consent-close,
.bc-consent-reopen {
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
    font: inherit;
    letter-spacing: normal;
    text-decoration: none;
    text-transform: none;
    cursor: pointer;
}

.bc-consent-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    transition: filter 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.bc-consent-button--primary {
    border-color: var(--bc-consent-primary);
    background: var(--bc-consent-primary);
    color: var(--bc-consent-on-primary);
}

.bc-consent-button--primary:hover {
    color: var(--bc-consent-on-primary);
    filter: brightness(0.9);
}

.bc-consent-button--secondary {
    border-color: var(--bc-consent-border);
    background: transparent;
    color: var(--bc-consent-text);
}

.bc-consent-button--secondary:hover {
    border-color: var(--bc-consent-text);
    background: var(--bc-consent-muted-surface);
    color: var(--bc-consent-text);
}

.bc-consent-root a:focus-visible,
.bc-consent-button:focus-visible,
.bc-consent-close:focus-visible,
.bc-consent-reopen:focus-visible,
.bc-consent-toggle input:focus-visible + .bc-consent-toggle__track,
.bc-consent-title:focus-visible,
.bc-consent-modal:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.bc-consent-button--primary:focus-visible,
.bc-consent-reopen:focus-visible {
    outline: 2px solid var(--bc-consent-background);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px var(--bc-consent-text);
}

.bc-consent-modal-layer {
    position: fixed;
    z-index: 2147483002;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 12px;
    padding-top: calc(12px + env(safe-area-inset-top));
    padding-right: calc(12px + env(safe-area-inset-right));
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    padding-left: calc(12px + env(safe-area-inset-left));
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(2px);
}

.bc-consent-modal {
    display: flex;
    flex-direction: column;
    width: min(580px, calc(100vw - 24px));
    max-height: calc(100vh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--bc-consent-border);
    border-radius: 14px;
    background: var(--bc-consent-background);
    box-shadow: var(--bc-consent-shadow);
    color: var(--bc-consent-text);
}

.bc-consent-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex: 0 0 auto;
    padding: 15px 15px 10px 18px;
}

.bc-consent-modal__header .bc-consent-title {
    margin-bottom: 0;
}

.bc-consent-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    flex-basis: 44px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    max-width: 44px;
    max-height: 44px;
    margin: -6px -4px 0 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: var(--bc-consent-text);
    font-size: 0;
    line-height: 0;
}

.bc-consent-close svg {
    display: block;
    width: 20px;
    height: 20px;
}

.bc-consent-close:hover {
    border-color: var(--bc-consent-border);
    background: var(--bc-consent-muted-surface);
    color: var(--bc-consent-text);
}

.bc-consent-modal__body {
    min-height: 0;
    padding: 0 18px 12px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.bc-consent-categories {
    display: grid;
    gap: 7px;
    margin-top: 13px;
}

.bc-consent-category {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 66px;
    margin: 0;
    padding: 9px 11px;
    border: 1px solid var(--bc-consent-border);
    border-radius: 9px;
    background: transparent;
    color: var(--bc-consent-text);
    font: inherit;
    font-weight: 400;
    text-align: left;
}

label.bc-consent-category {
    cursor: pointer;
}

label.bc-consent-category:hover {
    background: var(--bc-consent-muted-surface);
}

.bc-consent-category--locked {
    background: var(--bc-consent-muted-surface);
}

.bc-consent-category__copy {
    display: block;
    flex: 1 1 auto;
}

.bc-consent-category h3,
.bc-consent-category__title {
    display: block;
    margin: 0 0 2px;
    color: var(--bc-consent-text);
    font: inherit;
    font-size: 13px;
    font-weight: 760;
    line-height: 1.25;
}

.bc-consent-category p,
.bc-consent-category__description {
    display: block;
    margin: 0;
    color: var(--bc-consent-text);
    font: inherit;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.bc-consent-badge {
    flex: 0 0 auto;
    max-width: 112px;
    padding: 5px 8px;
    border: 1px solid var(--bc-consent-border);
    border-radius: 999px;
    color: var(--bc-consent-text);
    font-size: 10px;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
}

.bc-consent-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 50px;
    width: 50px;
    height: 44px;
}

.bc-consent-toggle input {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.bc-consent-toggle__track {
    position: relative;
    display: block;
    width: 48px;
    height: 28px;
    border: 2px solid rgba(71, 85, 105, 0.82);
    border-radius: 999px;
    background: #b8c4d1;
    pointer-events: none;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.bc-consent-toggle__track::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.25);
    transition: transform 150ms ease;
}

.bc-consent-toggle input:checked + .bc-consent-toggle__track {
    border-color: var(--bc-consent-primary);
    background: var(--bc-consent-primary);
}

.bc-consent-toggle input:checked + .bc-consent-toggle__track::after {
    transform: translateX(20px);
}

.bc-consent-modal__footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 8px;
    flex: 0 0 auto;
    padding: 10px 18px 14px;
    border-top: 1px solid var(--bc-consent-border);
    background: var(--bc-consent-background);
}

.bc-consent-modal__footer .bc-consent-button {
    width: 100%;
}

.bc-consent-reopen {
    position: fixed;
    z-index: 2147482999;
    bottom: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-height: 48px;
    margin: 0;
    padding: 0;
    border: 3px solid var(--bc-consent-background);
    border-radius: 50%;
    background: var(--bc-consent-primary);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.24);
    color: var(--bc-consent-on-primary);
    font-size: 0;
    line-height: 1;
    transition: filter 150ms ease, transform 150ms ease;
}

.bc-consent-reopen--right {
    right: 16px;
    right: calc(16px + env(safe-area-inset-right));
}

.bc-consent-reopen--left {
    left: 16px;
    left: calc(16px + env(safe-area-inset-left));
}

.bc-consent-reopen:hover {
    background: var(--bc-consent-primary);
    color: var(--bc-consent-on-primary);
    filter: brightness(0.92);
    transform: translateY(-1px);
}

.bc-consent-reopen__icon {
    display: block;
    width: 27px;
    height: 27px;
    color: currentColor;
}

.bc-consent-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.bc-consent-noscript {
    position: fixed;
    z-index: 2147483000;
    right: 16px;
    bottom: 16px;
    left: 16px;
    max-width: 520px;
    margin-left: auto;
    padding: 12px 14px;
    border: 1px solid var(--bc-consent-border);
    border-radius: 12px;
    background: var(--bc-consent-background);
    box-shadow: var(--bc-consent-shadow);
    color: var(--bc-consent-text);
    font-size: 13px;
}

@supports (height: 100dvh) {
    .bc-consent-banner {
        max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    }

    .bc-consent-modal {
        max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    }
}

@media (max-width: 600px) {
    .bc-consent-banner {
        bottom: 8px;
        bottom: calc(8px + env(safe-area-inset-bottom));
        width: calc(100vw - 16px);
        max-height: calc(100vh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        gap: 11px;
        padding: 13px;
        border-radius: 15px;
    }

    .bc-consent-banner--right {
        right: 8px;
        right: calc(8px + env(safe-area-inset-right));
        left: auto;
    }

    .bc-consent-banner--left {
        right: auto;
        left: 8px;
        left: calc(8px + env(safe-area-inset-left));
    }

    .bc-consent-banner__actions {
        gap: 6px;
    }

    .bc-consent-banner__actions .bc-consent-button {
        padding-right: 6px;
        padding-left: 6px;
        font-size: 12px;
        overflow-wrap: anywhere;
    }

    .bc-consent-title {
        font-size: 18px;
    }

    .bc-consent-description {
        font-size: 12.5px;
    }

    .bc-consent-modal-layer {
        padding: 8px;
        padding-top: calc(8px + env(safe-area-inset-top));
        padding-right: calc(8px + env(safe-area-inset-right));
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
        padding-left: calc(8px + env(safe-area-inset-left));
    }

    .bc-consent-modal {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        border-radius: 15px;
    }

    .bc-consent-modal__header {
        padding: 12px 11px 8px 14px;
    }

    .bc-consent-modal__body {
        padding: 0 14px 9px;
    }

    .bc-consent-modal__footer {
        padding: 8px 14px 12px;
    }

    .bc-consent-category {
        gap: 8px;
        padding: 7px 9px;
    }

    .bc-consent-reopen {
        bottom: 8px;
        bottom: calc(8px + env(safe-area-inset-bottom));
    }

    .bc-consent-reopen--right {
        right: 8px;
        right: calc(8px + env(safe-area-inset-right));
    }

    .bc-consent-reopen--left {
        left: 8px;
        left: calc(8px + env(safe-area-inset-left));
    }

    @supports (height: 100dvh) {
        .bc-consent-banner,
        .bc-consent-modal {
            max-height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        }
    }
}

@media (max-width: 340px) {
    .bc-consent-banner {
        padding: 11px;
    }

    .bc-consent-links {
        gap: 3px 10px;
    }

    .bc-consent-banner__actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .bc-consent-banner__actions .bc-consent-button {
        font-size: 12px;
    }

    .bc-consent-category--locked {
        flex-wrap: wrap;
    }

    .bc-consent-badge {
        margin-left: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bc-consent-root *,
    .bc-consent-root *::before,
    .bc-consent-root *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media (forced-colors: active) {
    .bc-consent-banner,
    .bc-consent-modal,
    .bc-consent-category,
    .bc-consent-button,
    .bc-consent-reopen,
    .bc-consent-close {
        border-color: CanvasText;
        forced-color-adjust: auto;
    }

    .bc-consent-toggle__track {
        border-color: CanvasText;
        background: Canvas;
    }

    .bc-consent-toggle input:checked + .bc-consent-toggle__track {
        border-color: Highlight;
        background: Highlight;
    }
}
