/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-text p {
    margin: 0;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-banner-text a {
    color: #2563eb;
    text-decoration: none;
}

.cookie-banner-text a:hover {
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
}

.cookie-btn-accept {
    background-color: #2563eb;
    color: white;
}

.cookie-btn-accept:hover {
    background-color: #1d4ed8;
}

.cookie-btn-decline {
    background-color: transparent;
    color: #64748b;
    border: 1px solid #d1d5db;
}

.cookie-btn-decline:hover {
    background-color: #f8fafc;
    border-color: #9ca3af;
}

.cookie-btn-customize {
    background-color: transparent;
    color: #2563eb;
    border: 1px solid #2563eb;
}

.cookie-btn-customize:hover {
    background-color: #eff6ff;
}

.cookie-btn-policy {
    background-color: transparent;
    color: #64748b;
    text-decoration: underline;
    border: none;
    padding: 10px 8px;
}

.cookie-btn-policy:hover {
    color: #374151;
}

/* Cookie Customization Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.cookie-modal h3 {
    margin-bottom: 20px;
    color: #0f172a;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option-info {
    flex: 1;
    margin-right: 15px;
}

.cookie-option-info h4 {
    margin-bottom: 5px;
    color: #1e293b;
    font-size: 1rem;
}

.cookie-option-info p {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.4;
}

.cookie-toggle {
    position: relative;
    width: 50px;
    height: 24px;
    background: #d1d5db;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cookie-toggle.enabled {
    background: #2563eb;
}

.cookie-toggle.disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.cookie-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.cookie-toggle.enabled::after {
    transform: translateX(26px);
}

.cookie-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 16px;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .cookie-banner-text {
        text-align: center;
    }
    
    .cookie-banner-actions {
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1 1 auto;
        min-width: 80px;
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    .cookie-modal-content {
        padding: 20px;
        margin: 10px;
    }
    
    .cookie-modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .cookie-banner-actions {
        gap: 6px;
    }
    
    .cookie-btn {
        font-size: 0.75rem;
        padding: 8px 10px;
    }
    
    .cookie-btn-policy {
        padding: 8px 4px;
    }
}