* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@keyframes loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

body,
html {
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  background: #fff;
}
.content {
  margin-top: 1.4rem;
  padding: 0.4rem 0.2rem 0.2rem;
  max-width: 5rem;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 0.04rem 0.06rem rgba(0, 0, 0, 0.1),
    /* 主阴影 */ 0 0.01rem 0.93rem rgba(0, 0, 0, 0.06); /* 次阴影 */
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-top: 0.64rem;
  height: 0.88rem;
  width: 100%;
}
.backIcon {
  position: absolute;
  left: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.64rem;
  height: 0.64rem;
}

.navTop {
  display: flex;
  align-items: center;
  font-size: 0.3rem;
  color: #05aab6;
  line-height: 0.4rem;
}
.navTop img {
  width: 0.4rem;
  height: 0.4rem;
  margin-right: 0.01rem;
}

.navBottom {
  display: flex;
  align-items: center;
  font-size: 0.24rem;
  line-height: 0.3rem;
}

.orange {
  color: #f2751c;
  margin-left: 0.1rem;
}
.container {
  padding: 0 0.42rem;
  box-sizing: border-box;
}
.price {
  font-family: Inter;
  font-size: 0.64rem;
  font-weight: 500;
  margin: 0.3rem 0 0.57rem;
  line-height: 0.77rem;
  text-align: left;
  text-align: center;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
}

.title {
  display: flex;
  align-items: center;
  font-family: Inter;
  font-size: 0.25rem;
  font-weight: 500;
  line-height: 0.3rem;
  text-align: left;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
}

.title img {
  width: 0.53rem;
  height: 0.36rem;
  margin-right: 0.3rem;
}

.des {
  font-family: Inter;
  font-size: 0.24rem;
  font-weight: 700;
  line-height: 0.3rem;
  margin: 0.12rem 0 0.25rem;
  text-align: left;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
  color: #0066f5;
}

.done-per {
  width: 100%;
  height: 0.45rem;
  /* position: absolute; */
  text-align: center;
  line-height: 0.45rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: 0.18rem;
  top: 50%;
  left: 50%;
  margin-top: 0.2rem;
  background-color: #000000;
  border-radius: 0.04rem;
}

/* From Uiverse.io by Custyyyy */
.sumbit {
  position: fixed;
  bottom: 1.5rem;
  left: 0.4rem;
  right: 0.4rem;
  height: 0.8rem;
  align-items: center;
  background-color: #ffffff;
  border-radius: 1.63rem;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  border: none;
  display: inline-flex;
  font-family: system-ui, -apple-system, system-ui, "Helvetica Neue", Helvetica,
    Arial, sans-serif;
  font-size: 0.24rem;
  font-weight: 800;
  justify-content: center;
  text-decoration: none;
  transition: all 250ms;
  user-select: none;
  background-color: #000000;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: baseline;
}

.sumbit:hover,
.sumbit:focus {
  background-color: #000000;
}

.sumbit:hover {
  transform: translateY(-0.01rem);
}

.sumbit:active {
  opacity: 0.7;
  border-color: rgba(0, 0, 0, 0.15);

  transform: translateY(0);
}

.sumbit:disabled {
  cursor: not-allowed;
  background-color: #ced3d9;
}

#error-container {
  display: flex;
  font-size: 0.24rem;
  margin-top: 0.82rem;
  justify-content: center;
  align-items: center;
  color: #ff4931;
}

#error-container img {
  width: 0.3rem;
  height: 0.3rem;
  margin-right: 0.1rem;
}

.one-liner {
  display: flex;
  justify-content: space-between;
  margin-top: 2vw;
}

.input-container {
  position: relative;
  display: flex;
  height: 1rem;
}

.icon-container {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  width: 0.7rem;
  margin: 0 0.07rem;
}
.icon-container:last-child {
  right: 0;
}
.icon-container.payment-method {
  right: .1rem;
}

.input-container.card-number {
  margin-bottom: 0.2rem;
}
.input-container.expiry-date {
  margin-right: 0.2rem;
}
.card-number-frame,
.expiry-date-frame,
.cvv-frame {
  flex: 1 1 auto;
  padding-left: 0.8rem;
}

.icon-container img {
  width: 0.4rem;
}

.icon-container.payment-method {
  transform: translateY(-50%) rotateY(90deg);
  transition: opacity 0.15s ease-out;
  opacity: 0;
  top: 50%;
}

.icon-container.payment-method.show {
  opacity: 1;
  transition: all 0.4s ease-out;
  transform: translateY(-50%) rotateY(0deg);
}

.icon-container.payment-method img {
  width: 100%;
}

.frame--activated {
  opacity: 1;
  border: solid 0.01rem #cccccc;
  border-radius: 0.08rem;
  /* box-shadow: 0 1px 3px 0 rgba(19, 57, 94, 0.2); */
}

.frame--activated.frame--focus {
  border: solid 0.02rem #9eb1e9;
  border-radius: 0.08rem;
  /* box-shadow: 0 2px 5px 0 rgba(19, 57, 94, 0.15); */
}

.frame--activated.frame--invalid {
  border: solid 0.01rem #d96830;
  border-radius: 0.08rem;
  /* box-shadow: 0 2px 5px 0 rgba(217, 104, 48, 0.15); */
}

input:focus {
  border: solid 0.01rem #d4d4d4;
  outline: none;
}

input::-webkit-input-placeholder {
  color: #cccde2;
}

.expiry-date-frame,
.cvv-frame {
  width: 49%;
}

.mask {
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 1);
  position: absolute;
  backdrop-filter: blur(0.04rem);
  top: 0;
  left: 0;
}

.mask .mask-loading {
  width: 1rem;
  height: 1rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* .mask .mask-loading img {
  width: 100%;
  animation: loading 1s linear infinite;
} */

/* From Uiverse.io by abrahamcalsin */
.dot-spinner {
  --uib-size: 1rem;
  --uib-speed: 0.9s;
  --uib-color: #000000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: var(--uib-size);
  width: var(--uib-size);
}

.dot-spinner__dot {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  width: 100%;
}

.dot-spinner__dot::before {
  content: "";
  height: 20%;
  width: 20%;
  border-radius: 50%;
  background-color: var(--uib-color);
  transform: scale(0);
  opacity: 0.5;
  animation: pulse0112 calc(var(--uib-speed) * 1.111) ease-in-out infinite;
  box-shadow: 0 0 0.2rem rgba(18, 31, 53, 0.3);
}

.dot-spinner__dot:nth-child(2) {
  transform: rotate(45deg);
}

.dot-spinner__dot:nth-child(2)::before {
  animation-delay: calc(var(--uib-speed) * -0.875);
}

.dot-spinner__dot:nth-child(3) {
  transform: rotate(90deg);
}

.dot-spinner__dot:nth-child(3)::before {
  animation-delay: calc(var(--uib-speed) * -0.75);
}

.dot-spinner__dot:nth-child(4) {
  transform: rotate(135deg);
}

.dot-spinner__dot:nth-child(4)::before {
  animation-delay: calc(var(--uib-speed) * -0.625);
}

.dot-spinner__dot:nth-child(5) {
  transform: rotate(180deg);
}

.dot-spinner__dot:nth-child(5)::before {
  animation-delay: calc(var(--uib-speed) * -0.5);
}

.dot-spinner__dot:nth-child(6) {
  transform: rotate(225deg);
}

.dot-spinner__dot:nth-child(6)::before {
  animation-delay: calc(var(--uib-speed) * -0.375);
}

.dot-spinner__dot:nth-child(7) {
  transform: rotate(270deg);
}

.dot-spinner__dot:nth-child(7)::before {
  animation-delay: calc(var(--uib-speed) * -0.25);
}

.dot-spinner__dot:nth-child(8) {
  transform: rotate(315deg);
}

.dot-spinner__dot:nth-child(8)::before {
  animation-delay: calc(var(--uib-speed) * -0.125);
}

@keyframes pulse0112 {
  0%,
  100% {
    transform: scale(0);
    opacity: 0.5;
  }

  50% {
    transform: scale(1);
    opacity: 1;
  }
}
