/* Cashier — inspired by lizhengxin.com/cashier (NihaoPay style) */
.nihaopay-cashier {
  --np-brand: #7b4f9a;
  --np-ink: #1a1420;
  --np-muted: rgba(26, 20, 32, 0.68);
  --np-cream: #f7f3f8;
  --np-btn: #505745;
  --np-btn-hover-bg: #ffffff;
  --np-btn-hover-ink: #2e2e2e;
  --np-line: rgba(0, 0, 0, 0.12);
  --np-serif: Georgia, "Times New Roman", serif;
  --np-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;

  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background:
    linear-gradient(180deg, rgba(123, 79, 154, 0.08) 0%, transparent 42%),
    var(--np-cream);
  box-sizing: border-box;
  font-family: var(--np-serif);
  color: var(--np-ink);
}

.nihaopay-cashier *,
.nihaopay-cashier *::before,
.nihaopay-cashier *::after { box-sizing: border-box; }

.nihaopay-cashier__card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid var(--np-line);
  border-radius: 0;
  padding: 40px 36px 36px;
}

.nihaopay-cashier__eyebrow {
  margin: 0 0 10px;
  font-family: var(--np-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--np-brand);
}

.nihaopay-cashier__title {
  margin: 0 0 28px;
  font-family: var(--np-serif);
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 1.2;
  font-weight: 400;
  color: var(--np-ink);
}

.nihaopay-cashier__label {
  display: block;
  margin: 0 0 8px;
  font-family: var(--np-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--np-ink);
}

.nihaopay-cashier__amount-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--np-line);
  margin-bottom: 18px;
  background: #fff;
  transition: border-color 0.2s ease;
}

.nihaopay-cashier__amount-wrap:focus-within { border-color: var(--np-brand); }

.nihaopay-cashier__currency {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-right: 1px solid var(--np-line);
  background: var(--np-cream);
  font-family: var(--np-sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--np-muted);
}

.nihaopay-cashier__amount,
.nihaopay-cashier__input {
  width: 100%;
  min-height: 50px;
  margin: 0 0 18px;
  padding: 0 14px;
  border: 1px solid var(--np-line);
  border-radius: 0;
  background: #fff;
  font-family: var(--np-sans);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  color: var(--np-ink);
  appearance: none;
  -webkit-appearance: none;
}

.nihaopay-cashier__amount {
  margin: 0;
  border: 0;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nihaopay-cashier__amount:focus,
.nihaopay-cashier__input:focus {
  outline: none;
  border-color: var(--np-brand);
}

.nihaopay-cashier__amount::-webkit-outer-spin-button,
.nihaopay-cashier__amount::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.nihaopay-cashier__amount[type="number"] { -moz-appearance: textfield; }

.nihaopay-cashier__btn {
  width: 100%;
  min-height: 50px;
  margin-top: 6px;
  padding: 12px 20px;
  border: 2px solid var(--np-btn);
  border-radius: 0;
  background: var(--np-btn);
  color: #fff;
  font-family: var(--np-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nihaopay-cashier__btn:hover,
.nihaopay-cashier__btn:focus {
  background: var(--np-btn-hover-bg);
  color: var(--np-btn-hover-ink);
  border-color: #2e2e2e;
}

.nihaopay-cashier__btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.nihaopay-cashier__secure {
  margin: 18px 0 0;
  text-align: center;
  font-family: var(--np-serif);
  font-size: 0.85rem;
  color: var(--np-muted);
}

.nihaopay-cashier__notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid #c45c48;
  background: #fff8f6;
  color: #8a2e22;
  font-family: var(--np-serif);
  font-size: 0.95rem;
  display: none;
}

.nihaopay-cashier__back {
  display: block;
  margin-top: 16px;
  text-align: center;
  font-family: var(--np-sans);
  font-size: 13px;
  color: var(--np-muted);
  text-decoration: none;
}

.nihaopay-cashier__back:hover { color: var(--np-brand); }

@media (max-width: 544px) {
  .nihaopay-cashier { padding: 24px 12px 40px; align-items: flex-start; }
  .nihaopay-cashier__card { padding: 24px 16px 20px; border-left: 0; border-right: 0; }
  .nihaopay-cashier__amount { font-size: 1.35rem; }
}
