
:where(.bb-theme-switcher),
:where(.bb-theme-switcher) *,
:where(.bb-theme-switcher) *::before,
:where(.bb-theme-switcher) *::after { box-sizing: border-box; }

.bb-theme-family-menu {
    --bb-switcher-menu-open-duration: 800ms;
    --bb-switcher-menu-close-duration: 500ms;
    --bb-switcher-menu-open-easing: cubic-bezier(0.5, 0.5, 0.25, 1.5);
    --bb-switcher-menu-close-easing: cubic-bezier(.4, 0, .3, 1);
    --bb-switcher-menu-unified-close-easing: cubic-bezier(.4, 0, .3, 1);
    --bb-switcher-menu-content-open-easing: cubic-bezier(0.5, 0.5, 0.25, 1.5);
    --bb-switcher-menu-scale-peak-at: .666667;
    --bb-switcher-menu-scale-peak: 1.025;
    --bb-switcher-menu-scale-settle-easing: cubic-bezier(.22, 1, .36, 1);
    --bb-switcher-menu-content-close-easing: cubic-bezier(.45, 0, .3, 1);
    --bb-switcher-menu-color-easing: cubic-bezier(0.5, 0.5, 0.25, 1.5);
    --bb-switcher-menu-mask-easing: cubic-bezier(0.5, 0.5, 0.25, 1.5);
    --bb-switcher-menu-shadow-easing: cubic-bezier(0.5, 0.5, 0.25, 1.5);
    --bb-switcher-menu-open-blur: 15px;
    --bb-switcher-menu-close-blur: 2px;
    --bb-switcher-menu-open-scale: .94;
    --bb-switcher-menu-close-scale: .99;
    --bb-switcher-menu-mask-overshoot: 0;
    --bb-switcher-menu-mask-bounce-at: .84;
    --bb-switcher-menu-color-clear-at: .80;
}

.bb-theme-switcher {
    --gf-focus-color: var(--bb-ui-switcher-focus,var(--sk-focus-color, var(--bb-switcher-gf-focus-ring,#0070ee)));
    --bbtc-radius-outer: 20px;
    --bbtc-radius-inner: 20px;
    --bbtc-shadow: 0 0 100px var(--bb-switcher-bbtc-shadow,rgba(0, 0, 0, .2));
    --bbtc-border: var(--bb-ui-switcher-border,var(--theme-color, var(--bb-switcher-bbtc-border,#0070ee)));
    --bbtc-text: var(--bb-ui-switcher-text,var(--theme-color, var(--bb-switcher-bbtc-text,#0070ee)));
    --bbtc-active-bg: var(--bb-ui-switcher-selected-background,var(--theme-color, var(--bb-switcher-bbtc-active-background,#0070ee)));
    --bbtc-active-text: var(--bb-ui-switcher-selected-text,var(--btn-primary-color, var(--bb-switcher-bbtc-active-text,#fff)));
    --bbtc-menu-bg: var(--bb-ui-switcher-menu-background,var(--bg-global, var(--bb-switcher-bbtc-menu-background,#fff)));
    --bbtc-menu-text: var(--bb-ui-switcher-menu-text,var(--color-global, var(--bb-switcher-bbtc-menu-text,#111)));
    --toggle-color-fill: var(--bbtc-border);
    --toggle-color-text: var(--bbtc-text);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font: 14px/1.428572 "BB Text";
    letter-spacing: -.016em;
    vertical-align: middle;
}

@media only screen and (max-width: 767px) {
    .bb-theme-switcher {
        padding-top: 14px;
    }
}

.bb-theme-switcher[data-layout=stack] {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    width: max-content;
}

.bb-theme-group {
    display: inline-flex;
    align-items: center;
    padding: 1px;
    border: 1px solid var(--toggle-color-fill);
    border-radius: var(--bbtc-radius-outer);
    background: transparent;
}

.bb-theme-title {
    font-size: 12px;
    color: var(--toggle-color-text);
    padding-inline: 6px;
}

.bb-theme-radio {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.bb-theme-label,
.bb-theme-summary,
.bb-theme-select {
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 0 6px;
    border: 1px solid transparent;
    border-radius: var(--bbtc-radius-inner);
    color: var(--toggle-color-text);
    background: transparent;
    font: inherit;
    line-height: 1.285715;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    transition: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.bb-theme-label:hover,
.bb-theme-summary:hover,
.bb-theme-select:hover {
    border-color: var(--toggle-color-fill);
}

.bb-theme-family-dropdown[open]>.bb-theme-summary:focus {
    border-color: var(--toggle-color-fill);
}

.bb-theme-label:active,
.bb-theme-summary:active,
.bb-theme-select:active {
    box-shadow: inset 0 0 0 1px var(--toggle-color-fill);
}

.bb-theme-label[aria-checked=true] {
    color: var(--bg-page);
    background: var(--bbtc-active-bg);
    border-color: var(--bbtc-active-bg);
}

.bb-theme-label:focus-visible,
.bb-theme-summary:focus-visible,
.bb-theme-select:focus-visible,
.bb-theme-radio:focus-visible+.bb-theme-label,
.bb-theme-native-range:focus-visible {
    outline: 2px solid var(--gf-focus-color);
    outline-offset: 3px;
    border-radius: 80px;
}

.bb-theme-switcher[data-labels="0"] .bb-theme-title {
    display: none;
}

.bb-theme-family-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    line-height: 1;
}

.bb-theme-summary {
    display: flex;
    min-width: 20px;
    width: 20px;
    height: 20px;
    gap: 0;
    padding: 0;
    border-color: transparent;
    list-style: none;
    line-height: 1;
}

.bb-theme-summary::-webkit-details-marker {
    display: none;
}

.bb-theme-current-family-swatch {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bb-switcher-current-family-swatch, var(--theme-color, var(--bb-switcher-current-family-swatch-background,#0088ff)));
}

.bb-theme-current-family-swatch-overlay {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    z-index: 9;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%,
            var(--bb-switcher-current-family-swatch-overlay-background,rgba(255, 255, 255, 0.62)) 0%,
            var(--bb-switcher-current-family-swatch-overlay-part-2-background,rgba(255, 255, 255, 0)) 62%);
}

.bb-theme-summary:after {
    content: none;
    display: none;
}

.bb-theme-family-dropdown[open]>.bb-theme-summary {
    background: transparent;
    color: var(--bbtc-active-text);
}

.bb-theme-family-menu {
    position: absolute;
    z-index: 99999;
    left: 50%;
    min-width: 200px;
    border-radius: var(--bbtc-radius-outer);
    background: var(--bbtc-menu-bg);
    color: var(--bbtc-menu-text);
    box-shadow: var(--bbtc-shadow);
    overflow: hidden;
    -webkit-backdrop-filter: blur(10px) saturate(200%);
    backdrop-filter: blur(10px) saturate(200%);
}

.bb-theme-family-dropdown[data-bb-theme-drop=top] .bb-theme-family-menu {
    bottom: calc(100% + 8px);
    top: auto;
}

.bb-theme-family-dropdown[data-bb-theme-drop=bottom] .bb-theme-family-menu {
    top: calc(100% + 8px);
    bottom: auto;
}

.bb-theme-family-dropdown[data-bb-theme-measuring="1"] .bb-theme-family-menu {
    visibility: hidden;
}

.bb-theme-family-dropdown[data-bb-theme-positioned="1"] .bb-theme-family-menu {
    visibility: visible;
}

.bb-theme-family-menu-scroll {
    padding: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: inherit;
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.bb-theme-family-menu-scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.bb-theme-family-menu .bb-theme-label {
    display: block;
    width: 100%;
    min-width: 160px;
    margin: 1px 0;
    padding: 2px 6px;
    text-align: left;
    color: var(--color-secondary, inherit);
    background: transparent;
    border-color: transparent;
}

.bb-theme-family-menu .bb-theme-label:before {
    content: "";
    display: inline-block;
    width: .75em;
    height: .75em;
    margin-right: 7px;
    border: 0;
    border-radius: 50%;
    background: var(--bb-option-color, currentColor);
    box-shadow: inset 0 0 0 1px var(--bb-switcher-label-shadow,rgba(255, 255, 255, .45));
    vertical-align: -.05em;
}

.bb-theme-family-menu .bb-theme-label[aria-checked=true] {
    color: var(--bb-switcher-label-text,#fff);
    background: var(--bb-option-color, var(--accent));
    border-color: transparent;
}

.bb-theme-family-menu .bb-theme-label[aria-checked=true]:before {
    background: var(--bb-switcher-label-background,rgba(255, 255, 255, .9));
    box-shadow: inset 0 0 0 1px var(--bb-switcher-label-shadow-2,rgba(255, 255, 255, .6));
}

.bb-theme-family-menu .bb-theme-label:focus-visible,
.bb-theme-family-menu .bb-theme-radio:focus-visible+.bb-theme-label {
    outline: 2px solid var(--bb-option-color, var(--accent));
    outline-offset: 3px;
    box-shadow: inset 0 0 0 2px var(--bb-option-color, var(--accent));
}

.bb-theme-family-menu .bb-theme-label:active,
.bb-theme-family-menu .bb-theme-label[aria-checked=true]:active {
    border-color: transparent;
    box-shadow: inset 0 0 0 2px var(--bb-option-color, var(--accent));
}

.bb-theme-family-menu .bb-theme-label:hover,
.bb-theme-family-menu .bb-theme-label[aria-checked=true]:hover {
    color: var(--bb-switcher-label-hover-text,#fff);
    background: var(--bb-option-color, var(--accent));
    border-color: transparent;
    filter: none;
}

.bb-theme-family-menu .bb-theme-label:hover:before,
.bb-theme-family-menu .bb-theme-label[aria-checked=true]:hover:before {
    background: var(--bb-switcher-label-hover-background,rgba(255, 255, 255, .9));
    box-shadow: inset 0 0 0 1px var(--bb-switcher-label-hover-shadow,rgba(255, 255, 255, .6));
}

.bb-theme-family-menu .bb-theme-label[aria-checked=true]:after {
    content: "✓";
    float: right;
}

.bb-theme-premium-controls {
    min-width: 200px;
    padding: 4px;
    margin: 0 0 0px;
    border-radius: calc(var(--bbtc-radius-inner) + 6px);
    background: transparent;
}

.bb-theme-slider-control {
    padding: 4px 4px 4px;
    color: var(--bbtc-menu-text);
}

.bb-theme-slider-control+.bb-theme-slider-control {
    border-top: 1px solid var(--toggle-color-fill);
}

.bb-theme-slider-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    line-height: 1.2;
    margin-bottom: 0;
}

.bb-theme-slider-head strong {
    font-weight: 400;
    color: var(--toggle-color-text);
    min-width: 36px;
    text-align: right;
}

.bb-theme-saturation-range-wrap {
    position: relative;
    height: 22px;
    padding: 0;
    isolation: isolate;
}

.bb-theme-saturation-value-wrap {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.bb-theme-switcher button.bb-theme-saturation-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: currentColor;
    cursor: pointer;
    opacity: 0.55;
}

.bb-theme-switcher button.bb-theme-saturation-reset svg {
    display: block;
    width: 12px;
    height: 12px;
    pointer-events: none;
}

.bb-theme-switcher button.bb-theme-saturation-reset:hover {
    opacity: 1;
}

.bb-theme-switcher[data-switcher="hide"] {
    display: none!important;
}

.bb-theme-switcher[data-switcher="opacity"] {
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

:is(html[dir="rtl"], html[data-bb-translate-direction="rtl"]) .bb-theme-family-menu {
    direction: rtl;
    text-align: right;
}

:is(html[dir="rtl"], html[data-bb-translate-direction="rtl"]) .bb-theme-family-menu-scroll {
    direction: rtl;
    text-align: right;
}

:is(html[dir="rtl"], html[data-bb-translate-direction="rtl"]) .bb-theme-family-menu .bb-theme-label {
    text-align: right;
}

:is(html[dir="rtl"], html[data-bb-translate-direction="rtl"]) .bb-theme-family-menu .bb-theme-label::before {
    margin-right: 0;
    margin-left: 7px;
}

.bb-theme-family-dropdown .bb-theme-family-menu {
    max-width: calc(100dvw - 24px);
    box-sizing: border-box;
    transform: translate3d(calc(-50% + var(--bb-switcher-menu-shift-x, 0px)), 0, 0);
    will-change: transform;
}

.bb-theme-family-dropdown .bb-theme-family-menu .bb-theme-label {
    box-sizing: border-box;
    min-width: 0;
}

:is(html[dir="rtl"], html[data-bb-translate-direction="rtl"]) .bb-theme-family-menu .bb-theme-label {
    position: relative;
    padding-inline-start: 9px;
    padding-inline-end: 29px;
    text-align: start;
}

:is(html[dir="rtl"], html[data-bb-translate-direction="rtl"]) .bb-theme-family-menu .bb-theme-label[aria-checked="true"]::after {
    position: absolute;
    left: 10px;
    right: auto;
    top: 50%;
    float: none;
    margin: 0;
    line-height: 1;
    transform: translateY(-50%);
    opacity: 1;
}

:is(html[dir="rtl"], html[data-bb-translate-direction="rtl"]) .bb-theme-family-menu .bb-theme-label[aria-checked="true"][data-bb-theme-recently-selected="true"]::after {
    animation: bb-theme-rtl-family-check-flash 720ms ease-out both;
}

@keyframes bb-theme-rtl-family-check-flash {
    0%, 20% {
        opacity: 1;
    }
    42% {
        opacity: 0;
    }
    66% {
        opacity: 1;
    }
    82% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@media (hover: hover) and (pointer: fine) {
    :is(html[dir="rtl"], html[data-bb-translate-direction="rtl"]) .bb-theme-family-menu .bb-theme-label[aria-checked="true"]:hover::after {
        opacity: 0;
        animation: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    :is(html[dir="rtl"], html[data-bb-translate-direction="rtl"]) .bb-theme-family-menu .bb-theme-label[aria-checked="true"]::after {
        animation: none;
    }
}

.bb-theme-family-dropdown .bb-theme-family-menu-scroll,
.bb-theme-family-dropdown .bb-theme-premium-controls {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.bb-theme-family-dropdown .bb-theme-family-menu-scroll {
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: auto;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overflow-anchor: none;
}

.bb-theme-switcher .bb-theme-saturation-range-wrap,.bb-theme-switcher .bb-theme-saturation-range {
    direction: ltr;
}

.bb-theme-switcher .bb-theme-saturation-range {
    writing-mode: horizontal-tb;
}

.bb-theme-family-bubble-reveal {
    position: fixed;
    z-index: 100000;
    display: block;
    box-sizing: border-box;
    pointer-events: none;
    overflow: hidden;
    background: conic-gradient(var(--bb-switcher-family-bubble-reveal-background,#00B0EE), var(--bb-switcher-family-bubble-reveal-part-2-background,#FbA555), var(--bb-switcher-family-bubble-reveal-part-3-background,#F33B1B), var(--bb-switcher-family-bubble-reveal-part-4-background,#aa00FF), var(--bb-switcher-family-bubble-reveal-part-5-background,#00B0EE));
    will-change: left, top, width, height, border-radius, opacity;
}

.bb-theme-family-reveal-shadow {
    position: fixed;
    z-index: 99998;
    pointer-events: none;
    box-sizing: border-box;
    background: transparent;
    will-change: left, top, width, height, border-radius, box-shadow, opacity;
}

.bb-theme-family-menu-scroll {
    transform-origin: center center;
}

@media (prefers-reduced-motion: reduce) {
    .bb-theme-family-reveal-shadow {
        display: none;
    }
}

.bb-theme-family-menu {
    --bb-switcher-menu-circle-bend-at: .68;
    --bb-switcher-menu-circle-bend-size: 40;
    --bb-switcher-menu-circle-bend-easing: cubic-bezier(.45,0,.3,1);
    --bb-switcher-menu-circle-finish-easing: cubic-bezier(.45,0,.3,1);
}

.bb-theme-family-menu .bb-theme-label[aria-checked="true"][data-bb-theme-recently-selected="true"]::before {
    animation: bb-theme-activation-pulse 680ms cubic-bezier(.2,.75,.25,1) both;
}

.bb-theme-family-menu .bb-theme-label[aria-checked="true"][data-bb-theme-recently-selected="true"]::after,
:is(html[dir="rtl"], html[data-bb-translate-direction="rtl"]) .bb-theme-family-menu .bb-theme-label[aria-checked="true"][data-bb-theme-recently-selected="true"]::after {
    opacity: 1;
    animation: bb-theme-activation-check 520ms cubic-bezier(.2,.75,.25,1) both;
}

@keyframes bb-theme-activation-pulse {
    0% {
        transform: scale(.8);
        box-shadow: 0 0 0 0 var(--bb-switcher-shadow,rgba(255,255,255,.65));
    }
    35% {
        transform: scale(1.18);
        box-shadow: 0 0 0 5px var(--bb-switcher-shadow-2,rgba(255,255,255,.25));
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 8px var(--bb-switcher-shadow-3,rgba(255,255,255,0));
    }
}

@keyframes bb-theme-activation-check {
    0% {
        opacity: .15;
        scale: .65;
    }
    55% {
        opacity: 1;
        scale: 1.16;
    }
    100% {
        opacity: 1;
        scale: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bb-theme-family-menu .bb-theme-label[aria-checked="true"][data-bb-theme-recently-selected="true"]::before,
    .bb-theme-family-menu .bb-theme-label[aria-checked="true"][data-bb-theme-recently-selected="true"]::after,
    :is(html[dir="rtl"], html[data-bb-translate-direction="rtl"]) .bb-theme-family-menu .bb-theme-label[aria-checked="true"][data-bb-theme-recently-selected="true"]::after {
        animation: none;
    }
}

.bb-theme-switcher {
    --bbtc-border: var(--bb-ui-switcher-border,var(--accent));
    --bbtc-text: var(--bb-ui-switcher-text,var(--accent));
    --bbtc-active-bg: var(--bb-ui-switcher-selected-background,var(--btn-primary-bg));
    --bbtc-active-text: var(--bb-ui-switcher-selected-text,var(--btn-primary-color));
    --bbtc-menu-bg: var(--bb-ui-switcher-menu-background,var(--bg-light));
    --bbtc-menu-text: var(--bb-ui-switcher-menu-text,var(--color-global));
}

.bb-theme-switcher .bb-custom-theme-control {
    padding: 4px 0;
}

.bb-theme-switcher .bb-custom-theme-control .bb-theme-slider-head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px;
}

.bb-theme-switcher .bb-custom-theme-control input {
    grid-column: 1/-1;
    width: 100%;
    height: 18px;
    accent-color: var(--accent);
    margin: 0;
}

html.bb-theme:not([data-bb-theme-no-theme="1"]) #bb-globalfooter .bb-theme-family-menu .bb-theme-label:focus-visible,
html.bb-theme:not([data-bb-theme-no-theme="1"]) #bb-globalfooter .bb-theme-family-menu .bb-theme-radio:focus-visible+.bb-theme-label {
    outline-color: var(--theme-color, var(--focus-ring));
    box-shadow: inset 0 0 0 2px var(--theme-color, var(--focus-ring));
}


html[data-bb-theme-resolved="light"] :where(.bb-theme-switcher) { color-scheme: light; }
html[data-bb-theme-resolved="dark"] :where(.bb-theme-switcher) { color-scheme: dark; }


.bb-theme-switcher input.bb-theme-native-range {
    appearance: auto;
    -webkit-appearance: auto;
    accent-color: var(--accent, var(--toggle-color-fill));
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 18px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
}
.bb-theme-switcher .bb-theme-saturation-range-wrap { display: flex; align-items: center; }
.bb-theme-switcher input.bb-theme-native-range:disabled { opacity: .45; cursor: not-allowed; }
.bb-theme-switcher .bb-theme-label[aria-checked="true"],
.bb-theme-switcher .bb-theme-label[aria-checked="true"]:hover,
.bb-theme-switcher .bb-theme-label[aria-checked="true"]:active,
.bb-theme-switcher .bb-theme-label[aria-checked="true"]:focus-visible { color: #ffffff !important; }
