
/* ---------- Overlay ---------- */
.cc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cc-overlay.cc-visible {
    opacity: 1;
    visibility: visible;
}

/* ---------- Banner ---------- */
.cc-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0 16px 16px;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
    pointer-events: none;
}
.cc-banner.cc-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cc-banner-card {
    max-width: 960px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 -4px 32px rgba(90, 56, 175, 0.12), 0 0 0 1px rgba(186, 60, 231, 0.08);
    padding: 28px 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cc-banner-top {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.cc-banner-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(186, 60, 231, 0.08), rgba(111, 100, 237, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary, #BA3CE7);
    font-size: 1.4rem;
}

.cc-banner-text {
    flex: 1;
}

.cc-banner-title {
    font-family: var(--font-semibold, "Zabal DEMO semi bold", sans-serif);
    font-size: 1.05rem;
    color: #1a1a2e;
    margin: 0 0 6px;
    line-height: 1.3;
}

.cc-banner-desc {
    font-family: var(--font-regular, "Zabal DEMO regular", sans-serif);
    font-size: 0.85rem;
    color: var(--color-text, #4d4d4d);
    line-height: 1.55;
    margin: 0;
    opacity: 0.85;
}

.cc-banner-desc a {
    color: var(--color-primary, #BA3CE7);
    text-decoration: underline;
    text-decoration-color: rgba(186, 60, 231, 0.3);
    transition: text-decoration-color 0.2s ease;
}
.cc-banner-desc a:hover {
    text-decoration-color: var(--color-primary, #BA3CE7);
}

/* ---------- Buttons Row ---------- */
.cc-banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cc-btn {
    font-family: var(--font-semibold, "Zabal DEMO semi bold", sans-serif);
    font-size: 0.82rem;
    padding: 11px 22px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    line-height: 1;
}
.cc-btn:focus-visible {
    outline: 2px solid var(--color-primary, #BA3CE7);
    outline-offset: 2px;
}

/* Accept All — gradient like AtlaStay primary */
.cc-btn-accept {
    background: linear-gradient(135deg, var(--color-primary, #BA3CE7), var(--color-secondary, #6F64ED));
    color: #fff;
    box-shadow: 0 4px 16px rgba(186, 60, 231, 0.25);
}
.cc-btn-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(186, 60, 231, 0.35);
}

/* Reject All — outline */
.cc-btn-reject {
    background: transparent;
    color: var(--color-text, #4d4d4d);
    border: 1.5px solid rgba(0, 0, 0, 0.12);
}
.cc-btn-reject:hover {
    border-color: var(--color-primary, #BA3CE7);
    color: var(--color-primary, #BA3CE7);
    background: rgba(186, 60, 231, 0.03);
}

/* Manage — ghost/link */
.cc-btn-manage {
    background: transparent;
    color: var(--color-primary, #BA3CE7);
    padding: 11px 16px;
}
.cc-btn-manage:hover {
    background: rgba(186, 60, 231, 0.05);
}

/* ---------- Preferences Modal ---------- */
.cc-prefs-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    z-index: 10000;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(90, 56, 175, 0.18), 0 0 0 1px rgba(186, 60, 231, 0.06);
    width: calc(100% - 32px);
    max-width: 520px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
.cc-prefs-modal.cc-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.cc-prefs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 0;
}

.cc-prefs-title {
    font-family: var(--font-semibold, "Zabal DEMO semi bold", sans-serif);
    font-size: 1.15rem;
    color: #1a1a2e;
    margin: 0;
}

.cc-prefs-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text, #4d4d4d);
    transition: all 0.2s ease;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.cc-prefs-close:hover {
    background: rgba(186, 60, 231, 0.08);
    color: var(--color-primary, #BA3CE7);
}

.cc-prefs-body {
    padding: 20px 28px;
}

/* ---------- Toggle Row ---------- */
.cc-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.cc-category:last-child {
    border-bottom: none;
}

.cc-category-info {
    flex: 1;
    padding-right: 16px;
}

.cc-category-name {
    font-family: var(--font-semibold, "Zabal DEMO semi bold", sans-serif);
    font-size: 0.92rem;
    color: #1a1a2e;
    margin: 0 0 2px;
}

.cc-category-desc {
    font-size: 0.78rem;
    color: var(--color-text, #4d4d4d);
    opacity: 0.7;
    margin: 0;
}

/* Toggle Switch */
.cc-toggle {
    position: relative;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
}

.cc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.cc-toggle-track {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.cc-toggle-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.cc-toggle input:checked + .cc-toggle-track {
    background: linear-gradient(135deg, var(--color-primary, #BA3CE7), var(--color-secondary, #6F64ED));
}
.cc-toggle input:checked + .cc-toggle-track::after {
    transform: translateX(20px);
}

.cc-toggle input:disabled + .cc-toggle-track {
    background: linear-gradient(135deg, var(--color-primary, #BA3CE7), var(--color-secondary, #6F64ED));
    opacity: 0.55;
    cursor: not-allowed;
}
.cc-toggle input:disabled + .cc-toggle-track::after {
    transform: translateX(20px);
}

/* Always-active badge */
.cc-badge-active {
    display: inline-block;
    font-size: 0.68rem;
    font-family: var(--font-regular, "Zabal DEMO regular", sans-serif);
    color: var(--color-primary, #BA3CE7);
    background: rgba(186, 60, 231, 0.08);
    padding: 2px 8px;
    border-radius: 6px;
    margin-left: 8px;
    font-weight: 400;
    vertical-align: middle;
}

/* ---------- Prefs Footer ---------- */
.cc-prefs-footer {
    padding: 0 28px 24px;
    display: flex;
    justify-content: flex-end;
}

.cc-btn-save {
    background: linear-gradient(135deg, var(--color-primary, #BA3CE7), var(--color-secondary, #6F64ED));
    color: #fff;
    font-family: var(--font-semibold, "Zabal DEMO semi bold", sans-serif);
    font-size: 0.85rem;
    padding: 12px 28px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(186, 60, 231, 0.25);
    transition: all 0.25s ease;
}
.cc-btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(186, 60, 231, 0.35);
}
.cc-btn-save:focus-visible {
    outline: 2px solid var(--color-primary, #BA3CE7);
    outline-offset: 2px;
}

/* ---------- Footer trigger link styling ---------- */
.cc-footer-trigger {
    cursor: pointer;
    transition: color 0.3s ease;
}
.cc-footer-trigger:hover {
    color: var(--color-primary, #BA3CE7);
}

/* ====================================================
   RESPONSIVE
   ==================================================== */

/* Tablet */
@media (max-width: 768px) {
    .cc-banner {
        padding: 0 12px 12px;
    }
    .cc-banner-card {
        padding: 22px 20px 18px;
        border-radius: 14px;
    }
    .cc-banner-top {
        gap: 12px;
    }
    .cc-banner-icon {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }
    .cc-banner-title {
        font-size: 0.95rem;
    }
    .cc-banner-desc {
        font-size: 0.82rem;
    }
    .cc-banner-actions {
        gap: 8px;
    }
    .cc-btn {
        padding: 10px 18px;
        font-size: 0.78rem;
    }
}

/* Mobile */
@media (max-width: 540px) {
    .cc-banner {
        padding: 0 8px 8px;
    }
    .cc-banner-card {
        padding: 18px 16px 16px;
        border-radius: 12px;
        gap: 14px;
    }
    .cc-banner-top {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .cc-banner-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }
    .cc-banner-title {
        font-size: 0.9rem;
    }
    .cc-banner-desc {
        font-size: 0.78rem;
    }
    .cc-banner-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .cc-btn {
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    .cc-prefs-modal {
        width: calc(100% - 16px);
        max-width: none;
        border-radius: 16px;
    }
    .cc-prefs-header,
    .cc-prefs-body,
    .cc-prefs-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    .cc-category {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .cc-category-info {
        padding-right: 0;
    }
}
