/* Alipay form and uploaded thumbnail only; shared bank/My styles are retained. */
.my-page .alipay-payout-panel {
  min-width: 0;
  padding-bottom: 116px;
}
.my-page .alipay-intro {
  font-size: 12px;
  line-height: 1.8;
  color: #97a8c3;
  margin: 0 2px 15px;
}
.my-page .alipay-form-card {
  min-width: 0;
  border: 1px solid #e1e9fa;
  border-radius: 16px;
  background: #fff;
  padding: 23px 19px 5px;
}
.my-page .alipay-form-card label {
  display: block;
  color: #526b91;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  margin: 0 0 10px;
}
.my-page .alipay-form-card input:not([type='file']) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 51px;
  border: 1px solid #dfe7f7;
  border-radius: 9px;
  background: #f8faff;
  padding: 12px 13px;
  color: #49658f;
  font-size: 15px;
  line-height: 1.6;
  outline: none;
}
.my-page .alipay-form-card input::placeholder {
  color: #a7b5cc;
  font-size: 14px;
}
.my-page .alipay-form-card input:not([type='file']):focus {
  border-color: #8eacf0;
  box-shadow: 0 0 0 3px #edf3ff;
}
.my-page .alipay-form-card input:not([type='file']) + label {
  margin-top: 22px;
}
.my-page .alipay-field-hint {
  font-size: 11px;
  line-height: 1.8;
  color: #a1aec4;
  margin-top: 8px;
}
.my-page .alipay-field-hint + label {
  margin-top: 22px;
}
.my-page .alipay-form-card #alipayPhone {
  font-family: 'Segoe UI', sans-serif;
  font-size: 16px;
  letter-spacing: 0.2px;
  font-variant-numeric: tabular-nums;
}
.my-page .alipay-qr-upload {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 146px;
  padding: 8px;
  border: 1px dashed #ceddf3;
  border-radius: 12px;
  background: linear-gradient(135deg, #fafcff, #f4f8ff);
  overflow: hidden;
}
.my-page .alipay-qr-upload:focus-within {
  border-color: #8eacf0;
  box-shadow: 0 0 0 3px #edf3ff;
}
.my-page .alipay-qr-upload > input[type='file'] {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.my-page .alipay-qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 12px;
  gap: 4px;
  min-width: 0;
  pointer-events: none;
}
.my-page .alipay-upload-symbol {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #edf3ff;
  color: #95afd7;
  margin-bottom: 6px;
}
.my-page .alipay-upload-symbol svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.5;
}
.my-page .alipay-qr-placeholder > strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
  color: #7f9dc7;
}
.my-page .alipay-qr-placeholder > span:last-child {
  font-size: 10px;
  line-height: 1.8;
  color: #adbdd4;
}
.my-page .alipay-qr-preview {
  display: block;
  max-width: 100%;
  width: auto;
  height: 130px;
  max-height: 130px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  border-radius: 7px;
  background: #fff;
  padding: 3px;
  pointer-events: none;
}
.my-page .alipay-qr-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  min-width: 0;
  min-height: 35px;
  margin-top: 3px;
}
.my-page .alipay-qr-status-row > span {
  min-width: 0;
  color: #9cacc6;
  font-size: 10px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.my-page .alipay-qr-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  min-height: 44px;
  padding: 8px 2px 8px 9px;
  border-radius: 7px;
  font-size: 11px;
  color: #8fa6ca;
  line-height: 1.7;
}
.my-page .alipay-qr-remove svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.4;
}
.my-page .alipay-qr-remove:hover {
  background: #f2f6fd;
}
.my-page .alipay-error {
  min-height: 27px;
  padding: 5px 1px 3px;
  color: #c86b78;
  font-size: 11px;
  line-height: 1.8;
}
.my-page .alipay-bind-actions {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  box-sizing: border-box;
  border-top: 1px solid #e1e9f8;
  padding: 14px 20px max(13px, env(safe-area-inset-bottom));
  background: #ffffffed;
  backdrop-filter: blur(12px);
  box-shadow: 0 -5px 25px #24437b05;
}
.my-page .alipay-bind-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 12px 15px;
  margin: 0;
  border-radius: 11px;
  background: #2858ed;
  color: #fff;
  box-shadow: 0 4px 12px #2858ed18;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}
.my-page .alipay-bind-submit:hover {
  background: #1b48d5;
}
.my-page .alipay-bind-submit:disabled {
  background: #e9effa;
  color: #98a9c7;
  opacity: 1;
  cursor: default;
  box-shadow: none;
}
.my-page .alipay-service-note {
  font-size: 10px;
  line-height: 1.7;
  color: #aab7cb;
  text-align: center;
  margin: 9px 3px 0;
}

/* Native bottom sheet in the shared dialogs region. */
.payout-method-sheet {
  position: fixed;
  inset: auto 0 0;
  margin: 0 auto;
  width: 480px;
  max-width: 100%;
  max-height: min(72dvh, 540px);
  border: 1px solid #dfe8f8;
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  padding: 14px 20px max(20px, env(safe-area-inset-bottom));
  background: #fff;
  color: #29456d;
  box-shadow: 0 -15px 70px #19385e25;
  overflow-y: auto;
}
.payout-method-sheet::backdrop {
  background: #12244370;
  backdrop-filter: blur(5px);
}
.payout-method-sheet .payout-sheet-handle {
  display: block;
  width: 36px;
  height: 4px;
  border-radius: 4px;
  background: #dce5f3;
  margin: 0 auto 12px;
}
.payout-method-sheet .payout-sheet-close {
  display: grid;
  place-items: center;
  position: absolute;
  right: 12px;
  top: 17px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 11px;
  color: #9bacc7;
}
.payout-method-sheet .payout-sheet-close svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.7;
}
.payout-method-sheet .payout-sheet-close:hover {
  background: #f3f7fe;
}
.payout-method-sheet .payout-sheet-heading {
  padding: 3px 43px 0 2px;
  margin-bottom: 20px;
  min-width: 0;
}
.payout-method-sheet .payout-sheet-heading h2 {
  margin: 0;
  color: #29456d;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.6;
}
.payout-method-sheet .payout-type-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
}
.payout-method-sheet .payout-type-choice {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-width: 0;
  min-height: 75px;
  padding: 14px 15px;
  border: 1px solid #e3eafa;
  border-radius: 14px;
  background: #f8fbff;
  color: #7894bd;
  text-align: left;
}
.payout-method-sheet .payout-type-choice:hover {
  background: #f0f6ff;
  border-color: #d7e5fd;
}
.payout-method-sheet .payout-type-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 11px;
  background: #eaf1ff;
  border: 1px solid #e0eafd;
  color: #8eabd5;
}
.payout-method-sheet .payout-type-icon svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.45;
}
.payout-method-sheet .payout-type-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.payout-method-sheet .payout-type-copy > strong {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: #5f7fae;
  overflow-wrap: anywhere;
}
.payout-method-sheet .payout-type-copy > small {
  font-size: 11px;
  line-height: 1.8;
  color: #9db0cd;
  overflow-wrap: anywhere;
}
.payout-method-sheet .payout-type-chevron {
  width: 16px;
  height: 16px;
  stroke-width: 1.7;
  flex-shrink: 0;
  color: #a2b5d3;
}
@media (max-width: 360px) {
  .my-page .alipay-intro {
    font-size: 11px;
  }
  .my-page .alipay-form-card {
    padding-left: 16px;
    padding-right: 16px;
  }
  .my-page .alipay-form-card label {
    font-size: 13px;
  }
  .my-page .alipay-form-card input:not([type='file']) {
    font-size: 14px;
    padding-left: 11px;
  }
  .my-page .alipay-form-card input::placeholder {
    font-size: 13px;
  }
  .my-page .alipay-field-hint {
    font-size: 10px;
  }
  .my-page .alipay-bind-actions {
    padding-left: 15px;
    padding-right: 15px;
  }
  .my-page .alipay-service-note {
    font-size: 9px;
  }
  .payout-method-sheet {
    padding-left: 16px;
    padding-right: 16px;
    border-radius: 20px 20px 0 0;
  }
  .payout-method-sheet .payout-sheet-heading h2 {
    font-size: 18px;
  }
  .payout-method-sheet .payout-type-choice {
    padding: 13px 12px;
    gap: 9px;
  }
  .payout-method-sheet .payout-type-copy > strong {
    font-size: 14px;
  }
  .payout-method-sheet .payout-type-copy > small {
    font-size: 10px;
  }
}

/* Added method cards share the existing bank card hierarchy and palette. */
.my-page .payout-alipay-body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  min-width: 0;
}
.my-page .payout-alipay-details {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 10px;
  margin: 0;
}
.my-page .payout-alipay-details > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.my-page .payout-alipay-details dt {
  color: #9caed0;
  font-size: 10px;
  line-height: 1.5;
}
.my-page .payout-alipay-details dd {
  margin: 0;
  color: #6382b3;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.my-page .payout-alipay-symbol,
.withdraw-bank-symbol.withdraw-alipay-symbol {
  font-size: 18px;
  font-weight: 600;
  font-family: 'Microsoft YaHei', sans-serif;
  color: #5a85cb;
}
.my-page .payout-alipay-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  width: 91px;
  min-height: 112px;
  border: 1px solid #dce7fa;
  border-radius: 11px;
  background: #ffffffb3;
  padding: 8px 7px;
  color: #839ec7;
}
.my-page .payout-alipay-qr img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
}
.my-page .payout-alipay-qr > span {
  font-size: 10px;
  line-height: 1.7;
}
.my-page .payout-alipay-qr:hover {
  background: #fff;
}
.payout-qr-dialog {
  width: 390px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 48px);
  border: 1px solid #dfe8f8;
  border-radius: 20px;
  background: #fff;
  padding: 25px 23px 22px;
  overflow: auto;
}
.payout-qr-dialog::backdrop {
  background: #12244370;
  backdrop-filter: blur(5px);
}
.payout-qr-dialog .payout-qr-close {
  display: grid;
  place-items: center;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: 10px;
  color: #9bacc7;
}
.payout-qr-dialog .payout-qr-close svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.7;
}
.payout-qr-dialog .payout-qr-close:hover {
  background: #f3f7fe;
}
.payout-qr-dialog h2 {
  color: #29456d;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.6;
  margin: 0 38px 20px 0;
}
.payout-qr-dialog #payoutQrImage {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 55dvh;
  object-fit: contain;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
}
.payout-qr-dialog > p {
  margin-top: 18px;
  color: #9dadc7;
  font-size: 10px;
  line-height: 1.8;
  text-align: center;
}
.my-page .alipay-qr-placeholder[hidden],
.my-page .alipay-qr-preview[hidden],
.my-page .alipay-qr-remove[hidden] {
  display: none !important;
}
@media (max-width: 360px) {
  .my-page .payout-alipay-body {
    gap: 10px;
  }
  .my-page .payout-alipay-details dd {
    font-size: 12px;
  }
  .my-page .payout-alipay-qr {
    width: 83px;
    padding-left: 5px;
    padding-right: 5px;
  }
  .my-page .payout-alipay-qr img {
    width: 67px;
    height: 67px;
  }
}
