/* ============================================================
   Consent Banner
   ============================================================ */

.cb-hidden {
    display: none !important;
}

/* Banner wrapper — fixed to bottom of viewport */
.cb-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #1a1a2e;
    color: #e8e8f0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.35);
}

.cb-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cb-text {
    flex: 1 1 300px;
    color: #b8b8cc;
}

.cb-text strong {
    color: #ffffff;
}

.cb-link {
    color: #7b93ff;
    text-decoration: none;
    margin-left: 4px;
    white-space: nowrap;
}

.cb-link:hover {
    text-decoration: underline;
}

/* Action buttons */
.cb-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cb-btn {
    padding: 9px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s, background 0.15s;
    white-space: nowrap;
    font-family: inherit;
    line-height: 1;
}

.cb-btn:hover {
    opacity: 0.88;
}

.cb-btn--primary {
    background: #3b5bdb;
    color: #fff;
}

.cb-btn--primary:hover {
    background: #4c6ef5;
    opacity: 1;
}

.cb-btn--outline {
    background: transparent;
    color: #b8b8cc;
    border: 1px solid rgba(255,255,255,0.2);
}

.cb-btn--outline:hover {
    border-color: rgba(255,255,255,0.4);
    color: #fff;
    opacity: 1;
}

.cb-btn--ghost {
    background: transparent;
    color: #7b93ff;
    padding-left: 4px;
    padding-right: 4px;
}

.cb-btn--ghost:hover {
    color: #a5b4fc;
    opacity: 1;
}

/* ============================================================
   Customize panel
   ============================================================ */
.cb-panel {
    border-top: 1px solid rgba(255,255,255,0.08);
    background: #13132a;
}

.cb-panel-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px 20px;
}

.cb-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cb-toggle-row:last-of-type {
    border-bottom: none;
}

.cb-toggle-row strong {
    color: #e8e8f0;
    display: block;
    margin-bottom: 2px;
    font-size: 13px;
}

.cb-desc {
    color: #7a7a99;
    font-size: 12px;
}

.cb-always-on {
    font-size: 12px;
    color: #22c55e;
    white-space: nowrap;
    flex-shrink: 0;
}

.cb-panel-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
}

/* ============================================================
   Toggle switch
   ============================================================ */
.cb-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}

.cb-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.cb-slider {
    position: absolute;
    inset: 0;
    background: #3a3a5c;
    border-radius: 24px;
    transition: background 0.2s;
}

.cb-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    top: 3px;
    left: 3px;
    transition: transform 0.2s;
}

.cb-switch input:checked + .cb-slider {
    background: #3b5bdb;
}

.cb-switch input:checked + .cb-slider::before {
    transform: translateX(18px);
}

.cb-switch input:focus-visible + .cb-slider {
    outline: 2px solid #7b93ff;
    outline-offset: 2px;
}

/* ============================================================
   Re-open button (bottom-left floating icon)
   ============================================================ */
.cb-reopen {
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 99998;
    background: #1a1a2e;
    color: #7b93ff;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
    transition: background 0.15s, color 0.15s;
}

.cb-reopen:hover {
    background: #252545;
    color: #a5b4fc;
}

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 640px) {
    .cb-inner {
        padding: 14px 16px;
        gap: 14px;
    }

    .cb-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .cb-btn--ghost {
        order: -1;
        margin-right: auto;
    }

    .cb-panel-inner {
        padding: 12px 16px 16px;
    }
}
