/* Checkout additions, secure card iframe sizing and demo controls. */
button:focus-visible,
a:focus-visible {
  outline: 3px solid #8bb3ff;
  outline-offset: 4px;
}
.field-host:focus-within,
.mobile-amount-box:focus-within,
.amount-line:focus-within {
  border-color: #3b82f6;
}
.field-host input {
  border: 0;
  outline: 0;
  width: 100%;
  background: transparent;
  color: #18212f;
}
.demo-note {
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: #edf3ff;
  color: #38506d;
  font-size: 13px;
}
.demo-note.live,
.live-payment-note {
  border: 1px solid #f0c36a;
  background: #fff8e8;
  color: #714b00;
}
.live-payment-note {
  display: grid;
  gap: 3px;
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.4;
}
.live-payment-note strong,
.live-payment-note span {
  display: block;
}
.live-wallet p {
  max-width: 360px;
}
.live-card-dialog { max-height: calc(100dvh - 48px); overflow: auto; }
.live-card-dialog .dialog-header > div { min-width: 0; }
.live-card-dialog .dialog-header p { font-size: 14px; line-height: 1.5; }
.live-card-dialog .dialog-close { flex: 0 0 36px; }
.live-card-panel { display: grid; gap: 14px; min-width: 0; }
.live-card-panel .amount-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f5f8fe;
}
.live-card-panel .amount-row strong { white-space: nowrap; }
.card-only-checkout .method-logo-wrap,
.card-only-checkout .mobile-method-logo-wrap { border: 0; background: transparent; }
.card-only-checkout .method-logo,
.card-only-checkout .mobile-method-logo { width: 44px; height: 44px; }
.card-pay-button {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #1b4ed8, #3b82f6);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.live-card-field { display: grid; gap: 0; min-width: 0; font-size: 13px; line-height: 20px; color: #60708f; }
.live-card-host { height: 62px; min-width: 0; width: 100%; border: 0; background: transparent; overflow: hidden; }
.live-card-host > * { width: 100% !important; height: 100% !important; }
.live-card-host iframe[title^="paypal_card_"] { display: block !important; width: 100% !important; height: 100% !important; border: 0 !important; }
.live-card-panel [data-card-status] { font-size: 13px; color: #60708f; margin: 0; }
.live-card-panel button:disabled { opacity: .55; cursor: wait; }
.demo-field-label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #60708f;
}
.stripe-host .field-grid {
  display: grid;
  gap: 14px;
}
.stripe-host .field-host {
  display: flex;
  align-items: center;
  height: 54px;
  padding: 0 14px;
  border: 1px solid #d3dceb;
  border-radius: 14px;
  background: #fff;
}
.stripe-host .field-host input {
  height: 100%;
  font-size: 16px;
}
.demo-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.demo-actions button {
  border: 0;
  padding: 4px 8px;
  background: transparent;
  color: #60708f;
  font-size: 13px;
}
.demo-actions button:hover {
  color: #2557d6;
}
.demo-wallet {
  display: grid;
  gap: 18px;
  place-items: center;
  padding: 24px 10px;
}
.demo-wallet-badge {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border: 1px solid #e2e9f6;
  border-radius: 24px;
  color: #2557d6;
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(180deg, #f9fbff, #edf3ff);
}
.demo-wallet p {
  margin: 0;
  color: #60708f;
  text-align: center;
}
.demo-wallet-button {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  background: #003087;
  color: white;
  font-weight: 700;
}
.demo-wallet-button.apple {
  background: #111;
}
.demo-wallet-button.antom {
  background: #165dff;
}
.demo-3ds {
  display: grid;
  gap: 18px;
  text-align: center;
  padding: 14px 0;
}
.demo-3ds strong {
  font-size: 24px;
}
.demo-3ds p {
  margin: 0;
  color: #60708f;
}
.dialog-panel {
  animation: modal-in 0.2s ease both;
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.mobile-method-badge,
.mobile-method-logo-wrap {
  flex-shrink: 0;
}
.mobile-detail-list dd,
.detail-list dd {
  overflow-wrap: anywhere;
}
@media (max-width: 768px) {
  .live-card-dialog { max-height: 92dvh; }
  .toast-stack {
    top: 16px;
    left: 16px;
    right: 16px;
  }
  .toast-item {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
