/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(30, 64, 175, 0.1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

/* Hide banner when accepted or rejected */
.cookie-banner:target {
    transform: translateY(100%);
    pointer-events: none;
}

#cookie-accepted:target ~ .cookie-banner,
#cookie-rejected:target ~ .cookie-banner {
    transform: translateY(100%);
    pointer-events: none;
}

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

.cookie-text {
    flex: 1;
    max-width: 600px;
}

.cookie-text p {
    margin: 0;
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
}

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

.cookie-btn {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background-color: #1e40af;
    color: white;
}

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

.cookie-btn-reject {
    background-color: #6b7280;
    color: white;
}

.cookie-btn-reject:hover {
    background-color: #4b5563;
    transform: translateY(-1px);
}

.cookie-btn-customize {
    background-color: transparent;
    color: #1e40af;
    border: 1px solid #1e40af;
}

.cookie-btn-customize:hover {
    background-color: #1e40af;
    color: white;
}

.cookie-btn-secondary {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

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

.cookie-link {
    color: #1e40af;
    text-decoration: underline;
    font-size: 14px;
}

.cookie-link:hover {
    color: #1d4ed8;
}

/* Cookie Customization Panel */
.cookie-customization {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

/* Show customization panel when checkbox is checked */
#customize-toggle:checked ~ .cookie-banner .cookie-customization {
    max-height: 500px;
    padding: 20px;
}

#customize-toggle {
    display: none;
}

.cookie-custom-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-custom-content h3 {
    margin: 0 0 20px 0;
    color: #1e40af;
    font-size: 18px;
    font-weight: 600;
}

.cookie-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.cookie-category {
    background: white;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.cookie-category-header {
    margin-bottom: 8px;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 12px;
}

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

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

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

.cookie-toggle input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

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

.toggle-label {
    font-weight: 500;
    color: #374151;
    flex: 1;
}

.cookie-category-desc {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

.cookie-custom-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 16px;
    }
    
    .cookie-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cookie-categories {
        grid-template-columns: 1fr;
    }
    
    .cookie-custom-actions {
        flex-direction: column;
    }
}

/* Hidden elements for CSS-only functionality */
#cookie-accepted,
#cookie-rejected {
    display: none;
}