/* ========================================
   CMP — Cookie Consent Banner Styles
   ======================================== */

.cmp-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 16px;
    pointer-events: none;
    animation: cmpSlideUp 0.5s ease-out 0.5s both;
}

.cmp-overlay.cmp-hidden {
    display: none;
}

@keyframes cmpSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cmp-banner {
    max-width: 520px;
    margin: 0 auto 0 16px;
    background: rgba(18, 18, 42, 0.95);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    pointer-events: auto;
    overflow: hidden;
}

.cmp-content {
    padding: 24px;
}

.cmp-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.cmp-icon {
    font-size: 28px;
}

.cmp-header h3 {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #f0f0ff;
    letter-spacing: -0.3px;
}

.cmp-content>p {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(240, 240, 255, 0.55);
    margin-bottom: 18px;
}

/* CMP Buttons */
.cmp-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.cmp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.cmp-btn-accept {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
    flex: 1;
}

.cmp-btn-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.45);
}

.cmp-btn-reject {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(240, 240, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex: 1;
}

.cmp-btn-reject:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f0f0ff;
}

.cmp-btn-settings {
    background: transparent;
    color: rgba(240, 240, 255, 0.5);
    padding: 10px 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cmp-btn-settings:hover {
    color: #f0f0ff;
}

/* CMP Settings Panel */
.cmp-settings {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cmp-toggle-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.cmp-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.cmp-toggle:hover {
    background: rgba(255, 255, 255, 0.07);
}

.cmp-toggle span:first-child {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(240, 240, 255, 0.8);
}

.cmp-required {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #22c55e;
    padding: 3px 10px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 6px;
}

/* Custom Toggle Switch */
.cmp-toggle input[type="checkbox"] {
    display: none;
}

.cmp-slider {
    position: relative;
    width: 42px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: background 0.3s;
    flex-shrink: 0;
}

.cmp-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cmp-toggle input[type="checkbox"]:checked+.cmp-slider {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.cmp-toggle input[type="checkbox"]:checked+.cmp-slider::after {
    left: 21px;
    background: white;
}

/* Footer text */
.cmp-footer-text {
    font-family: 'Inter', sans-serif;
    font-size: 11px !important;
    color: rgba(240, 240, 255, 0.3) !important;
    margin-bottom: 0 !important;
}

.cmp-footer-text a {
    color: rgba(124, 58, 237, 0.7);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cmp-footer-text a:hover {
    color: #a855f7;
}

/* Responsive */
@media (max-width: 600px) {
    .cmp-overlay {
        padding: 12px;
    }

    .cmp-banner {
        margin: 0;
        max-width: 100%;
    }

    .cmp-content {
        padding: 20px;
    }

    .cmp-actions {
        flex-direction: column;
    }
}