/**
 * WC Motifs & Quantités v2.1 - Styles Frontend
 */

/* PRIX DU LOT */
.prix-lot-wrapper, .prix-lot-shortcode { margin: 10px 0; }
.prix-lot-wrapper .prix-lot, .prix-lot-shortcode .prix-montant { font-size: 1.5em; font-weight: bold; color: #c00; }
.prix-lot-wrapper .prix-lot-label, .prix-lot-shortcode .prix-label { font-size: 1em; color: #666; }
.prix-lot-wrapper .prix-unitaire-info, .prix-lot-shortcode .prix-unitaire-detail { display: block; color: #888; font-size: 0.85em; margin-top: 3px; }
.prix-lot-shortcode .prix-remise-detail { margin-top: 5px; }

/* TOTAL LOT */
.total-lot-shortcode { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin: 15px 0; font-size: 1.1em; }
.total-lot-shortcode .total-label { font-weight: 500; }
.total-lot-shortcode .total-montant { font-weight: bold; font-size: 1.2em; }
.total-lot-shortcode .total-units { color: #666; }

/* SELECTION DES MOTIFS */
.motifs-selection-wrapper { margin: 20px 0; padding: 20px; background: #fff; border: 1px solid #e0e0e0; border-radius: 5px; }

.prix-remise-info { margin-bottom: 15px; padding: 12px 15px; background: #fff9e6; border-left: 4px solid #c00; font-size: 12px; }
.prix-remise-info .remise-label { color: #c00; font-weight: bold; }
.prix-remise-info strong { color: #c00; font-size: 1.1em; }
.prix-remise-info .remise-condition { color: #666; font-size: 0.9em; }
.woolentor-recently-view-price .prix-remise-info span { font-size: 12px; }

.motifs-instruction { margin-bottom: 15px; font-size: 1em; }

.motifs-grid { display: flex; flex-wrap: wrap; gap: 10px 20px; }

.motif-item { display: flex; align-items: center; gap: 8px; }

.motif-quantity-input { width: 50px !important; height: 36px; padding: 5px !important; text-align: center; border: 1px solid #ccc; border-radius: 3px; font-size: 1em; }
.motif-quantity-input:focus { border-color: #0073aa; outline: none; box-shadow: 0 0 3px rgba(0, 115, 170, 0.3); }

.motif-label { font-size: 0.95em; color: #333; cursor: pointer; }
.motif-cond { color: #666; font-size: 0.85em; }

.motifs-note { color: #666; font-style: italic; font-size: 0.9em; margin: 8px 0 0; }

.motifs-total-display { margin-top: 20px; padding-top: 15px; border-top: 1px solid #ddd; text-align: right; }
.total-row { margin-bottom: 5px; }
.total-price-row { font-size: 1.3em; }
#motifs-total-price { font-weight: bold; }
#motifs-remise-badge { display: none; font-size: 0.7em; padding: 3px 8px; background: #c00; color: #fff; border-radius: 3px; margin-left: 8px; }
.motifs-total-display.has-discount #motifs-total-price { color: #c00; }
.motifs-total-display.has-discount #motifs-remise-badge { display: inline-block; }

/* INFO PRODUIT */
.motifs-info-produit { margin: 10px 0; }
.info-conditionnement, .info-remise { margin: 5px 0; }
.info-remise { color: #c00; }
.info-remise-condition { color: #666; font-size: 0.9em; }

/* Masquer quantité native */
.motifs-selection-wrapper ~ .quantity, .has-motifs-selection .quantity { display: none !important; }

/* Responsive */
@media (max-width: 600px) {
    .motifs-grid { flex-direction: column; gap: 10px; }
    .motifs-total-display { text-align: left; }
}
