.buy-dialog {
  width: 470px;
  height: 260px;
}

.amount {
  font-size: 16px;
  color: rgba(255, 83, 83, 1);
}

.paymentIcon {
  width: 100px;
  height: 28px;

  &.wechat {
    content: var(--wechat-icon);
  }

  &.alipay {
    content: var(--alipay-icon);
  }

  &.paypal {
    content: var(--paypal-icon);
  }
}

form {
  margin: 3rem;
  height: 80%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 0px 50px;

  .formField {
    display: flex;
    align-items: center;
  }

  .payment-methods {
    display: flex;
  }

  label {
    display: flex;
    align-items: center;
  }
}

.payField {
  display: flex;
  align-items: center;
  margin-bottom: 10px;

  >span:nth-child(1) {
    margin-right: 15px;
  }
}

.wait-pay {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;

  .icon {
    width: 3rem;
  }

  .formField {
    display: flex;
    align-items: center;

    .amount {
      font-size: 16px;
      color: rgba(255, 83, 83, 1);

    }
  }


  .wait {
    content: url('/assets/images/spinner.svg');
    animation: loop 2s infinite linear;
  }

  @keyframes loop {
    from {
      transform: rotate(0);
    }

    to {
      transform: rotate(360deg);
    }
  }
}

.pay-success {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  align-items: center;

  .success-title {
    display: flex;
    align-items: center;

    &>* {
      margin: 1rem 0.5rem;
    }
  }

  .order-info {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-gap: 5px;

    span:nth-child(odd) {
      color: gray;

      &:after {
        content: '：';
      }
    }

    .order-number {
      user-select: all;
    }
  }
}

.failed {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;

  div {
    width: 240px;
  }

  .failed_tip {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 40px;

    i {
      font-style: normal;
      width: 25px;
      height: 25px;
      display: inline-block;
      text-align: center;
      line-height: 25px;
      border-radius: 50%;
      background: url('assets/images/warning.svg') no-repeat 100% 100%;
      background-position: center;
      margin-right: 10px;
    }

    span {
      line-height: 25px;
      font-size: 14px;


    }

  }

  .failed_button {
    margin-top: 60px;
    width: 100%;
    display: flex;
    justify-content: space-between;

    button {
      padding: 5px 20px;
      box-shadow: 0px 2px 0px 0px rgba(255, 255, 255, 0.15);
      border-radius: 4px;
      cursor: pointer;
      width: 100px;
      height: 30px;
    }

    .button_cancle {
      background: rgba(230, 230, 230, 1);
      box-shadow: 0px 2px 0px 0px rgba(255, 255, 255, 0.15);
      border-radius: 4px;
      color: rgba(48, 48, 48, 1);
      line-height: 20px;
      font-size: 14px;
      font-family: SourceHanSansSC-Normal, SourceHanSansSC;
      font-weight: 400;
    }

    .button_again {
      background: linear-gradient(180deg, rgba(65, 180, 250, 1) 0%, rgba(0, 157, 255, 1) 100%);
      box-shadow: 0px 2px 1px 0px rgba(0, 0, 0, 0.05), 0px 2px 0px 0px rgba(255, 255, 255, 0.15);
      border-radius: 4px;

      color: rgba(255, 255, 255, 1);
      line-height: 20px;
      font-size: 14px;
      font-family: SourceHanSansSC-Normal, SourceHanSansSC;
      font-weight: 400;
    }
  }
}

.qrcodeBorder {

  border: 1px solid #cccccc;
  padding: 5px;
  position: relative;

  >div {
    width: 160px;
    height: 160px;
    position: relative;

    .weChatSmLogo {

      content: var(--wechatpay-icon);
    }

    .qrlogo {
      width: 20px;
      height: 20px;

      background: #fff;
      position: absolute;
      overflow: hidden;
      border: 1px solid #ccc;
      border-radius: 5px;
      top: 70px;
      left: 70px;
    }

    img {
      width: 100%;
      height: 100%;
    }
  }

  span {
    position: absolute;
    color: rgba(32, 32, 32, 1);
    bottom: 5px;
    left: 50px;
    font-size: 1rem;
  }

  text-align: center;
}

.network {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;


  img {
    width: 3rem;
    display: block;
    margin: 0 auto;
  }

  .timeoutTip {
    padding: 10px;
    max-width: 400px;
  }

}
