body {
  background-color: #F2F2F2;
}

.payment-logo {
  margin: 24px 0;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
.payment-logo img {
  width: 24px;
  height: 24px;
  filter: invert(100%);
}
.payment-logo span {
  width: 50px;
  font-size: 11px;
  text-align: right;
}

.info-section {
  font-family: "Poppins", sans-serif;
}

.info-field {
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
}
.info-field label {
  font-weight: bold;
  width: 100%;
}
.info-field .info-field--editable__validation-error {
  color: red;
  font-size: 11px;
  display: none;
}

.sbt-button--modern {
  display: block;
  border: none;
  font-size: 15px;
  border-radius: 5px;
  font-weight: 600;
  align-items: center;
  justify-content: space-around;
  cursor: pointer;
  background-color: #383C51;
  color: #FFFFFF;
  min-height: 40px;
  width: 100%;
  max-width: 100%;
}
.sbt-button--modern:disabled {
  opacity: 0.5;
  cursor: default;
}
.sbt-button--modern.small {
  padding: 8px 24px;
  max-width: 100px;
  min-width: 100px;
}

.sbt-button {
  display: flex;
  background: none;
  border: none;
  font-size: 15px;
  padding: 16px 40px;
  border-radius: 5px;
  font-weight: 600;
  align-items: center;
  justify-content: space-around;
  cursor: pointer;
}
.sbt-button.sbt-button--primary {
  background-color: #2E3A57;
  color: #FFFFFF;
}
.sbt-button.sbt-button--secondary {
  border: 2px solid #2E3A57;
  background-color: #FFFFFF;
  color: #2E3A57;
}
.sbt-button.sbt-button--secondary:hover, .sbt-button.sbt-button--secondary:active {
  background-color: #2E3A57;
  color: #FFFFFF;
}
.sbt-button:disabled {
  opacity: 0.5;
  cursor: default;
}
.sbt-button.small {
  padding: 8px 24px;
  max-width: 100px;
  min-width: 100px;
}

hr {
  margin: 32px 0;
  opacity: 60%;
}

a.sbt-button {
  text-decoration: none;
}
a.sbt-button.small {
  width: fit-content;
  padding: 8px 24px;
  max-width: 50px;
}

.button-row {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}
.button-row.button-row--secondary {
  justify-content: space-around;
}
.button-row.button-row--stacked {
  display: flex;
  flex-direction: column;
}
.button-row.button-row--stacked .sbt-button {
  max-width: none;
}

.shared-buttons {
  display: flex;
  justify-content: center;
}
.shared-buttons .left-button {
  border-right: 0;
  border-radius: 4px 0 0 4px;
}
.shared-buttons .left-button span {
  background: url(../../CustomCss_JS/images/credit_card_empty.svg) center left no-repeat;
  width: 20px;
  height: 20px;
}
.shared-buttons .right-button {
  border-radius: 0 4px 4px 0;
}
.shared-buttons .right-button span {
  background: url(../../CustomCss_JS/images/bank_ach.svg) center left no-repeat;
  width: 20px;
  height: 20px;
}
.shared-buttons button {
  display: flex;
  align-items: center;
  background-color: white;
  color: #2E3A57;
  border: 1px solid;
  padding: 6px;
  flex-grow: 1;
  justify-content: center;
  gap: 4px;
}
.shared-buttons button.active {
  background-color: #2E3A57;
  color: white;
}
.shared-buttons button.active span {
  filter: invert(1);
}

dialog.modal {
  display: none;
  border: none;
  position: sticky;
  width: 100%;
  min-height: 200px;
  justify-content: center;
}
dialog.modal h3 {
  margin: 0;
}
dialog.modal input {
  width: 60px;
  margin-left: 10px;
}
dialog.modal .modal-dialog {
  display: flex;
  width: 85%;
  margin: 10px 0;
  max-width: 450px;
}
dialog.modal .modal-dialog .modal-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
dialog.modal .button-row {
  gap: 20px;
  justify-content: center;
}
dialog.modal .button-row button {
  padding: 6px 12px;
  min-width: 100px;
}

.endpage-terms {
  margin: 0 -32px;
  padding: 16px 32px;
  background-color: rgba(255, 110, 29, 0.1411764706);
  font-size: 14px;
}

.endpage-terms-modern {
  color: #6B7280;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
  padding-left: 16px;
  padding-right: 16px;
}

.status-title {
  font-size: 18px;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

.servicefee-terms {
  margin-left: 0;
  margin-right: 0;
  padding-left: 16px;
  padding-right: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
  font-size: 11px !important;
}

.status-subtitle {
  font-size: 14px;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
}

#apple-pay-button {
  display: none;
  margin: 12px 0;
}

.payment-summary-title {
  padding: 12px 0;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.2;
  color: var(--Primary-Black, #000);
}

.payment-amount-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0;
}

.amount-due-field {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 0;
}

.partial-payment-link {
  margin-top: 0;
  text-align: center;
  width: 100%;
}

.account-details-box {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: #111;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.account-details-header {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 8px;
}

.account-details-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid #f0f0f0;
}
.account-details-row:last-child {
  border-bottom: none;
}
.account-details-row .label {
  color: #555;
}
.account-details-row .value {
  font-weight: 500;
  text-align: right;
  max-width: 60%;
  overflow-wrap: anywhere;
}

@media (max-width: 425px) {
  .payment-summary-title {
    height: auto;
    padding: 12px 0;
    font-size: 16px;
    line-height: 1.3;
    text-align: center;
  }
  .header {
    margin-bottom: 4px;
  }
  h2 {
    margin-top: 8px;
    margin-bottom: 8px;
    font-size: 18px;
  }
  .info-section p {
    margin-bottom: 4px;
  }
  .info-section h2 {
    margin-top: 2px;
    margin-bottom: 2px;
    font-size: 18px;
  }
  .info-field {
    font-size: 13px;
  }
  .endpage-terms {
    font-size: 12px;
    padding: 12px;
    line-height: 1.2;
  }
  .sbt-button {
    padding: 12px 20px;
    font-size: 14px;
  }
  .button-row.button-row--stacked {
    padding-bottom: 12px;
  }
  .payment-logo {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 8px;
    margin-right: 12px;
    position: relative;
    left: auto;
    transform: none;
  }
  #PaymentAmountField {
    margin-top: 4px;
    margin-bottom: 8px;
  }
  .servicefee-terms {
    padding: 12px 16px;
    font-size: 10px;
  }
  .status-title {
    font-size: 16px;
  }
  .status-subtitle {
    font-size: 12px;
  }
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding-top: env(safe-area-inset-top, 0);
}
.modal-overlay.hidden {
  display: none;
}

.modal-container {
  background: white;
  border-radius: 12px;
  padding: 24px 16px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
}

.modal-subtitle {
  color: var(--Gray-600, #535862);
  text-align: center;
  font-family: "DM Sans", sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 26px;
  margin-bottom: 16px;
  gap: 8px;
}

.amount-input-wrapper {
  width: 100%;
  margin: 16px 0;
}

.currency-symbol {
  font-size: 32px;
  color: #000;
  margin-right: 8px;
}

.partial-payment-input {
  width: 100%;
  font-size: 32px;
  padding: 12px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-sizing: border-box;
}
.partial-payment-input.input-error {
  border: 2px solid #e74c3c;
}

.amount-error-message {
  color: var(--Secondary-Red, #F04437);
  text-align: center;
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-style: italic;
  font-weight: 400;
  line-height: 12px;
  margin-top: 8px;
}

.hidden {
  display: none;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
}
.modal-header .modal-title {
  margin: 0;
  color: var(--Gray-900, #181D27);
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 30.987px;
}
.modal-header .modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.btn-confirm {
  cursor: pointer;
  width: 100%;
  border-radius: 5.4px;
  background: #393B4C;
  display: flex;
  height: 50px;
  padding: 16px 24px;
  justify-content: center;
  align-items: center;
  gap: 10.8px;
  align-self: stretch;
  color: var(--Primary-White, #FFF);
  text-align: center;
  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 21.6px;
}

.btn-cancel {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  cursor: pointer;
  border-radius: 4px;
  border: 1.107px solid var(--Gray-300, #D5D7DA);
  background: var(--Base-White, #FFF);
  box-shadow: 0px 1.107px 2.213px 0px rgba(10, 13, 18, 0.05);
  color: var(--Gray-700, #414651);
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 26.56px;
}

.notification-banner {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #d1fae5;
  padding: 12px 24px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  transition: opacity 0.3s ease;
  color: var(--Primary-Black, #000);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
}
.notification-banner.hidden {
  display: none;
}

.processing-box {
  background-color: #fff;
  padding: 24px;
  border-radius: 8px;
  text-align: center;
}
.processing-box.hidden {
  display: none;
}
.processing-box .small-state-icon img {
  object-fit: contain;
  margin-bottom: 12px;
}
.processing-box p {
  font-size: 14px;
  color: #333;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  appearance: none;
  box-shadow: none;
  outline: none;
}

.modal-title-processing {
  margin: 0 auto;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  padding-right: 28px;
}

.express-checkout-subheader {
  color: #000;
  text-align: center;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 12px;
  margin-bottom: 12px;
}