.payment-method-screen,
.payment-success-screen {
  overflow: hidden;
  color: #333;
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

.payment-method-page,
.payment-success-page {
  position: relative;
  min-height: 100%;
}

.payment-method-page h1,
.payment-method-page p,
.payment-success-page h1,
.payment-success-page p {
  margin: 0;
}

.payment-method-page button,
.payment-success-page button {
  border: 0;
  color: inherit;
  font: inherit;
}

.payment-method-screen,
.payment-method-page {
  background: #f6f6f6;
}

.payment-method-header,
.payment-success-header {
  position: relative;
  z-index: 10;
}

.payment-method-header h1 {
  color: rgba(0, 0, 0, 0.9);
  font-size: 4.533cqw;
  font-weight: 500;
  line-height: 5.867cqw;
}

.payment-method-back img,
.payment-success-back img {
  display: block;
  width: 2.4cqw;
  height: 4.533cqw;
}

.payment-method-summary {
  position: relative;
  height: 37.867cqw;
  background: linear-gradient(267deg, #e9f2ef 1%, #f7eee9 98%);
  text-align: center;
}

.payment-method-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  padding-top: 5.867cqw;
  color: #333;
  font-weight: 500;
}

.payment-method-amount span {
  margin-right: 0.8cqw;
  font-size: 6.133cqw;
  line-height: 8cqw;
}

.payment-method-amount strong {
  font-size: 8cqw;
  font-weight: 500;
  line-height: 9.6cqw;
}

.payment-method-countdown {
  display: inline-flex;
  min-width: 33.867cqw;
  height: 6.133cqw;
  align-items: center;
  justify-content: center;
  margin-top: 2.4cqw;
  padding: 0 2.667cqw;
  border-radius: 3.067cqw;
  background: #fff;
  color: #4a4a4a;
  font-size: 3.2cqw;
  line-height: 4.267cqw;
}

.payment-method-options {
  position: absolute;
  z-index: 2;
  top: 56.267cqw;
  right: 2.667cqw;
  left: 2.667cqw;
  height: 31.467cqw;
  overflow: hidden;
  border-radius: 1.867cqw;
  background: #fff;
}

.payment-method-option {
  position: relative;
  display: grid;
  width: 100%;
  height: 15.733cqw;
  grid-template-columns: 6.933cqw minmax(0, 1fr) 5.333cqw;
  gap: 2.133cqw;
  align-items: center;
  padding: 0 2.667cqw;
  background: #fff;
  text-align: left;
}

.payment-method-option + .payment-method-option::before {
  position: absolute;
  top: 0;
  right: 2.667cqw;
  left: 2.667cqw;
  border-top: 0.267cqw dashed #e6e6e6;
  content: "";
}

.payment-method-option:focus-visible {
  outline: 0.533cqw solid rgba(32, 74, 70, 0.24);
  outline-offset: -0.8cqw;
}

.payment-method-option:active {
  background: #f5f8f7;
}

.payment-method-brand {
  display: block;
  width: 6.933cqw;
  height: 6.933cqw;
}

.payment-method-option > span,
.payment-method-option strong,
.payment-method-option small {
  display: block;
  min-width: 0;
}

.payment-method-option strong {
  color: #010101;
  font-size: 3.733cqw;
  font-weight: 400;
  line-height: 5.067cqw;
}

.payment-method-option small {
  color: #777;
  font-size: 2.667cqw;
  line-height: 3.733cqw;
}

.payment-method-radio {
  display: block;
  width: 5.333cqw;
  height: 5.333cqw;
}

.payment-method-footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  height: 21.867cqw;
  padding: 3.733cqw 4cqw 0;
  background: #fff;
}

.payment-method-footer button {
  width: 100%;
  height: 10.933cqw;
  padding: 0;
  border-radius: 5.467cqw;
  background: #204a46;
  color: #fff;
  font-size: 4.267cqw;
  font-weight: 500;
}

.payment-method-footer button:focus-visible,
.payment-success-content button:focus-visible {
  outline: 0.533cqw solid rgba(32, 74, 70, 0.3);
  outline-offset: 0.8cqw;
}

.payment-method-footer button:active {
  background: #153d3f;
  transform: translateY(0.267cqw);
}

.payment-method-footer::after,
.payment-success-page::after {
  position: absolute;
  bottom: 2.133cqw;
  left: 50%;
  width: 35.733cqw;
  height: 1.333cqw;
  border-radius: 1.333cqw;
  background: #000;
  content: "";
  transform: translateX(-50%);
}

.payment-success-screen,
.payment-success-page {
  background: linear-gradient(180deg, #fff 0%, #f1f5f3 100%);
}

.payment-success-header.app-detail-header {
  border-bottom: 0;
  background: transparent;
}

.payment-success-content {
  display: flex;
  align-items: center;
  padding: 19.467cqw 5.867cqw 0;
  flex-direction: column;
  text-align: center;
}

.payment-success-content > img {
  display: block;
  width: 17.333cqw;
  height: 17.333cqw;
}

.payment-success-content h1 {
  margin-top: 6.667cqw;
  color: #2f2f2f;
  font-size: 4.8cqw;
  font-weight: 500;
  line-height: 6.933cqw;
}

.payment-success-content p {
  margin-top: 3.2cqw;
  color: #77797e;
  font-size: 3.733cqw;
  line-height: 5.333cqw;
}

.payment-success-content button {
  width: 100%;
  height: 10.4cqw;
  margin-top: 6.667cqw;
  padding: 0;
  border: 0.267cqw solid #323437;
  border-radius: 5.2cqw;
  background: transparent;
  color: #323437;
  font-size: 3.733cqw;
  line-height: 5.333cqw;
}

.payment-success-content button:active {
  border-color: #204a46;
  background: rgba(32, 74, 70, 0.06);
  color: #204a46;
}

.phone[data-subpage="market-payment"] .bottom-nav,
.phone[data-subpage="market-payment-success"] .bottom-nav {
  display: none;
}

.phone[data-subpage="market-payment"] .statusbar,
.phone[data-subpage="market-payment-success"] .statusbar {
  height: 11.733cqw;
  padding: 3.2cqw 3.911cqw 0 6.4cqw;
  align-items: flex-start;
  background: transparent;
  box-shadow: none;
  color: #111;
  font-size: 4cqw;
  line-height: 5.333cqw;
}

.phone[data-subpage="market-payment"] .statusbar .island,
.phone[data-subpage="market-payment-success"] .statusbar .island {
  display: none;
}

html.view-h5 .payment-method-footer {
  height: calc(21.867cqw + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
