/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-top: 3px solid #d4af37;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: none;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.cookie-banner.cookie-banner-visible {
    opacity: 1;
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
}

.cookie-banner-text h3 {
    color: #1a365d;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.cookie-banner-text p {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-btn-primary {
    background-color: #d4af37;
    color: #1a365d;
}

.cookie-btn-primary:hover {
    background-color: #b8941f;
    transform: translateY(-1px);
}

.cookie-btn-secondary {
    background-color: #2b77ad;
    color: #ffffff;
}

.cookie-btn-secondary:hover {
    background-color: #1a5a8a;
    transform: translateY(-1px);
}

.cookie-btn-outline {
    background-color: transparent;
    color: #2b77ad;
    border: 2px solid #2b77ad;
}

.cookie-btn-outline:hover {
    background-color: #2b77ad;
    color: #ffffff;
    transform: translateY(-1px);
}

.cookie-banner-links {
    grid-column: 1 / -1;
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.cookie-banner-links a {
    color: #2b77ad;
    font-size: 0.85rem;
    text-decoration: underline;
}

.cookie-banner-links a:hover {
    color: #1a5a8a;
}

/* Cookie Customization Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: none;
}

.cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.cookie-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.cookie-modal-header h3 {
    color: #1a365d;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #718096;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.cookie-modal-close:hover {
    background-color: #f7fafc;
    color: #4a5568;
}

.cookie-modal-body {
    padding: 0 24px;
}

.cookie-category {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cookie-category-header h4 {
    color: #1a365d;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.cookie-category-status {
    background-color: #e2e8f0;
    color: #4a5568;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.cookie-category p {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.cookie-details {
    margin-top: 8px;
}

.cookie-details small {
    color: #718096;
    font-size: 0.85rem;
}

/* Custom Toggle Switch */
.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookie-toggle input[type="checkbox"] {
    appearance: none;
    width: 48px;
    height: 24px;
    background-color: #e2e8f0;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cookie-toggle input[type="checkbox"]:checked {
    background-color: #d4af37;
}

.cookie-toggle input[type="checkbox"]:disabled {
    background-color: #d4af37;
    cursor: not-allowed;
}

.cookie-toggle input[type="checkbox"]::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cookie-toggle input[type="checkbox"]:checked::before {
    transform: translateX(24px);
}

.cookie-toggle label {
    font-size: 0.9rem;
    color: #4a5568;
    cursor: pointer;
}

.cookie-toggle input[type="checkbox"]:disabled + label {
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
    }
    
    .cookie-banner-actions {
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 0;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .cookie-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .cookie-modal-header {
        padding: 20px 20px 0;
    }
    
    .cookie-modal-body {
        padding: 0 20px;
    }
    
    .cookie-modal-footer {
        padding: 20px;
        flex-direction: column;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .cookie-toggle {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .cookie-banner-content {
        padding: 16px;
    }
    
    .cookie-banner-actions {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .cookie-banner-links {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .cookie-modal-header h3 {
        font-size: 1.1rem;
    }
    
    .cookie-category-header h4 {
        font-size: 1rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .cookie-banner,
    .cookie-btn,
    .cookie-toggle input[type="checkbox"],
    .cookie-toggle input[type="checkbox"]::before {
        transition: none !important;
    }
}

/* Focus states for accessibility */
.cookie-btn:focus,
.cookie-toggle input[type="checkbox"]:focus,
.cookie-modal-close:focus {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cookie-banner {
        border-top-width: 4px;
    }
    
    .cookie-btn-outline {
        border-width: 3px;
    }
    
    .cookie-toggle input[type="checkbox"] {
        border: 2px solid #1a365d;
    }
}

/* Print styles */
@media print {
    .cookie-banner,
    .cookie-modal {
        display: none !important;
    }
}