/* Cookie Consent Styles */
:root {
    --primary-color: #4a6fa5;
    --primary-hover: #3a5a8c;
    --secondary-color: #6c757d;
    --secondary-hover: #5a6268;
    --text-color: #2B2B2B;
    --bg-color: #fff;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 4px;
    --transition: all 0.3s ease;
}

/* Reset any conflicting styles */
#cookie-consent-banner *,
#cookie-consent-banner *::before,
#cookie-consent-banner *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Cookie Consent Banner */
#cookie-consent-banner.cookie-consent-banner {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background-color: var(--bg-color) !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
    padding: 1.25rem 1.5rem !important;
    z-index: 10000 !important;
    transform: translateY(100%) !important;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out !important;
    border-top: 1px solid var(--border-color) !important;
    width: 100% !important;
    margin: 0 !important;
    display: none !important; /* Hidden by default */
    box-sizing: border-box !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    line-height: 1.5 !important;
    visibility: visible !important;
    opacity: 0 !important;
}

#cookie-consent-banner.cookie-consent-banner.show {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

#cookie-consent-banner.cookie-consent-banner[aria-hidden="false"] {
    transform: translateY(0) !important;
}

.cookie-consent-banner[aria-hidden="false"] {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 1.5rem !important;
    padding: 0 15px !important;
    width: 100% !important;
}

.cookie-consent-text {
    flex: 1 1 60% !important;
    min-width: 280px !important;
}

.cookie-consent-text h3 {
    margin: 0 0 0.5rem 0 !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: var(--text-color) !important;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

.cookie-consent-text p {
    margin: 0 !important;
    color: var(--text-color) !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
}

.cookie-consent-text a {
    color: var(--primary-color) !important;
    text-decoration: underline !important;
    transition: var(--transition) !important;
}

.cookie-consent-text a:hover {
    color: var(--primary-hover) !important;
    text-decoration: none !important;
}

.cookie-consent-text h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.cookie-consent-text p {
    margin: 0;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-consent-text a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: var(--transition);
}

.cookie-consent-text a:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

.cookie-consent-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Buttons */
.button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.6rem 1.25rem !important;
    border: none !important;
    border-radius: var(--border-radius) !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    white-space: nowrap !important;
    margin: 0.25rem 0 !important;
    min-width: 120px !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

.button-primary {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.button-primary:hover {
    background-color: var(--primary-hover) !important;
    color: white !important;
    transform: translateY(-1px) !important;
}

.button-secondary {
    background-color: var(--secondary-color) !important;
    color: white !important;
}

.button-secondary:hover {
    background-color: var(--secondary-hover) !important;
    color: white !important;
    transform: translateY(-1px) !important;
}

.button-text {
    background: none !important;
    color: var(--primary-color) !important;
    text-decoration: underline !important;
    padding: 0.5rem 0.75rem !important;
}

.button-text:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    text-decoration: none !important;
    transform: none !important;
}

/* Cookie Preferences Modal */
.cookie-preferences-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
}

.cookie-preferences-modal[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.cookie-preferences-content {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.cookie-preferences-modal[aria-hidden="false"] .cookie-preferences-content {
    transform: translateY(0);
}

.cookie-preferences-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.cookie-preferences-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-color);
}

.close-button {
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 0.5rem;
    margin: -0.5rem -0.5rem -0.5rem 0.5rem;
    transition: color 0.2s;
}

.close-button:hover {
    color: var(--text-color);
}

.cookie-preferences-body {
    padding: 1.5rem;
}

.cookie-preferences-body > p {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.cookie-category {
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: #f8f9fa;
}

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

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

.cookie-category-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-color);
}

.cookie-category p {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-left: 1rem;
}

.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: rgba(255, 255, 255, 0.05);
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

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

/* Disabled state */
input:disabled + .slider {
    background-color: #e9ecef;
    cursor: not-allowed;
}

input:disabled + .slider:before {
    background-color: #f8f9fa;
}

.cookie-preferences-footer {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    gap: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-consent-buttons {
        width: 100%;
        justify-content: flex-end;
    }
    
    .cookie-preferences-content {
        max-height: 85vh;
    }
}

@media (max-width: 480px) {
    .cookie-consent-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .button {
        width: 100%;
    }
    
    .button-text {
        text-align: center;
    }
    
    .cookie-preferences-footer {
        flex-direction: column;
    }
    
    .cookie-preferences-footer .button {
        width: 100%;
    }
} Consent Banner Styles */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #f8f9fa;
    color: #212529;
    padding: 1.25rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    border-top: 1px solid #dee2e6;
}

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

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

.cookie-consent-text {
    flex: 1 1 60%;
    min-width: 300px;
}

.cookie-consent-text h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 1.1rem;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #495057;
}

.cookie-consent-text a {
    color: #4DA6FF;
    text-decoration: underline;
}

.cookie-consent-text a:hover {
    text-decoration: none;
}

.cookie-consent-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9375rem;
    line-height: 1.5;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.button-primary {
    background-color: #4DA6FF;
    color: white;
}

.button-primary:hover {
    background-color: #3a8ae0;
}

.button-secondary {
    background-color: #e9ecef;
    color: #212529;
}

.button-secondary:hover {
    background-color: #dee2e6;
}

.button-text {
    background: transparent;
    color: #4DA6FF;
    text-decoration: underline;
    padding: 0.5rem 0.75rem;
}

.button-text:hover {
    text-decoration: none;
    background-color: rgba(77, 166, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-consent-text {
        text-align: left;
        margin-bottom: 1rem;
    }
    
    .cookie-consent-buttons {
        width: 100%;
        justify-content: flex-start;
    }
    
    .button {
        width: 100%;
        padding: 0.75rem 1.25rem;
    }
}

/* Animation for banner appearance */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-consent-banner.show {
    animation: slideUp 0.5s ease forwards;
}

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

/* High contrast mode */
@media (prefers-contrast: high) {
    .cookie-consent-banner {
        border: 2px solid #000;
    }
    
    .button {
        border: 2px solid #000;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent-banner,
    .cookie-consent-banner.show {
        transition: none;
        animation: none;
    }
}
