*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background-color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

#payment-form {
  max-width: 31.5rem;
  margin: 0 auto;
}

iframe {
  width: 100%;
}

.one-liner {
  display: flex;
  flex-direction: column;
}

#pay-button {
  border: none;
  border-radius: 3px;
  color: #fff;
  font-weight: 500;
  height: 40px;
  width: 100%;
  background-color: #13395e;
  box-shadow: 0 1px 3px 0 rgba(19, 57, 94, 0.4);
}

#pay-button:active {
  background-color: #0b2a49;
  box-shadow: 0 1px 3px 0 rgba(19, 57, 94, 0.4);
}

#pay-button:hover {
  background-color: #15406b;
  box-shadow: 0 2px 5px 0 rgba(19, 57, 94, 0.4);
}

#pay-button:disabled {
  background-color: #697887;
  box-shadow: none;
}

#pay-button:not(:disabled) {
  cursor: pointer;
}

.card-frame {
  border: solid 1px #13395e;
  border-radius: 3px;
  width: 100%;
  margin-bottom: 8px;
  height: 40px;
  box-shadow: 0 1px 3px 0 rgba(19, 57, 94, 0.2);
}

.card-frame.frame--rendered {
  opacity: 1; /* Prevents iFrame rendering issue */

  /* Reminder: consider removal of 'rendered' */
  /* event passing to Merchant page */
}

.card-frame.frame--rendered.frame--focus {
  border: solid 1px #13395e;
  box-shadow: 0 2px 5px 0 rgba(19, 57, 94, 0.15);
}

.card-frame.frame--rendered.frame--invalid {
  border: solid 1px #d96830;
  box-shadow: 0 2px 5px 0 rgba(217, 104, 48, 0.15);
}

.error-message {
  color: #c9501c;
  font-size: 0.9rem;
  margin: 8px 0 0 1px;
  font-weight: 300;
}

.success-payment-message {
  color: #13395e;
  line-height: 1.4;
}
.token {
  color: #b35e14;
  font-size: 0.9rem;
  font-family: monospace;
}

@media screen and (min-width: 31rem) {
  .one-liner {
    flex-direction: row;
  }

  .card-frame {
    width: 318px;
    margin-bottom: 0;
  }

  #pay-button {
    width: 175px;
    margin-left: 8px;
  }
}

.hr-with-text {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    margin-top: 10px;
}

    .hr-with-text::before {
        content: '';
        flex: 0 0 17px; /* Fixed width of 20px */
        border-bottom: 1px solid rgba(0, 0, 0, .1);
        margin-right: 5px; /* Space between the line and text */
    }

    .hr-with-text::after {
        content: '';
        flex: 1; /* Flexible to fill remaining space */
        border-bottom: 1px solid rgba(0, 0, 0, .1);
        margin-left: 5px; /* Space between the text and line */
    }

.payment-option-text {
    font-size: small;
    color: #6a6d77;
}

