.scc-banner,
.scc-dialog,
.scc-reopen {
    box-sizing: border-box;
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.scc-banner *,
.scc-dialog * {
    box-sizing: border-box;
}

.scc-banner[hidden],
.scc-overlay[hidden],
.scc-reopen[hidden] {
    display: none !important;
}

.scc-banner {
    position: fixed;
    z-index: 10000;
    right: 24px;
    bottom: 92px;
    left: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1160px;
    margin: 0 auto;
    padding: 18px 20px;
    color: #fff;
    background: rgba(14, 14, 14, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.scc-banner__copy {
    min-width: 0;
}

.scc-banner__copy strong {
    display: block;
    margin-bottom: 5px;
    font-size: 0.98rem;
    line-height: 1.3;
}

.scc-banner__copy p,
.scc-dialog p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    line-height: 1.5;
}

.scc-banner__actions,
.scc-dialog__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
}

.scc-button,
.scc-text-button,
.scc-dialog__close,
.scc-reopen {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    cursor: pointer;
}

.scc-button {
    min-height: 42px;
    padding: 10px 15px;
    color: #fff;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.2;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.scc-button:hover,
.scc-button:focus-visible {
    border-color: rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.13);
}

.scc-button--primary {
    color: #090909;
    border-color: #fff;
    background: #fff;
}

.scc-button--primary:hover,
.scc-button--primary:focus-visible {
    color: #000;
    background: #e8e8e8;
}

.scc-button:active {
    transform: translateY(1px);
}

.scc-button:focus-visible,
.scc-text-button:focus-visible,
.scc-dialog__close:focus-visible,
.scc-reopen:focus-visible,
.scc-category--switchable:has(input:focus-visible) {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.scc-overlay {
    position: fixed;
    z-index: 11000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.scc-dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(620px, 100%);
    max-height: min(760px, calc(100vh - 40px));
    color: #fff;
    background: rgba(14, 14, 14, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

.scc-dialog__scroll {
    min-height: 0;
    padding: 30px 30px 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.scc-dialog h2 {
    margin: 0 48px 8px 0;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1.25;
}

.scc-dialog__intro {
    margin-bottom: 20px !important;
}

.scc-dialog__close {
    position: absolute;
    z-index: 2;
    top: 16px;
    right: 16px;
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    color: #fff;
    font-size: 25px;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    place-items: center;
}

.scc-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 11px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
}

.scc-category h3 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 0.91rem;
    line-height: 1.3;
}

.scc-category p {
    font-size: 0.76rem;
}

.scc-category--switchable {
    cursor: pointer;
}

.scc-required {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
}

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

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

.scc-switch span {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.scc-switch span::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 19px;
    height: 19px;
    content: '';
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s ease;
}

.scc-switch input:checked + span {
    border-color: #fff;
    background: #fff;
}

.scc-switch input:checked + span::after {
    background: #111;
    transform: translateX(21px);
}

.scc-policy {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
}

.scc-policy summary {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.scc-policy div {
    padding-top: 12px;
}

.scc-policy p + p {
    margin-top: 8px;
}

.scc-policy code {
    color: #fff;
    font-size: 0.75rem;
}

.scc-text-button {
    margin-top: 12px;
    padding: 0;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: underline;
    border: 0;
    background: transparent;
}

.scc-dialog__actions {
    justify-content: flex-end;
    padding: 16px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 10, 10, 0.96);
}

.scc-reopen {
    position: fixed;
    z-index: 9900;
    bottom: 110px;
    left: 14px;
    width: 42px;
    height: 42px;
    padding: 0;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(14, 14, 14, 0.9);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.scc-reopen > span,
.scc-reopen > span::before,
.scc-reopen > span::after {
    position: absolute;
    content: '';
    border-radius: 50%;
    background: #fff;
}

.scc-reopen > span {
    top: 11px;
    left: 11px;
    width: 20px;
    height: 20px;
    background: transparent;
    border: 2px solid #fff;
}

.scc-reopen > span::before {
    top: 4px;
    left: 4px;
    width: 4px;
    height: 4px;
    box-shadow: 7px 2px 0 #fff, 2px 8px 0 #fff;
}

.scc-is-open {
    overflow: hidden !important;
}

@media (max-width: 860px) {
    .scc-banner {
        bottom: 94px;
        flex-direction: column;
        align-items: stretch;
        gap: 13px;
        padding: 16px;
    }

    .scc-banner__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .scc-banner__actions .scc-button--primary {
        grid-column: 1 / -1;
        grid-row: 1;
    }
}

@media (max-width: 520px) {
    .scc-banner {
        right: 10px;
        bottom: 94px;
        left: 10px;
        width: calc(100% - 20px);
        max-width: none;
        border-radius: 17px;
    }

    .scc-banner__actions {
        width: 100%;
        min-width: 0;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .scc-banner__actions .scc-button {
        min-width: 0;
        padding-right: 9px;
        padding-left: 9px;
    }

    .scc-banner__copy strong {
        font-size: 0.9rem;
    }

    .scc-banner__copy p {
        font-size: 0.74rem;
    }

    .scc-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .scc-dialog {
        width: 100%;
        max-height: 90vh;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 22px 22px 0 0;
    }

    .scc-dialog__scroll {
        padding: 26px 14px 16px;
    }

    .scc-category {
        gap: 12px;
        padding: 14px;
    }

    .scc-category p {
        font-size: 0.72rem;
    }

    .scc-required {
        white-space: normal;
        text-align: right;
    }

    .scc-dialog__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    }

    .scc-reopen {
        bottom: 110px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scc-button,
    .scc-switch span,
    .scc-switch span::after {
        transition: none;
    }
}
