/* Product QR target only. The eight frozen V4.9 styles remain unchanged. */
.s2-payment-stage img.b02-payment-qr {
  display: block;
  width: 176px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  margin: 16px auto;
  background: white;
}
.pc09-payment-display {
  box-sizing: border-box;
  container-type: inline-size;
  width: min(100%, 360px);
  aspect-ratio: 1;
  margin: 18px auto;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ead9f5;
  border-radius: 4px;
  color: #584164;
}
.pc09-payment-heading { padding: 16px 12px 14px; }
.pc09-payment-heading h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
}
.pc09-payment-heading h4 img { width: 32px; height: 32px; object-fit: contain; }
.pc09-payment-wechat .pc09-payment-heading h4 { color: #333; font-weight: 400; }
.pc09-payment-alipay .pc09-payment-heading h4 { font-weight: 700; }
.pc09-payment-heading p { margin: 12px 0 0; font-size: 13px; line-height: 20px; color: #8b7399; }
.pc09-payment-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: min-content;
  padding: 12px;
  border-top: 1px solid #ead9f5;
  background: #f7f0fc;
}
.pc09-payment-alipay .pc09-payment-body { gap: 10px; }
.pc09-payment-code { display: block; flex: none; width: min(176px, 46cqw); aspect-ratio: 1; }
.pc09-payment-alipay .pc09-payment-code { width: min(176px, max(100px, calc(100cqw - 194px))); }
.pc09-payment-display img.b02-payment-qr { display: block; margin: 0; width: 100%; height: auto; aspect-ratio: 1; max-width: none; max-height: none; object-fit: contain; }
.pc09-open-alipay {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 12px;
  background: #1677ff;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.pc09-open-alipay:focus-visible, .pc09-payment-code:focus-visible { outline: 3px solid #1677ff; outline-offset: 3px; }
.b02-methods:has(> button:only-child) { grid-template-columns: 1fr; }
.pc09-payment-modal { width: min(380px, calc(100vw - 28px)); padding: 10px; border: 0; border-radius: 16px; overflow: visible; }
.pc09-payment-modal .pc09-payment-display { margin: 0; width: 100%; }
.pc09-payment-modal .b02-close { position: absolute; top: -12px; right: -12px; z-index: 1; }
@media (max-width: 767px) {
  .pc09-payment-heading { padding: 12px 10px; }
  .pc09-payment-heading h4 { font-size: 22px; }
  .pc09-payment-heading p { margin-top: 8px; }
  .pc09-payment-body { padding: 12px; }
  .pc09-payment-alipay .pc09-payment-body { gap: 10px; }
}

/* Remove the complete mobile keyboard-hint row, including its reserved height. */
@media (max-width: 767px) {
  #eval-view.b02-eval .composer-bottom { display: none !important; min-height: 0; height: 0; padding: 0; margin: 0; }
  /* Mobile keeps the same geometry without continuously repainting decoration. */
  .site-header, dialog::backdrop, #v46-modal-scrim, #v46-review-scrim {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .flow-button, .flow-button::after, .mini-orbit, .rail-final, .typing-placeholder::after {
    animation: none !important;
  }
  .flow-button::after { display: none; }
}

/* The approved composer gate replaces input and keeps the draft in its DOM. */
.b02-eval #chat-form[hidden] { display: none !important; }
.b02-eval .b02-input-lock:not([hidden]) { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; }
.b02-eval .b02-input-lock:not([hidden]) > .btn { margin: 0; }
.b02-eval .b02-input-lock:not([hidden]) > .v47-lock-body { grid-column: 1 / -1; margin: 0; }

/* Explicit new deposit stays outside the square payment card. */
.pc09-payment-next { padding: 12px 4px 2px; text-align: center; }
.pc09-payment-next button { min-height: 36px; }
.pc09-payment-unavailable { margin: 0; text-align: center; line-height: 1.6; }
