/* Digitalmuz — fiche d'un site : habillage du formulaire d'options de WooCommerce.
   Le formulaire est produit par l'extension d'options (YITH) : on ne change que son apparence. */

.fiche-site { padding-bottom: 0; }
.fiche-site .woocommerce-notices-wrapper:not(:empty) { margin-bottom: 20px; }
.presentation-texte p { color: #2f4857; max-width: 72ch; }
.presentation-texte p + p { margin-top: 1em; }
.presentation-texte :where(ul, ol) { margin: 1em 0; padding-left: 1.3em; list-style: revert; color: #2f4857; }

/* Le formulaire */
.woocommerce div.product.fiche-site form.cart, .fiche-site form.cart { margin: 0; padding: 0; display: block; }
.fiche-site #yith-wapo-container { margin: 0; padding: 0; }
.fiche-site .yith-wapo-block { margin: 0; padding: 0; }
.fiche-site .yith-wapo-block .yith-wapo-addon { margin: 26px 0 0; padding: 0; background: none !important; border: 0; }
.fiche-site .yith-wapo-block .yith-wapo-addon:first-child,
.fiche-site .yith-wapo-block .yith-wapo-addon-type-html_heading + .yith-wapo-addon { margin-top: 0; }
.fiche-site .yith-wapo-addon-type-html_heading { display: none !important; } /* l'ancien titre « Options de rédaction » */
.fiche-site .yith-wapo-addon .addon-header { margin: 0 0 10px; }
.fiche-site .yith-wapo-addon .wapo-addon-title { margin: 0; padding: 0; font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--encre); cursor: default; }
.fiche-site .yith-wapo-addon .wapo-addon-title::before, .fiche-site .yith-wapo-addon .wapo-addon-title::after { display: none !important; }
.fiche-site .yith-wapo-addon .options-container { display: block !important; padding: 0; }
.fiche-site .yith-wapo-addon .wapo-addon-description { margin: -4px 0 12px; color: var(--gris); font-size: .8125rem; line-height: 1.5; max-width: 70ch; }
.fiche-site .yith-wapo-addon .options { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }

/* Options à choisir : des cartes */
.fiche-site .yith-wapo-option.selection-single, .fiche-site .yith-wapo-addon-type-radio .yith-wapo-option {
  margin: 0; padding: 12px 14px; border: 1px solid #b9cedb; border-radius: 14px; background: var(--blanc); cursor: pointer;
}
.fiche-site .yith-wapo-option.selection-single:hover { border-color: var(--azur); }
.fiche-site .yith-wapo-option.selection-single.selected { border-color: var(--azur); background: var(--brume); box-shadow: inset 0 0 0 1px var(--azur); }
.fiche-site .yith-wapo-option .label { margin: 0; padding: 0; }
.fiche-site .yith-wapo-option .option-container { display: flex; align-items: flex-start; gap: 12px; margin: 0; min-width: 0; }
.fiche-site .yith-wapo-option, .fiche-site .yith-wapo-option .label { min-width: 0; max-width: 100%; }
.fiche-site .yith-wapo-option .checkbox-button-container { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 12px; margin: 0; }
.fiche-site .yith-wapo-option .checkboxbutton { flex: none; }
.fiche-site .yith-wapo-option .checkboxbutton { display: block; width: 20px; height: 20px; margin: 1px 0 0; padding: 0; border: 0; background: none; }
.fiche-site .yith-wapo-option .checkboxbutton::before, .fiche-site .yith-wapo-option .checkboxbutton::after { display: none !important; }
.fiche-site .yith-wapo-option .checkboxbutton input { position: static; opacity: 1; display: block; width: 20px; height: 20px; margin: 0; accent-color: var(--azur); cursor: pointer; }
.fiche-site .yith-wapo-option label.yith-wapo-addon-label { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; margin: 0; padding: 0; white-space: normal; overflow-wrap: anywhere; font-size: .9375rem; font-weight: 600; line-height: 1.35; color: var(--encre); cursor: pointer; }
.fiche-site .yith-wapo-option .option-price { flex: none; font-size: .875rem; font-weight: 600; color: var(--azur-fonce); white-space: nowrap; }
.fiche-site .yith-wapo-option .option-price .brackets { display: none; }
.fiche-site .yith-wapo-option p.description { margin: 6px 0 0 32px; padding: 0; color: var(--gris); font-size: .8125rem; line-height: 1.45; }

/* Le brief : deux colonnes, les consignes sur toute la largeur */
.fiche-site .yith-wapo-addon-type-text .options-container > p,
.fiche-site .yith-wapo-addon-type-text .options-container > ul,
.fiche-site .yith-wapo-addon-type-textarea .options-container > ul { display: none; } /* la liste « Indiquez : 1, 2, 3, 4 » répète les champs */
.fiche-site .yith-wapo-addon-type-text .options { gap: 14px 16px !important; }
.fiche-site .yith-wapo-addon-type-text .yith-wapo-option { margin: 0; padding: 0; border: 0; background: none; }
.fiche-site .yith-wapo-addon-type-text .yith-wapo-option:last-child { grid-column: 1 / -1; }
.fiche-site .yith-wapo-addon-type-text .option-container { display: block; }
.fiche-site .yith-wapo-addon-type-text .option-container label { display: block; margin: 0 0 6px; font-size: .875rem; font-weight: 500; color: var(--encre); }
.fiche-site .yith-wapo-addon-type-text .required { color: #b42318; }
.fiche-site .yith-wapo-addon-type-text .input-text-container { margin: 0; }
.fiche-site .yith-wapo-addon-type-text input[type="text"], .fiche-site .yith-wapo-addon-type-text textarea {
  width: 100% !important; min-height: 46px; padding: 9px 12px; border: 1px solid #b9cedb; border-radius: var(--rayon-petit); background: var(--blanc); font: inherit; color: var(--encre); box-shadow: none;
}
.fiche-site .yith-wapo-addon-type-text input[type="text"]:focus { border-color: var(--azur); outline: 3px solid var(--ambre); outline-offset: 2px; }
.fiche-site .yith-wapo-addon-type-text input.dmz-manque { border-color: #b42318; }
.fiche-site .yith-wapo-addon-type-text .yith-wapo-option p.description { margin: 6px 0 0; }

/* Le total et la quantité : repris par le récapitulatif */
.fiche-site #wapo-total-price-table { display: none !important; }
.fiche-site form.cart .quantity { display: none !important; }
.woocommerce div.product.fiche-site form.cart .single_add_to_cart_button, .fiche-site form.cart .single_add_to_cart_button {
  float: none; margin: 26px 0 0; min-height: 50px; padding: 12px 26px; border: 0; border-radius: 999px; background: var(--ambre); color: var(--encre); font: inherit; font-weight: 600; cursor: pointer;
}
.fiche-site form.cart .single_add_to_cart_button:hover { background: #ffc524; color: var(--encre); }
/* Avec le script, le bouton du récapitulatif suffit sur grand écran. */
.dmz-fiche-js .fiche-site form.cart .single_add_to_cart_button { display: none; }

@media (max-width: 640px) {
  .fiche-site .yith-wapo-addon .options { grid-template-columns: minmax(0, 1fr) !important; }
}
