/* ============================================================
   ATELIER NOËL — tunnel de commande (WooCommerce Blocks)
   Chargé en dernier (priorité 9999) pour passer au-dessus des
   styles de WooCommerce et de Blocksy.
   ============================================================ */

/* ---------- champs de saisie ---------- */
body .wc-block-components-text-input input,
body .wc-block-components-text-input input[type="text"],
body .wc-block-components-text-input input[type="email"],
body .wc-block-components-text-input input[type="tel"],
body .wc-block-components-text-input input[type="number"]{
  background: #0F211A !important;
  background-color: #0F211A !important;
  border: 1px solid rgba(203,168,95,.26) !important;
  border-radius: 2px !important;
  color: #EFE5D0 !important;
  -webkit-text-fill-color: #EFE5D0 !important;
  font-family: "Jost", system-ui, sans-serif !important;
  font-size: 14px !important;
  height: 60px !important;
  min-height: 60px !important;
  padding: 24px 16px 6px 16px !important;
  box-shadow: none !important;
  outline: none !important;
  transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}
body .wc-block-components-text-input input:hover{
  border-color: rgba(203,168,95,.45) !important;
}
body .wc-block-components-text-input input:focus,
body .wc-block-components-text-input.is-active input{
  border-color: #CBA85F !important;
  background: #122720 !important;
  background-color: #122720 !important;
  box-shadow: 0 0 0 1px rgba(203,168,95,.35) !important;
}
body .wc-block-components-text-input input::placeholder{
  color: rgba(239,229,208,.38) !important;
  opacity: 1 !important;
}

/* étiquettes flottantes */
body .wc-block-components-text-input label{
  color: rgba(239,229,208,.5) !important;
  font-family: "Jost", system-ui, sans-serif !important;
  font-size: 14px !important;
  letter-spacing: .01em !important;
  left: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  line-height: 1 !important;
  pointer-events: none;
}
body .wc-block-components-text-input.is-active label{
  color: #CBA85F !important;
  font-size: 8.5px !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
  top: 10px !important;
  transform: none !important;
  line-height: 1 !important;
}

/* ---------- liste déroulante (pays) ---------- */
body .wc-blocks-components-select__container{
  background: transparent !important;
  border: none !important;
  position: relative !important;
}
/* le libellé passe AU-DESSUS du champ : plus aucun chevauchement possible */
body .wc-blocks-components-select__label{
  position: static !important;
  display: block !important;
  color: #CBA85F !important;
  font-family: "Jost", system-ui, sans-serif !important;
  font-size: 9.5px !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  margin: 0 0 8px 2px !important;
  padding: 0 !important;
  opacity: 1 !important;
  pointer-events: none;
}
body .wc-blocks-components-select__select{
  background: #0F211A !important;
  background-color: #0F211A !important;
  border: 1px solid rgba(203,168,95,.26) !important;
  border-radius: 2px !important;
  color: #EFE5D0 !important;
  font-family: "Jost", system-ui, sans-serif !important;
  font-size: 14px !important;
  height: 54px !important;
  padding: 0 44px 0 16px !important;
  line-height: 1.3 !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  cursor: pointer;
  transition: border-color .25s ease;
}
body .wc-blocks-components-select__select:hover{
  border-color: rgba(203,168,95,.45) !important;
}
body .wc-blocks-components-select__select:focus{
  border-color: #CBA85F !important;
  outline: none !important;
  box-shadow: 0 0 0 1px rgba(203,168,95,.35) !important;
}
body .wc-blocks-components-select__label{
  color: #CBA85F !important;
  font-family: "Jost", system-ui, sans-serif !important;
  font-size: 8.5px !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  pointer-events: none;
}
body .wc-blocks-components-select__expand{
  fill: #CBA85F !important;
  color: #CBA85F !important;
  right: 14px !important;
  width: 18px !important;
  height: 18px !important;
  top: auto !important;
  bottom: 18px !important;
  margin-top: 0 !important;
  pointer-events: none;
}

/* ---------- boutons radio ---------- */
body .wc-block-components-radio-control__input{
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  border: 1px solid rgba(203,168,95,.45) !important;
  border-radius: 50% !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  transition: border-color .2s ease, background .2s ease;
}
body .wc-block-components-radio-control__input:checked{
  border-color: #CBA85F !important;
  background: radial-gradient(circle, #CBA85F 0 38%, transparent 42%) !important;
  background-color: transparent !important;
}
/* WooCommerce dessine le point du bouton radio en bleu (#2872FA) via ::before : on le neutralise.
   Sélecteur volontairement plus spécifique que celui de WooCommerce (qui utilise :checked::before). */
body .wc-block-components-radio-control .wc-block-components-radio-control__input::before,
body .wc-block-components-radio-control .wc-block-components-radio-control__input:checked::before,
body .wc-block-components-radio-control .wc-block-components-radio-control__input::after{
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  opacity: 0 !important;
}
body .wc-block-components-radio-control__option{
  padding: 15px 16px !important;
  border: 1px solid rgba(203,168,95,.14) !important;
  border-radius: 2px !important;
  background: rgba(255,255,255,.015) !important;
  position: relative !important;
  transition: border-color .2s ease, background .2s ease;
}
/* WooCommerce place le bouton radio en position:absolute (left:16px) sans réserver
   la place du texte : le point passait donc par-dessus le libellé.
   On décale le libellé de la largeur du point + une respiration. */
body .wc-block-components-radio-control__label{
  padding-left: 34px !important;
  display: inline-block !important;
  min-height: 20px !important;
  line-height: 20px !important;
}
/* le bloc description (sous le libellé) est aligné sur le texte, pas sur le point */
body .wc-block-components-radio-control__description-group{
  padding-left: 34px !important;
}
body .wc-block-components-radio-control__option:hover{
  border-color: rgba(203,168,95,.35) !important;
  background: rgba(203,168,95,.03) !important;
}
body .wc-block-components-radio-control__option-checked{
  border-color: rgba(203,168,95,.5) !important;
  background: rgba(203,168,95,.05) !important;
}
body .wc-block-components-radio-control__label,
body .wc-block-components-radio-control__description,
body .wc-block-components-radio-control__secondary-label{
  color: #EFE5D0 !important;
  font-family: "Jost", system-ui, sans-serif !important;
}

/* ---------- cases à cocher ---------- */
body .wc-block-components-checkbox__input{
  width: 20px !important;
  height: 20px !important;
  border: 1px solid rgba(203,168,95,.45) !important;
  border-radius: 2px !important;
  background: transparent !important;
  background-color: transparent !important;
  transition: border-color .2s ease, background-color .2s ease;
}
body .wc-block-components-checkbox__input:checked{
  background: #CBA85F !important;
  background-color: #CBA85F !important;
  border-color: #CBA85F !important;
}
body .wc-block-components-checkbox__mark{
  fill: #0B1712 !important;
}
body .wc-block-components-checkbox label,
body .wc-block-components-checkbox__label{
  color: rgba(239,229,208,.85) !important;
  font-family: "Jost", system-ui, sans-serif !important;
}

/* ---------- titres d'étape ---------- */
body .wc-block-components-checkout-step__title,
body .wc-block-components-checkout-step__heading h2{
  font-family: "Cormorant Garamond", Georgia, serif !important;
  color: #EFE5D0 !important;
  font-size: 26px !important;
  font-weight: 400 !important;
  letter-spacing: .01em !important;
  margin-bottom: 18px !important;
}
body .wc-block-components-checkout-step{
  margin-bottom: 34px !important;
}
body .wc-block-components-checkout-step__description{
  color: rgba(239,229,208,.6) !important;
  font-family: "Jost", system-ui, sans-serif !important;
  font-size: 13px !important;
}

/* ---------- bouton "ajouter appartement" ---------- */
body .wc-block-components-address-form__address_2-toggle,
body .wc-block-components-address-form__address_2-toggle-text{
  color: #CBA85F !important;
  font-family: "Jost", system-ui, sans-serif !important;
  font-size: 11px !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  background: transparent !important;
  border: none !important;
  padding-left: 0 !important;
}

/* ---------- résumé de commande ---------- */
body .wc-block-components-order-summary{
  background: rgba(255,255,255,.025) !important;
  border: 1px solid rgba(203,168,95,.22) !important;
  border-radius: 2px !important;
  padding: 22px !important;
}
body .wc-block-components-order-summary .wc-block-components-panel__button{
  font-family: "Cormorant Garamond", Georgia, serif !important;
  color: #EFE5D0 !important;
  font-size: 22px !important;
  font-weight: 400 !important;
}
body .wc-block-components-product-name,
body .wc-block-components-order-summary-item__description{
  color: #EFE5D0 !important;
  font-family: "Jost", system-ui, sans-serif !important;
}
body .wc-block-components-order-summary-item__quantity{
  background: #CBA85F !important;
  color: #0B1712 !important;
  border: none !important;
}
body .wc-block-components-totals-item,
body .wc-block-components-totals-item__label,
body .wc-block-components-totals-item__value{
  color: rgba(239,229,208,.85) !important;
  font-family: "Jost", system-ui, sans-serif !important;
}
body .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body .wc-block-components-totals-footer-item .wc-block-components-totals-item__value{
  color: #EFE5D0 !important;
  font-size: 16px !important;
  letter-spacing: .02em !important;
}
body .wc-block-components-totals-footer-item{
  border-top: 1px solid rgba(203,168,95,.22) !important;
  padding-top: 16px !important;
  margin-top: 12px !important;
}

/* ---------- encart paiement ---------- */
/* Le fieldset ne doit pas avoir son propre cadre : il en faisait un deuxième
   autour de l'option déjà encadrée, et englobait le titre de l'étape. */
body .wc-block-checkout__payment-method{
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}
/* l'option porte déjà son cadre : l'accordéon n'en ajoute pas un autre */
body .wc-block-components-radio-control-accordion-option,
body .wc-block-components-radio-control-accordion-content{
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
}
body .wc-block-components-radio-control-accordion-content{
  padding: 0 16px 14px 50px !important;
}
body .wc-block-components-radio-control-accordion-content:empty{
  padding: 0 !important;
}

/* ---------- note de commande ---------- */
body .wc-block-components-textarea{
  background: #0F211A !important;
  border: 1px solid rgba(203,168,95,.26) !important;
  border-radius: 2px !important;
  color: #EFE5D0 !important;
  font-family: "Jost", system-ui, sans-serif !important;
  font-size: 14px !important;
  padding: 14px 16px !important;
  min-height: 90px !important;
  transition: border-color .25s ease;
}
body .wc-block-components-textarea:focus{
  border-color: #CBA85F !important;
  box-shadow: 0 0 0 1px rgba(203,168,95,.35) !important;
  outline: none !important;
}

/* ---------- mention CGV ---------- */
body .wc-block-components-checkout-place-order-block .wc-block-components-checkbox__label,
body .wc-block-checkout__terms,
body .wc-block-checkout__terms a{
  color: rgba(239,229,208,.6) !important;
  font-family: "Jost", system-ui, sans-serif !important;
  font-size: 12px !important;
}
body .wc-block-checkout__terms a{
  color: #CBA85F !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- bouton COMMANDER ---------- */
body .wc-block-components-checkout-place-order-button,
body .wp-block-woocommerce-checkout .wc-block-components-button,
body .wc-block-components-checkout-place-order-button .wc-block-components-button__text{
  background: #CBA85F !important;
  background-color: #CBA85F !important;
  color: #0B1712 !important;
  border: 1px solid #CBA85F !important;
  border-radius: 2px !important;
  font-family: "Jost", system-ui, sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  letter-spacing: .2em !important;
  text-transform: uppercase !important;
  min-height: 56px !important;
  box-shadow: none !important;
  transition: background .25s ease, color .25s ease;
}
body .wc-block-components-checkout-place-order-button:hover,
body .wc-block-components-checkout-place-order-button:hover .wc-block-components-button__text{
  background: transparent !important;
  background-color: transparent !important;
  color: #CBA85F !important;
}

/* ---------- messages d'erreur / info ---------- */
body .wc-block-components-validation-error p,
body .wc-block-components-validation-error{
  color: #E8A08C !important;
  font-family: "Jost", system-ui, sans-serif !important;
  font-size: 12px !important;
}
body .wc-block-components-notice-banner{
  border-radius: 2px !important;
  font-family: "Jost", system-ui, sans-serif !important;
}

/* ---------- responsive : champs pleine largeur sur mobile ---------- */
@media (max-width: 620px){
  body .wc-block-components-text-input input,
  body .wc-blocks-components-select__select{
    height: 54px !important;
    min-height: 54px !important;
    font-size: 16px !important;
  }
  body .wc-block-components-checkout-step__title{
    font-size: 22px !important;
  }
}
