/* Cookie Banner Styles */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #334155;
    color: white;
    padding: 1.25rem 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none;
}

.cookie-banner.show {
    display: block;
}

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

.cookie-text {
    flex: 1;
}

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

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-banner .btn {
    white-space: nowrap;
    min-width: 70px;
    padding: 8px 16px;
    font-size: 13px;
}

.cookie-banner .btn-primary {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.cookie-banner .btn-primary:hover {
    background: linear-gradient(135deg, #0891b2, #0e7490);
}

.cookie-banner .btn-secondary {
    background: #475569;
    color: #e2e8f0;
    border: 1px solid #64748b;
}

.cookie-banner .btn-secondary:hover {
    background: #64748b;
    color: white;
}

.cookie-banner .btn-outline {
    background: transparent;
    color: #e2e8f0;
    border: 1px solid #94a3b8;
}

.cookie-banner .btn-outline:hover {
    background: #475569;
    color: white;
    border-color: #94a3b8;
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cookie-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h3 {
    margin: 0;
    color: #334155;
}

.close-modal {
    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;
}

.close-modal:hover {
    color: #334155;
}

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

.cookie-category {
    margin-bottom: 1.5rem;
}

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

.cookie-category-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.cookie-category-header h4 {
    margin: 0 0 0.5rem 0;
    color: #334155;
    font-size: 1rem;
}

.cookie-category-header p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Cookie Switch */
.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;
}

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

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

input:checked + .slider {
    background-color: #06b6d4;
}

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

input:disabled + .slider {
    background-color: #94a3b8;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.cookie-policy-link {
    color: #06b6d4;
    text-decoration: none;
    font-size: 0.9rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cookie-banner .btn {
        min-width: 90px;
    }
    
    .cookie-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 1rem 0;
    }
    
    .cookie-content {
        padding: 0 16px;
    }
    
    .cookie-text p {
        font-size: 0.9rem;
    }
    
    .cookie-actions {
        gap: 0.5rem;
    }
    
    .cookie-banner .btn {
        font-size: 12px;
        padding: 6px 12px;
        min-width: 70px;
    }
    
    .cookie-category-header {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cookie-switch {
        align-self: flex-start;
    }
}