/* Motorit theme: inline (embedded) checkout panel — parts/billing/checkout-panel.php. Hand-written, enqueued on the
   pricing pages only when Billing\Embedded is switched on. Pale blue, white cards, teal accent; green appears in no
   state here (the success notice after payment is the page's existing notice, not this panel). */
@font-face { font-family: Inter; font-style: normal; font-weight: 300 900; font-display: swap; src: url("../static/plugins/woocommerce/assets/fonts/Inter-VariableFont_slnt,wght.woff2") format("woff2"); font-stretch: normal; }

.motorit-pricing .mcv3-checkout[hidden] { display: none !important; }
.motorit-pricing .mcv3-checkout {
  margin: 18px 0 0;
  padding: 26px;
  border: 1px solid #cfe2f3;
  border-radius: 22px;
  background: linear-gradient(#f7fbff 0%, #ffffff 62%);
  color: var(--mcv3-ink, #102b42);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  scroll-margin-top: 24px;
}
.motorit-pricing .mcv3-checkout .mcv3-panel-head { align-items: flex-start; margin-bottom: 16px; }
.motorit-pricing .mcv3-checkout h2 { margin: 6px 0 8px; font-family: inherit; font-size: 24px; line-height: 1.15; }
/* The heading takes focus when the panel opens (so a screen reader lands in it). Ring only for keyboard users: a mouse
   click must not draw a box round the title. */
.motorit-pricing .mcv3-checkout h2:focus { outline: none; }
.motorit-pricing .mcv3-checkout h2:focus-visible { outline: 2px solid var(--mcv3-primary, #067b9d); outline-offset: 4px; border-radius: 6px; }
.motorit-pricing .mcv3-checkout .mcv3-panel-head p { max-width: 62ch; font-family: inherit; font-size: 13px; line-height: 1.55; }
.motorit-pricing .mcv3-checkout-close { flex: 0 0 auto; min-height: 40px; padding: 0 16px; border: 1px solid var(--mcv3-border, #dae6ef); border-radius: 12px; background: #fff; color: var(--mcv3-primary, #067b9d); font-family: inherit; font-size: 12px; font-weight: 900; cursor: pointer; }
.motorit-pricing .mcv3-checkout-close:hover,
.motorit-pricing .mcv3-checkout-close:focus-visible { border-color: var(--mcv3-primary, #067b9d); background: #f1f8fd; }

/* The Stripe iframe lives here. A soft blue well, so the white Checkout form reads as part of the page rather than a
   window onto another site. min-height keeps the panel from collapsing before Stripe paints. */
.motorit-pricing .mcv3-checkout-frame { padding: 4px; border: 1px solid #dbeaf6; border-radius: 18px; background: #f2f9ff; }
.motorit-pricing .mcv3-checkout-frame > div { min-height: 260px; border-radius: 14px; overflow: hidden; background: #fff; }
.motorit-pricing .mcv3-checkout-noscript { margin: 16px; font-size: 14px; font-weight: 600; color: var(--mcv3-muted, #60798c); }

/* Preview stand-in (fixtures mode / no publishable key): obviously not a real form, but shaped like one so the design
   around it can be judged. */
.motorit-pricing .mcv3-checkout-preview { padding: 22px; border: 1px dashed #9cc4dd; border-radius: 18px; background: #f2f9ff; text-align: center; }
.motorit-pricing .mcv3-checkout-preview-tag { display: inline-block; margin-bottom: 12px; padding: 4px 10px; border-radius: 999px; background: #fff4d1; color: #7a5400; font-size: 10px; font-weight: 950; letter-spacing: .07em; text-transform: uppercase; }
.motorit-pricing .mcv3-checkout-preview-title { margin: 0 0 8px; color: var(--mcv3-ink, #102b42); font-size: 17px; font-weight: 900; }
.motorit-pricing .mcv3-checkout-preview p { max-width: 52ch; margin: 0 auto; color: var(--mcv3-muted, #60798c); font-size: 13px; line-height: 1.55; }
.motorit-pricing .mcv3-checkout-preview-fallback { margin-top: 14px !important; }
.motorit-pricing .mcv3-checkout-preview-fallback[hidden] { display: none !important; }
.motorit-pricing .mcv3-checkout-preview-fallback a { color: var(--mcv3-primary, #067b9d); font-weight: 900; text-decoration: underline; }

.motorit-pricing .mcv3-checkout-note { margin: 14px 0 0; color: var(--mcv3-muted, #60798c); font-size: 12px; line-height: 1.55; }
.motorit-pricing .mcv3-checkout .mcv3-status { margin: 10px 0 0; }
.motorit-pricing .mcv3-checkout .mcv3-status.is-error { color: #b42318; }
.motorit-pricing .mcv3-checkout [aria-busy="true"] { opacity: .6; cursor: progress; }

@media (max-width: 900px) {
  .motorit-pricing .mcv3-checkout { padding: 20px; border-radius: 18px; }
  .motorit-pricing .mcv3-checkout h2 { font-size: 21px; }
}
@media (max-width: 640px) {
  .motorit-pricing .mcv3-checkout { padding: 16px; border-radius: 16px; }
  .motorit-pricing .mcv3-checkout .mcv3-panel-head { flex-direction: column-reverse; gap: 10px; }
  .motorit-pricing .mcv3-checkout-close { align-self: flex-end; }
  .motorit-pricing .mcv3-checkout h2 { font-size: 19px; }
  .motorit-pricing .mcv3-checkout-preview { padding: 16px; }
  .motorit-pricing .mcv3-checkout-frame { padding: 2px; border-radius: 14px; }
}
