.checkout-scan-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.checkout-scan-channels[hidden] {
  display: none;
}
.checkout-scan-channel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border: 1.5px solid #e2e8f4;
  border-radius: 10px;
  background: #fff;
  color: #3d4f66;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.checkout-scan-channel img,
.recharge-modal__channel img,
.wallet-hero__channel img,
.pay-channel-picker__label img {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: block;
}
.pay-channel-picker__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.checkout-scan-channel:hover {
  border-color: #b0c5fa;
  background: #f7faff;
}
.checkout-scan-channel.is-active {
  border-color: #2563eb;
  background: #eff4ff;
  color: #1d4ed8;
}

.recharge-modal__channels,
.wallet-hero__channels {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.recharge-modal__channels-label,
.wallet-hero__channels-label {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
}
.recharge-modal__channel,
.wallet-hero__channel {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid #dbe3f0;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.recharge-modal__channel.is-active,
.wallet-hero__channel.is-active {
  border-color: #2563eb;
  background: #eff4ff;
  color: #1d4ed8;
}

.xs-pay-sheet-open {
  overflow: hidden;
}

.xs-pay-sheet {
  --ps-bg: var(--panel-strong, #f6f7fb);
  --ps-ink: var(--text, #121826);
  --ps-muted: var(--muted, #5c6780);
  --ps-line: var(--line, rgba(18, 24, 38, 0.12));
  --ps-alipay: #1677ff;
  --ps-wechat: #07c160;
  position: fixed;
  inset: 0;
  z-index: 80;
}

.xs-pay-sheet[hidden] {
  display: none;
}

.xs-pay-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 20, 0.58);
}

.xs-pay-sheet__panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(440px, calc(100vw - 28px));
  transform: translate(-50%, -50%);
  background: var(--ps-bg);
  color: var(--ps-ink);
  border: 1px solid var(--ps-line);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  padding: 22px 22px 18px;
}

body.storefront--account .xs-pay-sheet,
body.storefront--account .xs-pay-sheet__panel,
body.storefront--checkout .xs-pay-sheet,
body.storefront--checkout .xs-pay-sheet__panel {
  --ps-bg: #f6f7fb;
  --ps-ink: #121826;
  --ps-muted: #5c6780;
  --ps-line: rgba(18, 24, 38, 0.12);
}

.xs-pay-sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.xs-pay-sheet__kicker {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ps-muted);
}

.xs-pay-sheet__title {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 750;
}

.xs-pay-sheet__sub {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ps-muted);
}

.xs-pay-sheet__close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--ps-line);
  background: transparent;
  color: var(--ps-ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.xs-pay-sheet__close:hover,
.xs-pay-sheet__close:focus-visible {
  border-color: currentColor;
}

.xs-pay-sheet__amount {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 18px 0 14px;
  padding: 10px 0;
  border-top: 1px solid var(--ps-line);
  border-bottom: 1px solid var(--ps-line);
  font-size: 13px;
  color: var(--ps-muted);
}

.xs-pay-sheet__amount strong {
  font-size: 28px;
  font-weight: 800;
  color: var(--ps-ink);
  font-variant-numeric: tabular-nums;
}

.xs-pay-sheet__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.xs-pay-sheet__channel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 112px;
  padding: 14px 14px 12px;
  border: 1px solid var(--ps-line);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.xs-pay-sheet__channel:hover,
.xs-pay-sheet__channel:focus-visible {
  border-color: currentColor;
}

.xs-pay-sheet__channel--alipay:hover,
.xs-pay-sheet__channel--alipay:focus-visible {
  border-color: var(--ps-alipay);
}

.xs-pay-sheet__channel--wechat:hover,
.xs-pay-sheet__channel--wechat:focus-visible {
  border-color: var(--ps-wechat);
}

.xs-pay-sheet__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #f4f7ff;
}

.xs-pay-sheet__channel--alipay .xs-pay-sheet__mark {
  background: var(--ps-alipay);
}

.xs-pay-sheet__channel--wechat .xs-pay-sheet__mark {
  background: var(--ps-wechat);
}

.xs-pay-sheet__channel-name {
  font-size: 16px;
  font-weight: 700;
}

.xs-pay-sheet__channel-hint {
  font-size: 12px;
  color: var(--ps-muted);
}

.xs-pay-sheet__wallet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid var(--ps-line);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.xs-pay-sheet__wallet:hover,
.xs-pay-sheet__wallet:focus-visible {
  border-color: currentColor;
}

.xs-pay-sheet__wallet[hidden] {
  display: none;
}

.xs-pay-sheet__wallet:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.xs-pay-sheet__wallet-name {
  font-size: 14px;
  font-weight: 650;
}

.xs-pay-sheet__wallet-meta {
  font-size: 12px;
  color: var(--ps-muted);
}

.xs-pay-sheet__foot {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ps-muted);
}

@media (max-width: 640px) {
  .xs-pay-sheet__panel {
    left: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    transform: none;
  }

  .xs-pay-sheet__grid {
    grid-template-columns: 1fr;
  }

  .xs-pay-sheet__channel {
    min-height: 84px;
  }
}
