/* cookie-banner.css */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background:  #f9d0ff;
    color: rgb(8, 8, 8);
    z-index: 10000;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.2);
    max-height: 90vh;
    overflow-y: auto;
}


.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

.cookie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cookie-header h3 {
    font-size: 24px;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: rgb(255, 0, 0);
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
}

.close-btn:hover {
    opacity: 1;
}

.cookie-categories {
    display: grid;
    gap: 15px;
    margin: 25px 0;
}

.cookie-toggle {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    cursor: pointer;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    transition: background 0.3s;
}

.cookie-toggle:hover {
    background: rgba(255,255,255,0.15);
}

.slider {
    position: relative;
    width: 50px;
    height: 24px;
    background-color: rgba(255,255,255,0.3);
    border-radius: 24px;
    transition: 0.3s;
    flex-shrink: 0;
    margin-top: 2px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

input:checked + .slider {
    background-color: #4CAF50;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.essential {
    background-color: #ff6b6b !important;
}

.cookie-info h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.cookie-info p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.4;
}

.required {
    background: #fd4229;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
}

.cookie-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 25px;
}

.btn-primary {
    background: #4CAF50;
    color: rgb(0, 0, 0);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #45a049;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 10px 22px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
}

.btn-minimal {
    background: none;
    color: rgba(255,255,255,0.8);
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    text-decoration: underline;
}

.cookie-footer {
    margin-top: 20px;
    text-align: center;
    opacity: 0.8;
}

.cookie-details-content {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.detail-category h4 {
    color: #f84008;
    margin-bottom: 10px;
}

.detail-category ul {
    list-style: none;
    padding: 0;
}

.detail-category li {
    padding: 5px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.details-toggle {
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px auto;
}

/* Responsive design */
@media (max-width: 768px) {
    .cookie-content {
        padding: 20px;
    }
    
    .cookie-actions {
        flex-direction: column;
    }
    
    .cookie-toggle {
        flex-direction: column;
        gap: 10px;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
}