/**
 * mmplatebuilder theme overrides.
 * Copy to theme.css and override any of these CSS custom properties
 * to match the host site's branding. All defaults live in mmplatebuilder.css.
 */
:root {
  /* Primary brand colour (CTAs, accents, focus rings) — N1 yellow */
  --mmpb-primary: #FFC200;
  --mmpb-primary-hover: #E6AB00;

  /* Text */
  --mmpb-text: #2d2d2d;
  --mmpb-text-muted: #666;

  /* Surfaces */
  --mmpb-bg: #ffffff;
  --mmpb-surface: #f7f7f7;
  --mmpb-border: #e0e0e0;

  /* Typography */
  --mmpb-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Radii */
  --mmpb-radius-sm: 6px;
  --mmpb-radius: 8px;
  --mmpb-radius-lg: 12px;

  /* Plate-specific (normally don't override these) */
  --mmpb-plate-font: 'CharlesWright';
  --mmpb-plate-front-bg: #ffffff;
  --mmpb-plate-rear-bg: #f8cf48;
  --mmpb-badge-bg: #003399;
}

/* ─── N1 overrides ──────────────────────────────────────────────────
   Additive rules only — do NOT modify the variables above without
   testing, several plate visuals depend on them.
─────────────────────────────────────────────────────────────────────*/

/* Hide only the desktop heading variant — mobile banner shown via
   mmplatebuilder.css responsive rules at <=900px. */
#builder .mmpb-heading.desktop-only { display: none !important; }

/* Hide the inner mmpb header (brand link + Builder/Basket nav).
   The parent SPA already provides the site header, so this duplicates it
   and shows "{{MMPB_STORE_NAME}}" literally. */
#builder .mmpb-site-header { display: none !important; }

/* ─── N1 colour repaint ─────────────────────────────────────────────
   The base mmpb CSS hardcodes #2bbc5d (green) in 24 places rather than
   using --mmpb-primary. We override each hook here. Yellow (#FFC200)
   needs DARK text for contrast — white-on-yellow fails WCAG.
─────────────────────────────────────────────────────────────────────*/

/* Focus rings on registration + dropdowns */
#builder .registration.builder-input-box:focus-within,
#builder .drop-select:focus-within { border-color: #377DFB !important; }

/* Pulse animation around the registration field — yellow halo */
@keyframes pulse-border-n1 {
  0%, 100% { border-color: #d0d0d0; box-shadow: none; }
  50%      { border-color: #377DFB; box-shadow: 0 0 0 6px rgba(55,125,251,0.18), 0 0 18px rgba(55,125,251,0.12); }
}
#builder .registration.builder-input-box {
  animation: pulse-border-n1 1.8s ease-in-out infinite !important;
}
#builder .registration.builder-input-box:focus-within {
  animation: none !important;
  box-shadow: 0 0 0 4px rgba(55,125,251,0.18) !important;
}

/* Vehicle toggle (Car / Motorbike) */
#builder .vehicle-toggle-btn:hover,
#builder .vehicle-toggle-btn.active { color: #1a1a1a !important; }

/* Style + material radio cards */
#builder .box.font:hover { border-color: #FFC200 !important; background: #fffceb !important; }
#builder .material-option:has(input:checked) { border-color: #FFC200 !important; }

/* Native checkboxes pick up brand colour */
#builder .types_of_plates label span input[type="checkbox"],
#builder .fixing-checkbox input[type="checkbox"] { accent-color: #FFC200 !important; }

/* USP icons (delivery van, shield, etc.) */
#builder .usp-icon { background: #fff8d4 !important; }
#builder .usp-icon svg { stroke: #1a1a1a !important; }

/* PRIMARY CTA — Add to basket. Dark text on yellow for contrast,
   yellow halo shadow. */
#builder .add_cart_btn.crt-btn,
#builder .sticky-add-to-basket .add_cart_btn {
  background: #198A00 !important;
  background-image: none !important;
  color: #fff !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
#builder .add_cart_btn.crt-btn:hover {
  background: #157800 !important;
}

/* Cookie banner accept button */
#builder .cookie-btn-accept { background: #FFC200 !important; color: #1a1a1a !important; }
#builder #cookie-banner a { color: #FFC200 !important; }

/* Nav menu hover + active link colour (in case .mmpb-site-header is ever shown) */
#builder .nav-menu-box a:hover,
#builder .mobile-nav a:hover { color: #1a1a1a !important; }

/* ─── N1 chrome polish ──────────────────────────────────────────────
   Subtle tweaks to push the builder closer to the n1redesign vibe:
   white surface, soft shadow, dark step badge, generous spacing.
─────────────────────────────────────────────────────────────────────*/

/* Lift the form column with a soft shadow + rounded corner */
#builder .left_box {
  background: #fff !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  overflow: hidden;
}

/* Step number badge — N1 dark with yellow ring on hover/focus */
#builder .panel-heading .step {
  background: #1a1a1a !important;
  color: #FFC200 !important;
}

/* Panel title nudged darker for higher contrast */
#builder .panel-heading h3.panel-title { 
  color: #1a1a1a !important; 
  text-transform: uppercase;
}

/* ─── N1 plate-type toggle (Step 1) ─────────────────────────────────
   Two side-by-side cards. Active = yellow border + soft yellow tint.
─────────────────────────────────────────────────────────────────────*/
#builder .n1-plate-type-toggle {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
#builder .n1-type-option {
  flex: 1;
  cursor: pointer;
  padding: 8px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, background .15s, box-shadow .15s, transform .1s;
  text-align: center;
}
#builder .n1-type-option input[type="radio"] { display: none; }
#builder .n1-type-option:hover { border-color: #bbb; }
#builder .n1-type-option.active {
  border-color: #FFC200;
  background: #fffceb;
  box-shadow: 0 2px 10px rgba(255,194,0,0.22);
}
#builder .n1-type-label {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.1px;
}
#builder .n1-type-sub {
  font-size: 11px;
  color: #666;
  line-height: 1.4;
}

/* ─── Show-plate visual rules ───────────────────────────────────────
   When body has .n1-show-mode (set by n1-plate-type.js), suppress the
   compliance markings on the plate preview. They're decorative only on
   show plates so per Matt's rules they shouldn't render at all.
─────────────────────────────────────────────────────────────────────*/
/* Selectors fixed 2026-10-13 (Matt): they were written '#builder body.n1-show-mode ...',
   which can never match (body is not inside #builder), so Show Plates still printed the
   supplier text in the centre. Show Plates = blank bottom line until the customer types
   their own slogan. */
body.n1-show-mode #builder .mmpb-plate-box .mmpb-label-bs,
body.n1-show-mode #builder .mmpb-plate-box .mmpb-label-centre { display: none !important; }

/* But if there's a slogan in show mode, override the label-centre hide
   (the slogan is rendered into that slot). */
body.n1-show-mode.n1-has-slogan #builder .mmpb-plate-box .mmpb-label-centre { display: block !important; }

/* Solid black label text for both road-legal and show-plate modes */
#builder .mmpb-label-centre,
#builder .mmpb-label-bs {
  color: #000;
  padding: 2px 3px;
}

/* ─── Shaped (car-specific) rear plate ──────────────────────────────
   The cached PNG is now a transparent yellow silhouette only — no text,
   no supplier strip. Everything else (reg text, BSAU markings, supplier
   text, slogan, border, badge, gloss) renders client-side on top, exactly
   like a rectangular plate.
─────────────────────────────────────────────────────────────────────*/
#builder .mmpb-rear-plate.has-shaped-image {
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
/* Badge on shaped rear plates: absolute-positioned at 7% from left,
   height matched to reg font size via JS (rg1.offsetHeight). */
#builder .mmpb-rear-plate.has-shaped-image .mmpb-badge {
  position: absolute !important;
  z-index: 2 !important;
  width: 34px !important;
  padding: 5px 0px !important;
}
#builder .mmpb-rear-plate.n1-shape-no-badge .mmpb-badge {
  display: none !important;
}
#builder .mmpb-rear-plate.has-shaped-image .mmpb-badge-flag {
  height: 35px !important;
}
#builder .mmpb-rear-plate.has-shaped-image:not(.mmpb-has-badge) .mmpb-badge {
  width: 0 !important;
  overflow: hidden !important;
}
/* Image is the BACKGROUND layer — fills the container, behind all overlays. */
#builder .mmpb-rear-plate.has-shaped-image .mmpb-shaped-rear-img {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  z-index: 0 !important;
  pointer-events: none !important;
}
/* Hide the "Not selected" placeholder overlay only — keep all other
   client-side layers (reg text, badge, border, BSAU/supplier strip). */
#builder .mmpb-rear-plate.has-shaped-image .mmpb-not-active-overlay {
  display: none !important;
}
/* 3D Gel chars need to render ABOVE the shape silhouette image (which
   sits at z-index 0). Without an explicit z-index, the gel container
   stacks in DOM order and is hidden behind the late-appended image. */
#builder .mmpb-rear-plate.has-shaped-image .gel-mmpb-plate-text-el-el {
  z-index: 5 !important;
}
/* Premium Acrylic gloss — kept on top so it overlays the shape when
   .mmpb-plate-crystal is set (only on Premium Acrylic). */
#builder .mmpb-rear-plate.has-shaped-image::after {
  z-index: 7 !important;
}

/* Rectangular .mmpb-border doesn't follow the shape outline — hide it on
   shaped plates. The drop-shadow chain below renders the border that
   actually traces the silhouette. */
#builder .mmpb-rear-plate.has-shaped-image .mmpb-border {
  display: none !important;
}

/* 4D shadow overlay sits on top of base text. On rect plates the two
   overlap (Standard) or offset slightly (4D). On a shape the overlay
   doesn't reposition to match the new aspect ratio, so the reg shows
   twice — one slightly smaller/blacker than the other. The shape
   silhouette is the visual depth here, so the 4D shadow isn't meaningful.
   Hide it on shaped plates (same pattern as .mmpb-plate-angled). */
#builder .mmpb-rear-plate.has-shaped-image .mmpb-plate-text-el-el-ov {
  display: none !important;
}

/* Shape border overlay — David's pre-rendered outline PNGs (one per colour)
   sit above the silhouette, below the reg text. The PNG bounds match the
   silhouette bounds 1:1, so inset:0 + object-fit:contain aligns perfectly. */
#builder .mmpb-shape-border-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

/* ─── Hex & Diamond size-option shaped plates (front + rear) ────────
   .mmpb-shaped-size-img is injected by updateShapedSizePlatePreview()
   when an H&D size is selected from the FRONT SIZE or REAR SIZE dropdown.
   Must sit at z-index 0 so reg text + badge render on top. */
#builder .mmpb-front-plate.has-shaped-image,
#builder .mmpb-rear-plate.has-shaped-image.n1-size-shaped {
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
#builder .mmpb-front-plate.has-shaped-image .mmpb-shaped-size-img,
#builder .mmpb-rear-plate.has-shaped-image .mmpb-shaped-size-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  z-index: 0 !important;
  pointer-events: none !important;
}
#builder .mmpb-front-plate.has-shaped-image .mmpb-not-active-overlay {
  display: none !important;
}
#builder .mmpb-front-plate.has-shaped-image .mmpb-border,
#builder .mmpb-rear-plate.has-shaped-image.n1-size-shaped .mmpb-border {
  display: none !important;
}
#builder .mmpb-front-plate.has-shaped-image .mmpb-plate-text-el-el-ov,
#builder .mmpb-rear-plate.has-shaped-image.n1-size-shaped .mmpb-plate-text-el-el-ov {
  display: none !important;
}
#builder .mmpb-front-plate.has-shaped-image .gel-mmpb-plate-text-el-el {
  z-index: 5 !important;
}
#builder .mmpb-front-plate.has-shaped-image::after {
  z-index: 7 !important;
}
#builder .mmpb-front-plate.has-shaped-image .mmpb-badge {
  position: absolute !important;
  z-index: 2 !important;
  width: 34px !important;
  padding: 5px 0px !important;
}
#builder .mmpb-front-plate.has-shaped-image:not(.mmpb-has-badge) .mmpb-badge {
  width: 0 !important;
  overflow: hidden !important;
}
#builder .mmpb-front-plate.has-shaped-image .mmpb-label-bs {
  background: #E7E7E7 !important;
}
#builder body:not(.n1-show-mode) .mmpb-front-plate.has-shaped-image .mmpb-label-bs {
  display: block !important;
  background: #E7E7E7 !important;
  right: 11% !important;
}
#builder .mmpb-front-plate.has-shaped-image .mmpb-label-centre {
  background: #E7E7E7 !important;
}
/* Border PNG overlay for size-option H&D plates (same slot as mmpb-shape-border-img) */
#builder .mmpb-shape-border-size-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

/* Shape border — disabled. Drop-shadow approach (option A) sits too close
   to the silhouette edge to read as a real plate border. Revisit with the
   SVG-from-DXF approach (option B): convert each shape's DXF outline to
   an SVG path with a stroke, scale to the shape's mm dimensions, render as
   an overlay. DXFs already exist on bluedigital under
   /home/n1p/site/public_html/magento/pub/media/regplate/dfx_original_files/.
   The .has-shape-border class hook stays so the new approach can target it. */

/* ─── Shaped plate legal markings ───────────────────────────────────
   Many shaped plates have angled / notched / curved corners, so the
   bottom-right BSAU145e mark gets clipped. For LEGAL shaped plates
   only (not show mode), combine the BS number + supplier label into a
   single centred string ("BSAU145e   NUMBER1PLATES JE24UE"). The corner
   .mmpb-label-bs element is hidden; ::before prepends the BS number to
   the centre label so both render together inside the safe area.
─────────────────────────────────────────────────────────────────────*/
/* Always hide the bottom-right BSAU145e corner mark on shaped plates —
   shape silhouettes have angled / notched / curved corners that clip it.
   For legal mode, the BS number is prepended into the centre label below
   so we still get one BSAU145e + supplier reading inside the safe area. */
#builder .mmpb-rear-plate.has-shaped-image .mmpb-label-bs {
  background: #ffb400 !important;
}
#builder body:not(.n1-show-mode) .mmpb-rear-plate.has-shaped-image .mmpb-label-bs {
  display: block !important;
  background: #ffb400 !important;
  right: 11% !important;
  /* bottom set dynamically by alignShapeBorder() */
}

/* Lift the centre label up so it always sits inside the silhouette. Many
   shapes have curved or notched bottom edges — the silhouette doesn't reach
   the bottom of the bounding box at the corners, so a low offset would render
   below the visible yellow. 14% sits comfortably inside even on the most
   tapered shapes. */
#builder .mmpb-rear-plate.has-shaped-image .mmpb-label-centre {
  background: #ffb400 !important;
  /* bottom and left set dynamically by alignShapeBorder() */
}

/* ─── 4x4 square plate (279×203mm) label position ───────────────────
   The base rule adds 2px on top of the 2.7% border inset. On the taller
   square plate the percentage alone is sufficient — remove the extra 2px. */
#builder .mmpb-plate-box[data-wmm="279"][data-hmm="203"] .mmpb-label-centre,
#builder .mmpb-plate-box[data-wmm="279"][data-hmm="203"] .mmpb-label-bs {
  bottom: calc(2.7% + 0px);
}

/* ─── Slogan step is Show-only ──────────────────────────────────────
   Slogan panel + its preceding arrow are hidden by default. They appear
   only when body has .n1-show-mode (i.e. customer chose Show Plates).
─────────────────────────────────────────────────────────────────────*/
#builder #n1-slogan-panel,
#builder #n1-slogan-arrow { display: none !important; }
body.n1-show-mode #builder #n1-slogan-panel { display: block !important; }
body.n1-show-mode #builder #n1-slogan-arrow { display: flex !important; }

/* ─── Badge background colour — always visible (merged into Badge Type panel) ──*/
#builder #n1-badge-bg-panel { 
     display: flex;
    gap: 6px;
}

/* ─── Motorbike mode — shaped rear plate row always hidden ──────────
   Shaped plates are car-specific. Hide in both road legal and show
   plate mode — any vehicle type toggle to bike must never show it.
─────────────────────────────────────────────────────────────────────*/
#builder body.n1-bike-mode #shaped-rear-row { display: none !important; }

/* ─── Flag + EV strip steps hidden on shaped plates ────────────────
   Shaped plates have size restrictions that exclude badges and EV strips —
   neither fits inside the safe silhouette area. Hide both steps + their
   preceding arrows. The handler also resets state.badge to 'none' on shape
   selection so pricing & cart-add don't carry a flag they can't display.
─────────────────────────────────────────────────────────────────────*/
#builder body.n1-shaped-rear #n1-ev-panel,
#builder body.n1-shaped-rear #n1-ev-arrow { display: none !important; }

/* TEMP: badge disabled on shaped plates */
#builder body.n1-shaped-rear #n1-flag-panel,
#builder body.n1-shaped-rear #n1-badge-colour-row {
  opacity: 0.35;
  pointer-events: none;
}

/* ─── Slogan input styling ──────────────────────────────────────────
   Match the existing .drop-select chrome so it sits visually with the
   size dropdowns: same fill, border, radius, focus-ring colour.
─────────────────────────────────────────────────────────────────────*/
#builder #n1-slogan-input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  color: #2d2d2d;
  background: #f5f5f5;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
#builder #n1-slogan-input:hover  { border-color: #bbb; }
#builder #n1-slogan-input:focus  {
  border-color: #377DFB;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(55,125,251,0.15);
}
#builder #n1-slogan-input::placeholder {
  color: #a8a8a8;
  font-weight: 400;
  font-style: italic;
}

/* ─── Hide "Required" labels on plate sizes ─────────────────────────
   The tick boxes alone communicate the front/rear selection — the
   "Required" word is redundant.
─────────────────────────────────────────────────────────────────────*/
#builder .types_of_plates span > label[for^="fronttick-"] { display: none !important; }

/* ─── Hide pricing on paid style cards (3D Gel, 4D) ─────────────────
   Any plate-font with a non-zero data-add hides its sibling price chip.
   Standard's "Included" (data-add="0") stays. Sibling combinator works
   without :has() so it's fine on every browser.
─────────────────────────────────────────────────────────────────────*/
#builder .box.font input.plate-font:not([data-add="0"]) ~ .style-price { display: none !important; }

/* Even Standard's "Included" chip we drop — labels alone give us a
   clean compact pill. Comment out this rule to bring "Included" back. */
#builder .box.font .style-price { display: none !important; }

/* Style-card label as a compact uppercase pill — saves space, stronger
   visual hierarchy. Padding boosted vertically since the price chip is gone. */
#builder .font-label {
  text-transform: uppercase !important;
  letter-spacing: 0.4px !important;
  font-size: 12px !important;
  padding: 10px 6px !important;
}

/* ─── Style chips in 2 rows of 3 (six active styles) ─────────────────
   Switch the fonts container to a 3-column grid so cards stay readable
   instead of squashing into a 6-card single row. Mobile drops to 2-cols.
─────────────────────────────────────────────────────────────────────*/
#builder .fonts-container {
  /* display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important; */
  gap: 8px !important;
}
/* Hide raw font labels until n1-font-style.js replaces them — prevents FOUC */
#builder .fonts-container > label.box.font {
  display: none !important;
}
#builder .box.font {
  flex: unset !important; /* grid sizes the cells now, not flex */
}
@media (max-width: 640px) {
  #builder .fonts-container {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}


/* ─── Combined reg + plate-type card ───────────────────────────────
   The plate-type toggle now lives inside the registration panel.
───────────────────────────────────────────────────────────────────*/
#builder .n1-plate-type-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #555;
  margin-top: 16px;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ─── Plate-type slider toggle ──────────────────────────────────────
   Replaces the two-card buttons with a round toggle switch.
───────────────────────────────────────────────────────────────────*/
#builder .n1-plate-type-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
#builder .n1-toggle-label {
  font-size: 13px;
  font-weight: 700;
  color: #bbb;
  cursor: pointer;
  transition: color .2s;
  user-select: none;
}
#builder .n1-toggle-legal.active { color: #2bbc5d; }
#builder .n1-toggle-show.active  { color: #e6a800; }

#builder .n1-toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  margin: 0;
  flex-shrink: 0;
}
#builder .n1-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
#builder .n1-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #2bbc5d;
  border-radius: 26px;
  transition: background .3s;
}
#builder .n1-toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .3s;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
#builder .n1-toggle-switch input:checked + .n1-toggle-slider {
  background: #e6a800;
}
#builder .n1-toggle-switch input:checked + .n1-toggle-slider::before {
  transform: translateX(24px);
}

/* ─── Plate-type toggle overrides ──────────────────────────────────*/
#builder .n1-plate-type-toggle {
  justify-content: center;
}
#builder .n1-toggle-label {
  color: #1a1a1a;
  font-weight: 400;
}
#builder .n1-toggle-legal.active,
#builder .n1-toggle-show.active {
  color: #1a1a1a;
  font-weight: 900;
}

/* ─── Slider colour + size update ──────────────────────────────────*/
#builder .n1-toggle-switch {
  width: 58px;
  height: 30px;
}
#builder .n1-toggle-slider {
  background: #000666;
}
#builder .n1-toggle-slider::before {
  width: 23px;
  height: 23px;
  background: #4CAF50;
}
#builder .n1-toggle-switch input:checked + .n1-toggle-slider {
  background: #000666;
}
#builder .n1-toggle-switch input:checked + .n1-toggle-slider::before {
  transform: translateX(29px);
}

/* ─── Toggle label size + underline for active ──────────────────────*/
#builder .n1-toggle-label {
  font-size: 15px;
}
#builder .n1-toggle-legal.active,
#builder .n1-toggle-show.active {
  text-decoration: underline;
}

/* ─── Step 1: plain, no border ──────────────────────────────────────*/
#builder #n1-plate-type-panel {
  border-bottom: none;
}

/* ─── Panel spacing and card separation ─────────────────────────────*/
/* .input_flex {
  gap: 20px;
} */
#builder .input_flex .panel {
  /* border: 1px solid #e8e8e8; */
  border-top: none;
}
/* .input_flex .panel:not(:first-child) {
  background: #efefef;
} */
#builder .input_flex .panel-thin {
  border-bottom: none;
}

/* Step 1 stays plain */
#builder #n1-plate-type-panel {
  border: none;
}

/* ─── Hide step badges ───────────────────────────────────────────────*/
#builder .step { display: none !important; }

/* ─── Prevent panel-body label rule from collapsing toggle switch ────*/
#builder .n1-toggle-switch {
  display: inline-block !important;
  margin-bottom: 0 !important;
}

/* ─── Vehicle type buttons — individual bordered style ───────────────*/
#builder .vehicle-toggle-btns {
  background: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  gap: 10px !important;
  margin-top: 12px !important;
}
#builder .vehicle-toggle-btns::before {
  display: none !important;
}
#builder .vehicle-toggle-btn {
  border: 2px solid #000 !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #000 !important;
  font-weight: 600 !important;
  padding: 10px 14px !important;
}
#builder .vehicle-toggle-btn:hover {
  color: #000 !important;
}
#builder .vehicle-toggle-btn.active {
  background: #377DFB !important;
  border-color: #377DFB !important;
  color: #fff !important;
  font-weight: 600 !important;
}

/* ─── Plates Required buttons — same style as vehicle type buttons ───*/
#builder .plates-required-btns {
  background: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  gap: 10px !important;
  margin-top: 12px !important;
  display: flex;
}
#builder .plates-required-btns::before {
  display: none !important;
}
#builder .plates-required-btn {
  border: 2px solid #000 !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #000 !important;
  font-weight: 600 !important;
  padding: 10px 14px !important;
  cursor: pointer;
}
#builder .plates-required-btn:hover {
  color: #000 !important;
}
#builder .plates-required-btn.active {
  background: #377DFB !important;
  border-color: #377DFB !important;
  color: #fff !important;
  font-weight: 600 !important;
}

/* ─── Plates Required: equal-width buttons ───────────────────────────*/
#builder .plates-required-btn {
  flex: 1 !important;
  text-align: center !important;
}

/* ─── Plate Sizes: hide fronttick checkboxes (controlled by Plates Required) */
#builder .plate-disable,
#builder label[for='fronttick-front'],
#builder label[for='fronttick-rear'] {
  display: none !important;
}

/* ─── Plates Required: font size + mobile ────────────────────────────*/
#builder .plates-required-btn {
  font-size: 12px !important;
}
@media (max-width: 480px) {
  #builder .plates-required-btns {
    flex-wrap: wrap !important;
  }
  #builder .plates-required-btn {
    flex: 1 1 calc(33% - 8px) !important;
    padding: 8px 6px !important;
    font-size: 11px !important;
  }
}

/* ─── Hide Rear Plate header row in preview ──────────────────────────*/
#builder .mmpb-n-plate .mmpb-header-row {
  display: none !important;
}

/* ─── Hide Front Plate header row in preview ─────────────────────────*/
#builder .mmpb-f-plate .mmpb-header-row {
  display: none !important;
}

/* ─── Dropdown white background: options only, not the select itself ─*/

/* ─── Plate sizes: unified group card ────────────────────────────────*/
#builder .n1-plate-size-group {
  /* border: 1px solid #e0e0e0; */
  border-radius: 8px;
  overflow: hidden;
  /* background: #fff; */
}
#builder .n1-plate-size-group .builder-input-box {
  padding: 2px 0px !important;
  margin: 0 !important;
  border: none !important;
}
#builder .n1-plate-size-divider {
  height: 1px;
  /* background: #e8e8e8; */
  margin: 0;
}
#builder .n1-plate-size-group label {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
  display: block;
}

/* ─── Force-hide shaped rear row (options merged into n1-rear-select) */
#builder #shaped-rear-row {
  display: none !important;
}

/* ─── White background on option elements only, not the select itself */
#builder .selector option,
#builder .drop-select select option {
  background-color: #fff;
}


/* ─── Select + input height: 40px across all panels ─────────────────*/
#builder .drop-select {
  height: 40px;
  box-sizing: border-box;
}
#builder .drop-select select,
#builder .selector {
  height: 40px;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  box-sizing: border-box;
}
#builder #n1-slogan-input {
  height: 40px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  box-sizing: border-box;
}

/* ─── Font Style: grid layout (1fr buttons | 2.5fr image) ─────────────*/
#builder .n1-style-layout {
  display: flex;
}
#builder .n1-style-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}
#builder .n1-style-btn {
  flex: 1;
  /* 50px/4px/0.5rem -> main-site 58.5px/4.8px/5px (2026-10-14) */
  height: 58px;
  box-sizing: border-box;
  padding: 0 8px !important;
  border: 4.8px solid #d6d7db !important;
  border-radius: 5px !important;
  background: #fff !important;
  color: #000 !important;
  font-family: "SPW Plate", "Roboto Condensed", Roboto, sans-serif !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  cursor: pointer;
  text-align: center;
  text-transform: uppercase;
}
#builder .n1-style-btn.active {
  /* main site keeps the text-style active colour (#2e54a2) deliberately
     different from the material button (#377DFB); it was unified to #377DFB on
     2026-10-09 and is now back to theirs (2026-10-14) */
  background: #2e54a2 !important;
  border-color: #2e54a2 !important;
  color: #fff !important;
}

/* ─── Font Style: mobile responsive ────────────────────────────────*/
@media (max-width: 640px) {
  #builder .n1-style-layout {
    grid-template-columns: 1fr 3fr;
    gap: 8px;
  }
  #builder .n1-style-btn {
    /* height: 44px; */
    line-height: 44px;
    font-size: 10px !important;
  }
}




/* ─── Quick Options Row: Vehicle | Layout | Front/Rear ──────────────*/
#builder .n1-quick-row-panel > .panel-body {  padding: 4px 20px 16px; }
#builder .n1-quick-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
#builder .n1-qr-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
#builder .n1-qr-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1a1a1a !important;
  line-height: 1;
}
#builder .n1-qr-col .builder-input-box { margin: 0; }
#builder .n1-qr-col .drop-select { margin: 0; }
@media (max-width: 480px) {
  #builder .n1-quick-row { grid-template-columns: 1fr 1fr 1fr; }
}


/* ─── Badge Type + Colour: 2-column grid ────────────────────────────*/
#builder .n1-badge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}
#builder .n1-badge-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#builder .n1-badge-col-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1a1a1a !important;
  line-height: 1;
}
#builder .n1-badge-col .drop-select,
#builder .n1-badge-col .flag-dropselect { margin: 0; }
/* Flag panel has only one badge-col — collapse to single column */
#n1-flag-panel .n1-badge-grid {
  grid-template-columns: 1fr;
}
@media (max-width: 480px) {
  #builder .n1-badge-grid { grid-template-columns: 1fr; }
}

/* ─── Badge Type: image buttons ──────────────────────────────────────*/
#builder .flag-dropselect { display: block; }
#builder .n1-badge-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin-bottom: 12px;
}
#builder .n1-badge-btn {
  border: 2px solid #ccc !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #000 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 0 !important;
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
  height: 40px !important;
  text-align: center;
  line-height: 1.2;
  overflow: hidden;
}
#builder .n1-badge-btn.active {
  border-color: #377DFB !important;
  background: #fff !important;
  color: #000 !important;
}
#builder .n1-badge-btn-img {
  display: contents;
}
#builder .n1-badge-btn-img img {
  max-width: 70% !important;
  /* max-height: 26px !important; */
  height: 100% !important;
  margin-top: 20px;
  width: auto !important;
  /* height: auto !important; */
  display: block !important;
}
#builder .n1-badge-btns-disabled .n1-badge-btn {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ─── Badge Colour: colour buttons ──────────────────────────────────*/
#builder #n1-badge-bg-panel .drop-select { display: block; }
#builder .n1-badge-colour-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
#builder .n1-badge-colour-btn {
  border-radius: 6px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 0 4px !important;
  cursor: pointer;
  height: 40px !important;
  width: 100%;
  text-align: center;
  line-height: 1.2;
  box-sizing: border-box;
}

/* ─── Border: colour buttons ─────────────────────────────────────────*/
#builder .border-input-tags .drop-select { display: block; }
#builder .n1-border-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1a1a1a !important;
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}
#builder .n1-slogan-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1a1a1a !important;
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}
#builder .n1-border-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
#builder .n1-border-btn {
  border-radius: 6px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 0 4px !important;
  cursor: pointer;
  height: 40px !important;
  width: 100%;
  text-align: center;
  line-height: 1.2;
  box-sizing: border-box;
}
#builder #n1-ev-panel { display: none !important; }

/* ─── Registration input ─────────────────────────────────────────────*/
/* Padding-based centering: reliable across all mobile browsers.       */
/* line-height=height does NOT reliably center text in <input> on iOS. */
#builder #reg_num {
  -webkit-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
  height: 100px !important;
  font-size: 72px !important;
  line-height: 1 !important;
  text-align: center !important;
  /* Equal padding centres the caps: measured on the live input with a ruler overlay,
     the 72px ink is 57px tall, so 14px padding each side puts 21.5px above and below.
     The earlier 20.5/7.5 split pushed it 6.5px LOW (28 above / 15 below) - it was tuned
     against the old .otf metrics, before the WOFF2 swap. Keep the two paddings equal and
     summing to 28px so the content box stays 72px. (2026-10-14) */
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}
#builder #reg_num::placeholder {
  font-size: 72px !important;
  line-height: 1 !important;
  text-align: center !important;
  letter-spacing: 2px !important;
  color: #27b523 !important;
}
@media (min-width: 901px) and (max-width: 1024px) {
  #builder #reg_num {
    font-size: 52px !important;
    /* equal padding, same reasoning as desktop: 41.2px of ink in a 100px box
       leaves 29.4px above and below */
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }
  #builder #reg_num::placeholder {
    font-size: 52px !important;
  }
}
@media (max-width: 900px) {
  #builder #reg_num {
    height: 80px !important;
    font-size: 80px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  #builder #reg_num::placeholder {
    font-size: 80px !important;
  }
}
@media (max-width: 640px) {
  #builder #reg_num {
    height: 60px !important;
    font-size: 38px !important;
    /* padding-top: 11px !important;
    padding-bottom: 11px !important; */
  }
  #builder #reg_num::placeholder {
    font-size: 38px !important;
  }
}
@media (max-width: 480px) {
  #builder #reg_num {
    height: 60px !important;
    font-size: 40px !important;
    /* padding-top: 10px !important; */
    /* padding-bottom: 0px !important; */
  }
  #builder #reg_num::placeholder {
    font-size: 40px !important;
  }
}
#builder .registration.builder-input-box {
  animation: none !important;
  border-color: #27b523 !important;
  border-width: 7px !important;
  border-radius: 7px !important;
}
#builder .registration.builder-input-box:focus-within {
  animation: none !important;
  border-color: #27b523 !important;
  box-shadow: none !important;
}

/* ─── Plate Material: buttons ────────────────────────────────────────*/
#builder .n1-material-btns {
  display: flex;
  gap: 10px;
}
#builder .n1-material-btn {
  flex: 1;
  /* 50px/0.5rem -> main-site 40px/5px (2026-10-14) */
  height: 40px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 4px solid #d6d7db !important;
  border-radius: 5px !important;
  background: #fff !important;
  color: #000 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 0 8px !important;
  cursor: pointer;
  text-align: center;
  line-height: 1.3;
}
#builder .n1-material-btn.active {
  background: #377DFB !important;
  border-color: #377DFB !important;
  color: #fff !important;
}
#builder .n1-material-popular {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  /* pushed to the right-hand end of the heading row, then nudged 30px back in (Paul 2026-10-13) */
  margin-left:auto;
  padding-right:96px;
  font-weight: 700;
  
  white-space: nowrap;
}
#builder .n1-material-popular img {
  height: 28px !important;
  width: auto !important;
  display: inline !important;
  max-width: none !important;
}

/* ─── Align reg_num input with plate preview (desktop only) ──────────*/
@media (min-width: 901px) {
  #builder .mmpb-plate-box-wrap {
    padding-top: 30px;
  }
}

/* ─── Mobile: remove page + form-box padding ─────────────────────────*/
@media (max-width: 640px) {
  #builder .mmpb-page {
    padding: 0 !important;
  }
  #builder .blue_form_box {
    padding: 0 !important;
  }
}

/* ─── Mobile: pull plate box up to close gap before form ────────────*/
@media (max-width: 900px) {
  /* Pull the reg field up: the step-1 panel heading is empty (its .step badge is
     display:none and its .panel-title has no text) yet contributes 20px of padding,
     and the plate box adds another 12px below the mobile price row. Measured 54px
     of dead space above the input at 387px; this takes it to ~24px.
     The :first-child is the registration panel - the other 7 headings carry real
     titles and are untouched. (Paul 2026-10-14) */
  #builder .input_flex > .panel:first-child > .panel-heading { display: none !important; }
  #builder .input_flex > .panel:first-child > .panel-body { padding-top: 0 !important; }
  #builder .mmpb-number-plate-box { padding-bottom: 2px !important; }
}

@media (max-width: 900px) {
  /* Was -35px to close a gap under the plates. That predates the mobile price row + BUY NOW
     now rendering inside this box, so the negative margin dragged the FORM up underneath them
     and the reg input ended up overlapped (Paul 2026-10-13). The 3D overlay reserves its own
     bottom overhang in inject.js, so no pull-up is needed. */
  #builder .mmpb-number-plate-box {
    margin-bottom: 0 !important;
  }
}


/* ─── Trust icons: below buy bar ────────────────────────────────────*/
#builder .n1-trust-icons {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  padding-top: 14px;
  color: #1a1a1a;
  border-top: 1px solid gray;
  margin-top: 10px;
}
#builder .n1-trust-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 4px;
  line-height: 1.2;
}
#builder .n1-trust-title img {
  flex-shrink: 0;
  align-self: center;
}
#builder .n1-trust-icons p {
  font-size: 11px;
  color: #444;
  margin: 0;
  line-height: 1.5;
  padding-left: 30px;
}
@media (max-width: 900px) {
  #builder .n1-trust-icons { display: none !important; }
}

/* ─── Reviews bar: top of plate preview ─────────────────────────────*/
#builder .n1-reviews-top {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0 14px;
}
#builder .n1-reviews-top img {
  max-width: 100%;
  height: auto;
  display: block;
}
#builder .n1-reviews-count {
  font-size: 13.5px;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 4px;
  margin-left: 20px;
  white-space: nowrap;
}
@media (max-width: 900px) {
  #builder .n1-reviews-top { display: none !important; }
}

/* ─── Buy Bar: 2-col grid layout (button left, price right) ─────────*/
#builder .buy-bar {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  align-items: center !important;
  gap: 52px !important;
}
#builder .buy-bar .add_cart_btn.crt-btn {
  order: -1 !important;
  width: 100% !important;
}
#builder .buy-price {
  display: block !important;
  order: 1 !important;
  text-align: left !important;
}
#builder .buy-price-label {
  display: block !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: #2d2d2d !important;
}
#builder .buy-price-main {
  display: block !important;
}
#builder .totalPriceSpan {
  display: block !important;
  font-size: clamp(20px, 3.5vw, 24px) !important;
}
#builder .add_cart_btn.crt-btn {
  width: 100% !important;
}
#builder .discountedPrice {
  display: block !important;
  font-size: 22px !important;
  color: red !important;
}
/* ─── Reviews: hide on mobile ────────────────────────────────────────*/
@media (max-width: 640px) {
  #builder .reviews-hide-in-mobile {
    display: none !important;
  }
}
/* ─── Remove buy border-top and grey-border ─────────────────────────*/
#builder .buy {
  border-top: none !important;
  padding-top: 0 !important;
}
#builder .grey-border {
  display: none !important;
}
/* ─── Add to Basket: icon pinned left, text centred ─────────────────*/
#builder .add_cart_btn.crt-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  color: white !important;
}
#builder .add_cart_btn.crt-btn svg {
  display: none !important;
}


/* ─── Add to Basket: mobile matches desktop styling ─────────────────*/
@media (max-width: 640px) {
  #builder .add_cart_btn.crt-btn {
    padding: 14px 22px !important;
    font-size: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
  }
  #builder .add_cart_btn.crt-btn svg {
    display: none !important;
  }
}

/* ─── Sticky bar: 2-col grid — price left, button right ─────────────*/
#builder .sticky-bar-inner {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  align-items: center !important;
}
#builder .sticky-price {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  flex-shrink: unset !important;
}
#builder .sticky-price-label {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #2d2d2d !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
#builder .sticky-price-amount {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #2d2d2d !important;
}
#builder .sticky-add-to-basket .add_cart_btn.crt-btn {
  width: 100% !important;
  margin-left: 0 !important;
}


/* ─── Hide reg heading on tablet and below ──────────────────────────*/
@media (max-width: 900px) {
  #builder .n1-reg-heading { display: none !important; }
}

/* ─── Hide reviews on tablet and below ──────────────────────────────*/
@media (max-width: 900px) {
  #builder .builder-reviews-wrap { display: none !important; }
}


/* ─── Mobile price + basket bar (below plate preview, <=900px) ──────*/
#builder .your-price-mobile-wrap {
  display: none;
}
@media (max-width: 900px) {
  #builder .your-price-mobile-wrap {
    display: grid !important;
    grid-template-columns: auto 1fr 1fr !important;
    gap: 20px !important;
    align-items: center !important;
    padding: 10px 0 10px 14px;
    background: #fff;
    margin-top: 8px;
    margin-bottom: 0;
  }
  #builder .your-price-mobile-wrap .pricing-wrapper {
    /* display: flex; */
    align-items: center;
    justify-content: flex-start;
    /* margin-left:20px; */
  }
  #builder .your-price-mobile-wrap .price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    text-align: left;
    white-space: nowrap;
  }
  #builder .your-price-mobile-wrap .price .totalPriceSpan {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
  }
  #builder .your-price-mobile-wrap .ymw-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #builder .your-price-mobile-wrap .cpd-reg-arrow {
    width: 40px;
    height: 105px;
    position: absolute;
    display: block;
  }
  #builder .your-price-mobile-wrap .cpd-reg-arrow svg {
    width: 100%;
    height: 50px;
    display: block;
    overflow: visible;
    margin-top: 50px;
  }
  #builder .your-price-mobile-wrap .ymw-btn-wrap {
    width: 100%;
  }
  #builder .your-price-mobile-wrap .add_cart_btn.crt-btn {
    width: 100% !important;
    padding: 11px 10px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    text-align: center !important;
    background: #e14023 !important;
    border-radius: 7px !important;
  }
}

/* ─── Form panel width: tablet ───────────────────────────────────────*/
@media (min-width: 901px) and (max-width: 1024px) {
  #builder .form_list_flex { width: 400px !important; }
}

/* ─── Mobile price bars: remove label, colour price, show del ────────*/
#builder .sticky-price-amount,
#builder .your-price-mobile-wrap .totalPriceSpan {
  color: black !important;
}
#builder .sticky-price {
  gap: 6px !important;
}
#builder .your-price-mobile-wrap .price {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

/* ─── Plate sizes panel: reduce negative margin on mobile ────────────*/
@media (max-width: 900px) {
  #builder .n1-sizes-panel { margin-top: -10px !important; }
}

/* ─── Badge grid: gap on mobile ──────────────────────────────────────*/
@media (max-width: 768px) {
  #builder .n1-badge-grid { gap: 22px !important; }
}

/* Badge position toggle hidden — bottom is permanent */
#builder #badgePositionWrap { display: none !important; }

/* ─── Desktop price grid + full-width CTA ───────────────────────────*/
.wrap-price-desktop-images {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0 8px;
  margin-top: 15px !important;
}
.wrap-price-desktop-images .pricing-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.wrap-price-desktop-images .price {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
}
.wrap-price-desktop-images .true-price {
  font-size: 20px;
  font-weight: 800 !important;
  color: #1a1a1a;
}
.sdd-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sdd-img-wrap img {
  height: 100px;
  width: auto;
  display: block;
}
.cpd-builder-reviews {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}
.cpd-builder-reviews .cbr-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cpd-builder-reviews .cbr-score {
  font-size: 36px;
  font-weight: 800;
  color: #555;
  line-height: 1;
}
.cpd-builder-reviews .cbr-outof {
  font-size: 12px;
  font-weight: 600;
  color: #555;
  line-height: 1.3;
  text-align: left;
  text-transform: uppercase;
}
.cpd-builder-reviews .cbr-stars {
  width: 120px;
  height: auto;
  display: block;
}
.cpd-builder-reviews .cbr-count {
  font-size: 11px;
  color: #555;
  text-align: center;
  white-space: nowrap;
}
#builder .add_cart_btn.crt-btn.n1-desktop-full-btn {
  display: flex !important;
  width: 100% !important;
  justify-content: center;
  box-sizing: border-box;
  background: #27b523 !important;
  background-image: none !important;
  font-size: 2rem !important;
  border-radius: 7px !important;
}
@media (max-width: 900px) {
  .wrap-price-desktop-images,
  #builder .add_cart_btn.crt-btn.n1-desktop-full-btn {
    display: none !important;
  }
}

/* Flag + Border 2-column row */
.n1-flag-border-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.n1-flag-border-row > .panel {
  flex: 1;
  min-width: 0;
  margin-bottom: 10px;
}
@media (max-width: 768px) {
  .n1-flag-border-row {
    flex-direction: column;
    gap: 0;
  }
  .n1-flag-border-row > .panel {
    width: 100%;
  }
}

/* Bike plate label — general offset, overridden per show-plate size below */
body.n1-bike-mode #builder .mmpb-label-centre,
body.n1-bike-mode #builder .mmpb-label-bs {
  bottom: calc(2.7% + 0px);
}
@media (max-width: 640px) {
  body.n1-bike-mode #builder .mmpb-label-centre,
  body.n1-bike-mode #builder .mmpb-label-bs {
    bottom: calc(2.7% + 1px);
  }
}
/* Bike show plate label — per-size overrides */
/* 6x4 inches (152x102mm) */
body.n1-bike-mode #builder .mmpb-rear-plate[data-hmm="102"] .mmpb-label-centre,
body.n1-bike-mode #builder .mmpb-rear-plate[data-hmm="102"] .mmpb-label-bs {
  bottom: calc(2.7% + 1px);
}
/* 9x3 inches (229x76mm) */
body.n1-bike-mode #builder .mmpb-rear-plate[data-hmm="76"] .mmpb-label-centre,
body.n1-bike-mode #builder .mmpb-rear-plate[data-hmm="76"] .mmpb-label-bs {
  bottom: calc(2.7% + 3.5px);
}
/* 7x4.25 inches (178x108mm) */
body.n1-bike-mode #builder .mmpb-rear-plate[data-hmm="108"] .mmpb-label-centre,
body.n1-bike-mode #builder .mmpb-rear-plate[data-hmm="108"] .mmpb-label-bs {
  bottom: calc(2.7% + 2px);
}
@media (max-width: 640px) {
  body.n1-bike-mode #builder .mmpb-rear-plate[data-hmm="102"] .mmpb-label-centre,
  body.n1-bike-mode #builder .mmpb-rear-plate[data-hmm="102"] .mmpb-label-bs,
  body.n1-bike-mode #builder .mmpb-rear-plate[data-hmm="76"] .mmpb-label-centre,
  body.n1-bike-mode #builder .mmpb-rear-plate[data-hmm="76"] .mmpb-label-bs,
  body.n1-bike-mode #builder .mmpb-rear-plate[data-hmm="108"] .mmpb-label-centre,
  body.n1-bike-mode #builder .mmpb-rear-plate[data-hmm="108"] .mmpb-label-bs {
    bottom: calc(2.7% + 2px);
  }
}


/* Slogan row — input + colour select side by side */
#n1-slogan-panel .n1-slogan-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
#n1-slogan-panel .n1-slogan-row #n1-slogan-input {
  flex: 1;
  min-width: 0;
}
#n1-slogan-panel .n1-slogan-color-wrap {
  flex-shrink: 0;
  width: 130px;
}

/* Hide BS mark on Show Plates layout (both car and bike sizes) */
body.n1-show-mode .mmpb-label-bs {
  display: none !important;
}

@media (max-width: 900px) {
  #builder .mmpb-rear-plate.has-shaped-image .mmpb-badge {
    width: 24px !important;
  }
  #builder .mmpb-rear-plate.has-shaped-image .mmpb-badge-flag {
    height: 15px !important;
    margin-top: 6px;
  }
  #builder .mmpb-rear-plate.has-shaped-image .mmpb-badge-flag img {
    height: 30px !important;
  }
}

/* Mobile banner image */
#builder .n1-mobile-banner {
  margin: 0 0 10px !important;
  padding: 0 !important;
  line-height: 0;
}
#builder .n1-mobile-banner-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ─── Select dropdowns: larger font + H/V centred text ──────────────
   text-align centres the selected value in Chrome/Edge/Safari;
   text-align-last does the same in Firefox. */
#builder .drop-select select,
#builder .selector {
  font-size: 14px !important;
  /* text-align: center !important;
  text-align-last: center !important; */
}

/* ─── Font style buttons: horizontal centre only ────────────────────*/
@media (max-width: 640px) {
  #builder .n1-style-btn {
    font-size: 13.5px !important;
  }
}

/* ─── Mobile price bar: tighter gap on very small screens (≤361px) ──*/
@media (max-width: 361px) {
  #builder .your-price-mobile-wrap {
    gap: 10px !important;
  }
  #builder .totalPriceSpan {
    font-size:20px !important;
  }
}


/* ─── Arrow mobile missing here ──*/
@media (max-width: 321px) {
  #builder .your-price-mobile-wrap {
    padding: unset !important;
  }
}

.custom-margin-for-flag-border, .custom-martin-badge-colour{
  margin-top: 10px !important;
}

@media (max-width: 640px) {
  .custom-margin-for-flag-border, .custom-martin-badge-colour{
    margin-top: 0px !important;
  }
}

/*hide shaped plate badge*/
.mmpb-n-plate .has-shaped-image .mmpb-badge{
  display:none !important;
}
/* Badge disabled when shaped rear plate is selected */
body.n1-shaped-rear .flag-dropselect {
  pointer-events: none !important;
  opacity: 0.4 !important;
}
body.n1-shaped-rear .n1-badge-btns-wrap {
  pointer-events: none !important;
  opacity: 0.4 !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   Match www.carplatesdirect.com/make-number-plates/ (2026-10-14, Paul).
   Their builder is the headless React one, so these are their measured
   computed values ported onto our MMPB markup.
   ═══════════════════════════════════════════════════════════════════════ */

/* Dropdowns: 48.8px tall, 5px radius, #cacaca hairline (ours were 40px / square / #e0e0e0) */
#builder .drop-select {
  height: 49px;
  border-radius: 5px;
  border-color: #cacaca;
}
#builder .drop-select .selector,
#builder .drop-select select {
  height: 49px;
}

/* (text-style and material button sizing/colour are applied on their original
   rules above - those carry !important, so a later block cannot override them) */

/* MOST POPULAR: their green pill (was our text + arrow_pop.png) */
#builder .n1-material-popular {
  padding: 2px 8px;
  background: #2d9c3c;
  color: #fff;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.5;
  align-self: center;
}
#builder .n1-material-popular img { display: none; }

/* Same-day dispatch: their SVG is 240x210, so cap the height not the width */
#builder .sdd-img-wrap img { height: 72px; width: auto; }

/* Headline + USP strip above the plates. CSS lifted verbatim from their inline
   <style id="cpd-usp-strip-css">, scoped to #builder. Font-family is left alone
   so style.css's h1-h6 Fredoka rule applies, exactly as it does on their page. */
#builder .h1-cpd-title {
  color: #335ec1;
  margin: 0 0 15px;
  text-align: center;
  font-size: 25px;
  font-weight: 700;
}
#builder .mainusps-wrap { padding-bottom: 24px; }
#builder .cpd-usp-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  align-items: flex-start; gap: 20px 12px; max-width: 720px; margin: 0 auto;
}
#builder .cpd-usp-strip .usp {
  display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 10px;
}
#builder .cpd-usp-strip .usp svg {
  width: 46px; height: 46px; color: #12235f; stroke: currentColor;
}
#builder .cpd-usp-strip .usp span {
  font-weight: 800; font-size: .9rem; line-height: 1.25; letter-spacing: .03em;
  text-transform: uppercase; color: #2a3a66;
}
/* hide desktop strip below 768px — mob strip takes over */
@media (max-width: 767px) {
  #builder .mainusps-wrap:not(.mainusps-mob) { display: none; }
}
/* mobile-only USP strip — hidden at 768px and above */
#builder .mainusps-mob { display: none; }
@media (max-width: 767px) {
  #builder .mainusps-mob { display: block !important; }
  #builder .mainusps-mob .cpd-usp-strip {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px 4px !important;
    max-width: 100% !important;
  }
  #builder .mainusps-mob .cpd-usp-strip .usp {
    flex: unset !important;
    max-width: unset !important;
    gap: 5px !important;
  }
  #builder .mainusps-mob .cpd-usp-strip .usp svg {
    width: 26px !important;
    height: 26px !important;
  }
  #builder .mainusps-mob .cpd-usp-strip .usp span {
    font-size: 0.6rem !important;
  }
}
@media (max-width: 900px) {
  #builder .h1-cpd-title { font-size: 20px; margin-bottom: 10px; }
}

/* ── Comparison sheet rows 7 and 23 (2026-10-14) ─────────────────────────
   row 7: the main site's form labels are dark blue (#003366), ours were black.
   row 23: their "Choose Your Plate Style" heading is centred, ours was left. */
#builder .n1-qr-label,
#builder .n1-badge-col-label,
#builder .n1-plate-type-label,
#builder .n1-sizes-panel label,
#builder .panel-heading h3.panel-title {
  color: #003366;
}
.cpd-content h2,
section.seo-content h2 {
  text-align: center;
}

/* =====================================================================
   carplatesdirect.com PIXEL PARITY — builder form + preview column
   Every value below was measured from the live main site on 2026-10-15
   at a 1604px viewport (computed styles, not eyeballed).
   ===================================================================== */

/* 1 ─ Typeface. The main site renders the whole builder column in Tahoma.
       Ours was Plus Jakarta Sans / Fredoka / Arial / CharlesWright.      */
#builder .input_flex,
#builder .input_flex *,
#builder .pricing-wrapper,
#builder .pricing-wrapper * { font-family: Tahoma, helvetica, sans-serif !important; }
/* ADD TO BASKET is Arial on the main site, not Tahoma */
#builder .add_cart_btn { font-family: Arial, helvetica, sans-serif !important; }

/* 2 ─ Field labels: 14px / 700 / #003366 */
#builder .n1-qr-label,
#builder .panel-title,
#builder .n1-border-label,
#builder .n1-badge-col-label,
#builder .n1-slogan-label {
  font-size: 14px !important; font-weight: 700 !important;
  color: #003366 !important; letter-spacing: normal !important;
}
/* ...except the plate-size label, which is BLACK on the main site */
#builder .input_flex > .panel > .panel-body label,
#builder .input_flex label:not(.n1-style-btn) {
  font-size: 14px !important; font-weight: 700 !important; color: #000 !important;
}

/* 3 ─ Selects: 16px/400, #0d0d0d on #fefefe, 49px tall, radius 5 */
#builder .input_flex select,
#builder .drop-select select {
  font-size: 16px !important; font-weight: 400 !important;
  color: rgb(13,13,13) !important; background-color: rgb(254,254,254) !important;
  height: 49px !important;
}
#builder .input_flex .drop-select { border-radius: 5px !important; }

/* 4 ─ Text-style buttons: 19px/700, 59px tall */
#builder .n1-style-btn { font-size: 19px !important; font-weight: 700 !important; height: 59px !important; }
#builder .n1-style-btns { gap: 10px !important; }

/* 5 ─ Material buttons: 13px/700; Premium Acrylic is #555 on #f0f0f0 */
#builder .n1-material-btn { font-size: 13px !important; font-weight: 700 !important; height: 40px !important; }
#builder .n1-material-btn:not(.active) {
  color: rgb(85,85,85) !important; background: rgb(240,240,240) !important;
  border-color: rgb(240,240,240) !important;
}

/* 6 ─ MOST POPULAR pill: 10px/700, 17px tall, centred over Premium Acrylic */
#builder .n1-material-popular { font-size: 10px !important; height: 17px !important; line-height: 17px !important; }


/* 8 ─ Price block. "Original Price" is BLACK on the main site — only the
       struck-through number is red. Ours had the whole line red.        */
#builder .desk-slashed-price strong { font-size: 23px !important; font-weight: 100 !important; color: #000 !important; }
#builder .price      { font-size: 28px !important; font-weight: 100 !important; color: #000 !important; }
#builder .green-off  { font-size: 17px !important; font-weight: 100 !important; }

/* 9 ─ ADD TO BASKET: 36px/700, 70px tall */
#builder .add_cart_btn { font-size: 36px !important; font-weight: 700 !important; height: 70px !important; line-height: 70px !important; }

/* 10 ─ Column geometry. Main site content box is x=229 w=476 inside a
        510px column; ours was x=239 w=470 (20px symmetric padding).     */
#builder .input_flex > .panel > .panel-body { padding: 4px 10px 2px 10px !important; }
#builder .n1-flag-border-row { padding: 0 10px !important; gap: 5px !important; }
#builder .n1-flag-border-row > .panel > .panel-body { padding: 0 !important; }
@media (max-width: 768px) {
  #builder .n1-flag-border-row { row-gap: 12px !important; }
}
/* 3-up row (Vehicle / Layout / Front-Rear): main site is 155px cols, 5px gap */
#builder .input_flex .panel-body > div:has(> .n1-qr-col) { gap: 5px !important; }
#builder .n1-qr-row { gap: 5px !important; }

/* ── residual corrections after the first measurement pass ──────────── */
/* Badge Colour panel carried a 10px top padding the Badge Type panel
   did not, which pushed the right column down by 10px.                 */
#builder .n1-flag-border-row > .panel { padding-top: 0 !important; }
/* Material buttons: main site gap is 20px (228 + 20 + 228 = 476)       */
#builder .n1-material-btns { gap: 20px !important; }

/* ── parity pass 2: beat the higher-specificity rules found by measuring ── */


/* ADD TO BASKET is sized by #builder .add_cart_btn.crt-btn (1,2,0),
   so match it with an element qualifier. Main site: 36px/700. */
#builder a.add_cart_btn.crt-btn { font-size: 36px !important; }

/* Badge Colour column still sat 10px below Badge Type. Zero every top
   offset in that column so the two selects share a baseline. */
#builder .n1-flag-border-row > .panel,
#builder .n1-flag-border-row > .panel > .panel-body,
#builder #n1-badge-colour-row .types_of_plates,
#builder #n1-badge-colour-row .builder-input-box,
#builder #n1-flag-panel .n1-badge-col,
#builder #n1-flag-panel .n1-badge-grid {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ── parity pass 3 ──────────────────────────────────────────────────── */

/* ADD TO BASKET is sized by .add_cart_btn.crt-btn.n1-desktop-full-btn
   (specificity 1,3,0) at 2rem = 32px. Main site is 36px.               */
#builder a.add_cart_btn.crt-btn.n1-desktop-full-btn { font-size: 36px !important; }

/* Badge Colour column: a child's top margin was collapsing out through
   .panel-body and displacing it 10px, so the two selects never shared a
   baseline. flow-root contains the collapse; zeroing the child's own
   vertical margins closes the gap.                                      */
#builder .n1-flag-border-row > .panel > .panel-body { display: flow-root !important; }
#builder #n1-badge-colour-row .panel-body > * { margin-top: 0 !important; margin-bottom: 0 !important; }

/* ── parity pass 4: Badge Colour column ──────────────────────────────
   Give the Badge Colour column the same box model as the Badge Type
   column (flex, 6px gap, no margins). Flex containers do not collapse
   margins, so the stray 10px offset cannot reappear.                  */
#builder #n1-badge-colour-row .panel-body {
  display: flex !important; flex-direction: column !important; margin: 0 !important; padding: 0 !important;
}
#builder #n1-badge-colour-row .types_of_plates {
  display: flex !important; flex-direction: column !important; gap: 6px !important; margin: 0 !important; padding: 0 !important;
}
#builder #n1-badge-colour-row .n1-border-label { margin: 0 !important; }
#builder #n1-badge-colour-row .drop-select { margin: 0 !important; }

/* Panel headings ("CHOOSE TEXT STYLE", "PLATE MATERIAL") sat at x=239;
   the main site has them at 229, flush with the fields below.         */
#builder .input_flex > .panel > .panel-heading { padding-left: 10px !important; padding-right: 24px !important; }
#builder .n1-flag-border-row > .panel > .panel-heading { padding-left: 0 !important; }

/* Panel titles are coloured by a two-class rule, so match its specificity.
   Main site: "CHOOSE TEXT STYLE" and "PLATE MATERIAL" are #003366.       */
#builder .panel-heading .panel-title,
#builder .panel .panel-title { color: #003366 !important; }

/* theme.css:131 is #builder .panel-heading h3.panel-title {color:#1a1a1a!important}
   (specificity 1,2,1). Match it exactly so the later rule wins.          */
#builder .panel-heading h3.panel-title { color: #003366 !important; }

/* ENTER REG reverted to its original styling (2026-10-15). The blanket
   Tahoma rule above still matches the input, so the plate face is put
   back explicitly; every other property falls through to the original
   #builder #reg_num rule (72px in a 100px box, 14px equal padding).   */
#builder #reg_num,
#builder #reg_num::placeholder {
  font-family: Tahoma, helvetica, sans-serif !important;
  font-weight: 700 !important;
}

/* ── parity pass 5 ──────────────────────────────────────────────────── */

/* A ─ Same Day Dispatch icon: match the height of the customer-reviews
       image beside it (180x100), so both sit on one visual line.
       Was 72px tall (theme.css:1691).                                   */
#builder .sdd-img-wrap img { height: 100px !important; width: auto !important; }

/* B ─ MOST POPULAR: centred over the Premium Acrylic button with the
       green down-arrow, as on the main site. The row is two equal
       buttons with a 20px gap, so the right button's centre is exactly
       calc(75% + 5px) of the row width. Arrow is the main site's own
       CSS triangle: 11x6, border-top 5.6px rgb(45,156,60).             */
#builder .n1-material-btns { position: relative !important; }
#builder .n1-material-popular {
  position: absolute !important;
  left: calc(75% + 5px) !important;
  transform: translateX(-50%) !important;
  bottom: calc(100% + 10px) !important;
  margin: 0 !important;
  padding: 2px 8px !important;
  border-radius: 3px !important;
  white-space: nowrap !important;
}
#builder .n1-material-popular::after {
  content: "" !important;
  position: absolute !important;
  top: 100% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 0 !important; height: 0 !important;
  border-left: 5.6px solid transparent !important;
  border-right: 5.6px solid transparent !important;
  border-top: 5.6px solid rgb(45,156,60) !important;
}

/* C ─ Struck original price is RED on the main site (the "Original Price"
       label stays black). Pass 1 turned the whole line black.          */
#builder .desk-slashed-price strong.slash-price,
#builder .desk-slashed-price .discountedPrice { color: rgb(255,0,0) !important; }

/* D ─ Whitespace below the banner. #builder-main-content carried 30px of
       padding-top; the main site has its heading flush at the container
       top (h2 y=372 = container y).                                     */
#builder #builder-main-content.mmpb-plate-box-wrap { padding-top: 0 !important; }

/* E ─ ENTER REG sat 6px lower than the main site (406 vs 400).         */
#builder #n1-plate-type-panel > .panel-body { margin-top: -6px !important; }

/* ── ENTER REG spacing, by layout mode ──────────────────────────────
   Above 900px the price block sits in the right-hand column, so the
   -6px desktop lift (pass 5) is the correct parity value.
   At <=900px the layout stacks and the price block sits DIRECTLY above
   ENTER REG, where that same lift only tightened an already-close gap
   (measured 20px from "Save £..." to the field at 360-900px wide).
   Reset the lift there and give the field clear separation instead.   */
@media (max-width: 900px) {
  #builder #n1-plate-type-panel > .panel-body { margin-top: 0 !important; }
  #builder #n1-plate-type-panel { margin-top: 0px !important; }
}

/* ═════ MOBILE PARITY: price block, title, buttons ═══════════════════
   Values taken from carplatesdirect.com's own stylesheet, not guessed.
   Earlier parity passes set the DESKTOP figures with no media query, so
   they were applying at every width - that is what made the mobile
   pricing text and the BUY NOW button oversized.                      */

/* A ─ Price block. Main site <=768px: 14 / 18 / 12 (desktop 23 / 28 / 17). */
@media (max-width: 768px) {
  #builder .desk-slashed-price strong,
  #builder .desk-slashed-price strong.slash-price,
  #builder .desk-slashed-price .discountedPrice { font-size: 14px !important; }
  #builder .price { font-size: 18px !important; }
  #builder .green-off {
    font-size: 12px !important;
    text-transform: capitalize !important;
    margin-left: 0 !important;
  }
}

/* B ─ Title (.h1-cpd-title). Main site: centred <=1100, 30px 600-1024,
       14px <=440. Ours was a flat 20px at every mobile width.          */
@media (max-width: 1100px) {
  #builder .h1-cpd-title { text-align: center !important; }
}
@media (min-width: 600px) and (max-width: 1024px) {
  #builder .h1-cpd-title { font-size: 30px !important; }
}
@media (min-width: 930px) and (max-width: 1068px) {
  #builder .h1-cpd-title { font-size: 23px !important; }
}
@media (max-width: 440px) {
  #builder .h1-cpd-title { font-size: 14px !important; }
}

/* C ─ Mobile BUY NOW button. The desktop parity pass set height/line-height
       70px on .add_cart_btn, which leaked onto the mobile button; the main
       site sizes this one by padding. Theirs: #DE2D2C, 14px padding,
       radius 5, max-width 135 / width 100%, 700, float right, mt 6.     */
@media (max-width: 900px) {
  #builder .ymw-btn-wrap .add_cart_btn {
    height: auto !important;
    line-height: normal !important;
    background: #DE2D2C !important;
    background-color: #DE2D2C !important;
    border: 0 !important;
    padding: 14px !important;
    color: #fff !important;
    border-radius: 5px !important;
    float: right !important;
    max-width: 135px !important;
    width: 100% !important;
    font-weight: 700 !important;
    margin-top: 6px !important;
  }
}
@media (max-width: 332px) {
  #builder .ymw-btn-wrap .add_cart_btn {
    padding: 12px !important;
    font-size: 12px !important;
    width: 90px !important;
  }
}

/* D ─ Text-style buttons (REGULAR / 3D GEL / 4D 3MM) scale with the button
       on small screens instead of staying at a fixed 19px. Clamped so it
       never exceeds the 19px desktop parity value.                      */
@media (max-width: 900px) {
  #builder .n1-style-btn { font-size: clamp(11px, 3.6vw, 19px) !important; }
}

/* Mobile BUY NOW, corrected specificity. theme.css:1384 is
   #builder .your-price-mobile-wrap .add_cart_btn.crt-btn (1,3,0) with
   !important on padding / background / radius, which outranked the
   (1,2,0) selector used above. Match its selector so the later rule wins.
   Main site: #DE2D2C, padding 14px, radius 5px, max-width 135, 700.   */
@media (max-width: 900px) {
  #builder .your-price-mobile-wrap .add_cart_btn.crt-btn {
    background: #DE2D2C !important;
    background-color: #DE2D2C !important;
    padding: 14px !important;
    border-radius: 5px !important;
    border: 0 !important;
    color: #fff !important;
    max-width: 135px !important;
    width: 100% !important;
    font-weight: 700 !important;
    float: right !important;
    margin-top: 6px !important;
    height: auto !important;
    line-height: normal !important;
  }
}
@media (max-width: 332px) {
  #builder .your-price-mobile-wrap .add_cart_btn.crt-btn {
    padding: 12px !important;
    font-size: 12px !important;
    width: 90px !important;
  }
}

/* ── ENTER REG: desktop font size capped at 75px (Paul, 2026-10-15) ──
   75px is also carplatesdirect.com's desktop value. The input is 100px
   tall (border-box) with line-height 1, so a 75px line needs a 75px
   content box - equal padding therefore becomes 12.5px rather than 14px,
   keeping the caps centred by the same method documented at theme.css:981.
   Scoped to >1024px so the 901-1024 (52px) and mobile bands are untouched. */
@media (min-width: 1025px) {
  #builder #reg_num {
    font-size: 75px !important;
    padding-top: 12.5px !important;
    padding-bottom: 12.5px !important;
  }
  #builder #reg_num::placeholder { font-size: 75px !important; }
}

/* ── ENTER REG placeholder sized to the main site ────────────────────
   Measured live on carplatesdirect.com: the INPUT is 75px/700 (typed
   text) but the PLACEHOLDER is 65px with normal letter-spacing. Ours
   was inheriting the full 75px AND carrying letter-spacing: 2px from
   the original plate-font styling, so "ENTER REG" rendered 447px wide
   against their 372px - 20% larger, and 16px wider than the 431px
   content box, i.e. actually clipping.                                */
@media (min-width: 1025px) {
  #builder #reg_num::placeholder {
    font-size: 65px !important;
    letter-spacing: normal !important;
  }
}

/* ── ENTER REG vertical centring ─────────────────────────────────────
   The padding-based centring (12.5px top/bottom) was computed for a
   75px line; the placeholder now renders at 65px, so the text sat low
   in the 100px box. carplatesdirect.com uses padding:0 and lets the
   browser centre the input's text, which is the reliable way to centre
   a single-line input - the earlier iOS caveat in this file was about
   setting line-height EQUAL to height, which this does not do.        */
@media (min-width: 1025px) {
  #builder #reg_num {
    /* Measured: with 700 65px Tahoma (ascent 65, descent 13, cap ink 49)
       Chrome centres the font's content area, leaving 24px above / 19px
       below the caps in THEIR 92px box. Ours was centred identically -
       the text only looked low because our box was 100px, putting every
       value 4px further down. Matching the height matches the position. */
    height: 92px !important;
    padding-top: 0 !important;
    /* padding-bottom: 0 !important; */
    line-height: 150px !important;   /* same inert value the main site uses */
  }
}

/* Remove drop-shadow from shaped plate silhouette images */
.mmpb-shaped-size-img,
.mmpb-shaped-rear-img { filter: none !important; }


/* FRONT SIZE / REAR SIZE labels in dark blue (Paul, 2026-10-20).
   Overrides the parity rule above that paints every .input_flex label black;
   same specificity (1,2,1), later in the file, so this one wins. */
#builder .input_flex .panel-body .n1-plate-size-group .n1-front-size-row label,
#builder .input_flex .panel-body .n1-plate-size-group .n1-rear-size-row label {
  color: #003366 !important;
  /* match .n1-qr-label's box so every label sits the same distance above its
     control (that rule is line-height:1; this one was inheriting ~1.5) */
  line-height: 1 !important;
  margin-bottom: 6px !important;
}
/* VEHICLE / LAYOUT / FRONT-REAR sat 5px above their selects, the size rows 6px */
#builder .n1-qr-col { gap: 6px !important; }

/* ─── 3D / 4D / 5D style visual enhancements ────────────────────────── */

/* Plate raised-depth shadow — makes the plate look physically lifted off the page */
#builder .mmpb-plate-box.mmpb-style-gel,
#builder .mmpb-plate-box.mmpb-style-4d,
#builder .mmpb-plate-box.mmpb-style-4d-5mm,
#builder .mmpb-plate-box.mmpb-style-5d,
#builder .mmpb-plate-box.mmpb-style-5d-5mm {
  box-shadow: none;   /* outside plate shadow removed (Paul, 26 Oct); was 0 6px 20px rgba(0,0,0,.40), 0 2px 5px rgba(0,0,0,.25) */
}

/* 3D Gel — drop-shadow traces exact character outlines + cast shadow below */
#builder .mmpb-plate-box.mmpb-style-gel .rg1,
#builder .mmpb-plate-box.mmpb-style-gel .rg2 {
  filter: drop-shadow(0 3px 5px rgba(0,0,0,0.80));
}

/* 4D — cast shadow simulates characters raised off the plate surface */
#builder .mmpb-plate-box.mmpb-style-4d .rg1,
#builder .mmpb-plate-box.mmpb-style-4d .rg2,
#builder .mmpb-plate-box.mmpb-style-4d-5mm .rg1,
#builder .mmpb-plate-box.mmpb-style-4d-5mm .rg2 {
  filter: drop-shadow(0 4px 4px rgba(0,0,0,0.65));
}

/* 5D — deeper cast shadow (4D base + gel cap = more raised height) */
#builder .mmpb-plate-box.mmpb-style-5d .rg1,
#builder .mmpb-plate-box.mmpb-style-5d .rg2,
#builder .mmpb-plate-box.mmpb-style-5d-5mm .rg1,
#builder .mmpb-plate-box.mmpb-style-5d-5mm .rg2 {
  filter: drop-shadow(0 5px 5px rgba(0,0,0,0.75));
}

/* Mobile tidy (Paul 27 Oct): no arrow beside the price, text-style buttons 2/3 height (59 -> 40px),
   "LEGAL / SHOW?" reads "LAYOUT:" */
#builder .n1-qr-lbl-mob { display: none; }
@media (max-width: 900px) {
  /* price block (Paul 27 Oct): smaller text, the green arrow back in its own slim column on the left,
     curving down into the ENTER REG box */
  #builder .your-price-mobile-wrap { grid-template-columns: 24px 1fr auto !important; gap: 12px !important; padding-left: 6px !important; }
  #builder .your-price-mobile-wrap .ymw-arrow { align-self: stretch !important; position: relative !important; width: 24px !important; }
  #builder .your-price-mobile-wrap .cpd-reg-arrow { position: absolute !important; left: 2px !important; top: 6px !important;
    bottom: 0px !important; width: 20px !important; height: auto !important; display: block !important; } /* tip stops just above ENTER REG */
  #builder .your-price-mobile-wrap .cpd-reg-arrow svg { width: 100% !important; height: 100% !important; margin-top: 0 !important; }
  #builder .your-price-mobile-wrap .pricing-wrapper,
  #builder .your-price-mobile-wrap .pricing-wrapper strong,
  #builder .your-price-mobile-wrap .pricing-wrapper span { font-size: 13px !important; line-height: 1.35 !important; }
  #builder .your-price-mobile-wrap .price { font-size: 14px !important; }
  #builder .your-price-mobile-wrap .price .totalPriceSpan { font-size: 17px !important; }
  #builder .n1-style-btn { height: 49px !important; line-height: 1.1 !important; } /* = dropdown height */
  /* text style (Paul 27 Oct): bigger text filling the button (side padding halved 8 -> 4px), heading pulled up
     towards ENTER REG and the label-to-buttons gap matched to the other options (7px) */
  #builder .n1-style-btn { font-size: clamp(14px, 4.8vw, 22px) !important; padding-left: 4px !important; padding-right: 4px !important; }
  #builder .font-options .panel-heading { padding-top: 0 !important; padding-bottom: 3px !important; }
  /* every label starts 14px below the field above it (Paul 27 Oct) - each section's spacing comes from
     different margins/paddings, so each label is nudged by its own difference (measured: 10/21/7/16/15/14/9/3) */
  #builder .font-options .panel-title { margin-top: 4px !important; }
  #builder .n1-qr-label { margin-top: -7px !important; }
  #builder .n1-front-size-row > label { margin-top: 7px !important; }
  #builder .n1-rear-size-row > label { margin-top: -2px !important; }
  #builder .panel-thin:has(.n1-material-btns) .panel-title { margin-top: -1px !important; }
  #builder .n1-badge-col-label, #builder #n1-badge-colour-row .n1-border-label { margin-top: 5px !important; }
  #builder .n1-slogan-label { margin-top: 11px !important; }
  /* side margins halved (Paul 27 Oct): builder 10 -> 5px, preview wrapper 12 -> 6px, form panels 10 -> 5px */
  #builder #customise_your_plates_slider { padding-left: 5px !important; padding-right: 5px !important; }
  #builder #builder-main-content { padding-left: 6px !important; padding-right: 6px !important; }
  #builder #customise_your_plates_slider .panel-body { padding-left: 5px !important; padding-right: 5px !important; }
  #builder .n1-flag-border-row { padding-left: 0 !important; padding-right: 0 !important; }
  #builder #customise_your_plates_slider .panel-heading { padding-left: 5px !important; }
  #builder .n1-flag-border-row > .panel > .panel-body { padding-left: 0 !important; padding-right: 0 !important; }
  /* reviews: breathing room above the section and between the score / stars and the first review */
  .plates-sec { margin-top: 32px !important; }
  .plates-sec .plates-rating-header { margin-bottom: 16px !important; }
  #builder .n1-qr-lbl-desk { display: none; }
  #builder .n1-qr-lbl-mob { display: inline; }
  /* badge type + badge colour side by side on mobile, as on desktop (Paul 27 Oct) */
  #builder .n1-flag-border-row { flex-direction: row !important; column-gap: 10px !important; }
  #builder .n1-flag-border-row > .panel { min-width: 0 !important; flex: 1 1 0% !important; }
}
/* every label sits 7px above its field (Paul 27 Oct) - Plate Material was 12, Slogan 6 */
#builder .panel-thin:has(.n1-material-btns) > .panel-heading { padding-bottom: 3px !important; }
#builder .n1-slogan-label { margin-bottom: 7px !important; }
#builder .font-options .panel-heading { padding-bottom: 3px !important; }
#builder .font-options .n1-style-btns { margin-top: 0 !important; }
/* slogan box the same height as the dropdowns beside it (49px) */
#builder #n1-slogan-input { height: 49px !important; box-sizing: border-box !important; }
/* quick options row on phones (Paul 17 Nov): at 320px the three boxes cut their text off ("Road l", "Front 8") -
   16px text + 36px arrow padding in three equal columns left ~45px for the words. Match carplatesdirect.com:
   13px text, slimmer padding, a narrower Car column. */
@media (max-width: 480px) {
  #builder .n1-quick-row { grid-template-columns: 0.7fr 1.05fr 1.1fr !important; }
  #builder .n1-qr-col select.selector { font-size: 13px !important; padding-left: 8px !important; padding-right: 22px !important; }
  #builder .n1-qr-col .drop-select > span { right: 8px !important; }
}

/* =====================================================================
   www.carplatesdirect.com LAYOUT PARITY (19 Nov 2026, promo_layout_fix_2026-11-19)
   Values measured on www with Playwright at 1440x900, 390x844 and 360x800.
   Chrome around the preview only: the plate preview itself is untouched.
   ===================================================================== */

/* Typeface of the chrome: www renders the USP strip and the price column in
   Tahoma. #builder itself keeps its font so nothing inside the plate preview
   changes. */
#builder .n1-builder-heading .cpd-usp-strip,
#builder .n1-builder-heading .cpd-usp-strip *,
#builder .sdd-img-wrap,
#builder .wrap-price-desktop-images,
#builder .your-price-mobile-wrap { font-family: Tahoma, helvetica, sans-serif !important; }
#builder .cpd-usp-strip .usp span { text-wrap: balance; }

/* -- Desktop price column (www: .wrap-price-desktop-images) -- */
@media (min-width: 901px) {
  #builder h1.h1-cpd-title { line-height: normal !important; }
  #builder .wrap-price-desktop-images {
    display: flex !important; flex-wrap: nowrap !important; align-items: center !important;
    gap: 20px !important; margin-top: 20px !important; width: 100%;
  }
  #builder .wrap-price-desktop-images .pricing-wrapper {
    display: inline-grid !important; gap: 8px !important; flex-shrink: 0 !important;
    width: auto !important; margin: 0 70px 0 0 !important; padding: 0 !important;
  }
  #builder .wrap-price-desktop-images .desk-slashed-price {
    display: block !important; padding-top: 10px !important; margin: 0 0 2px !important; line-height: normal !important;
  }
  #builder .wrap-price-desktop-images .desk-slashed-price strong {
    display: inline !important; font-size: 23px !important; font-weight: 100 !important; line-height: normal !important;
  }
  #builder .wrap-price-desktop-images .desk-slashed-price .slash-price { padding-left: 5px !important; color: red !important; }
  #builder .wrap-price-desktop-images .price {
    display: block !important; font-size: 28px !important; font-weight: 100 !important; line-height: 28px !important;
    margin: 0 10px 2px 0 !important; color: #000 !important; white-space: nowrap;
  }
  #builder .wrap-price-desktop-images .price .totalPriceSpan {
    display: inline !important; font-size: 22px !important; font-weight: 100 !important; line-height: 22px !important;
    margin-left: 8px !important; color: #000 !important;
  }
  #builder .wrap-price-desktop-images .desk-green-off-wrap { margin-top: 2px !important; font-size: 17px !important; line-height: normal !important; }
  #builder .wrap-price-desktop-images .green-off { font-size: 17px !important; font-weight: 100 !important; line-height: normal !important; }
  /* Same Day Dispatch: 160x140, pushed right then nudged back 25% as on www */
  #builder .wrap-price-desktop-images .sdd-img-wrap { margin-left: auto !important; display: block !important; }
  #builder .wrap-price-desktop-images .sdd-img-wrap img {
    width: 160px !important; max-width: 160px !important; height: auto !important;
    position: relative; left: -25%; display: inline !important;
  }
  #builder .wrap-price-desktop-images .sdd-img-wrap img { display: block !important; }
  /* vertical rhythm: www has the plates 10px under the USP strip, the price row 20px under the
     plates and ADD TO BASKET 30px under the price row. This column already spaces its children
     16px apart, so the margins below are www's minus that. */
  #builder #builder-main-content .mmpb-f-plate { margin-top: -6px !important; }
  #builder .wrap-price-desktop-images { margin-top: 4px !important; }
  #builder a.add_cart_btn.crt-btn.n1-desktop-full-btn { margin-top: 14px !important; }
}

/* -- Phones (<=767px): heading, USP strip, price row, ADD TO BASKET -- */
@media (max-width: 767px) {
  #builder .mmpb-container { padding-top: 6px !important; }
  #builder .n1-builder-heading { padding: 0 !important; }
  /* www h1.cpd-mob-title: sized so the line fills the width (--cpd-title-w is set in index.php) */
  #builder h1.h1-cpd-title {
    font-size: clamp(12px, calc((100vw - 40px) / var(--cpd-title-w, 20)), 23px) !important;
    line-height: 1.25 !important; font-weight: 700 !important; color: #335ec1 !important;
    text-align: center !important; margin: 0 0 12px !important; padding: 4px 10px 0 !important;
  }
  /* the desktop strip stays hidden (style.css now forces .mainusps-wrap on below 560px) */
  #builder .n1-builder-heading .mainusps-wrap:not(.mainusps-mob) { display: none !important; }
  #builder .mainusps-mob { display: block !important; margin-top: 10px !important; padding-bottom: 16px !important; }
  #builder .mainusps-mob .cpd-usp-strip {
    display: flex !important; flex-wrap: wrap !important; justify-content: center !important; align-items: flex-start !important;
    gap: 20px 12px !important; max-width: 720px !important; margin: 0 auto !important;
  }
  #builder .mainusps-mob .cpd-usp-strip .usp {
    flex: 1 1 150px !important; max-width: 220px !important; display: flex !important; flex-direction: column !important;
    align-items: center !important; text-align: center !important; gap: 10px !important;
  }
  #builder .mainusps-mob .cpd-usp-strip .usp svg { width: 46px !important; height: 46px !important; }
  #builder .mainusps-mob .cpd-usp-strip .usp span {
    font-weight: 800 !important; font-size: .9rem !important; line-height: 1.25 !important;
    letter-spacing: .03em !important; text-transform: uppercase !important; color: #2a3a66 !important;
  }
}
/* below 560px www's style.css tightens the title and the USP strip (compact 3-across) */
@media (max-width: 560px) {
  #builder h1.h1-cpd-title { padding-top: 0 !important; margin-bottom: 2px !important; }
  /* 12px: the title's 2px bottom margin collapses into this one; on www they do not collapse */
  #builder .mainusps-mob { margin-top: 12px !important; padding-bottom: 10px !important; }
  #builder .mainusps-mob .cpd-usp-strip { gap: 0 8px !important; }
  #builder .mainusps-mob .cpd-usp-strip .usp { flex: 1 1 0 !important; min-width: 0 !important; gap: 6px !important; }
  #builder .mainusps-mob .cpd-usp-strip .usp svg { width: 30px !important; height: 30px !important; }
  #builder .mainusps-mob .cpd-usp-strip .usp span { font-size: .62rem !important; letter-spacing: .01em !important; }
}
@media (max-width: 767px) {

  /* price row: www .your-price-mobile-wrap (flex, 64px: price block absolute on the left,
     135px BUY button on the right); the green arrow sits over the ENTER REG box, out of flow */
  /* plates start right under the USP strip (www: 0px; this column adds 4px between children) */
  #builder #builder-main-content .mmpb-f-plate { margin-top: -4px !important; }
  #builder .your-price-mobile-wrap {
    display: flex !important; position: relative !important; align-items: flex-start !important;
    margin: 12px 0 0 !important; padding: 0 !important; gap: 0 !important; min-height: 64px;
  }
  #builder .your-price-mobile-wrap .ymw-arrow {
    position: absolute !important; left: 0 !important; top: 16px !important;
    width: 26px !important; height: 52px !important; z-index: 3; pointer-events: none; align-self: auto !important;
  }
  #builder .your-price-mobile-wrap .cpd-reg-arrow {
    position: static !important; display: block !important; width: 100% !important; height: 100% !important;
  }
  #builder .your-price-mobile-wrap .cpd-reg-arrow svg { width: 100% !important; height: 100% !important; margin: 0 !important; overflow: visible; }
  #builder .your-price-mobile-wrap .pricing-wrapper {
    position: absolute !important; left: 0; top: 0; display: grid !important;
    width: 172px !important; box-sizing: border-box !important; margin: 1px 0 0 15px !important; padding: 0 0 0 20px !important;
  }
  #builder .your-price-mobile-wrap #mob-slashed-price {
    display: block !important; height: 15px; margin: 0 !important; white-space: nowrap;
  }
  #builder .your-price-mobile-wrap #mob-slashed-price strong {
    display: inline-block !important; font-size: 12px !important; line-height: 15px !important; font-weight: 100 !important;
    color: #036 !important;
  }
  #builder .your-price-mobile-wrap #mob-slashed-price #mob-discounted-price { color: red !important; padding: 0 0 5px 5px; }
  #builder .your-price-mobile-wrap .price {
    display: block !important; height: 19px; font-size: 13px !important; line-height: 19px !important;
    font-weight: 700 !important; margin: 0 !important; color: #000 !important; white-space: nowrap;
  }
  #builder .your-price-mobile-wrap .price .totalPriceSpan {
    display: inline-block !important; font-size: 16px !important; line-height: 19px !important; font-weight: 800 !important;
    margin-left: 5px !important; padding-bottom: 5px; color: #000 !important;
  }
  #builder .your-price-mobile-wrap #mob-green-off-wrap { height: 14px; margin: 0 !important; line-height: 14px !important; }
  #builder .your-price-mobile-wrap #mob-green-off { font-size: 12px !important; line-height: 14px !important; font-weight: 100 !important; }
  #builder .your-price-mobile-wrap .ymw-btn-wrap { margin-left: auto !important; width: 135px !important; flex: 0 0 135px !important; }
  #builder .your-price-mobile-wrap .add_cart_btn.crt-btn {
    display: block !important; box-sizing: border-box !important; width: 100% !important; max-width: 135px !important;
    padding: 14px !important; margin-top: 6px !important; font-size: 13.3333px !important; line-height: normal !important;
    text-align: center !important; height: auto !important;
  }
}
