/* Styles for Lumise Price Discount Addon Quantity Buttons */

/* Container for each quantity input row (e.g., within the <p> or <em>) */
.lumise-cart-field[data-type="quantity"] .lumise_form_content em {
    display: inline-flex !important; /* Use flexbox for alignment */
    align-items: center; /* Center items vertically */
    margin-right: 5px; /* Space before the size label (XS, S, etc.) */
    vertical-align: middle; /* Align with surrounding text/labels */
}

/* Style for the number input itself */
.lumise-cart-field[data-type="quantity"] .lumise_form_content input[type="number"].lumise-cart-param,
.lumise-cart-field[data-type="quantity"] .lumise_form_content input[type="text"][inputmode="numeric"].lumise-cart-param {
    width: 45px !important; /* Fixed width for consistency */
    height: auto; /* Let height be determined by padding/font */
    padding: 4px 2px; /* Adjust padding */
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin: 0 4px; /* Space around the input */
    flex-grow: 0; /* Do not allow input to grow */
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    -moz-appearance: textfield; /* Hide default spinners in Firefox */
}
/* Hide default spinners in Chrome, Safari, Edge */
.lumise-cart-field[data-type="quantity"] .lumise_form_content input[type="number"]::-webkit-outer-spin-button,
.lumise-cart-field[data-type="quantity"] .lumise_form_content input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/* Style for the +/- buttons */
.lumise-qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; /* Fixed width */
    height: 26px; /* Fixed height */
    padding: 0;
    font-size: 16px;
    line-height: 1;
    font-weight: bold;
    text-align: center;
    border: 1px solid #ccc;
    background-color: #f7f7f7;
    color: #555;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.2s ease-in-out;
    user-select: none; /* Prevent text selection */
}

.lumise-qty-btn:hover {
    background-color: #eee;
    border-color: #999;
}

.lumise-qty-btn:active {
    background-color: #ddd;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
}

/* Optional: Add specific margin if needed, though the input margin should suffice */
/*
.lumise-qty-btn.lumise-qty-down {
    margin-right: 3px; 
}

.lumise-qty-btn.lumise-qty-up {
    margin-left: 3px;
}
*/

/* Style for single quantity input layout */
.lumise-cart-field[data-type="quantity"] .lumise_form_content:has(> input.lumise-cart-param[type="number"]) {
     display: flex;
     align-items: center;
}

/* NOUVEAU : Styles pour le résumé de la réduction */
#lumise-discount-summary {
    font-size: 11px; /* Plus petit que le prix principal */
    line-height: 1.4;
    margin-left: 12px; /* Espacement par rapport au prix principal */
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.2); /* Séparateur visuel optionnel */
    display: inline-block; /* Pour se mettre à côté */
    vertical-align: middle; /* Aligner verticalement avec le prix */
    color: rgba(255, 255, 255, 0.75); /* Couleur un peu moins visible */
    text-align: left; /* Aligner le texte à gauche */
}

#lumise-discount-summary .summary-line {
    display: block; /* Chaque ligne sur sa propre ligne */
    white-space: nowrap; /* Empêcher le retour à la ligne */
}

#lumise-discount-summary .discount-line {
    color: #afefac; /* Couleur légèrement verte pour la réduction (à ajuster) */
    font-weight: 500;
}
/* Style pour le message "aucune réduction" */
#lumise-discount-summary .no-discount {
 color: rgba(255, 255, 255, 0.6); /* Couleur plus discrète */
 font-style: italic;
}

/* Styles pour l'affichage personnalisé de la quantité (remplace +/-) */
.custom-quantity-display {
    display: inline-block; /* Ou block si nécessaire */
    padding: 4px 8px; /* Ajuster le padding */
    border: 1px solid #e0e0e0; /* Bordure légère */
    background-color: #f9f9f9; /* Fond léger */
    border-radius: 3px; /* Coins arrondis */
    min-width: 40px; /* Largeur minimale pour l'alignement */
    text-align: center;
    font-size: 1em; /* Taille de police similaire */
    line-height: 1.5; /* Hauteur de ligne similaire à un input */
    vertical-align: middle; /* Aligner avec d'autres éléments si nécessaire */
    box-sizing: border-box;
}

/* Assurer l'alignement dans la cellule du panier des blocs WC */
.wc-block-cart-item__quantity .custom-quantity-display {
    margin: auto; /* Centrer si la cellule est flex/grid, sinon ajuster */
}
/* Style pour la ligne Total après remise */
#lumise-discount-summary .total-after {
 font-weight: bold;
    color: #fff; /* Rendre le total final plus visible */
    border-top: 1px dashed rgba(255, 255, 255, 0.2); /* Séparateur optionnel */
    margin-top: 3px;
    padding-top: 3px;
}

/* NOUVEAU : Styles pour le résumé de la réduction */
#lumise-discount-summary {
    font-size: 11px; /* Plus petit que le prix principal */
    line-height: 1.4;
    margin-left: 12px; /* Espacement par rapport au prix principal */
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.2); /* Séparateur visuel optionnel */
    display: inline-block; /* Pour se mettre à côté */
    vertical-align: middle; /* Aligner verticalement avec le prix */
    color: rgba(255, 255, 255, 0.75); /* Couleur un peu moins visible */
    text-align: left; /* Aligner le texte à gauche */
}

#lumise-discount-summary .summary-line {
    display: block; /* Chaque ligne sur sa propre ligne */
    white-space: nowrap; /* Empêcher le retour à la ligne */
}

#lumise-discount-summary .discount-line {
    color: #afefac; /* Couleur légèrement verte pour la réduction (à ajuster) */
    font-weight: 500;
}
/* Style pour le message "aucune réduction" */
#lumise-discount-summary .no-discount {
 color: rgba(255, 255, 255, 0.6); /* Couleur plus discrète */
 font-style: italic;
}
