* {
  box-sizing: border-box;
}

select {
  box-sizing: content-box;
  border: solid 2px gray;
  border-radius: 0;
  font-size: 16px;
  background: none;
}

.bordered {
  border: solid 2px black;
}

.input-form {
  border: solid 2px black;
  padding: 2%;
  font-size: 0;
}

#form-delivery {
  overflow: hidden;
  transition: all 1s;
}

.form-toggle-delivery {
  font-family: sans-serif;
}

.form-copy-data {
  position: absolute;
  right: 1%;
  top: 1%;
  font-size: initial;
  font-weight: normal;
}

.input-form label {
  width: 7em;
  display: inline-block;
  margin: 2% 0;
}

.input-form label {
  width: 7em;
  display: inline-block;
}

.cart-item {
  position: relative;
  margin-bottom: 1vw;
  font-size: 0;
}

.cart-item-shape,
.cart-item-colors,
.cart-item-text,
.cart-item-quantity,
.cart-item-price,
.cart-item-trash {
  display: inline-block;
  width: calc(calc(88% - 25px) / 5);
  vertical-align: top;
  font-size: initial;
  margin: 0 1%;
}

.cart-item img {
  max-width: 200px;
  max-height: 200px;
  margin: 0 2%;
  width: 100%;
}

.cart-item-text {
  vertical-align: top;
  display: inline-block;
}

.cart-item-quantity {
  border-left: solid 1px black;
  text-align: right;
}

.cart-item-trash {
  width: 25px;
}

.cart-item-trash img {
  width: 100%;
}

.cart-item-trash:hover {
  cursor: pointer;
  opacity: 0.7;
}

.cart-item-price,
.cart-item-quantity {
  display: inline-block;
  vertical-align: top;
}

.form-field label {
  width: 20%;
  font-size: initial;
}

.form-field input,
#country,
#bill-country {
  width: 80%;
  border: solid 1px gray;
  padding: 1px 4px;
  font-size: initial;
}

#calling-code,
#bill-calling-code {
  width: 20%;
  border: solid 1px gray;
}

#phone,
#bill-phone {
  width: calc(60% - 1.7rem);
  margin-left: 1rem;
}

#country,
#bill-country {
  width: calc(80% - 0.7rem);
}

#cart {
  padding: 1vw;
}

.fs-initial {
  font-size: initial;
}

#form-response {
  border-width: 2px;
  padding: 6vw;
  text-align: center;
}

#form-response::backdrop {
  background-color: black;
  opacity: 0.3;
}

#form-response-failure,
#form-response-success {
  display: none;
}

#form-response a {
  display: block;
  border: solid 2px transparent;
  text-decoration: none;
  color: black;
  padding: 1vw;
}

#form-response a:hover {
  border-color: black;
}

#reference-number {
  border: none;
  font-size: 16px;
}

#reference-number:focus-visible,
#reference-number:focus {
  border: none;
  outline: none;
}

#submit-button {
  position: relative;
  left: calc(100% - 5em);
}

#loading {
  display: none;
  width: 32px;
  height: 32px;
  border: solid 4px black;
  border-top: solid 4px white;
  border-radius: 50%;
  position: relative;
  left: calc(100% - 10em);
  animation: spin 4s linear infinite;
}

.payment div {
  display: inline-block;
  vertical-align: top;
}

.payment div:first-child {
  width: 100%;
}

#qrcode {
  display: block;
  margin: 0 auto;
  width: 256px;
}

@media only screen and (min-width: 480px) {
  .form-field {
    display: inline-block;
    width: 49%;
  }

  .form-field:nth-child(even) {
    margin-left: 2%;
  }

  .payment div:first-child {
    width: calc(100% - 261px);
  }

  #qrcode {
    display: inline-block;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
