/**
 * 支付方式选择器与扫码等待弹窗样式。
 * 视觉对齐创作平台（eta）的 commerce-storefront.css：深色卡片、红色主色、
 * 微信绿 #07c160 / 支付宝蓝 #1677ff 的品牌圆标。
 */

.payment-method-selector {
  min-width: 220px;
  margin: 0;
  padding: 0;
  border: 0;
}

.payment-method-selector legend {
  margin-bottom: 7px;
  color: #9b8f8f;
  font-size: 10px;
}

.payment-method-options {
  display: flex;
  gap: 7px;
}

.payment-method-option {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 118px;
  padding: 8px 10px;
  border: 1px solid #393333;
  border-radius: 9px;
  background: #151010;
  color: #ddd;
  text-align: left;
  cursor: pointer;
}

.payment-method-option:hover,
.payment-method-option.selected {
  border-color: #ff514c;
  background: #241111;
  color: #fff;
}

.payment-method-option:disabled {
  cursor: not-allowed;
  opacity: .6;
}

.payment-method-option > span:last-child {
  display: grid;
  gap: 1px;
}

.payment-method-option strong { font-size: 11px; }
.payment-method-option small { color: #9d8f8f; font-size: 9px; }

.payment-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.payment-brand-icon-wechat { background: #07c160; color: #fff; }
.payment-brand-icon-alipay { background: #1677ff; color: #fff; }

/* ========== 扫码等待弹窗 ========== */

.payment-qr-dialog {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, .72);
}

.payment-qr-panel {
  width: min(380px, 100%);
  padding: 22px 20px 18px;
  border: 1px solid #2b2b2b;
  border-radius: 16px;
  background: #0d0d0d;
  box-shadow: 0 24px 60px #000c;
  text-align: center;
}

.payment-qr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.payment-qr-head h2 {
  margin: 0;
  font-size: 15px;
  color: #f5f5f5;
}

.payment-qr-close {
  width: 28px;
  height: 28px;
  border: 1px solid #333;
  border-radius: 8px;
  background: transparent;
  color: #bbb;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.payment-qr-close:hover { color: #fff; border-color: #555; }

.payment-qr-kicker {
  margin: 14px 0 4px;
  color: #ff6662;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.payment-qr-name {
  margin: 0;
  color: #c9c9c9;
  font-size: 12px;
}

.payment-qr-amount {
  display: block;
  margin: 8px 0 14px;
  color: #fff;
  font-size: 24px;
}

.payment-qr-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 236px;
  height: 236px;
  margin: 0 auto;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.payment-qr-frame img {
  display: block;
  width: 236px;
  height: 236px;
}

.payment-qr-hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 12px;
  background: #fff;
  color: #666;
  font-size: 12px;
}

.payment-qr-status {
  margin: 14px 0 0;
  color: #b9b9b9;
  font-size: 11px;
}

.payment-qr-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.payment-qr-refresh {
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid #ff3b37;
  border-radius: 9px;
  background: #ff3b37;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.payment-qr-refresh:disabled { opacity: .6; cursor: progress; }

.payment-pending{position:fixed;z-index:45;right:16px;bottom:16px;box-sizing:border-box;width:min(400px,calc(100% - 32px));padding:18px;border:1px solid #594137;border-radius:14px;background:#191412;color:#fff;box-shadow:0 16px 48px #0009;font-size:14px}
.payment-pending p{margin:10px 0;line-height:1.6;color:#c9c1bd}
.payment-pending-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.payment-pending button,.payment-qr-cancel{min-height:44px;padding:10px 14px;border:1px solid #67514a;border-radius:9px;background:#29201d;color:#fff;cursor:pointer;font:inherit}
.payment-pending button:first-child{background:#ef4444;border-color:#ef4444}
.payment-pending button:disabled,.payment-qr-cancel:disabled{opacity:.6;cursor:progress}
.payment-pending a{color:#ddd;font-size:12px}

.payment-qr-orders {
  color: #9d8f8f;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 640px) {
  .payment-method-options { flex-wrap: wrap; }
  .payment-method-option { flex: 1 0 46%; min-width: 0; }
  .payment-qr-frame,
  .payment-qr-frame img { width: min(236px, 70vw); height: min(236px, 70vw); }
}
