.portal-live-payment {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding-top: 20px;
  border-top: 1px solid rgba(210, 219, 232, .9);
}

.portal-live-payment__total {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  color: #647087;
  font-size: 13px;
  line-height: 1.35;
}

.portal-live-payment__total strong {
  min-width: 0;
  color: #10203a;
  font-size: 24px;
  font-weight: 780;
  line-height: 1.1;
  letter-spacing: -.035em;
  text-align: right;
  overflow-wrap: anywhere;
}

.portal-live-payment__button .portal-stage2__submit-idle {
  justify-content: center;
}

.portal-live-payment__button[data-live-payment-ready="true"] {
  cursor: pointer;
}

.portal-live-payment__button:disabled {
  color: #68748a;
  border: 1px solid #d7dfe9;
  background: #edf1f6;
  box-shadow: none;
  cursor: not-allowed;
}

.portal-live-payment__button:disabled .portal-stage2__submit-icon {
  color: #7f8a9d;
}

.portal-legal-footer {
  display: flex;
  width: 100%;
  max-width: 1180px;
  min-width: 0;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 36px auto 0;
  padding: 20px 0 2px;
  border-top: 1px solid rgba(210, 219, 232, .72);
  color: #788398;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}

.portal-legal-footer a {
  color: inherit;
  text-decoration: none;
  transition: color .16s ease;
}

.portal-legal-footer a:hover,
.portal-legal-footer a:focus-visible {
  color: #245fb9;
}

.portal-legal-footer a:focus-visible {
  outline: 2px solid rgba(18, 104, 244, .25);
  outline-offset: 3px;
  border-radius: 4px;
}

.portal-legal-footer__separator {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #a7b0bf;
}

.portal-page .portal-legal-footer {
  max-width: 1180px;
}

@media (max-width: 640px) {
  .portal-live-payment {
    padding-top: 18px;
  }

  .portal-live-payment__total strong {
    font-size: 22px;
  }

  .portal-legal-footer {
    margin-top: 28px;
    padding-top: 17px;
    font-size: 11.5px;
  }
}

@media (max-width: 380px) {
  .portal-legal-footer {
    gap: 6px 9px;
  }

  .portal-legal-footer__separator {
    display: none;
  }

  .portal-legal-footer a {
    width: 100%;
  }
}

/* Checkout success toast. The notification is created by the active checkout
   handlers and never changes the current page or form route. */
.portal-checkout-toast[hidden] {
  display: none !important;
}

.portal-checkout-toast {
  position: fixed;
  z-index: 1400;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  width: min(420px, calc(100vw - 36px));
  min-width: 0;
  align-items: start;
  gap: 12px;
  padding: 14px 14px 14px 15px;
  border: 1px solid rgba(38, 164, 105, .22);
  border-radius: 16px;
  color: #183047;
  background: rgba(255, 255, 255, .985);
  box-shadow:
    0 22px 58px rgba(20, 39, 68, .16),
    0 4px 14px rgba(20, 39, 68, .08);
  opacity: 0;
  transform: translate3d(0, -10px, 0) scale(.985);
  pointer-events: none;
  transition:
    opacity .18s ease,
    transform .18s ease;
  backdrop-filter: blur(14px);
}

.portal-checkout-toast::after {
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: #27a56b;
  content: "";
  opacity: .8;
}

.portal-checkout-toast.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
}

.portal-checkout-toast__icon {
  display: grid;
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #27a56b;
  box-shadow: 0 7px 16px rgba(39, 165, 107, .2);
  font-size: 16px;
  font-weight: 820;
  line-height: 1;
}

.portal-checkout-toast__content {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding-top: 1px;
}

.portal-checkout-toast__title {
  color: #17263d;
  font-size: 14px;
  font-weight: 780;
  line-height: 1.25;
}

.portal-checkout-toast__message {
  color: #66758b;
  font-size: 12.5px;
  font-weight: 520;
  line-height: 1.4;
}

.portal-checkout-toast__close {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  margin: -4px -4px 0 0;
  padding: 0;
  border: 0;
  border-radius: 9px;
  color: #7a8799;
  background: transparent;
  font: inherit;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: color .15s ease, background-color .15s ease;
}

.portal-checkout-toast__close:hover {
  color: #34435a;
  background: #f0f3f7;
}

.portal-checkout-toast__close:focus-visible {
  outline: 3px solid rgba(18, 104, 244, .24);
  outline-offset: 1px;
}

@media (max-width: 640px) {
  .portal-checkout-toast {
    top: max(10px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
    left: max(10px, env(safe-area-inset-left));
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-checkout-toast {
    transition-duration: .01ms !important;
  }
}
