/* Compact Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    max-width: 320px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.15);
    padding: 1rem;
    z-index: 10000;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s ease;
}

.cookie-popup.show {
    transform: translateX(0);
    opacity: 1;
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.cookie-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.cookie-popup h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.cookie-popup p {
    color: #4a5568;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

/* Compact Settings */
.cookie-settings summary {
    color: #2563eb;
    font-size: 0.8rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-settings summary::-webkit-details-marker {
    display: none;
}

.cookie-settings summary::before {
    content: '⚙️';
    font-size: 0.9rem;
}

.cookie-options {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 0.5rem;
    margin-bottom: 0.75rem;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    font-size: 0.75rem;
}

/* Mini toggle switches */
.toggle-wrapper {
    width: 32px;
    height: 18px;
    position: relative;
}

.cookie-toggle {
    opacity: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    cursor: pointer;
    z-index: 2;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    height: 18px;
    background: #ccc;
    border-radius: 9px;
    transition: background 0.2s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
}

.cookie-toggle:checked + .toggle-slider {
    background: #2563eb;
}

.cookie-toggle:checked + .toggle-slider::before {
    transform: translateX(14px);
}

/* Compact buttons */
.cookie-buttons {
    display: flex;
    gap: 0.5rem;
}

.cookie-btn {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: none;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    flex: 1;
    text-align: center;
    transition: all 0.2s;
}

.cookie-btn.accept {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
}

.cookie-btn.accept:hover {
    transform: translateY(-1px);
}

.cookie-btn.decline {
    background: #f1f3f4;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.cookie-btn.decline:hover {
    background: #e2e8f0;
}

/* Privacy link */
.privacy-footer {
    font-size: 0.75rem;
    margin-top: 0.75rem;
    color: #4a5568;
    text-align: left;
}

.privacy-link {
    color: #2563eb;
    text-decoration: none;
}

.privacy-link:hover {
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
    .cookie-popup {
        bottom: 0.5rem;
        right: 0.5rem;
        left: 0.5rem;
        max-width: none;
    }
}