.payment-state {
  width: min(460px, 100%);
  min-height: 274px;
  margin: 22px auto;
  padding: 26px;
  display: grid;
  place-items: center;
  text-align: center;
  background: #f8fbfe;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.payment-state i {
  color: var(--blue);
  font-style: normal;
  font-weight: 800;
}

.payment-state img {
  display: block;
  width: 190px;
  height: 190px;
  margin: auto;
}

.payment-state p {
  color: var(--muted);
  line-height: 1.6;
}

.mock-payment span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e8f3ff;
  color: #0861b4;
  font-size: 12px;
  font-weight: 700;
}

.mock-payment h3 { margin: 14px 0 6px; }
.mock-payment p { margin: 0 0 18px; }
.payment-state.expired h3 { margin-top: 0; }

.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.payment-method {
  min-height: 104px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  padding: 18px;
  border: 1px solid #dce5ee;
  border-radius: 12px;
  background: #fff;
  color: #202b38;
  cursor: pointer;
  text-align: left;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease, transform .16s ease;
}

.payment-method:hover:not(:disabled) { transform: translateY(-1px); border-color: #a9cbea; box-shadow: 0 8px 18px rgba(25, 73, 117, .08); }
.payment-method:focus-visible { outline: 3px solid #b8ddff; outline-offset: 2px; }
.payment-method:disabled { cursor: not-allowed; opacity: .52; }
.payment-method.active.wechat { border-color: #07ae62; background: linear-gradient(135deg, #f3fff9, #fff); box-shadow: 0 0 0 2px #b8efd6; }
.payment-method.active.alipay { border-color: #1677ff; background: linear-gradient(135deg, #f3f8ff, #fff); box-shadow: 0 0 0 2px #c5dcff; }

.payment-brand-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
}
.payment-brand-icon svg { width: 28px; height: 28px; fill: currentColor; }
.wechat-icon { background: #07ae62; }
.alipay-icon { background: #1677ff; }
.payment-method-copy { min-width: 0; display: grid; gap: 5px; }
.payment-method-copy b { font-size: 17px; line-height: 1.2; }
.payment-method-copy small { color: #697789; font-size: 13px; line-height: 1.4; }
.payment-method-check { display: none; position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; place-items: center; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 800; }
.payment-method.active .payment-method-check { display: grid; }
.payment-method.active.wechat .payment-method-check { background: #07ae62; }
.payment-method.active.alipay .payment-method-check { background: #1677ff; }

.qr-payment { display: grid; justify-items: center; width: 100%; }
.qr-payment-brand { display: inline-flex; align-items: center; gap: 8px; color: #263542; font-size: 15px; font-weight: 800; }
.qr-payment .payment-brand-icon { flex-basis: 30px; width: 30px; height: 30px; border-radius: 9px; }
.qr-payment .payment-brand-icon svg { width: 20px; height: 20px; }
.qr-payment img { width: 202px; height: 202px; margin: 14px auto 10px; padding: 8px; border-radius: 12px; background: #fff; box-shadow: 0 7px 20px rgba(15, 46, 79, .12); }
.qr-payment p { margin: 0; text-align: center; font-weight: 650; }
.alipay-cashier-frame-shell { position: relative; width: 202px; height: 202px; margin: 14px auto 10px; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 7px 20px rgba(15, 46, 79, .12); }
.alipay-cashier-frame { position: absolute; top: 8px; left: 8px; display: block; width: 440px; height: 440px; border: 0; background: #fff; transform: scale(.77); transform-origin: top left; }

@media (max-width: 560px) {
  .payment-methods { grid-template-columns: 1fr; gap: 10px; }
  .payment-method { min-height: 86px; padding: 14px; }
  .payment-state { min-height: 256px; padding: 20px; }
}
