/* Payment CTA component styles.  The recharge page no longer relies on the
   legacy mobile-recharge-footer/mobile-recharge-submit selectors. */
.desktop-payment-button-host {
  position: absolute;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.2cqw;
  height: calc(27.7333cqw + env(safe-area-inset-bottom, 0px));
  padding: 3.2cqw 4.2667cqw calc(3.2cqw + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(transparent, #1d1d29 18%);
}

.desktop-payment-button {
  position: relative;
  display: block;
  width: 100%;
  height: 13.3333cqw;
  flex: 0 0 13.3333cqw;
  padding: 0;
  overflow: visible;
  isolation: isolate;
  border: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
  color: #151217;
}

.desktop-payment-button:focus,
.desktop-payment-button:focus-visible {
  outline: 0;
}

.desktop-payment-button:disabled {
  cursor: not-allowed;
  filter: grayscale(.65);
  opacity: .62;
}

.desktop-payment-button::before,
.desktop-payment-button::after {
  content: "";
  position: absolute;
  top: 0;
  height: 13.3333cqw;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.desktop-payment-button::before {
  z-index: 1;
  left: 0;
  width: 70.8455%;
  background-image: url("/static/images/mobile-recharge-button-left.svg");
}

.desktop-payment-button::after {
  z-index: 0;
  right: 0;
  width: 36.4431%;
  background-image: url("/static/images/mobile-recharge-button-right.svg");
}

.desktop-payment-button > span,
.desktop-payment-button > strong,
.desktop-payment-button > em {
  position: absolute;
}

.desktop-payment-button > span {
  z-index: 2;
  top: 2.1333cqw;
  left: 6.9971%;
  display: flex;
  align-items: flex-end;
  color: #ff008a;
  font-size: 4.2667cqw;
  line-height: 5.8667cqw;
  font-weight: 600;
  white-space: nowrap;
}

.desktop-payment-button > span b {
  font-size: 7.4667cqw;
  line-height: 8.5333cqw;
  font-weight: 600;
}

.desktop-payment-button > strong {
  z-index: 2;
  top: 4.8cqw;
  left: 74.344%;
  font-family: Rubik, "PingFang SC", sans-serif;
  font-size: 4.2667cqw;
  line-height: 4.2667cqw;
  font-weight: 800;
  white-space: nowrap;
}

.desktop-payment-button > em {
  z-index: 3;
  top: -3.2cqw;
  left: 30.3207%;
  display: flex;
  width: 28.5714%;
  min-width: 0;
  height: 5.3333cqw;
  padding: .8cqw 2.1333cqw;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border: 0;
  border-top: 1px solid #fff;
  border-right: 1px solid #fff;
  border-left: 1px solid #fff;
  border-radius: 2.6667cqw 9.6cqw 9.6cqw 0;
  background: #ff008a;
  box-shadow: 0 .8cqw .92cqw rgba(247,102,89,.13);
  color: #fff;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 2.6667cqw;
  line-height: 3.7333cqw;
  font-weight: 500;
  font-style: normal;
  letter-spacing: -.0667cqw;
  white-space: nowrap;
}

@media (min-width: 769px) {
  .desktop-payment-button-host {
    top: 850px;
    right: auto;
    bottom: auto;
    left: 50%;
    width: 1104px;
    height: 146px;
    gap: 12px;
    padding: 0;
    border: 0;
    outline: 0;
    box-shadow: none;
    transform: translateX(-50%);
    background: transparent;
  }

  .desktop-payment-button-host > .desktop-payment-button {
    width: 1102px;
    height: 116px;
    flex: 0 0 116px;
    align-self: center;
    margin: 0;
  }

  .desktop-payment-button::before,
  .desktop-payment-button::after {
    height: 116px;
  }

  .desktop-payment-button::before {
    left: 0;
    width: 1102px;
    background: url("/static/images/desktop-member-recharge-submit-base-figma.png") center / 1174px 393px no-repeat;
    opacity: .5;
  }

  .desktop-payment-button::after {
    top: 40px;
    right: 30px;
    left: auto;
    width: 193px;
    height: 51px;
    border: 1px solid #fff;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .48) 0%, transparent 20%, transparent 84%, rgba(255, 255, 255, .18) 100%), linear-gradient(100deg, #ff4bb2 0%, #f82c9c 38%, #d30981 100%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .75), 0 0 4px 1px rgba(255, 255, 255, .55), 0 0 11px 3px rgba(255, 30, 162, .8), inset 0 2px 3px rgba(255, 255, 255, .82), inset 0 -3px 5px rgba(255, 0, 145, .35);
  }

  .desktop-payment-button > span {
    top: 38px;
    left: 60px;
    color: #ff0a8f;
    font-size: 24px;
    line-height: 34px;
  }

  .desktop-payment-button > span b {
    font-size: 44px;
    line-height: 49px;
  }

  .desktop-payment-button > strong {
    top: 40px;
    right: 30px;
    left: auto;
    display: flex;
    width: 193px;
    height: 51px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
    color: #fff;
    font-family: Rubik, "PingFang SC", sans-serif;
    font-size: 19px;
    font-weight: 800;
    line-height: 19px;
    text-align: center;
    text-shadow: 0 0 4px rgba(255,255,255,.45);
  }

  .desktop-payment-button > strong::after {
    position: static;
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    border-radius: 50%;
    background: url("/static/images/desktop-recharge-coin-figma/submit-arrow-figma.png") center / 100% 100% no-repeat;
    color: transparent;
    content: "";
    font-size: 0;
  }

  .desktop-payment-button > em {
    top: 49px;
    left: 173px;
    width: 137px;
    height: 27px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent url("/static/images/desktop-member-recharge-submit-label-figma.png") no-repeat -313px -105px / 766px 255px;
    box-shadow: none;
    color: transparent;
    font-size: 0;
    line-height: 0;
  }

  .desktop-payment-button-host > p {
    margin: 0;
    color: #858690;
    font-size: 12px;
    line-height: 18px;
  }

  .desktop-payment-button-host > p a {
    color: #ff3f9e;
    text-decoration: none;
  }

}

@media (max-width: 768px) {
  .desktop-payment-button-host {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(115px + env(safe-area-inset-bottom, 0px));
    gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    border-radius: 0 0 32px 32px;
    background: #171717;
  }

  .desktop-payment-button-host > .desktop-payment-button {
    width: min(398px, calc(100vw - 32px));
    max-width: none;
    height: 51px;
    flex: 0 0 51px;
  }

  .desktop-payment-button::before {
    width: 100%;
    height: 51px;
    background: url("/static/images/mobile-recharge-member-submit-20260919.png") center / 100% 100% no-repeat;
  }

  .desktop-payment-button::after {
    z-index: 1;
    top: 4px;
    right: 6px;
    width: 134px;
    height: 43px;
    background: url("/static/images/mobile-recharge-member-submit-right-20260921.png") -191.43px -17.85px / 337.12px 72.92px no-repeat;
  }

  .desktop-payment-button > span {
    top: 13px;
    left: 28px;
    width: max-content;
    height: 25px;
    color: #ffe4ca;
    font-size: 12px;
    line-height: 17px;
  }

  .desktop-payment-button > span b {
    font-size: 30px;
    line-height: 29px;
    font-style: italic;
  }

  .desktop-payment-button > strong {
    top: 15px;
    right: 44px;
    left: auto;
    width: 71px;
    height: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    line-height: 16px;
    text-align: center;
  }

  .desktop-payment-button > strong::after {
    position: absolute;
    display: block;
    top: 0;
    right: -27px;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: url("/static/images/mobile-recharge-member-submit-arrow-20260919.png") center / 100% 100% no-repeat;
    content: "";
  }

  .desktop-payment-button > em {
    top: -10px;
    left: 35.57%;
    width: 105.9px;
    height: 19.12px;
    padding: 0;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(180deg, #ff56ab 0%, #ff2388 100%);
    box-shadow: 0 0 6px rgba(255,60,160,.75);
    font-size: 10px;
    line-height: 19px;
    text-align: center;
  }

  .desktop-payment-button-host > p {
    margin: 0;
    color: #b3b3b3;
    font-size: 12px;
    line-height: 18px;
  }

  .desktop-payment-button-host > p a { color: #ff547b; }
}
