/* Cookie Consent Banner — Light Theme */
.cmp-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cmp-overlay.active {
    opacity: 1;
}

.cmp-overlay.fade-out {
    animation: cmp-fade-out 0.3s ease-in forwards;
}

@keyframes cmp-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

.cmp-banner {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
    transform: translateY(20px);
    animation: cmp-slide-up 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cmp-slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cmp-banner h3 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px;
}

.cmp-banner > p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    color: rgba(26, 26, 46, 0.6);
    line-height: 1.6;
    margin: 0 0 20px;
}

.cmp-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 0;
}

.cmp-btn {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cmp-btn-accept {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    flex: 1;
    min-width: 140px;
}

.cmp-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}

.cmp-btn-reject {
    background: rgba(0, 0, 0, 0.04);
    color: #1a1a2e;
    border: 1px solid rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 140px;
}

.cmp-btn-reject:hover {
    background: rgba(0, 0, 0, 0.07);
    border-color: rgba(0, 0, 0, 0.15);
}

.cmp-btn-customize {
    background: none;
    color: rgba(26, 26, 46, 0.5);
    padding: 12px 16px;
    text-decoration: underline;
    text-underline-offset: 3px;
    width: 100%;
    text-align: center;
}

.cmp-btn-customize:hover {
    color: #1a1a2e;
}

/* Customize Panel */
.cmp-customize {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

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

.cmp-toggle-row label:first-child {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a2e;
}

/* Toggle Switch */
.cmp-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

.cmp-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cmp-slider {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 24px;
    transition: all 0.3s ease;
}

.cmp-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.cmp-switch input:checked + .cmp-slider {
    background: #7c3aed;
}

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

.cmp-switch input:focus-visible + .cmp-slider {
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px rgba(124, 58, 237, 0.4);
}

.cmp-btn-save {
    width: 100%;
    margin-top: 16px;
    background: rgba(0, 0, 0, 0.04);
    color: #1a1a2e;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.cmp-btn-save:hover {
    background: rgba(0, 0, 0, 0.07);
    border-color: rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 480px) {
    .cmp-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .cmp-banner {
        border-radius: 20px 20px 0 0;
        padding: 24px 20px;
        max-width: 100%;
    }

    .cmp-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .cmp-btn-accept,
    .cmp-btn-reject {
        min-width: 0;
    }
}
