/* Overlay to prevent interaction until consent is given */
.cookie-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    backdrop-filter: blur(2px);
}

/* Main consent banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-top: 3px solid #0066cc;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    padding: 20px;
    max-width: 100%;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-consent-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #333333;
}

/* Button container - ensures equal prominence */
.cookie-consent-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* Base button styles - ALL buttons have same base styling */
.cookie-consent-btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    text-align: center;
    /* Equal visual weight - same size, same padding */
}

/* Accept All button - prominent but not more than Decline */
.cookie-consent-btn-accept {
    background-color: #0066cc;
    color: #ffffff;
    border-color: #0066cc;
}

.cookie-consent-btn-accept:hover {
    background-color: #0052a3;
    border-color: #0052a3;
}

.cookie-consent-btn-accept:focus {
    outline: 3px solid #0066cc;
    outline-offset: 2px;
}

/* Decline button - EQUAL prominence to Accept */
.cookie-consent-btn-decline {
    background-color: #ffffff;
    color: #0066cc;
    border-color: #0066cc;
    /* NOT grey, NOT small - equal to Accept button */
}

.cookie-consent-btn-decline:hover {
    background-color: #f0f0f0;
    border-color: #0052a3;
    color: #0052a3;
}

.cookie-consent-btn-decline:focus {
    outline: 3px solid #0066cc;
    outline-offset: 2px;
}

/* Customize button - slightly less prominent but still visible */
.cookie-consent-btn-customize {
    background-color: transparent;
    color: #666666;
    border-color: #cccccc;
}

.cookie-consent-btn-customize:hover {
    background-color: #f5f5f5;
    border-color: #999999;
    color: #333333;
}

/* Links styling */
.cookie-consent-links {
    margin: 10px 0 0 0;
    font-size: 13px;
}

.cookie-consent-links a {
    color: #0066cc;
    text-decoration: underline;
}

.cookie-consent-links a:hover {
    color: #0052a3;
}

.cookie-consent-note {
    margin: 5px 0 0 0;
    font-size: 12px;
    color: #666666;
    font-style: italic;
}

/* Customize Modal */
.cookie-consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.cookie-consent-modal-content {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-category {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eeeeee;
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333333;
}

.cookie-category-status {
    font-size: 12px;
    color: #666666;
    font-weight: normal;
}

.cookie-category-description {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #555555;
}

/* Toggle Switch */
.cookie-toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cccccc;
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle-switch input:checked + .cookie-toggle-slider {
    background-color: #0066cc;
}

.cookie-toggle-switch input:checked + .cookie-toggle-slider:before {
    transform: translateX(26px);
}

.cookie-toggle-switch input:focus + .cookie-toggle-slider {
    box-shadow: 0 0 1px #0066cc;
}

/* Modal buttons */
.cookie-consent-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eeeeee;
}

.cookie-consent-btn-save {
    background-color: #0066cc;
    color: #ffffff;
    border-color: #0066cc;
}

.cookie-consent-btn-cancel {
    background-color: #ffffff;
    color: #666666;
    border-color: #cccccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 15px;
    }
    
    .cookie-consent-content {
        gap: 12px;
    }
    
    .cookie-consent-buttons {
        flex-direction: column;
    }
    
    .cookie-consent-btn {
        width: 100%;
        min-width: auto;
    }
    
    .cookie-consent-modal-content {
        padding: 20px;
        margin: 10px;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Accessibility - High contrast mode support */
@media (prefers-contrast: high) {
    .cookie-consent-banner {
        border-top-width: 4px;
    }
    
    .cookie-consent-btn {
        border-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent-btn,
    .cookie-toggle-slider {
        transition: none;
    }
}

/* Cookie Preferences Link (footer link) */
.cookie-preferences-link {
    color: #0066cc;
    text-decoration: underline;
    font-size: 12px;
    cursor: pointer;
}

.cookie-preferences-link:hover {
    color: #0052a3;
    text-decoration: underline;
}

/* Responsive - smaller on mobile */
@media (max-width: 768px) {
    .cookie-preferences-float {
        bottom: 15px;
        right: 15px;
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .cookie-preferences-float.minimized {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

