/**
 * Estilos para AC - Seguro de Envío
 */

#ac-insurance-field-wrapper {
    margin: 20px 0;
    padding: 20px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}

#ac-insurance-field-wrapper h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #643188;
    padding-bottom: 10px;
}

.ac-insurance-description {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 15px;
    font-style: italic;
}

.ac-insurance-checkbox {
    margin-bottom: 0;
}

.ac-insurance-checkbox label {
    font-weight: 500 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 15px;
    line-height: 1.5;
    color: #495057;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.ac-insurance-checkbox label:hover {
    background-color: rgba(100, 49, 136, 0.1);
    color: #643188;
    border-color: #643188;
}

/* Checkbox personalizado sin tilde */
.ac-insurance-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.ac-insurance-checkbox input[type="checkbox"]:hover {
    border-color: #643188;
    box-shadow: 0 0 0 2px rgba(100, 49, 136, 0.2);
}

.ac-insurance-checkbox input[type="checkbox"]:checked {
    background: #643188;
    border-color: #643188;
}

/* NO añadir tilde - solo color de fondo */
.ac-insurance-checkbox input[type="checkbox"]:checked::after {
    display: none;
}

.ac-insurance-checkbox input[type="checkbox"]:checked + label {
    font-weight: 600;
    color: #643188;
    background-color: rgba(100, 49, 136, 0.1);
    border-color: #643188;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    #ac-insurance-field-wrapper {
        margin: 15px 0;
        padding: 15px;
    }
    
    #ac-insurance-field-wrapper h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .ac-insurance-checkbox label {
        font-size: 14px;
        padding: 12px;
    }
    
    .ac-insurance-checkbox input[type="checkbox"] {
        width: 20px;
        height: 20px;
    }
}

/* Animación suave para cambios */
#ac-insurance-field-wrapper {
    transition: all 0.3s ease;
}

/* Indicador de carga */
.processing #ac-insurance-field-wrapper {
    opacity: 0.7;
    pointer-events: none;
}

/* Mejoras de accesibilidad */
.ac-insurance-checkbox input[type="checkbox"]:focus {
    outline: 2px solid #643188;
    outline-offset: 2px;
}

.ac-insurance-checkbox label:focus-within {
    outline: 2px solid #643188;
    outline-offset: 2px;
    border-radius: 4px;
}