body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0px;
}

.flipper.flipped {
  height: 550px;
}

.flipper .content {
  width: 100%;
  height: 100%;
  perspective: 500px;
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
  transition: transform 1s;
  transform-style: preserve-3d;
}

.flipper .close {
  display: none;
}

.flipper button {
  width: 388px;
  height: 40px;
  font-size: 16px;
  border-radius: 4px;
  font-weight: normal;
}

.button-border-color {
  border-radius: 4px;
  background-color: #ffffff;
}

.button-border-color-bp {
  border: 1px solid #051b71;
}

.button-border-color-ce {
  border: 1px solid #db0029;
}

.flipper .test-us {
  min-height: 40px;
  margin: auto;
  margin-top: 40px;
  color: #000000;
  font-size: 21px;
  line-height: 25px;
  text-align: center;
  margin-bottom: 16px;
}

.flipper .form-container {
  margin: auto;
  width: 388px;
}

.flipper .form-container mat-form-field {
  width: 100%;
  height: 80px;
  font-size: 15px;
  margin-bottom: 20px;
  display: inline-block;
  position: relative;
  text-align: left;
}

.flipper .form-container mat-form-field input {
  width: 100%;
  padding-bottom: 5px;
}

.flipper .form-container mat-form-field #inputLabel {
  visibility: hidden;
}

.flipper .form-container mat-form-field .label {
  font-size: 11px;
  margin-bottom: 5px;
}

.flipper label {
  color: #333333;
}

.flipper .big-label {
  font-size: 21px;
  font-weight: bold;
  line-height: 32px;
}

.flipper .title {
  color: #333333;
  font-size: 24px;
  font-weight: 300;
  line-height: 32px;
  margin-bottom: 10px;
}

.flipper .title span.small {
  font-size: 16px;
}

.flipper p.amount {
  font-weight: bold;
}

.flipper p.amount span.small {
  font-size: 24px;
}

.flipper p.medium-amount {
  font-size: 24px;
  line-height: 28px;
}

.flipper p.big-amount {
  font-size: 36px;
  line-height: 42px;
}

.flipper input[type='number']::-webkit-inner-spin-button,
.flipper input[type='number']::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.flipper .front,
.flipper .back {
  position: absolute;
  height: 100%;
  width: 100%;
  backface-visibility: hidden;
}

.flipper .back {
  width: calc(100% - 72px);
}

.flipper .front {
  transition:
    visibility 0.5s,
    transform 1s;
}

.flipper.flipped .front {
  visibility: hidden;
  transform: rotateX(180deg);
}

.flipper.flipped .back {
  transform: rotateX(0deg);
}

.flipper .sub-conditions {
  font-size: 11px;
  letter-spacing: 0;
  line-height: 14px;
  max-width: 802px;
  margin: 0 auto;
  padding: 24px 0 0 0;
}

.flipper .back button {
  margin-top: 30px;
  width: 100%;
}

.flipper .back .cost {
  margin-top: 30px;
  padding-bottom: 8px;
}

.flipper .back .medium-label {
  font-size: 13px;
  color: #666666;
}

.flipper {
  width: 588px;
  height: 310px;
  background-color: #ffffff;
  position: relative;
  margin: auto;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.3);
}

.flipper .back {
  transform: rotateX(-180deg);
  transition:
    visibility 0.5s,
    transform 1s;
  padding: 36px;
}

.flipper .back .payment {
  margin-top: 40px;
}

.flipper .back .payment > div {
  margin-bottom: 10px;
}

.flipper .back .d-flex {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.flipper .back .cost,
.flipper .back .payment {
  border-bottom: 1px solid #cccccc;
}

.flipper .back svg {
  width: 14px;
  margin: 0px 5px;
}

.flipper .back .cost label,
.flipper .back .payment label {
  font-weight: bold;
}

.flipper .back .cost,
.flipper .back .payment {
  text-align: left;
}

.flipper .back .tooltip {
  position: relative;
  display: inline-block;
}

.flipper .back .tooltip .tooltiptext {
  border: 1px solid #cccccc;
  visibility: hidden;
  width: max-content;
  background-color: white;
  color: #666666;
  border-radius: 6px;
  padding: 5px 40px 5px 0px;
  font-size: 14px;
  position: absolute;
  z-index: 1;
}

.flipper .back .tooltip:hover .tooltiptext {
  visibility: visible;
}

.flipper .back .tooltip .tooltiptext label {
  padding-left: 40px;
}

.flipper .back .tooltip .tooltiptext ul {
  margin: 0;
}

.color-primary-ce {
  color: #db0029;
}

.color-secondary-ce {
  color: #333333;
}

.color-primary-bp {
  color: #051b71;
}

.color-secondary-bp {
  color: #369ad4;
}

.text-center {
  text-align: center !important;
}

input {
  font: inherit;
  background: transparent;
  color: currentColor;
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
  vertical-align: bottom;
  text-align: inherit;
  box-sizing: content-box;
  border-bottom: 1px solid #666;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

#amountError {
  color: #f44336;
  font-size: 75%;
}

@media screen and (max-width: 610px) {
  .flipper .cost,
  .flipper .payment {
    margin-left: 16px;
    margin-right: 16px;
  }

  .flipper .back {
    width: 100%;
    padding: 0px;
  }

  .flipper .back button {
    width: calc(100% - 32px);
  }

  .flipper .front button {
    width: 100%;
  }

  .flipper .form-container {
    width: 90%;
  }

  .flipped {
    width: 288px;
    height: 575px;
  }

  button {
    padding: 0 5px;
    width: 100%;
  }

  .flipped .back button {
    padding: 0 5px;
  }

  .form-container {
    width: 90%;
  }

  .form-container mat-form-field {
    margin-bottom: 0;
  }

  .content {
    margin: auto;
  }

  .test-us {
    margin: 16px 0 0;
  }

  .back {
    padding: 16px;
    width: 100%;
  }

  .back button {
    margin-top: 15px;
  }

  .back .tooltip .tooltiptext {
    left: -15px;
    bottom: 30px;
  }

  .back .tooltip .tooltiptext label,
  .back .tooltiptext ul {
    padding-left: 20px;
  }

  #simulator {
    width: 90%;
  }
}

@media only screen and (max-device-width: 610px) {
  .flipper .cost,
  .flipper .payment {
    margin-left: 16px;
    margin-right: 16px;
  }

  .flipper .back {
    width: 100%;
    padding: 0px;
  }

  .flipper .back button {
    width: calc(100% - 32px);
  }

  .flipper .front button {
    width: 100%;
  }

  .flipper .form-container {
    width: 90%;
  }

  .flipped {
    width: 288px;
    height: 575px;
  }

  button {
    padding: 0 5px;
    width: 100%;
  }

  .flipped .back button {
    padding: 0 5px;
  }

  .form-container {
    width: 90%;
  }

  .form-container mat-form-field {
    margin-bottom: 0;
  }

  .content {
    margin: auto;
  }

  .test-us {
    margin: 16px 0 0;
  }

  .back {
    padding: 16px;
    width: 100%;
  }

  .back button {
    margin-top: 15px;
  }

  .back .tooltip .tooltiptext {
    left: -15px;
    bottom: 30px;
  }

  .back .tooltip .tooltiptext label,
  .back .tooltiptext ul {
    padding-left: 20px;
  }

  #simulator {
    width: 90%;
  }
}
