/* Simulateurs : style sobre (en-tete clair, zones en lignes, ticket de prix) - charge apres shop-bento-promos.css */
.gbha-sim-modal {
  max-width: 520px;
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.3);
}
.gbha-sim-top {
  background: #ffffff;
  color: #0f172a;
  padding: 26px 30px 22px;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 1px solid #e4e4e7;
}
.gbha-sim-top h3 {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin: 6px 0 0 0;
}
.gbha-sim-badge {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: #71717a;
  line-height: 1.4;
}
.gbha-sim-close {
  flex: none;
  width: auto;
  height: auto;
  border: 0;
  background: none;
  border-radius: 0;
  padding: 4px 0 2px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #cbd5e1;
  transition: text-decoration-color 0.2s, color 0.2s;
}
.gbha-sim-close:hover {
  color: #0f172a;
  text-decoration-color: #0f172a;
}
.gbha-sim-body {
  padding: 26px 30px 28px;
}
.gbha-sim-field {
  margin-bottom: 24px;
}
.gbha-sim-label {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #64748b;
}
.gbha-sim-value-pill {
  background: #ffffff;
  border: 1.5px solid #e4e4e7;
  border-radius: 10px;
  padding: 5px 12px;
  font-size: 15px;
  font-weight: 800;
}

/* Curseur */
.gbha-sim-range {
  --acc: #059669;
  --p: 11%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(to right, var(--acc) var(--p), #e4e4e7 var(--p));
  cursor: pointer;
  outline: none;
}
.gbha-sim-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--acc);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}
.gbha-sim-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--acc);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

/* Choix : lignes avec pastille radio */
.gbha-sim-zones {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 8px;
}
.gbha-sim-zone-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid #e4e4e7;
  border-radius: 14px;
  background: #ffffff;
  color: #0f172a;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  text-align: left;
}
.gbha-sim-zone-btn::before {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  transition: border-color 0.2s, background 0.2s;
}
.gbha-sim-zone-btn br {
  display: none;
}
.gbha-sim-zone-btn span {
  margin-left: auto;
  font-size: 12px !important;
  font-weight: 600;
  color: #64748b !important;
  text-align: right;
}
.gbha-sim-zone-btn.active {
  border-color: #0f172a;
  background: #ffffff;
  color: #0f172a;
}
.gbha-sim-zone-btn.active::before {
  border-color: #0f172a;
  background: radial-gradient(circle, #0f172a 0 4px, transparent 5px);
}

/* Ticket de prix */
.gbha-sim-result-box {
  background: #ffffff;
  border: 1.5px dashed #cbd5e1;
  border-radius: 16px;
  padding: 16px 18px;
  margin: 0 0 18px 0;
}
.gbha-sim-result-box:has(.gbha-sim-rows) {
  display: block;
}
.gbha-sim-rows > div {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #475569;
  font-weight: 600;
  padding: 5px 0;
}
.gbha-sim-rows b {
  font-weight: 800;
  color: #0f172a;
}
.gbha-sim-total-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1.5px solid #0f172a;
  margin-top: 10px;
  padding-top: 12px;
}
.gbha-sim-total-row span {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}
.gbha-sim-total-row strong {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  color: #0f172a;
}
.gbha-sim-res-left span {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: none;
  color: #64748b;
}
.gbha-sim-res-price .big-price {
  color: #0f172a;
}
.gbha-sim-cta {
  padding: 17px;
  font-family: inherit;
  font-size: 15px;
}
.gbha-sim-cta:hover {
  background: #1e293b;
}

@media (max-width: 640px) {
  .gbha-sim-modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }
  .gbha-sim-modal {
    max-width: none;
    max-height: 94vh;
    overflow-y: auto;
    border-radius: 28px 28px 0 0;
  }
  .gbha-sim-top {
    padding: 20px 20px 16px;
  }
  .gbha-sim-top h3 {
    font-size: 21px;
  }
  .gbha-sim-body {
    padding: 20px 20px 24px;
  }
  .gbha-sim-zone-btn {
    padding: 10px 12px;
  }
  .gbha-sim-zone-btn span {
    font-size: 11px !important;
  }
  .gbha-sim-total-row strong {
    font-size: 30px;
  }
}

/* Calculateur de consommation : bloc resultat compact */
.gbha-sim-result-box:not(:has(.gbha-sim-rows)) {
  gap: 14px;
}
.gbha-sim-res-price .big-price {
  font-size: 22px;
  letter-spacing: -0.4px;
}
