/* Cookie Consent Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top: 1px solid #e0e0e0;
    display: none; /* Add this */
}

.cookie-banner.show {
    transform: translateY(0);
    display: block; /* Add this */
}

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

.cookie-text h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.2em;
}

.cookie-text p {
    margin: 0 0 10px 0;
    color: #666;
    line-height: 1.5;
}

.cookie-links {
    font-size: 0.9em;
}

.cookie-links a {
    color: #007bff;
    text-decoration: none;
}

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

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.cookie-btn.secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
}

.cookie-btn.secondary:hover {
    background: #e9ecef;
}

.cookie-btn.reject {
    background: #fff;
    color: #dc3545;
    border: 1px solid #dc3545;
}

.cookie-btn.reject:hover {
    background: #dc3545;
    color: white;
}

.cookie-btn.accept {
    background: #007bff;
    color: white;
}

.cookie-btn.accept:hover {
    background: #0056b3;
}

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

.cookie-modal.show {
    display: block; /* Changed from nested selector */
}

.cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-modal.show .cookie-modal-overlay {
    opacity: 1;
}

.cookie-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(20px);
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    opacity: 0;
    transition: all 0.3s ease;
}

.cookie-modal.show .cookie-modal-content {
    transform: translate(-50%, -50%) translateY(0);
    opacity: 1;
}

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

.cookie-modal-header h2 {
    margin: 0;
    color: #333;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.cookie-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.cookie-modal-body {
    padding: 20px;
}

.modal-intro {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.cookie-category {
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    margin-bottom: 15px;
    background: #f9f9f9;
}

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

.category-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.1em;
}

/* Switch styles - Updated to match JavaScript */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

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

input:checked + .slider {
    background-color: #007bff;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.category-desc {
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
    margin: 0;
}

.cookie-modal-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Button styles for modal */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95em;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.badge {
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.85em;
    font-weight: 500;
}

.bg-secondary {
    background: #6c757d;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }

    .cookie-modal-content {
        width: 95%;
        max-height: 80vh;
    }

    .cookie-modal-footer {
        flex-direction: column;
    }

    .cookie-modal-footer .btn {
        width: 100%;
    }
}
