/**
 * tyro-checkout.css — Styles for the Tyro Pay Form embed.
 *
 * @package TyroPaymentGateway
 */

 .tyro-pay-form-wrapper {
  position: relative;
  margin-top: 1em;
}

.tyro-pay-idle-hint,
#tyro-pay-error.tyro-pay-notice--info {
  margin: 0.75em 0 0;
  padding: 0.75em 1em;
  font-size: 0.95em;
  line-height: 1.5;
}

.tyro-pay-idle-hint {
  color: #515151;
}

.tyro-checkout-only-notice {
  margin: 0;
  padding: 1em 1.1em;
  background: #f0f6fc;
  border: 1px solid #72aee6;
  border-left: 4px solid #2271b1;
  border-radius: 4px;
  color: #1d2327;
}

.tyro-checkout-only-notice__text {
  margin: 0 0 0.75em;
  line-height: 1.5;
  color: #1d2327;
}

.tyro-checkout-only-notice__reset {
  width: 100%;
}

#tyro-pay-form-loader {
  position: relative;
  min-height: 180px;
  isolation: isolate;
}

#tyro-pay-form-loader.tyro-pay-form-loader--loading #tyro-pay-form {
  opacity: 0.35;
  min-height: 180px;
  pointer-events: none;
}

.tyro-pay-form-loader__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  background-color: rgba(255, 255, 255, 0.92);
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.tyro-pay-form-loader__label {
  color: #515151;
  font-size: 0.9em;
  line-height: 1.4;
}

.tyro-pay-form-loading__spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 2px solid #453de1;
  border-color: #453de1 transparent transparent transparent;
  border-radius: 50%;
  animation: tyro-pay-form-spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.tyro-pay-form-submitting-overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.6);
}

.tyro-pay-processing-message {
  position: relative;
  z-index: 3;
  margin: 0.85em 0 0;
  padding: 0.9em 1em;
  background: #ffffff;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  color: #000000;
  font-size: 1em;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

#tyro-pay-form,
#tyro-pay-form > *,
#tyro-pay-form iframe {
  background: #fff !important;
  background-color: #fff !important;
}

#tyro-pay-form {
  width: 100%;
  min-height: 180px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  background: #fff !important;
}

#tyro-pay-form.tyro-pay-form--idle {
  min-height: 0;
  padding: 1em 1.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff !important;
}

#tyro-pay-form.tyro-pay-form--idle .tyro-pay-idle-hint {
  margin: 0;
  text-align: center;
}

.tyro-pay-retry {
  margin-top: 0.75em;
}

.tyro-pay-retry__btn {
  width: 100%;
}

#tyro-pay-error {
  margin-top: 0.75em;
  padding: 0.75em 1em;
  background: #fef2f2;
  border: 1px solid #f87171;
  border-radius: 4px;
  color: #b91c1c;
  font-size: 0.9em;
  line-height: 1.5;
}

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