/**
 * Cookie Consent Styles
 * Clean, modern design for Cera Flor de Ana
 */

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top: 3px solid #6b5b95;
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

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

.cookie-consent-text h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

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

.cookie-consent-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* Cookie Buttons */
.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-settings {
    background: transparent;
    color: #6b5b95;
    border: 2px solid #6b5b95;
}

.cookie-btn-settings:hover {
    background: #6b5b95;
    color: white;
}

.cookie-btn-reject {
    background: #f5f5f5;
    color: #666;
}

.cookie-btn-reject:hover {
    background: #e0e0e0;
}

.cookie-btn-accept,
.cookie-btn-primary {
    background: #6b5b95;
    color: white;
}

.cookie-btn-accept:hover,
.cookie-btn-primary:hover {
    background: #5a4d7c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 91, 149, 0.3);
}

.cookie-btn-secondary {
    background: transparent;
    color: #6b5b95;
    border: 2px solid #6b5b95;
}

.cookie-btn-secondary:hover {
    background: #6b5b95;
    color: white;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-settings-modal.show {
    opacity: 1;
    visibility: visible;
}

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

.cookie-settings-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

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

.cookie-settings-header h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

.cookie-close {
    background: none;
    border: none;
    font-size: 30px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.cookie-close:hover {
    color: #333;
}

.cookie-settings-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.cookie-category {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

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

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

.cookie-category-info {
    flex: 1;
}

.cookie-category-info h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.cookie-category-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

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

.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: #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-switch input:checked + .cookie-slider {
    background-color: #6b5b95;
}

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

.cookie-switch input:disabled + .cookie-slider {
    background-color: #6b5b95;
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-settings-footer {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }
    
    .cookie-consent-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 12px;
    }
    
    .cookie-settings-content {
        width: 95%;
        max-height: 90vh;
        border-radius: 15px;
    }
    
    .cookie-settings-header {
        padding: 20px;
    }
    
    .cookie-settings-body {
        padding: 20px;
    }
    
    .cookie-settings-footer {
        flex-direction: column;
        padding: 15px 20px;
    }
    
    .cookie-settings-footer .cookie-btn {
        width: 100%;
    }
    
    .cookie-category-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .cookie-switch {
        align-self: flex-start;
    }
}

/* Animation */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}