html.hm-buy-now-open,
html.hm-buy-now-open body {
  overflow: hidden !important;
}

.hm-buy-now[hidden] {
  display: none !important;
}

.hm-buy-now {
  position: fixed;
  inset: 0;
  z-index: 1000001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.hm-buy-now__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hm-buy-now__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  color: #212121;
  padding: 28px 24px 24px;
  font-family: Figtree, system-ui, sans-serif;
}

.hm-buy-now__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #212121;
}

.hm-buy-now__title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 600;
}

.hm-buy-now__sub {
  margin: 0 0 18px;
  font-size: 13px;
  color: #646464;
}

.hm-buy-now__form {
  display: grid;
  gap: 12px;
}

.hm-buy-now__form[hidden],
.hm-buy-now__form.is-done {
  display: none !important;
}

.hm-buy-now__success[hidden] {
  display: none !important;
}

.hm-buy-now__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hm-buy-now__form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #646464;
}

.hm-buy-now__form input,
.hm-buy-now__form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #212121;
  padding: 11px 12px;
  font: inherit;
  font-size: 14px;
  text-transform: none;
  letter-spacing: normal;
  color: #212121;
}

.hm-buy-now__submit {
  appearance: none;
  border: 0;
  background: #212121;
  color: #fff;
  padding: 14px 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  cursor: pointer;
  margin-top: 4px;
}

.hm-buy-now__submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.hm-buy-now__error {
  color: #721c24;
  background: #f8d7da;
  padding: 10px 12px;
  font-size: 13px;
  margin: 0;
}

.hm-buy-now__success {
  text-align: center;
}

.hm-buy-now__ok-title {
  font-size: 18px;
  font-weight: 600;
  margin: 8px 0 12px;
}

@media (max-width: 520px) {
  .hm-buy-now__row {
    grid-template-columns: 1fr;
  }
}

/* Toast options manquantes */
.hm-bn-toast[hidden] {
  display: none !important;
}

.hm-bn-toast {
  position: fixed;
  inset: 0;
  z-index: 1000002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.45);
}

.hm-bn-toast__card {
  width: 100%;
  max-width: 360px;
  background: #fff;
  color: #212121;
  padding: 24px 22px 20px;
  text-align: center;
  font-family: Figtree, system-ui, sans-serif;
}

.hm-bn-toast__title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
}

.hm-bn-toast__text {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: #646464;
}

.hm-bn-toast__btn {
  appearance: none;
  border: 0;
  background: #212121;
  color: #fff;
  padding: 12px 28px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  cursor: pointer;
}
