/* =============================================================================
   ESTILOS PARA PRODUCTOS WOOCOMMERCE - TEMA KADENCE
   ============================================================================= */

/* CAMPO TIPO DE ENTREGA */
.tipo-entrega-field-kadence {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(17, 43, 0, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(17, 43, 0, 0.1);
    transition: all 0.3s ease;
}

.tipo-entrega-field-kadence:hover {
    background: rgba(17, 43, 0, 0.08);
}

.titulo-opciones-entrega {
    margin: 0 0 1.2rem 0 !important;
    color: #112B00 !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    border-bottom: 2px solid rgba(17, 43, 0, 0.2);
    padding-bottom: 0.5rem;
}

.opciones-entrega-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.opcion-entrega {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.opcion-entrega:hover {
    background: rgba(17, 43, 0, 0.08);
    transform: translateY(-2px);
}

.opcion-entrega input[type="radio"] {
    accent-color: #112B00;
    margin-top: 2px;
    transform: scale(1.1);
}

.opcion-contenido {
    flex: 1;
}

.opcion-titulo {
    color: #112B00;
    font-size: 1rem;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.opcion-descripcion {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

/* Estilos específicos para cada opción */
.recogida-mano input[type="radio"] {
    accent-color: #112B00;
}

.recogida-mano .opcion-titulo {
    color: #112B00;
}

.envio-domicilio input[type="radio"] {
    accent-color: #800000;
}

.envio-domicilio .opcion-titulo {
    color: #800000;
}

/* DESGLOSE DE PRECIO */
.desglose-precio {
    margin: 1.5rem 0;
    padding: 1.2rem;
    background: rgba(17, 43, 0, 0.05);
    border-radius: 8px;
    border-left: 4px solid #800000;
    animation: fadeIn 0.3s ease;
}

.linea-desglose {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.etiqueta-desglose {
    font-weight: 500;
}

.valor-desglose {
    font-weight: 600;
}

.linea-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(17, 43, 0, 0.2);
    font-size: 1rem;
}

.etiqueta-total {
    font-weight: 700;
    color: #112B00;
}

.valor-total {
    font-weight: 700;
    color: #800000;
    font-size: 1.1rem;
}

/* ANIMACIONES */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .tipo-entrega-field-kadence {
        margin: 1rem 0;
        padding: 1.2rem;
    }
    
    .opcion-entrega {
        padding: 0.8rem;
    }
    
    .titulo-opciones-entrega {
        font-size: 1.1rem !important;
    }
    
    .desglose-precio {
        margin: 1rem 0;
        padding: 1rem;
    }
}

/* COMPATIBILIDAD CON TEMA KADENCE */
.woocommerce .tipo-entrega-field-kadence {
    font-family: inherit;
}

.woocommerce .opcion-titulo {
    font-family: inherit;
}