[data-hipay-id='hostedfield-iframe'] {
  width: 10px !important;
  min-width: 100%;
}

[data-hipay-id='hosted-payments-wrapper'] {
  margin: auto;
  margin-bottom: 32px;
  max-width: 640px;
}

[data-hipay-id='hipay-carousel-wrapper'] {
  height: 70px;
  margin-bottom: 32px;
}

[data-hipay-id='hipay-form-wrapper'] {
  position: relative;
  min-height: 60px;
}

.hipay-form-container {
  margin: auto;
  width: 100%;
  max-width: 520px;
}

.hipay-form-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  margin: 0 0 16px 0;
}

.hipay-form-row-hidden {
  display: none;
}

.hipay-form-no-field {
  margin: 0 10px;
  padding-top: 16px;
  font-size: 14px;
}

.hipay-payment-request-wrapper-hidden {
  display: none;
}

.hipay-payment-request-wrapper-visible {
  display: block;
}

#hipay-payment-request-button-wrapper {
  height: 36px;
  margin: 10px 30px;
}

@media screen and (max-width: 640px) {
  #hipay-payment-request-button-wrapper {
    margin: 10px 10px;
  }
}

.hipay-payment-request-button {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  width: 100%;
  height: 50px;
  margin: 0 10px;
}

.hipay-separator-payment-request-button {
  margin: 16px 0;
  position: relative;
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  color: #737373;
}

.hipay-separator-payment-request-button::before {
  left: 30px;
}

.hipay-separator-payment-request-button::after {
  right: 30px;
}

.hipay-separator-payment-request-button::after,
.hipay-separator-payment-request-button::before {
  display: inline-block;
  width: 40%;
  border-top: 1px solid #cfd7df;
  content: ' ';
  position: absolute;
  top: 8px;
}

@media screen and (max-width: 640px) {
  .hipay-separator-payment-request-button::before {
    left: 10px;
  }
  .hipay-separator-payment-request-button::after {
    right: 10px;
  }
}

.hipay-field-container {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  width: 100%;
  height: 50px;
  margin: 0 10px;
}

.hipay-field-radio-container {
  height: auto;
}

.hipay-field-container-half {
  width: 50%;
}

.ie9 .hipay-field-container-half {
  width: 100%;
  margin-bottom: 16px;
}

@media screen and (max-width: 359px) {
  .hipay-form-row {
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-bottom: 0;
  }
  .hipay-field-container {
    margin-bottom: 16px;
  }
  .hipay-field-container-half {
    width: 100%;
  }
}

.hipay-field {
  z-index: 2;
  opacity: 0.011;
  -webkit-transition: opacity 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  -o-transition: opacity 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  transition: opacity 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: opacity;

  height: 25px;
  width: 100%;
  position: absolute;
  left: 0;
  bottom: 0;
  margin-bottom: 4px;
  background-color: transparent;
}

.hipay-field.HiPayField--focused,
.hipay-field:not(.HiPayField--empty) {
  opacity: 1;
}

.hipay-field-radio {
  z-index: 2;
  height: 28px;
  width: 100%;
  background-color: transparent;
}

.hipay-field-radio-label {
  z-index: 1;
  width: 100%;
  color: #737373;
  overflow: hidden;
  -o-text-overflow: ellipsis;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-transform-origin: 0 50%;
  -ms-transform-origin: 0 50%;
  transform-origin: 0 50%;
  -webkit-transform: scale(0.85);
  -ms-transform: scale(0.85);
  transform: scale(0.85);
  cursor: default;

  margin-bottom: 4px;
}

.hipay-field-label {
  z-index: 1;
  width: 100%;
  position: absolute;
  left: 0;
  bottom: 8px;
  color: #737373;
  overflow: hidden;
  -o-text-overflow: ellipsis;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-transform-origin: 0 50%;
  -ms-transform-origin: 0 50%;
  transform-origin: 0 50%;
  cursor: text;
  -webkit-transition-property: color, -webkit-transform;
  -o-transition-property: color, transform;
  transition-property: color, transform, -webkit-transform;
  -webkit-transition-duration: 0.3s;
  -o-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
  -o-transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
  transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
}

.HiPayField--focused + .hipay-field-label,
.hipay-field:not(.HiPayField--empty) + .hipay-field-label {
  color: #737373;
  -webkit-transform: scale(0.85) translateY(-25px);
  -ms-transform: scale(0.85) translateY(-25px);
  transform: scale(0.85) translateY(-25px);
  cursor: default;
}

.HiPayField--focused + .hipay-field-label {
  color: #00ade9 !important;
}

.HiPayField--invalid + .hipay-field-label {
  color: #d50000 !important;
}

.HiPayField--disabled + .hipay-field-label {
  color: #d3d3d3 !important;
}

.hipay-field-baseline {
  position: absolute;
  width: 100%;
  height: 0;
  left: 0;
  bottom: 0;
  border-bottom: solid 1px #cfd7df;
  -webkit-transition: border-bottom 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  -o-transition: border-bottom 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  transition: border-bottom 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.HiPayField--focused + .hipay-field-label + .hipay-field-baseline {
  border-bottom: solid 1px #00ade9;
}

.HiPayField--invalid + .hipay-field-label + .hipay-field-baseline {
  border-bottom: solid 1px #d50000;
}

.HiPayField--disabled + .hipay-field-label + .hipay-field-baseline {
  border-bottom: dotted 1px #cfd7df;
}

.hipay-field-error {
  position: absolute;
  bottom: -14px;
  width: 100%;

  color: #d50000;
  line-height: 11px;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  -o-text-overflow: ellipsis;
  text-overflow: ellipsis;
}

[data-hipay-id='hipay-help-cvc'] {
  font-size: 14px;
  padding: 0.75rem 1.25rem;
  margin: 0 10px;
  border-radius: 0.25rem;
  color: #856404;
  background-color: #fff3cd;
  border: solid 1px #ffeeba;
  display: none;
}

[data-hipay-id='hipay-help-cvc'].hipay-visible {
  display: block;
}

[data-hipay-id='hipay-loading-wrapper'] {
  display: none;
  background-color: rgba(255, 255, 255, 0.7);
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  position: absolute;
  z-index: 10;
}

[data-hipay-id='hipay-loading-spinner'] {
  width: 25px;
  height: 25px;
  margin: auto;
  margin-top: 20px;

  border: 5px solid #f3f3f3;
  border-top: 5px solid;
  border-top-color: #ffffff;
  border-radius: 50%;

  -webkit-animation: spin 1.5s linear infinite;

  animation: spin 1.5s linear infinite;
}

@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
