/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-top: 3px solid #1E3A8A;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    padding: 20px;
    display: none;
}

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

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-text h4 {
    color: #1E3A8A;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.cookie-banner-text p {
    color: #64748B;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-policy-link {
    color: #EA580C;
    text-decoration: none;
    font-weight: 600;
}

.cookie-policy-link:hover {
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    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.3s ease;
    white-space: nowrap;
}

.cookie-btn-reject {
    background-color: #F1F5F9;
    color: #64748B;
    border: 1px solid #E2E8F0;
}

.cookie-btn-reject:hover {
    background-color: #E2E8F0;
    color: #475569;
}

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

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

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

.cookie-btn-accept:hover {
    background-color: #DC2626;
}

/* Cookie Customizer Modal */
.cookie-customizer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: none;
}

.cookie-customizer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.cookie-customizer-content {
    position: relative;
    background-color: white;
    max-width: 600px;
    margin: 50px auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.cookie-customizer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    border-bottom: 1px solid #E2E8F0;
}

.cookie-customizer-header h3 {
    color: #1E3A8A;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.cookie-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748B;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.cookie-close-btn:hover {
    background-color: #F1F5F9;
}

.cookie-customizer-body {
    padding: 30px;
}

.cookie-category {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #F8FAFC;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}

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

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.cookie-category-info h4 {
    color: #1E3A8A;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.cookie-category-info p {
    color: #64748B;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Cookie Switch Styles */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

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

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

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

input:checked + .cookie-slider {
    background-color: #EA580C;
}

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

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

input:disabled + .cookie-slider:before {
    transform: translateX(26px);
}

.cookie-customizer-footer {
    padding: 25px 30px;
    border-top: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .cookie-banner-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .cookie-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .cookie-customizer-content {
        margin: 20px;
        max-height: calc(100vh - 40px);
    }
    
    .cookie-customizer-header,
    .cookie-customizer-body,
    .cookie-customizer-footer {
        padding: 20px;
    }
    
    .cookie-category {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .cookie-category-header {
        gap: 12px;
    }
    
    .cookie-customizer-footer {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 12px;
    }
    
    .cookie-banner-text h4 {
        font-size: 1.1rem;
    }
    
    .cookie-banner-text p {
        font-size: 0.9rem;
    }
    
    .cookie-btn {
        padding: 7px 14px;
        font-size: 0.8rem;
    }
    
    .cookie-customizer-content {
        margin: 10px;
    }
    
    .cookie-customizer-header h3 {
        font-size: 1.2rem;
    }
    
    .cookie-category-info h4 {
        font-size: 1rem;
    }
    
    .cookie-category-info p {
        font-size: 0.85rem;
    }
    
    .cookie-switch {
        width: 44px;
        height: 22px;
    }
    
    .cookie-slider:before {
        height: 16px;
        width: 16px;
        left: 3px;
        bottom: 3px;
    }
    
    input:checked + .cookie-slider:before {
        transform: translateX(22px);
    }
}