@charset "UTF-8";

.ccb-root {
    --ccb-background: #676767;
    --ccb-accent: #f58648;
    --ccb-text: #ffffff;
    font-family: inherit;
}

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

.ccb-root .screen-reader-text {
    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;
}

.ccb-banner {
    position: fixed;
    z-index: 99990;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 16px 20px;
    background: var(--ccb-background);
    background: color-mix(in srgb, var(--ccb-background) 94%, transparent);
    color: var(--ccb-text);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(4px);
}

.ccb-banner__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    width: min(1180px, 100%);
    margin: 0 auto;
}

.ccb-banner__message {
    flex: 1 1 auto;
    margin: 0;
    line-height: 1.55;
}

.ccb-banner a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ccb-banner a:hover,
.ccb-banner a:focus-visible {
    color: var(--ccb-accent);
}

.ccb-actions,
.ccb-dialog__actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.ccb-button,
.ccb-settings-link,
.ccb-inline-settings-link,
.ccb-dialog__close {
    appearance: none;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.ccb-button {
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid currentColor;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    line-height: 1.2;
}

.ccb-button--primary {
    border-color: #fff;
    background: #fff;
    color: var(--ccb-background);
}

.ccb-button--primary:hover,
.ccb-button--primary:focus-visible {
    border-color: var(--ccb-accent);
    background: var(--ccb-accent);
    color: #fff;
}

.ccb-button--text {
    padding-right: 6px;
    padding-left: 6px;
    border-color: transparent;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ccb-button:hover,
.ccb-button:focus-visible,
.ccb-settings-link:hover,
.ccb-settings-link:focus-visible,
.ccb-inline-settings-link:hover,
.ccb-inline-settings-link:focus-visible,
.ccb-dialog__close:hover,
.ccb-dialog__close:focus-visible {
    outline: 3px solid var(--ccb-accent);
    outline: 3px solid color-mix(in srgb, var(--ccb-accent) 75%, white);
    outline-offset: 2px;
}

.ccb-dialog-open {
    overflow: hidden;
}

.ccb-dialog-backdrop {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.58);
}

.ccb-dialog {
    width: min(620px, 100%);
    max-height: min(760px, calc(100vh - 40px));
    overflow: auto;
    padding: 24px;
    border-radius: 12px;
    background: #fff;
    color: #2d2d2d;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.ccb-dialog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.ccb-dialog h2 {
    margin: 0;
    font-size: 1.45rem;
}

.ccb-dialog__close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    color: #444;
    font-size: 1.7rem;
    line-height: 1;
}

.ccb-preference {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
    border-top: 1px solid #e6e6e6;
}

.ccb-preference p {
    margin: 4px 0 0;
    font-size: 0.93rem;
    line-height: 1.45;
}

.ccb-switch {
    position: relative;
    flex: 0 0 auto;
    width: 48px;
    height: 28px;
}

.ccb-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.ccb-switch span[aria-hidden="true"] {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #b7b7b7;
    transition: background 0.15s ease;
}

.ccb-switch span[aria-hidden="true"]::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease;
}

.ccb-switch input:checked + span[aria-hidden="true"] {
    background: var(--ccb-accent);
}

.ccb-switch input:checked + span[aria-hidden="true"]::after {
    transform: translateX(20px);
}

.ccb-switch input:focus-visible + span[aria-hidden="true"] {
    outline: 3px solid var(--ccb-accent);
    outline-offset: 3px;
}

.ccb-switch--locked {
    opacity: 0.65;
}

.ccb-dialog__actions {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #e6e6e6;
    color: #444;
}

.ccb-dialog .ccb-button--primary {
    border-color: var(--ccb-accent);
    background: var(--ccb-accent);
    color: #fff;
}

.ccb-settings-link {
    position: fixed;
    z-index: 99980;
    bottom: 12px;
    left: 12px;
    padding: 7px 10px;
    border: 1px solid color-mix(in srgb, var(--ccb-background) 25%, transparent);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--ccb-background);
    font-size: 12px;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.ccb-inline-settings-link {
    padding: 0;
    background: transparent;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 820px) {
    .ccb-banner__inner {
        display: block;
    }

    .ccb-actions {
        margin-top: 14px;
    }
}

@media (max-width: 520px) {
    .ccb-banner {
        padding: 14px;
    }

    .ccb-actions,
    .ccb-dialog__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .ccb-button {
        width: 100%;
    }

    .ccb-dialog {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ccb-root *,
    .ccb-root *::before,
    .ccb-root *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
