/* LGPD Cookie Consent Styles */

.cookie-consent-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 24px;
    z-index: 9999;
    border-top: 3px solid var(--primary-color);
}

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

.cookie-consent-text {
    flex: 1;
    min-width: 280px;
}

.cookie-consent-text h3 {
    margin: 0 0 8px 0;
    color: var(--dark-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.cookie-consent-text p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-consent-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cookie-btn-essential {
    background: #f5f5f5;
    color: #333;
    border-color: #ddd;
}

.cookie-btn-essential:hover {
    background: #e8e8e8;
}

.cookie-btn-customize {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.cookie-btn-customize:hover {
    background: rgba(0, 123, 255, 0.1);
}

.cookie-btn-accept {
    background: var(--primary-color);
    color: #fff;
}

.cookie-btn-accept:hover {
    background: #0056b3;
}

.cookie-btn-back {
    background: #6c757d;
    color: #fff;
}

.cookie-btn-back:hover {
    background: #5a6268;
}

/* Cookie Preferences Panel */
.cookie-preferences {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 24px;
    z-index: 9999;
    border-top: 3px solid var(--primary-color);
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-preferences-container {
    max-width: 800px;
    margin: 0 auto;
}

.cookie-preferences h3 {
    margin: 0 0 16px 0;
    color: var(--dark-color);
    font-size: 1.2rem;
}

.cookie-category {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

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

.cookie-category-header h4 {
    margin: 0;
    color: var(--dark-color);
    font-size: 1rem;
}

.cookie-category-header .required-badge {
    background: #28a745;
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
}

.cookie-category p {
    margin: 0;
    color: #666;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    width: 50px;
    height: 26px;
}

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

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

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

.cookie-toggle input:checked + .cookie-slider {
    background-color: var(--primary-color);
}

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

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

/* Preferences Buttons */
.cookie-preferences-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.cookie-back-btn {
    background: #6c757d;
    color: #fff;
}

.cookie-back-btn:hover {
    background: #5a6268;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 16px;
    }
    
    .cookie-consent-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-consent-buttons {
        width: 100%;
        justify-content: flex-start;
    }
    
    .cookie-btn {
        flex: 1;
        text-align: center;
    }
    
    .cookie-preferences {
        padding: 16px;
    }
    
    .cookie-preferences-buttons {
        flex-direction: column;
    }
    
    .cookie-preferences-buttons .cookie-btn {
        width: 100%;
    }
}
