/* NPC Order Form UX v1.2.2. Everything is scoped to body.npc-ofx, which the script adds only when it finds the plate form. */
body.npc-ofx {
	--npc-ink: #0a0a0a;
	--npc-yellow: #f2c529;
	--npc-cream: #fff6d6;
	--npc-line: #e2e2de;
	--npc-line-2: #d6d6d2;
	--npc-muted: #5c5c5c;
	--npc-bg: #f5f5f3;
	--npc-radius: 16px;
}

/* ---------- layout & cards ---------- */
.npc-ofx form.cart .tc-extra-product-options { background: var(--npc-bg); border-radius: 20px; padding: 14px; margin: 0 0 16px; }
.npc-ofx form.cart .cpf-section,
.npc-ofx form.cart .tc-section-inner-wrap,
.npc-ofx form.cart .tc-section-fields { padding: 0 !important; margin: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
.npc-ofx form.cart .npc-ofx-hidden-header { display: none !important; }
.npc-ofx form.cart .cpf-element.npc-ofx-card { background: #fff !important; border: 1px solid var(--npc-line) !important; border-radius: var(--npc-radius) !important; padding: 16px !important; margin: 0 0 12px !important; box-sizing: border-box; }
.npc-ofx form.cart .cpf-element.npc-ofx-card.tc-hidden { display: none !important; }
.npc-ofx form.cart .npc-ofx-rear { margin-top: -6px !important; }
.npc-ofx-noshow form.cart .npc-ofx-mode,
.npc-ofx-noshow form.cart .npc-ofx-showRefl { display: none !important; }

/* Labels + step badges */
.npc-ofx form.cart .npc-ofx-card .tc-epo-label { display: flex !important; align-items: center; gap: 10px; margin: 0 0 12px !important; padding: 0 !important; font-size: 16px !important; font-weight: 700 !important; line-height: 1.2 !important; color: var(--npc-ink) !important; text-transform: none !important; letter-spacing: 0 !important; width: 100% !important; }
.npc-ofx form.cart .npc-ofx-card .tm-epo-required { display: none !important; }
.npc-ofx form.cart .npc-ofx-sub .tc-epo-label { font-size: 13px !important; color: var(--npc-muted) !important; text-transform: uppercase !important; letter-spacing: 0.04em !important; }
.npc-ofx-badge { flex: none; width: 26px; height: 26px; border-radius: 99px; background: var(--npc-ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; line-height: 1; }
.npc-ofx-badge.is-done { background: var(--npc-yellow); color: var(--npc-ink); }
.npc-ofx form.cart .npc-ofx-card .tm-description,
.npc-ofx form.cart .npc-ofx-card .tc-chars { display: none !important; }
.npc-ofx form.cart .npc-ofx-card ul.tmcp-ul-wrap { margin: 0 !important; padding: 0 !important; list-style: none !important; }

/* ---------- progress ---------- */
.npc-ofx-progress { padding: 4px 4px 14px; }
.npc-ofx-progress-top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--npc-muted); margin-bottom: 8px; }
.npc-ofx-progress-bar { height: 6px; border-radius: 99px; background: #e6e6e1; overflow: hidden; }
.npc-ofx-progress-bar i { display: block; height: 100%; width: 0; background: var(--npc-yellow); border-radius: 99px; transition: width 0.3s ease; }

/* ---------- reg input ---------- */
.npc-ofx form.cart .npc-ofx-reg input.regnoplate { width: 100% !important; height: 62px !important; box-sizing: border-box !important; border: 2px solid var(--npc-ink) !important; border-radius: 10px !important; background: var(--npc-yellow) !important; color: var(--npc-ink) !important; text-align: center !important; font-size: 30px !important; font-weight: 800 !important; letter-spacing: 0.06em !important; text-transform: uppercase !important; padding: 0 12px !important; margin: 0 !important; }
.npc-ofx form.cart .npc-ofx-reg input.regnoplate::placeholder { color: rgba(10, 10, 10, 0.4) !important; }

/* ---------- live preview ---------- */
.npc-ofx-preview { background: #fff; border: 1px solid var(--npc-line); border-radius: var(--npc-radius); padding: 18px 12px 12px; margin: 0 0 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.npc-ofx-plate { position: relative; max-width: 100%; box-sizing: border-box; display: flex; align-items: center; justify-content: center; padding: 0 8px 6px; border: 1px solid rgba(0, 0, 0, 0.25); border-radius: 6px; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.07); transition: width 0.2s, height 0.2s, filter 0.2s; }
.npc-ofx-plate.is-front { background: #fff; }
.npc-ofx-plate.is-rear { background: var(--npc-yellow); }
.npc-ofx-plate.is-off { display: none; }
.npc-ofx-plate.is-hex { border-radius: 0; clip-path: polygon(6% 0, 94% 0, 100% 50%, 94% 100%, 6% 100%, 0 50%); }
.npc-ofx-plate.is-tint { filter: brightness(0.72); }
.npc-ofx-plate .npc-ofx-regtxt { font-family: var(--npc-plate-font, 'Roboto Condensed', sans-serif); font-weight: 800; color: var(--npc-ink); line-height: 1; letter-spacing: 0.04em; text-align: center; white-space: nowrap; overflow: hidden; }
.npc-ofx-plate.is-two .npc-ofx-regtxt { white-space: normal; line-height: 1.05; }
.npc-ofx-plate .npc-ofx-regtxt.is-empty { opacity: 0.3; }
.npc-ofx-plate small { position: absolute; left: 0; right: 0; bottom: 3px; text-align: center; font-size: 6px; line-height: 1; letter-spacing: 0.04em; color: #333; white-space: nowrap; overflow: hidden; }
.npc-ofx-plate.no-mark small, .npc-ofx-plate.no-mark .npc-ofx-mark { display: none; }
.npc-ofx-prev-cap { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--npc-muted); }

/* ---------- radio tiles (plate type, fitting) ---------- */
.npc-ofx form.cart .npc-ofx-card .tc-input-wrap { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; opacity: 0 !important; clip: rect(0 0 0 0) !important; }
.npc-ofx form.cart .npc-ofx-type ul.tmcp-ul-wrap { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.npc-ofx form.cart .npc-ofx-kit ul.tmcp-ul-wrap { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.npc-ofx form.cart .npc-ofx-type li.tmcp-field-wrap,
.npc-ofx form.cart .npc-ofx-kit li.tmcp-field-wrap { position: relative; width: auto !important; max-width: none !important; float: none !important; margin: 0 !important; padding: 0 !important; border: 1px solid var(--npc-line-2) !important; border-radius: 12px !important; background: #fff !important; box-shadow: none !important; transition: border-color 0.15s, background 0.15s; }
.npc-ofx form.cart .npc-ofx-type li.tmcp-field-wrap.npc-ofx-on,
.npc-ofx form.cart .npc-ofx-kit li.tmcp-field-wrap.npc-ofx-on { border: 2px solid var(--npc-ink) !important; background: var(--npc-cream) !important; }
.npc-ofx form.cart .npc-ofx-type li.tmcp-field-wrap:focus-within,
.npc-ofx form.cart .npc-ofx-kit li.tmcp-field-wrap:focus-within { outline: 3px solid var(--npc-yellow); outline-offset: 2px; }
.npc-ofx form.cart .npc-ofx-type li .tmcp-field-wrap-inner,
.npc-ofx form.cart .npc-ofx-kit li .tmcp-field-wrap-inner,
.npc-ofx form.cart .npc-ofx-type li .tc-field-label-wrap,
.npc-ofx form.cart .npc-ofx-kit li .tc-field-label-wrap { width: 100% !important; padding: 0 !important; margin: 0 !important; border: 0 !important; background: none !important; }
.npc-ofx form.cart .npc-ofx-type li label,
.npc-ofx form.cart .npc-ofx-kit li label { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100% !important; min-height: 64px; padding: 10px 6px !important; margin: 0 !important; box-sizing: border-box; cursor: pointer; border: 0 !important; background: none !important; box-shadow: none !important; color: var(--npc-ink) !important; }
.npc-ofx form.cart .npc-ofx-kit li label { min-height: 128px; padding: 14px 10px 12px !important; }
.npc-ofx form.cart .npc-ofx-type li .tc-label-wrap,
.npc-ofx form.cart .npc-ofx-kit li .tc-label-wrap { display: flex !important; flex-direction: column; align-items: center; gap: 6px; width: 100%; padding: 0 !important; border: 0 !important; background: none !important; }
.npc-ofx form.cart .npc-ofx-type .tc-label,
.npc-ofx form.cart .npc-ofx-kit .tc-label,
.npc-ofx form.cart .npc-ofx-type .tc-label-inner,
.npc-ofx form.cart .npc-ofx-kit .tc-label-inner { width: 100% !important; float: none !important; padding: 0 !important; margin: 0 !important; text-align: center !important; background: none !important; border: 0 !important; }
.npc-ofx form.cart .npc-ofx-type .tc-label-text,
.npc-ofx form.cart .npc-ofx-kit .tc-label-text { display: flex !important; flex-direction: column; align-items: center; gap: 2px; font-size: 14px !important; font-weight: 700 !important; line-height: 1.2 !important; color: var(--npc-ink) !important; text-transform: none !important; }
.npc-ofx-tile-sub { display: block; font-size: 12px; font-weight: 600; color: var(--npc-muted); }
.npc-ofx form.cart .npc-ofx-kit .tc-lightbox-image-wrap { display: flex; justify-content: center; width: 100%; margin: 0 !important; float: none !important; }
.npc-ofx form.cart .npc-ofx-kit img.tc-image { width: 64px !important; height: 64px !important; max-width: none !important; object-fit: contain; margin: 0 auto !important; float: none !important; border-radius: 8px; }
.npc-ofx form.cart .npc-ofx-kit .tc-lightbox-wrap { display: none !important; }
.npc-ofx-rec { position: absolute; top: -9px; left: 10px; z-index: 2; background: var(--npc-ink); color: var(--npc-yellow); font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; pointer-events: none; }

/* ---------- size chips ---------- */
.npc-ofx .npc-ofx-sr { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; border: 0 !important; opacity: 0 !important; pointer-events: none !important; }
.npc-ofx form.cart .npc-ofx-front ul.tmcp-ul-wrap,
.npc-ofx form.cart .npc-ofx-rear ul.tmcp-ul-wrap { position: relative; }
.npc-ofx-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.npc-ofx-chip { display: flex !important; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 64px; padding: 10px 12px !important; margin: 0 !important; border: 1px solid var(--npc-line-2) !important; border-radius: 12px !important; background: #fff !important; color: var(--npc-ink) !important; text-align: left; cursor: pointer; font: inherit; line-height: 1.2; box-shadow: none !important; text-transform: none !important; letter-spacing: 0 !important; }
.npc-ofx-chip-txt { display: flex; flex-direction: column; gap: 1px; font-weight: inherit; min-width: 0; }
.npc-ofx-chip strong { font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.npc-ofx-chip span { font-size: 11px; color: var(--npc-muted); }
.npc-ofx-chip em { font-style: normal; font-size: 11px; font-weight: 700; margin-top: 2px; }
.npc-ofx-chip.is-on { border: 2px solid var(--npc-ink) !important; background: var(--npc-cream) !important; padding: 9px 11px !important; }
.npc-ofx-chips.is-list { grid-template-columns: 1fr; }
.npc-ofx-chips.is-list .npc-ofx-chip { flex-direction: row; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px !important; }
.npc-ofx-chips.is-list .npc-ofx-chip.is-on { padding: 9px 13px !important; }
.npc-ofx-chips.is-list .npc-ofx-chip-txt { flex: 1; }
.npc-ofx-chips.is-list .npc-ofx-chip em { margin: 0; font-size: 13px; }
.npc-ofx-dot { flex: none; width: 18px; height: 18px; border-radius: 99px; border: 2px solid #9a9a94; box-sizing: border-box; }
.npc-ofx-chip.is-on .npc-ofx-dot { border: 6px solid var(--npc-ink); }
.npc-ofx-chip:hover { border-color: var(--npc-ink) !important; }
.npc-ofx-chip:focus-visible { outline: 3px solid var(--npc-yellow); outline-offset: 2px; }
.npc-ofx-warn { display: none; background: #fff4d1; border: 1px solid #f2c529; border-radius: 10px; padding: 10px 12px; margin: -4px 0 12px; font-size: 13px; font-weight: 600; color: var(--npc-ink); }
.npc-ofx-warn.is-on { display: block; }

/* ---------- notes ---------- */
.npc-ofx form.cart .npc-ofx-notes:not(.npc-ofx-open) { display: none !important; }
.npc-ofx-note-btn { display: block; background: none !important; border: 0 !important; padding: 6px 4px 14px !important; margin: 0 !important; font: inherit; font-size: 14px !important; font-weight: 700 !important; color: var(--npc-ink) !important; text-decoration: underline; cursor: pointer; box-shadow: none !important; }
.npc-ofx-note-btn[hidden] { display: none !important; }
.npc-ofx form.cart .npc-ofx-notes input { width: 100% !important; min-height: 48px; border: 1px solid var(--npc-line-2) !important; border-radius: 10px !important; padding: 10px 12px !important; font-size: 15px !important; box-sizing: border-box; }

/* ---------- totals, quantity, button ---------- */
.npc-ofx form.cart .quantity { display: none !important; }
.npc-ofx form.cart .tc-totals-form { margin: 0 0 10px !important; }
.npc-ofx form.cart .tm-extra-product-options-totals { display: flex !important; align-items: baseline; gap: 10px; margin: 0 !important; padding: 0 4px !important; border: 0 !important; background: none !important; }
.npc-ofx form.cart .tm-extra-product-options-totals dt { font-size: 12px !important; font-weight: 700 !important; letter-spacing: 0.06em; text-transform: uppercase; color: var(--npc-muted) !important; margin: 0 !important; }
.npc-ofx form.cart .tm-extra-product-options-totals dd { margin: 0 !important; font-size: 24px !important; font-weight: 800 !important; }
.npc-ofx form.cart .tm-extra-product-options-totals del { font-size: 15px; font-weight: 500; color: var(--npc-muted); margin-right: 6px; }
.npc-ofx form.cart .tm-extra-product-options-totals ins { text-decoration: none; }
.npc-ofx form.cart .single_add_to_cart_button { display: block !important; width: 100% !important; min-height: 58px !important; margin: 0 !important; border: 0 !important; border-radius: 14px !important; background: var(--npc-ink) !important; color: var(--npc-yellow) !important; font-size: 18px !important; font-weight: 800 !important; letter-spacing: 0.01em !important; text-transform: none !important; float: none !important; }
.npc-ofx form.cart .single_add_to_cart_button:hover { background: #262626 !important; }

/* ---------- trust strip ---------- */
.npc-ofx-trust { margin: 12px 0 0; clear: both; }
.npc-ofx-trust ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.npc-ofx-trust li { margin: 0 !important; padding: 10px 6px !important; background: var(--npc-bg); border-radius: 12px; text-align: center; font-size: 12px; font-weight: 700; line-height: 1.3; color: var(--npc-ink); list-style: none !important; }
.npc-ofx-trust li::before { content: none !important; }
.npc-ofx-trust p { margin: 10px 0 0 !important; font-size: 12px; line-height: 1.5; text-align: center; color: var(--npc-muted); }

/* ---------- sticky bar ---------- */
.npc-ofx-bar { display: none; }
body.npc-ofx.npc-ofx-sticky { padding-bottom: 112px; }
body.npc-ofx-sticky .npc-ofx-bar { display: flex; flex-direction: column; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; background: #fff; border-top: 1px solid var(--npc-line); box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08); padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); font-family: inherit; }
.npc-ofx-bar-total { display: flex; align-items: baseline; gap: 8px; color: var(--npc-ink); }
.npc-ofx-bar-total span { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--npc-muted); }
.npc-ofx-bar-total strong { font-size: 22px; font-weight: 800; }
.npc-ofx-bar-total del { font-size: 14px; color: var(--npc-muted); }
.npc-ofx-bar-btn { width: 100%; min-height: 54px; border: 0 !important; border-radius: 14px !important; background: #ececE8 !important; color: var(--npc-muted) !important; font: inherit; font-size: 17px !important; font-weight: 800 !important; cursor: pointer; text-transform: none !important; letter-spacing: 0 !important; box-shadow: none !important; padding: 0 12px !important; }
.npc-ofx-bar-btn.is-ready { background: var(--npc-ink) !important; color: var(--npc-yellow) !important; }
body.npc-ofx-sticky #wa .wa__btn_popup,
body.npc-ofx-sticky #wa .wa__popup_chat_box { bottom: 128px !important; }
/* Declutter product pages: hide the floating Trustindex badge and the Complianz
   "Manage consent" tab (consent stays changeable via the footer Cookie Policy page).
   WhatsApp stays, on its own, above the sticky bar. */
body.npc-ofx .ti-sticky-button,
body.npc-ofx button.cmplz-manage-consent { display: none !important; }

@media (max-width: 400px) {
	.npc-ofx form.cart .tc-extra-product-options { padding: 10px; margin-left: -4px; margin-right: -4px; }
	.npc-ofx-trust li { font-size: 11px; }
}

/* ---------- specificity guards against theme / Elementor widget styles ---------- */
body.npc-ofx form.cart .npc-ofx-card li .tc-label,
body.npc-ofx form.cart .npc-ofx-card li .tc-label-inner,
body.npc-ofx form.cart .npc-ofx-card li .tc-label-text { width: 100% !important; max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; justify-content: center; }
body.npc-ofx form.cart .npc-ofx-card li label { padding-left: 6px !important; padding-right: 6px !important; }
body.npc-ofx .elementor-widget form.cart button.single_add_to_cart_button.single_add_to_cart_button,
body.npc-ofx form.cart button.single_add_to_cart_button.single_add_to_cart_button { order: 2; background: var(--npc-ink) !important; background-color: var(--npc-ink) !important; background-image: none !important; color: var(--npc-yellow) !important; border-radius: 14px !important; font-size: 18px !important; font-weight: 800 !important; }
body.npc-ofx form.cart .npc-ofx-trust { order: 3; width: 100%; }
body.npc-ofx form.cart .tm-extra-product-options-totals del,
body.npc-ofx form.cart .tm-extra-product-options-totals del * { color: var(--npc-muted) !important; }
body.npc-ofx form.cart .tm-extra-product-options-totals ins,
body.npc-ofx form.cart .tm-extra-product-options-totals ins * { color: var(--npc-ink) !important; }

/* Reg box stays yellow even with theme input styles. */
body.npc-ofx form.cart .npc-ofx-card input.regnoplate.tmcp-field,
body.npc-ofx form.cart .npc-ofx-card input.regnoplate.tmcp-field:focus { background: var(--npc-yellow) !important; background-color: var(--npc-yellow) !important; border-color: var(--npc-ink) !important; box-shadow: none !important; outline: none !important; }
body.npc-ofx form.cart .npc-ofx-card input.regnoplate.tmcp-field:focus { box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.15) !important; }
/* Tooltips: hide empty ones and the select-level ones now that options are tiles; pin option tips to the tile corner. */
body.npc-ofx form.cart .npc-ofx-card i.tm-tooltip[data-tm-tooltip-html=""],
body.npc-ofx form.cart .npc-ofx-front i.tm-tooltip,
body.npc-ofx form.cart .npc-ofx-rear i.tm-tooltip,
body.npc-ofx form.cart .npc-ofx-legalRefl i.tm-tooltip,
body.npc-ofx form.cart .npc-ofx-showRefl i.tm-tooltip { display: none !important; }
body.npc-ofx form.cart .npc-ofx-kit li i.tm-tooltip { position: absolute !important; top: 8px; right: 8px; margin: 0 !important; }
body.npc-ofx form.cart .npc-ofx-front li.tmcp-field-wrap,
body.npc-ofx form.cart .npc-ofx-rear li.tmcp-field-wrap,
body.npc-ofx form.cart .npc-ofx-legalRefl li.tmcp-field-wrap,
body.npc-ofx form.cart .npc-ofx-showRefl li.tmcp-field-wrap { margin: 0 !important; padding: 0 !important; min-height: 0 !important; height: auto; border: 0 !important; }
body.npc-ofx form.cart .npc-ofx-kit li.npc-ofx-recommended label { padding-top: 22px !important; }
/* Preview stage: light grey so a white front plate always reads. */
.npc-ofx-preview { background: #ecece8; border-color: #e2e2de; }
.npc-ofx-plate.is-hex { border: 0; box-shadow: none; }
body.npc-ofx form.cart #tm-epo-totals del,
body.npc-ofx form.cart #tm-epo-totals del .amount,
body.npc-ofx form.cart #tm-epo-totals del bdi { color: var(--npc-muted) !important; font-size: 15px !important; font-weight: 500 !important; }
body.npc-ofx form.cart #tm-epo-totals ins,
body.npc-ofx form.cart #tm-epo-totals ins .amount,
body.npc-ofx form.cart #tm-epo-totals ins bdi { color: var(--npc-ink) !important; }
body.npc-ofx form.cart .npc-ofx-card .tc-element-container,
body.npc-ofx form.cart .npc-ofx-card ul.tmcp-ul-wrap,
body.npc-ofx .npc-ofx-chips { width: 100% !important; max-width: none !important; float: none !important; }
body.npc-ofx .npc-ofx-chip,
body.npc-ofx .npc-ofx-chip * { white-space: normal !important; }
body.npc-ofx .npc-ofx-chip { width: 100% !important; min-width: 0 !important; box-sizing: border-box !important; height: auto !important; }
/* The real selects stay in the DOM for TM EPO, but take no space. */
body.npc-ofx form.cart .npc-ofx-front li.tmcp-field-wrap,
body.npc-ofx form.cart .npc-ofx-rear li.tmcp-field-wrap,
body.npc-ofx form.cart .npc-ofx-legalRefl li.tmcp-field-wrap,
body.npc-ofx form.cart .npc-ofx-showRefl li.tmcp-field-wrap { height: 0 !important; overflow: hidden !important; }
/* One column on every screen so steps read 1 → 5. */
body.npc-ofx form.cart .tc-extra-product-options li.tm-extra-product-options-field,
body.npc-ofx form.cart .tc-extra-product-options .cpf-section { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; float: none !important; }
body.npc-ofx form.cart #tm-epo-totals del .woocommerce-Price-currencySymbol { color: var(--npc-muted) !important; }
body.npc-ofx form.cart #tm-epo-totals ins .woocommerce-Price-currencySymbol { color: var(--npc-ink) !important; }
@media (min-width: 1025px) {
	body.npc-ofx .npc-ofx-chips:not(.is-list) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	body.npc-ofx form.cart .npc-ofx-kit ul.tmcp-ul-wrap { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	body.npc-ofx .npc-ofx-chips.is-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Injected blocks span the full row (TM rows are flex). */
body.npc-ofx .npc-ofx-preview,
body.npc-ofx .npc-ofx-warn,
body.npc-ofx .npc-ofx-note-btn { flex: 0 0 100%; width: 100%; max-width: 100%; box-sizing: border-box; }
body.npc-ofx form.cart .npc-ofx-card { flex: 0 0 100% !important; width: 100% !important; max-width: 100% !important; }
body.npc-ofx form.cart .npc-ofx-reg li.tmcp-field-wrap,
body.npc-ofx form.cart .npc-ofx-reg .tmcp-field-wrap-inner,
body.npc-ofx form.cart .npc-ofx-reg label { display: block !important; width: 100% !important; max-width: none !important; float: none !important; padding: 0 !important; margin: 0 !important; }

/* ===================== Wizard (v1.1) ===================== */
body.npc-ofx form.cart .npc-ofx-off,
body.npc-ofx form.cart .cpf-element.npc-ofx-card.npc-ofx-off,
body.npc-ofx .npc-ofx-warn.npc-ofx-off,
body.npc-ofx .npc-ofx-note-btn.npc-ofx-off { display: none !important; }
body.npc-ofx-wizard .npc-ofx-badge { display: none !important; }
body.npc-ofx-wizard form.cart .npc-ofx-sub .tc-epo-label { margin-top: 4px !important; }
body.npc-ofx-wizard form.cart .npc-ofx-rear { margin-top: 0 !important; }

/* Step tabs */
.npc-ofx-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.npc-ofx-tabs li { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.npc-ofx-tabs li::before { content: none !important; }
.npc-ofx-tabs button { display: flex !important; flex-direction: column; align-items: center; gap: 4px; width: 100%; min-height: 56px; padding: 8px 2px !important; margin: 0 !important; border: 1px solid var(--npc-line) !important; border-radius: 12px !important; background: #fff !important; color: var(--npc-ink) !important; font: inherit; font-size: 12px !important; font-weight: 700 !important; line-height: 1.1 !important; text-transform: none !important; letter-spacing: 0 !important; cursor: pointer; box-shadow: none !important; }
.npc-ofx-tabs button i { font-style: normal; width: 22px; height: 22px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; background: #ecece8; color: var(--npc-ink); }
.npc-ofx-tabs button.is-done i { background: var(--npc-yellow); }
.npc-ofx-tabs button.is-cur { background: var(--npc-ink) !important; border-color: var(--npc-ink) !important; color: #fff !important; }
.npc-ofx-tabs button.is-cur i { background: var(--npc-yellow); color: var(--npc-ink); }
.npc-ofx-tabs button:disabled { opacity: 0.45; cursor: default; }
.npc-ofx-tabs button:focus-visible { outline: 3px solid var(--npc-yellow); outline-offset: 2px; }

/* Back / Next inside the form (desktop) */
.npc-ofx-nav { display: flex; gap: 10px; margin: 4px 0 0; }
.npc-ofx-nav button { min-height: 54px; border: 0 !important; border-radius: 14px !important; font: inherit; font-size: 16px !important; font-weight: 800 !important; cursor: pointer; text-transform: none !important; letter-spacing: 0 !important; box-shadow: none !important; padding: 0 18px !important; }
.npc-ofx-nav .npc-ofx-back { flex: 0 0 auto; background: #fff !important; color: var(--npc-ink) !important; border: 1px solid var(--npc-line-2) !important; }
.npc-ofx-nav .npc-ofx-back[hidden] { display: none !important; }
.npc-ofx-nav .npc-ofx-next { flex: 1; background: #ecece8 !important; color: var(--npc-muted) !important; }
.npc-ofx-nav .npc-ofx-next.is-ready { background: var(--npc-ink) !important; color: var(--npc-yellow) !important; }
body.npc-ofx-wizard.npc-ofx-last .npc-ofx-nav .npc-ofx-next { display: none !important; }
body.npc-ofx-sticky .npc-ofx-nav { display: none !important; }
body.npc-ofx-wizard:not(.npc-ofx-last) form.cart button.single_add_to_cart_button.single_add_to_cart_button { display: none !important; }

/* Missing-choice nudge */
@keyframes npc-ofx-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
body.npc-ofx form.cart .npc-ofx-card.npc-ofx-need { animation: npc-ofx-shake 0.35s ease 2; border-color: #b3261e !important; }

/* Compact, sticky preview after step 1 */
body.npc-ofx-wizard .npc-ofx-preview { position: sticky; top: calc(var(--npc-head, 0px) + 6px); z-index: 6; }
.npc-ofx-preview.npc-ofx-compact { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 8px 10px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06); }
.npc-ofx-preview.npc-ofx-compact .npc-ofx-plate { zoom: 0.55; }
.npc-ofx-preview.npc-ofx-compact .npc-ofx-prev-cap { display: none; }

/* Mini preview pinned under the header (phones), shown when the big one scrolls away */
.npc-ofx-mini { display: none; }
body.npc-ofx-sticky .npc-ofx-mini.is-on { display: flex; position: fixed; left: 0; right: 0; top: 0; z-index: 9989; justify-content: center; align-items: center; gap: 8px; padding: 6px 10px; background: rgba(236, 236, 232, 0.97); border-bottom: 1px solid var(--npc-line); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08); }
.npc-ofx-mini .npc-ofx-plate { zoom: 0.5; }

/* Sticky bar: Back + main button */
.npc-ofx-bar-row { display: flex; gap: 8px; }
.npc-ofx-bar-row .npc-ofx-bar-btn { flex: 1; }
.npc-ofx-bar-back { display: none; flex: 0 0 54px; min-height: 54px; border: 1px solid var(--npc-line-2) !important; border-radius: 14px !important; background: #fff !important; color: var(--npc-ink) !important; font: inherit; font-size: 26px !important; font-weight: 700 !important; line-height: 1 !important; cursor: pointer; padding: 0 !important; box-shadow: none !important; }
.npc-ofx-bar.has-back .npc-ofx-bar-back { display: block; }

@media (max-width: 380px) {
	.npc-ofx-tabs button { font-size: 11px !important; }
}
/* v1.2.2: preview sits above the reg card; keep a little space under it. */
body.npc-ofx-wizard .npc-ofx-preview { margin-bottom: 12px; }
/* v1.2.2: the sticky bar already shows the total on phones/tablets, so hide the form's Final Total there. */
body.npc-ofx-sticky form.cart .tc-totals-form,
body.npc-ofx-sticky form.cart #tm-epo-totals { display: none !important; }
/* v1.2.2: trust strip — evenly spaced boxes, grey with black text. */
body.npc-ofx .npc-ofx-trust ul { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) !important; grid-auto-flow: column; gap: 10px; }
body.npc-ofx .npc-ofx-trust li { background: var(--npc-bg) !important; color: var(--npc-ink) !important; padding: 12px 8px !important; border-radius: 12px; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* v1.2.2: compact product hero on phones. The first screen shows the photo, thumbnails, title and the start of the form. */
@media (max-width: 767px) {
	body.npc-ofx .elementor-element-67391cf > .e-con-inner { padding-top: 12px !important; gap: 4px !important; }
	body.npc-ofx .woocommerce-product-gallery .flex-viewport { height: auto !important; border-radius: 16px; }
	body.npc-ofx .woocommerce-product-gallery__image img,
	body.npc-ofx .woocommerce-product-gallery__image a img { aspect-ratio: 4 / 3; width: 100% !important; height: auto !important; object-fit: cover; object-position: center; border-radius: 16px; }
	body.npc-ofx .woocommerce-product-gallery .onsale { top: 10px !important; left: 10px !important; }
	body.npc-ofx .woocommerce-product-gallery__trigger { top: 10px !important; right: 10px !important; }
	body.npc-ofx #thumb-carousel-wrapper { margin-top: 10px !important; gap: 4px !important; }
	body.npc-ofx #thumb-carousel-wrapper .thumb-nav { font-size: 26px !important; padding: 2px 6px !important; }
	body.npc-ofx #thumb-carousel { gap: 8px !important; padding: 4px 2px 6px !important; scrollbar-width: none; }
	body.npc-ofx #thumb-carousel::-webkit-scrollbar { display: none; }
	body.npc-ofx #thumb-carousel .thumb-item { width: 54px !important; height: 54px !important; padding: 5px !important; border-radius: 10px !important; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12) !important; border: 2px solid transparent; }
	body.npc-ofx #thumb-carousel .thumb-item.thumb-active { border-color: #F2C529 !important; }
	body.npc-ofx h1.product_title { font-size: 28px !important; line-height: 1.12 !important; letter-spacing: -0.01em; margin: 0 0 2px !important; padding: 0 !important; text-align: left !important; }
}

/* v1.2.2: spacing disclaimer under the registration box. */
body.npc-ofx .npc-ofx-regnote { margin: 10px 0 0 !important; font-size: 13px; line-height: 1.4; color: var(--npc-muted); text-align: center; }
.npc-ofx-progress.npc-ofx-progress-inrow { width: 100%; flex: 0 0 100%; box-sizing: border-box; padding: 12px 4px 12px; }

/* v1.2.4: plate marks positioned like the Canvas builder (millimetre viewBox set in JS). */
.npc-ofx-plate .npc-ofx-mark { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.npc-ofx-plate .npc-ofx-mark text { font-family: var(--npc-plate-font, 'Roboto Condensed', sans-serif); font-weight: 400; fill: #1a1a1a; }
