main {
  min-height: 100vh;
  padding: 94px 24px 24px;
  background: #f5f5f6;
}

/* Payment */

.section-payment {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: auto;
}

.payment {
  max-width: 520px;
  text-align: center;
  margin: auto;
}

.payment-details {
  max-width: 100%;
  background: #fff;
  margin-bottom: 12px;
  padding: 14px 24px;
  border-radius: 4px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.12);
}

.payment-details header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.payment-details header h4 {
  margin: 0;
}

.payment-details header.disabled {
  color: #bcbec0;
}

.payment-details header.disabled .icon {
  transform: rotate(180deg);
}

/* Payment Form */

.payment-form {
  display: flex;
  flex-direction: column;
  padding-top: 16px;
  overflow: hidden;
  max-height: 300px;
}

.payment-form label {
  display: flex;
  align-items: center;
  font-size: 14px;
  margin: 12px 0;
  font-weight: 500;
}

.payment-form .radio-label {
  display: inline-flex;
  align-items: center;
  font-weight: bold;
}

.payment-form .radio-label img {
  margin-left: 24px;
}

.payment-form .radio-label.disabled {
  color: #bcbec0;
}

#method {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  margin: 0 24px 0 0;
  border: 2px solid #16a5e0;
  height: 18px;
  width: 18px;
  border-radius: 100%;
}

#method:checked {
  background: #16a5e0;
  box-shadow: inset 0px 0px 0px 2.5px #fff;
}

#method:disabled {
  border-color: #bcbec0;
}

#payer {
  font-size: 18px;
  height: 48px;
  width: 360px;
}

#payer {
  padding: 0 16px;
  font-weight: 300;
  border: 1px solid #bcbec0;
  border-radius: 6px;
  margin-left: 42px;
  margin-bottom: 16px;
}

#payer:focus {
  border-color: #16a5e0;
}

/* QR code  */

.qr-code {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.qr-code p {
  font-size: 16px;
  font-weight: normal;
}

.qr-code button {
  margin: 32px 0 8px;
}

#qr-image {
  width: 160px;
  margin: 16px;
}

/* Button */

.start-payment-button {
  margin: 24px auto 16px;
}

/* Link  */

.link {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
}

.link img {
  margin-left: 6px;
}

/* Error  */

.error {
  margin: 24px 0 0;
  color: red;
}

.error:empty {
  margin: 0;
}

/* Transition */

.transition-height {
  transition: max-height 0.4s;
}

/* Desktop styles */

@media (min-width: 769px) {
  main {
    padding: 0;
    display: flex;
    overflow-x: auto;
    background: none;
  }

  section {
    padding-top: 80px;
  }

  /* Section Payment */

  .section-payment {
    width: 55%;
    position: relative;
    left: 0;
    min-width: fit-content;
    min-height: 100vh;
    transition: left 0.8s;
    background-image: url("/images/bg.svg");
    background-size: cover;
    background-position-y: center;
    box-shadow: 320px 0 0 #f5f5f6;
  }

  .section-payment.expand {
    left: -320px;
  }

  .payment-wrapper {
    padding: 0 40px 0 160px;
    box-sizing: content-box;
  }

  .payment {
    margin: 0;
  }

  .payment-details {
    padding: 24px;
    margin-bottom: 32px;
  }

  .payment-form {
    padding-top: 24px;
  }

  label {
    margin: 24px 0;
    font-size: 16px;
  }

  .start-payment-button {
    margin: 32px auto;
  }

  .link {
    font-size: 16px;
  }
}
