/* Cookie Consent Banner — SvitClean SaaS V40.212 (ePrivacy Directive EU-017) */

/* ── Banner (fixed bottom bar) ───────────────────── */
.cc-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1a1a2e;
    color: #e2e8f0;
    padding: 18px 24px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.cc-banner.cc-visible {
    transform: translateY(0);
}
.cc-banner-text {
    flex: 1;
    min-width: 0;
}
.cc-banner-text a {
    color: #93c5fd;
    text-decoration: underline;
}
.cc-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.cc-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.1s, box-shadow 0.2s;
}
.cc-btn:hover {
    transform: translateY(-1px);
}
.cc-btn:active {
    transform: translateY(0);
}
.cc-btn-accept {
    background: #3b82f6;
    color: #fff;
}
.cc-btn-accept:hover {
    box-shadow: 0 4px 12px rgba(59,130,246,0.4);
}
.cc-btn-reject {
    background: transparent;
    color: #94a3b8;
    border: 1px solid #475569;
}
.cc-btn-reject:hover {
    background: #334155;
    color: #e2e8f0;
}
.cc-btn-manage {
    background: transparent;
    color: #93c5fd;
    border: 1px solid #3b82f6;
}
.cc-btn-manage:hover {
    background: rgba(59,130,246,0.1);
}

/* ── Modal overlay ───────────────────────────────── */
.cc-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.cc-modal-overlay.cc-visible {
    opacity: 1;
    visibility: visible;
}
.cc-modal {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: scale(0.95);
    transition: transform 0.3s;
}
.cc-modal-overlay.cc-visible .cc-modal {
    transform: scale(1);
}
.cc-modal h2 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #1e293b;
}
.cc-modal p {
    color: #64748b;
    font-size: 14px;
    margin: 0 0 24px;
    line-height: 1.5;
}

/* ── Toggle category rows ────────────────────────── */
.cc-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #e2e8f0;
}
.cc-category:last-child {
    border-bottom: none;
}
.cc-category-info {
    flex: 1;
}
.cc-category-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 15px;
}
.cc-category-desc {
    color: #64748b;
    font-size: 13px;
    margin-top: 2px;
}
.cc-category-badge {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: 600;
}
.cc-badge-required {
    background: #dbeafe;
    color: #1d4ed8;
}

/* ── Toggle switch ───────────────────────────────── */
.cc-toggle {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
    margin-left: 16px;
}
.cc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.cc-toggle-slider {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 26px;
    cursor: pointer;
    transition: background 0.3s;
}
.cc-toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.cc-toggle input:checked + .cc-toggle-slider {
    background: #3b82f6;
}
.cc-toggle input:checked + .cc-toggle-slider::before {
    transform: translateX(22px);
}
.cc-toggle input:disabled + .cc-toggle-slider {
    background: #3b82f6;
    opacity: 0.6;
    cursor: not-allowed;
}
.cc-toggle input:disabled:checked + .cc-toggle-slider::before {
    transform: translateX(22px);
}

/* ── Modal buttons ───────────────────────────────── */
.cc-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}
.cc-modal-actions .cc-btn {
    flex: 1;
}
.cc-btn-save {
    background: #3b82f6;
    color: #fff;
}
.cc-btn-save:hover {
    box-shadow: 0 4px 12px rgba(59,130,246,0.4);
}
.cc-btn-cancel {
    background: #f1f5f9;
    color: #475569;
}
.cc-btn-cancel:hover {
    background: #e2e8f0;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 640px) {
    .cc-banner {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
    .cc-banner-actions {
        flex-direction: column;
        width: 100%;
    }
    .cc-btn {
        width: 100%;
    }
    .cc-modal {
        padding: 24px 20px;
        width: 95%;
    }
    .cc-modal-actions {
        flex-direction: column;
    }
}
