/* ===== COOKIE CONSENT BANNER ===== */

.cookie-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cookie-consent-banner {
    background: white;
    border-radius: 20px 20px 8px 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
    border: 1px solid #e8eaed;
}

@keyframes slideUp {
    from { 
        transform: translateY(100px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-content {
    padding: 32px;
}

.cookie-consent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 16px;
}

.cookie-consent-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark-gray);
}

.cookie-consent-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    line-height: 1;
}

.cookie-consent-close:hover {
    background: #f3f4f6;
    color: var(--color-dark-gray);
}

.cookie-consent-body {
    margin-bottom: 24px;
}

.cookie-consent-description {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 24px;
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.cookie-btn.btn-primary {
    background: var(--color-primary-orange);
    color: white;
    border-color: var(--color-primary-orange);
}

.cookie-btn.btn-primary:hover {
    background: var(--color-primary-orange-dark);
    border-color: var(--color-primary-orange-dark);
}

.cookie-btn.btn-secondary {
    background: transparent;
    color: var(--color-primary-orange);
    border-color: var(--color-primary-orange);
}

.cookie-btn.btn-secondary:hover {
    background: var(--color-orange-tint);
}

.cookie-btn.btn-tertiary {
    background: #f3f4f6;
    color: #6b7280;
    border-color: #d1d5db;
}

.cookie-btn.btn-tertiary:hover {
    background: #e5e7eb;
    color: #4b5563;
}

/* ===== COOKIE CATEGORIES ===== */

.cookie-categories {
    margin: 24px 0;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    overflow: hidden;
}

.cookie-category {
    border-bottom: 1px solid #e8eaed;
    padding: 20px;
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.cookie-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    flex: 1;
}

.cookie-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    accent-color: var(--color-primary-orange);
    margin-top: 2px;
}

.cookie-checkbox:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-category-title {
    font-weight: 600;
    color: var(--color-dark-gray);
    font-size: 1.1rem;
}

.cookie-required {
    color: var(--color-primary-orange);
    font-weight: 500;
    font-size: 0.85rem;
}

.cookie-category-description {
    color: #4a5568;
    line-height: 1.5;
    margin: 0 0 8px 0;
    font-size: 0.95rem;
}

.cookie-providers {
    margin-top: 8px;
}

.cookie-providers small {
    color: #6b7280;
    font-style: italic;
}

/* ===== COOKIE CONSENT FOOTER ===== */

.cookie-consent-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
    text-align: center;
}

.cookie-legal-links {
    margin: 0;
    font-size: 0.85rem;
    color: #6b7280;
}

.cookie-link {
    color: var(--color-primary-orange);
    text-decoration: none;
}

.cookie-link:hover {
    text-decoration: underline;
}

.cookie-separator {
    margin: 0 8px;
    color: #d1d5db;
}

/* ===== COOKIE SETTINGS BUTTON ===== */

.cookie-settings-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-primary-orange);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 129, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-settings-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 129, 0, 0.4);
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    .cookie-consent-overlay {
        align-items: flex-end;
        padding: 0;
    }
    
    .cookie-consent-banner {
        border-radius: 20px 20px 0 0;
        max-height: 85vh;
    }
    
    .cookie-consent-content {
        padding: 24px;
    }
    
    .cookie-consent-header h3 {
        font-size: 1.25rem;
    }
    
    .cookie-consent-actions {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-checkbox-label {
        align-items: flex-start;
    }
    
    .cookie-category {
        padding: 16px;
    }
    
    .cookie-settings-button {
        bottom: 15px;
        left: 15px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .cookie-consent-content {
        padding: 20px;
    }
    
    .cookie-consent-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .cookie-consent-close {
        align-self: flex-end;
        margin-top: -8px;
    }
}