/* Cookie Banner Styles - Group High */

/* Cookie Banner Container */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-top: 2px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 10000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    display: flex;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-banner-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important;
}

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

.cookie-banner-text {
    flex: 1;
    color: #2d3748;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-banner-text p {
    margin: 0 0 8px 0;
}

.cookie-banner-text a {
    color: #2d3748;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-banner-text a:hover {
    color: #1a202c;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.cookie-btn-accept {
    background-color: #2d3748;
    color: white;
}

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

.cookie-btn-reject {
    background-color: transparent;
    color: #2d3748;
    border: 1px solid #cbd5e0;
}

.cookie-btn-reject:hover {
    background-color: #f7fafc;
    border-color: #a0aec0;
    transform: translateY(-1px);
}

.cookie-btn-customize {
    background-color: transparent;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    font-size: 0.85rem;
}

.cookie-btn-customize:hover {
    background-color: #f7fafc;
    color: #2d3748;
    transform: translateY(-1px);
}

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

.cookie-preferences-overlay:target {
    opacity: 1;
    visibility: visible;
    display: flex;
}

.cookie-preferences-modal {
    background-color: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cookie-preferences-overlay:target .cookie-preferences-modal {
    transform: scale(1);
}

.cookie-preferences-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.cookie-preferences-header h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    color: #1a202c;
}

.cookie-preferences-header p {
    margin: 0;
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-preferences-content {
    padding: 20px 30px;
}

.cookie-category {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f7fafc;
}

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

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

.cookie-category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e0;
    transition: 0.2s;
    border-radius: 24px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider,
.cookie-category input[type="checkbox"]:checked ~ .cookie-toggle .cookie-toggle-slider {
    background-color: #2d3748;
}

.cookie-toggle input:checked + .cookie-toggle-slider:before,
.cookie-category input[type="checkbox"]:checked ~ .cookie-toggle .cookie-toggle-slider:before {
    transform: translateX(26px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background-color: #a0aec0;
    cursor: not-allowed;
}

.cookie-category-description {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

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

.cookie-preferences-footer .cookie-btn {
    min-width: 100px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .cookie-banner-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 80px;
    }
    
    .cookie-preferences-modal {
        margin: 10px;
        max-height: 90vh;
    }
    
    .cookie-preferences-header,
    .cookie-preferences-content,
    .cookie-preferences-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .cookie-preferences-footer {
        flex-direction: column;
    }
    
    .cookie-preferences-footer .cookie-btn {
        width: 100%;
    }
}

/* Pure CSS Cookie Management */
input[type="checkbox"]#cookie-accept-all:checked ~ .cookie-banner {
    display: none !important;
}

input[type="checkbox"]#cookie-reject-all:checked ~ .cookie-banner {
    display: none !important;
}

input[type="checkbox"]#cookie-save-preferences:checked ~ .cookie-banner {
    display: none !important;
}

input[type="checkbox"]#cookie-save-preferences:checked ~ .cookie-preferences-overlay {
    opacity: 0;
    visibility: hidden;
}

/* Hide checkboxes */
input[type="checkbox"].cookie-control {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    left: -9999px;
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-banner-text {
        font-size: 0.85rem;
    }
    
    .cookie-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}