/* Calculateur Eco Bois Alsace, d'après la maquette « Landing page leads » (novembre 2026). */

/* The form itself is styled in the Elementor Form widget, not here. */
.eba-calc,
.eba-estimation,
.eba-merci {
  /* Brand colors come from the Elementor kit; the fallbacks are the mockup's. */
  --eba-vert: var(--e-global-color-primary, #0B8433);
  --eba-texte: var(--e-global-color-text, #2B2621);
  --eba-gris: #5E554B;
  --eba-bordure: #CFC7BA;
  --eba-bordure-claire: #E2DDD4;
  --eba-fond-actif: #EAF5EC;
  --eba-fond-badge: #F3F1EC;
  --eba-fond-estimation: #F3F2EE;
  --eba-fond-merci: #E6EFE9;
}

/* Theme and Elementor styles must never show a hidden element. */
.eba-calc [hidden],
.eba-calc[hidden],
.eba-estimation[hidden],
.eba-merci[hidden],
.eba-formulaire[hidden] {
  display: none !important;
}

/** Choix **/

.eba-calc {
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: var(--eba-texte);
}

.eba-calc .eba-groupe {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.eba-calc .eba-titre {
  margin: 0 0 2px;
  padding: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--eba-vert);
}

.eba-calc button:focus-visible {
  outline: 3px solid rgba(11, 132, 51, .35);
  outline-offset: 2px;
}

.eba-sechages {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* The Hello Elementor theme styles every button: everything is reset here. */
.eba-calc button.eba-sechage,
.eba-calc button.eba-sechage:hover,
.eba-calc button.eba-sechage:focus {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 14px;
  border: 1.5px solid var(--eba-bordure-claire);
  border-radius: 14px;
  background: #fff;
  color: var(--eba-texte);
  font: inherit;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  white-space: normal;
  box-shadow: none;
  cursor: pointer;
}

.eba-calc button.eba-sechage[aria-checked="true"] {
  padding: 9.5px 13.5px;
  border: 2px solid var(--eba-vert);
  background: var(--eba-fond-actif);
}

.eba-sechage-entete {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.eba-radio {
  flex: none;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  border: 2px solid var(--eba-bordure);
  border-radius: 50%;
  background: #fff;
}

.eba-sechage[aria-checked="true"] .eba-radio {
  border: 6px solid var(--eba-vert);
}

.eba-sechage-texte {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.eba-sechage-nom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
}

.eba-vedette {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--eba-vert);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.eba-sechage-accroche {
  font-size: 13px;
  color: var(--eba-gris);
}

.eba-humidite {
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--eba-fond-badge);
  color: var(--eba-gris);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.eba-sechage[aria-checked="true"] .eba-humidite {
  background: #fff;
}

.eba-avantages {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-left: 30px;
}

.eba-avantage {
  display: flex;
  gap: 8px;
  font-size: 14px;
  line-height: 1.35;
}

.eba-coche {
  flex: none;
  font-weight: 800;
  color: var(--eba-vert);
}

.eba-tailles,
.eba-tailles-choix {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.eba-calc button.eba-pilule,
.eba-calc button.eba-pilule:hover,
.eba-calc button.eba-pilule:focus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 0 16px;
  border: 2px solid var(--eba-bordure);
  border-radius: 999px;
  background: #fff;
  color: var(--eba-texte);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  box-shadow: none;
  cursor: pointer;
}

.eba-calc button.eba-pilule[aria-checked="true"] {
  border-color: var(--eba-vert);
  background: var(--eba-vert);
  color: #fff;
}

.eba-refendu {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0 0 0 8px;
  font-size: 14px;
  cursor: pointer;
}

.eba-refendu input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--eba-vert);
}

.eba-quantite {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.eba-calc button.eba-pas,
.eba-calc button.eba-pas:hover,
.eba-calc button.eba-pas:focus {
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 2px solid var(--eba-bordure);
  border-radius: 12px;
  background: #fff;
  color: var(--eba-texte);
  font-size: 22px;
  line-height: 1;
  box-shadow: none;
  cursor: pointer;
}

.eba-calc button.eba-pas:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.eba-steres {
  min-width: 96px;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}

.eba-minimum {
  margin-left: 6px;
  font-size: 13px;
  color: var(--eba-gris);
}

/** Estimation **/

.eba-estimation {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--eba-fond-estimation);
  color: var(--eba-texte);
}

.eba-estimation-texte {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-size: 13px;
  color: var(--eba-gris);
}

.eba-estimation-titre {
  font-weight: 700;
  color: var(--eba-texte);
}

.eba-estimation-note {
  font-size: 12px;
}

.eba-estimation-total {
  font-size: 24px;
  font-weight: 800;
  color: #2B2B2B;
  white-space: nowrap;
}

/** Merci **/

.eba-merci {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: 14px;
  background: var(--eba-fond-merci);
  color: var(--eba-texte);
}

.eba-merci:focus {
  outline: none;
}

.eba-merci-titre {
  font-size: 20px;
}

.eba-merci-liste {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.eba-merci-liste li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.eba-merci-liste li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--eba-vert);
}

.eba-merci p {
  margin: 0;
}

.eba-merci a {
  font-weight: 700;
  color: var(--eba-vert);
}

/* After sending, the thank-you block takes the whole order card. */
.eba-commande.eba-envoye .eba-colonne-droite {
  display: none !important;
}

.eba-commande.eba-envoye .eba-colonne-gauche {
  --width: 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  flex-basis: 100% !important;
}

@media (max-width: 480px) {
  .eba-sechage-entete {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  /* The humidity badge goes under the name, aligned with the text. */
  .eba-sechage-texte {
    flex-basis: calc(100% - 30px);
  }

  .eba-humidite {
    margin-left: 30px;
  }

  .eba-estimation {
    flex-wrap: wrap;
  }
}
