.hp-payment-open {
  overflow: hidden;
}

.hp-payment-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.hp-payment-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.hp-payment-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 16, 31, 0.68);
  backdrop-filter: blur(6px);
}

.hp-payment-modal__dialog {
  position: relative;
  width: min(100%, 440px);
  padding: 28px 28px 24px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 255, 0.98));
  box-shadow: 0 30px 80px rgba(10, 24, 60, 0.28);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.24s ease;
  text-align: center;
}

.hp-payment-modal.is-visible .hp-payment-modal__dialog {
  transform: translateY(0) scale(1);
}

.hp-payment-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(18, 38, 86, 0.08);
  color: #10213e;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hp-payment-modal__close:hover {
  background: rgba(18, 38, 86, 0.14);
  transform: rotate(90deg);
}

.hp-payment-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(26, 88, 247, 0.1);
  color: #1a58f7;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hp-payment-modal__title {
  margin: 16px 0 10px;
  color: #122656;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
}

.hp-payment-modal__desc {
  margin: 0 auto;
  max-width: 320px;
  color: rgba(18, 33, 62, 0.78);
  font-size: 14px;
  line-height: 1.75;
}

.hp-payment-modal__qr-wrap {
  margin: 22px auto 18px;
  width: min(100%, 280px);
  padding: 14px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(18, 38, 86, 0.06);
}

.hp-payment-modal__qr {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.hp-payment-modal__tips {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.hp-payment-modal__tip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #19325a;
  font-size: 13px;
  line-height: 1.7;
}

.hp-payment-modal__tip-index {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(26, 88, 247, 0.12);
  color: #1a58f7;
  font-size: 12px;
  font-weight: 700;
}

.hp-payment-modal__footer {
  margin-top: 16px;
  color: rgba(18, 33, 62, 0.62);
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .hp-payment-modal {
    padding: 16px;
  }

  .hp-payment-modal__dialog {
    padding: 24px 18px 20px;
    border-radius: 20px;
  }

  .hp-payment-modal__title {
    font-size: 24px;
  }

  .hp-payment-modal__desc {
    max-width: 100%;
  }

  .hp-payment-modal__qr-wrap {
    width: min(100%, 248px);
  }
}
