.checkout-form-modal {
  display: none;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 20px 50px;
}

.checkout-form-modal #main {
  width: 100%;
  max-width: 600px;
}

.show-modal {
  display: flex;
}

.checkout-form-modal * {
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: none;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  font-size: 15px;
  line-height: 1.4em;
  color: #525f7f;
}

.checkout-form-modal #checkout {
  width: 100%;
  margin: 0 auto;
  padding: 30px 0;
  visibility: visible;
  opacity: 1;
  transition: visibility 0s, opacity 0.5s linear 0.5s;
}

.checkout-form-modal h1 {
  margin: 0 0 20px 0;
  font-size: 20px;
  font-weight: 500;
}

.checkout-form-modal h2 {
  margin: 15px 0;
  color: #32325d;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-size: 13px;
  font-weight: 500;
}

.checkout-form-modal #payment-form {
  border-radius: 4px;
  background-color: #fff;
}

.checkout-form-modal fieldset {
  min-width: 100%;
  margin-bottom: 20px;
  background: #fff;
  box-shadow: 0 1px 3px 0 rgba(50, 50, 93, 0.15),
    0 4px 6px 0 rgba(112, 157, 199, 0.15);
  border-radius: 4px;
  border: none;
}

.checkout-form-modal fieldset label {
  position: relative;
  display: flex;
  flex-direction: row;
  height: 42px;
  padding: 10px 0;
  align-items: center;
  justify-content: center;
  color: #8898aa;
  font-weight: 400;
}

.checkout-form-modal fieldset label span {
  min-width: 125px;
  padding: 0 15px;
  text-align: right;
}

.checkout-form-modal .field {
  flex: 1;
  padding: 0 15px;
  background: transparent;
  font-weight: 400;
  color: #31325f;
  outline: none;
  cursor: text;
}

.checkout-form-modal .field::-webkit-input-placeholder {
  color: #aab7c4;
}
.checkout-form-modal .field::-moz-placeholder {
  color: #aab7c4;
}
.checkout-form-modal .field:-ms-input-placeholder {
  color: #aab7c4;
}

.checkout-form-modal input {
  flex: 1;
  border-style: none;
  outline: none;
  color: #313b3f;
}
.checkout-form-modal #card-element {
  margin-top: -1px;
}

.payment-submit-button {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #666ee8;
  color: #fff;
  box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  border: 0;
  font-weight: 700;
  width: 100%;
  height: 40px;
  outline: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-disabled {
  cursor: not-allowed;
}

#final_price {
  color: #fff;
}

.checkout-sp {
  width: 20px;
  height: 20px;
  clear: both;
  margin: 3px 0 3px 5px;
  border: 2px rgba(255, 255, 255, 0.25) solid;
  border-top: 2px #fff solid;
  border-radius: 50%;
  animation: spCircRot .6s infinite linear;
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

.checkout-show-sp {
  opacity: 1;
}

.checkout-form-modal button:focus {
  background: #555abf;
}

.checkout-form-modal button:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 14px 0 rgba(50, 50, 93, 0.1),
    0 3px 6px 0 rgba(0, 0, 0, 0.08);
}

.checkout-form-modal button:active {
  background: #43458b;
}

.close-payment-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #666ee8;
  color: #fff;
  box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  border: 0;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

/* Media Queries */
@media only screen and (max-width: 500px) {
  .checkout-form-modal #payment-form {
    margin: 0;
    border-width: 2px 0 0 0;
    border-radius: 0;
  }
  .checkout-form-modal .payment-info span {
    display: none;
  }
  .checkout-form-modal fieldset {
    margin-bottom: 15px;
    min-width: 100%;
    max-width: 100%;
  }
  .checkout-form-modal #checkout {
    margin-bottom: 0;
  }
}