#cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9990;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.cm-box {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 650px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    z-index: 9999;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #1f2937;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cm-header {
    padding: 20px 24px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.cm-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #111827;
    font-weight: 700;
}

.cm-body {
    padding: 24px;
}

.cm-body p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #4b5563;
    margin-top: 0;
    margin-bottom: 16px;
}

.cm-legal-links {
    font-size: 0.8rem;
    margin-bottom: 24px;
    color: #6b7280;
}

.cm-legal-links a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
}

.cm-legal-links a:hover {
    text-decoration: underline;
}

.cm-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cm-buttons button {
    flex: 1 1 auto;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.cm-btn-primary {
    background: linear-gradient(135deg, #FF5E3A 0%, #FF2A68 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(255, 94, 58, 0.3);
}
.cm-btn-primary:hover {
    box-shadow: 0 6px 15px rgba(255, 94, 58, 0.4);
    transform: translateY(-1px);
}

.cm-btn-secondary {
    background: #e5e7eb;
    color: #374151;
}
.cm-btn-secondary:hover {
    background: #d1d5db;
}

.cm-btn-outline {
    background: transparent;
    border: 1px solid #d1d5db !important;
    color: #4b5563;
}
.cm-btn-outline:hover {
    background: #f3f4f6;
}

/* Settings View */
.cm-settings-list {
    margin-bottom: 24px;
    max-height: 40vh;
    overflow-y: auto;
}

.cm-setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
}

.cm-setting-item:last-child {
    border-bottom: none;
}

.cm-setting-info h4 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    color: #111827;
}

.cm-setting-info p {
    margin: 0;
    font-size: 0.8rem;
    color: #6b7280;
}

/* Toggle Switch */
.cm-toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.cm-toggle-label input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cm-slider {
    position: relative;
    cursor: pointer;
    width: 44px;
    height: 24px;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 34px;
}

.cm-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .cm-slider {
    background-color: #10B981;
}

input:disabled + .cm-slider {
    background-color: #e2e8f0;
    cursor: not-allowed;
}

input:checked:disabled + .cm-slider {
    background-color: #10B981;
    opacity: 0.6;
}

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

/* Floating Button */
#cm-floating-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    background: #0F172A;
    color: white;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 9000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

#cm-floating-btn:hover {
    transform: scale(1.1);
}

@media (max-width: 600px) {
    .cm-box {
        bottom: 0;
        border-radius: 16px 16px 0 0;
        width: 100%;
        max-width: 100%;
    }
    .cm-buttons {
        flex-direction: column;
    }
    .cm-buttons button {
        width: 100%;
    }
}
