* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  line-height: 1.3;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
    Helvetica Neue, Ubuntu, sans-serif;
  padding: 20px;
  width: 100%;
  /* TODO: if notch in the way - uncomment */
  /* margin-top: 20px; */
}

.hidden {
  display: none;
}

.section-title {
  font-weight: 500;
  margin: 10px 0 10px 0;
  font-size: 17px;
  color: rgba(26, 26, 26, 0.9);
}

.back-btn {
  margin: 20px 0;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.back-btn .back-logo {
  margin-left: 5px;
  margin-bottom: 2px;
}

.payment-summary {
  text-align: center;
  margin: 20px 0 35px 0;
}

.payment-summary span {
  font-weight: 500;
  font-size: 15px;
  color: rgba(26, 26, 26, 0.7);
}

.payment-summary #payment-summary-price {
  color: rgba(26, 26, 26, 0.9);
  font-size: 28px;
  font-weight: 700;
}

.field-group {
  background: white;
  box-shadow: 0 7px 14px 0 rgba(49, 49, 93, 0.1),
    0 3px 6px 0 rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  margin-bottom: 20px;
}

.field-group label {
  position: relative;
  color: #8898aa;
  font-weight: 300;
  height: 40px;
  line-height: 40px;
  /* margin-left: 20px; */
  display: flex;
  flex-direction: row;
}
.field-group .card-element {
  background: transparent;
  font-weight: 300;
  border: 0;
  color: #31325f;
  outline: none;
  flex: 1;
  padding-right: 10px;
  padding-left: 10px;
  cursor: text;
  /* position: relative;
    flex: 1;
    width: 100%;
    height: 44px;
    padding: 8px 12px;
    color: rgba(26, 26, 26, 0.9);
    font-size: 16px;
    line-height: 1.5;
    border: 0;
    box-shadow: 0 0 0 1px #e0e0e0, 0 2px 4px 0 rgba(0, 0, 0, 0.07),
      0 1px 1.5px 0 rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.08s ease-in, color 0.08s ease-in,
      -webkit-filter 50000s;
    transition: box-shadow 0.08s ease-in, color 0.08s ease-in, filter 50000s;
    transition: box-shadow 0.08s ease-in, color 0.08s ease-in, filter 50000s,
      -webkit-filter 50000s;
    background: #fff;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    outline: none; */
}

.input-group:not(#billing-address) {
  margin-bottom: 20px;
}

.input-group:not(#billing-address) input,
select {
  position: relative;
  width: 100%;
  height: 44px;
  padding: 8px 12px;
  color: rgba(26, 26, 26, 0.9);
  font-size: 16px;
  line-height: 1.5;
  border: 0;
  box-shadow: 0 0 0 1px #e0e0e0, 0 2px 4px 0 rgba(0, 0, 0, 0.07),
    0 1px 1.5px 0 rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.08s ease-in, color 0.08s ease-in,
    -webkit-filter 50000s;
  transition: box-shadow 0.08s ease-in, color 0.08s ease-in, filter 50000s;
  transition: box-shadow 0.08s ease-in, color 0.08s ease-in, filter 50000s,
    -webkit-filter 50000s;
  background: #fff;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  /* margin-bottom: ; */
  outline: none;
}

.input-group:not(#billing-address) input:focus {
  z-index: 2;
  outline: none;
  box-shadow: 0 0 0 1px rgba(50, 151, 211, 0.3), 0 1px 1px 0 rgba(0, 0, 0, 0.07),
    0 0 0 4px rgba(50, 151, 211, 0.3);
}

.input-group span {
  color: rgba(26, 26, 26, 0.7);
  font-weight: 500;
  font-size: 13px;
  margin: 0;
}

.input-group input#email {
  border-radius: 6px;
}

.input-group input#address {
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

.select-wrapper select {
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.select-wrapper {
  position: relative;
}

.loader {
  position: absolute;
  z-index: 9000;
  width: 150px;
  left: calc(50% - 75px);
  top: calc(50vh - 75px);
}

.loader::after {
  display: block;
  content: '';
  position: fixed;
  width: 100vw;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 1;
  /* TODO: remove to get rid of shadow */
  background: rgba(0, 0, 0, 0.2);
}

.loader img {
  width: 100%;
  z-index: 2;
  position: relative;
}

.select-wrapper::after {
  content: '';
  display: block;
  height: 7px;
  width: 7px;
  position: absolute;
  top: calc(50% - 7px);
  right: 15px;
  border-left: 2px solid black;
  border-bottom: 2px solid black;
  border-radius: 3px;
  transform: rotate(-45deg);
  pointer-events: none;
}

.select-wrapper select input#credit-card-number {
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.show-full-address {
  font-size: 12px;
  font-weight: 500;
  color: rgba(26, 26, 26, 0.4);
}

.city-zip {
  display: flex;
}

.card-element-error {
  font-size: 13px;
  color: red;
  margin-top: -15px;
}

#pay-btn {
  background-color: rgb(52, 49, 69);
  color: rgb(255, 255, 255);
  position: relative;
  overflow: hidden;
  height: 44px;
  width: 100%;
  margin-top: 12px;
  padding: 0;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(50, 50, 93, 0.1),
    0 2px 5px 0 rgba(50, 50, 93, 0.1), 0 1px 1px 0 rgba(0, 0, 0, 0.07);
  border: 0;
  outline: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease, box-shadow 0.08s ease-in;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

#pay-btn .text-container {
  opacity: 0.6;
  font-size: 100%;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  line-height: 44px;
  transition: all 0.2s ease;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  font-weight: 500;
  color: rgb(255, 255, 255);
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
    Helvetica Neue, Ubuntu, sans-serif;
}

#pay-btn:disabled {
  background-color: lightgray;
}

.status-info:not(.failed-payment) {
  /* margin-top: 20px; */
  margin-top: calc(50vh - 240px);
  font-weight: 500;
}

.status-info p {
  word-break: break-all;
}

.status-info.succesfull-payment h2 {
  text-align: center;
  color: #161616;
}

#back-link-success {
  display: block;
  width: 100%;

  background-color: #94D70B;
  /* background-color: #5db09f; */
  border-radius: 7px;

  padding: 15px 20px;
  color: white;
  text-align: center;
  text-decoration: none;
}

.succesfull-payment-message {
  font-weight: 300;
  font-size: 16px;
  text-align: center;
  margin: 50px 0;
  word-break: break-word;
}

.status-info.failed-payment {
  color: darkred;
}
