.hm-promo-overlay,
.hm-promo-overlay * { box-sizing: border-box; }

.hm-promo-overlay {
  position: fixed;
  inset: 0;
  z-index: 100100;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  background: rgba(4, 22, 44, .68);
  font-family: Nunito, system-ui, sans-serif;
  overflow-y: auto;
}

.hm-promo-dialog {
  width: min(100%, 430px);
  margin: auto;
  padding: 30px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 58px rgba(4, 22, 44, .24);
  color: #0e3667;
  text-align: center;
  animation: hm-promo-enter .32s cubic-bezier(.16, 1, .3, 1) both;
}

.hm-promo-rule {
  width: 42px;
  height: 3px;
  margin: 0 auto 18px;
  border-radius: 3px;
  background: #b88a28;
}

.hm-promo-title {
  margin: 0;
  color: #0e3667;
  font-size: clamp(21px, 5vw, 25px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.hm-promo-price { color: #986c11; white-space: nowrap; }

.hm-promo-copy {
  margin: 16px 0 21px;
  color: #40566e;
  font-size: 14px;
  line-height: 1.5;
}

.hm-promo-copy strong { color: #0e3667; }

.hm-promo-actions { display: grid; gap: 10px; }

.hm-promo-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 45px;
  padding: 10px 14px;
  border-radius: 10px;
  font: 800 14px/1.25 Nunito, system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease;
  cursor: pointer;
}

.hm-promo-join {
  border: 1px solid #168348;
  background: #168348;
  color: #fff;
}

.hm-promo-join:hover { background: #116a39; border-color: #116a39; color: #fff; }

.hm-promo-return {
  border: 1px solid #a7b9cb;
  background: #fff;
  color: #0e3667;
}

.hm-promo-return:hover { background: #eef3f9; border-color: #718eaa; }

.hm-promo-action:focus-visible {
  outline: 3px solid #c9a84c;
  outline-offset: 3px;
}

@keyframes hm-promo-enter {
  from { opacity: .35; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 480px) {
  .hm-promo-dialog { padding: 25px 19px 21px; }
  .hm-promo-rule { margin-bottom: 15px; }
  .hm-promo-title { font-size: clamp(19px, 5.7vw, 23px); }
  .hm-promo-copy { margin: 14px 0 18px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .hm-promo-dialog { animation: none; }
  .hm-promo-action { transition: none; }
}
