/* JDM Plates - Number Plate Builder v2 (only loaded on pages using the "Plate Builder v2" template) */

@font-face {
	font-family: 'UKNumberPlate';
	src: url('../../plate-builder/fonts/UKNumberPlate.woff2') format('woff2'), url('../../plate-builder/fonts/UKNumberPlate.woff') format('woff');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

#main.pb2 { --pb2-ink: #1a1a1a; --pb2-muted: #4a4842; --pb2-line: #e6e4dc; --pb2-yellow: #fee100; --pb2-bg: #f3f2ee; --pb2-top: 0px; background: var(--pb2-bg); color: var(--pb2-ink); font-family: Rubik, system-ui, sans-serif; }
#main.pb2 *, #main.pb2 *::before, #main.pb2 *::after { box-sizing: border-box; }
#main.pb2 button { font: inherit; }
#main.pb2 .pb2-app { max-width: 1440px; margin: 0 auto; padding: 32px 24px 48px; display: flex; flex-direction: column; gap: 24px; }

#main.pb2 .pb2-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
#main.pb2 .pb2-eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #5c5a52; }
#main.pb2 .pb2-h1 { margin: 0; font-size: 40px; line-height: 1.05; font-weight: 700; letter-spacing: -.02em; color: var(--pb2-ink); }
#main.pb2 .pb2-guide { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; color: var(--pb2-ink); text-decoration: underline; text-underline-offset: 3px; }

#main.pb2 .pb2-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; position: relative; }
#main.pb2 .pb2-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }

/* preview */
#main.pb2 .pb2-stagecol { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--pb2-top) + 16px); z-index: 5; }
#main.pb2 .pb2-stage { background: radial-gradient(ellipse 80% 70% at 50% 35%, #2e2e2c 0%, #141413 72%); border-radius: 20px; padding: 24px 32px 28px; display: flex; flex-direction: column; gap: 24px; min-height: 460px; }
#main.pb2 .pb2-stagebar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
#main.pb2 .pb2-live { margin: 0; color: #fff; font-size: 15px; font-weight: 600; }
#main.pb2 .pb2-sizeline { margin: 2px 0 0; color: #b8b6ae; font-size: 13px; }
#main.pb2 .pb2-showbadge { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pb2-ink); background: #fb923c; padding: 6px 10px; border-radius: 999px; }
#main.pb2 .pb2-seg { display: flex; background: #2a2a28; border-radius: 999px; padding: 4px; gap: 4px; }
#main.pb2 .pb2-seg button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; background: transparent; color: #e8e6de; }
#main.pb2 .pb2-seg button[aria-pressed="true"] { background: var(--pb2-yellow); color: var(--pb2-ink); }
#main.pb2 .pb2-plates { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; flex: 1; padding: 8px 0; }
#main.pb2 .pb2-loading { color: #d6d4cc; margin: 0; }
#main.pb2 .pb2-plate { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
#main.pb2 .pb2-plate[hidden] { display: none; }
#main.pb2 .pb2-plate figcaption { color: #b8b6ae; font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
#main.pb2 .pb2-scale { position: relative; filter: drop-shadow(0 16px 22px rgba(0,0,0,.55)) drop-shadow(0 2px 3px rgba(0,0,0,.5)); transition: width .2s ease, height .2s ease; }
#main.pb2 .pb2-inner { position: absolute; left: 0; top: 0; transform-origin: 0 0; transition: transform .2s ease; }
#main.pb2 .pb2-art, #main.pb2 .pb2-art svg, #main.pb2 .pb2-art img { position: absolute; left: 0; top: 0; display: block; }
#main.pb2 .pb2-text { position: absolute; transform: translateY(-50%); width: 100%; padding: 10px 20px; text-align: center; font-family: UKNumberPlate, 'Arial Narrow', sans-serif; font-weight: 700; color: #0d0d0d; white-space: normal; user-select: none; pointer-events: none; }
#main.pb2 .pb2-text.pb2-empty { opacity: .28; }
#main.pb2 .pb2-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; color: #d6d4cc; font-size: 13px; }
#main.pb2 .pb2-trust span::before { content: '✓'; color: var(--pb2-yellow); margin-right: 6px; font-weight: 700; }

/* plate artwork layers (same behaviour as the original builder) */
#main.pb2 .pb2-plate #full-border, #main.pb2 .pb2-plate #flag-border, #main.pb2 .pb2-plate #flag-company-text, #main.pb2 .pb2-plate #flag-white-box, #main.pb2 .pb2-flagimg { display: none; }
#main.pb2 .pb2-plate.pb2-has-border #full-border { display: inline; }
#main.pb2 .pb2-plate.pb2-has-border.pb2-has-flag #full-border { display: none; }
#main.pb2 .pb2-plate.pb2-has-border.pb2-has-flag #flag-border { display: inline; }
#main.pb2 .pb2-plate.pb2-has-flag #flag-company-text, #main.pb2 .pb2-plate.pb2-has-flag #flag-white-box { display: inline; }
#main.pb2 .pb2-plate.pb2-has-flag #company-text, #main.pb2 .pb2-plate.pb2-has-flag #white-box { display: none; }
#main.pb2 .pb2-std-art[data-side="rear"] #plate,
#main.pb2 .pb2-std-art[data-side="rear"] #white-box,
#main.pb2 .pb2-std-art[data-side="rear"] #flag-white-box,
#main.pb2 .pb2-std-art[data-side="rear"] #bs-white-box { fill: #fee10a !important; }
/* show plates: no supplier or BS markings */
#main.pb2 .pb2-is-show .pb2-mark,
#main.pb2 .pb2-is-show #white-box,
#main.pb2 .pb2-is-show #flag-white-box,
#main.pb2 .pb2-is-show #bs-white-box,
#main.pb2 .pb2-is-show #company-text,
#main.pb2 .pb2-is-show #flag-company-text { display: none !important; }

/* pressed metal: vehicle and finish choices above the sizes */
#main.pb2 .pb2-pmrow { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
#main.pb2 .pb2-pmrow .pb2-label { margin: 0; font-size: 14px; font-weight: 600; }
#main.pb2 .pb2-pmrow .pb2-chips { display: flex; flex-wrap: wrap; gap: 8px; }
#main.pb2 .pb2-pmrow .pb2-msg { margin: 0; }

/* product page preview frame ([jdm_plate_preview]): plates only */
#main.pb2.pb2-embed { background: transparent; }
#main.pb2-embed .pb2-app { max-width: none; padding: 0; gap: 0; }
#main.pb2-embed .pb2-head, #main.pb2-embed .pb2-panel, #main.pb2-embed .pb2-notes, #main.pb2-embed .pb2-seg,
#main.pb2-embed .pb2-trust, #main.pb2-embed .pb2-sizetoggle, #main.pb2-embed .pb2-zoom, #main.pb2-embed .pb2-sentinel { display: none !important; }
#main.pb2-embed .pb2-grid { display: block; }
#main.pb2-embed .pb2-stagecol { position: static; }
#main.pb2-embed .pb2-stage { min-height: 0; padding: 16px 16px 20px; gap: 14px; border-radius: 16px; }
#main.pb2-embed .pb2-plates { gap: 18px; padding: 0; }

/* text styles */
#main.pb2 .pb2-fx-gel { color: #050505 !important; text-shadow: 0 -1px 0 rgba(255,255,255,.6), 0 2px 1px rgba(0,0,0,.45), 0 4px 6px rgba(0,0,0,.25); }
#main.pb2 .pb2-fx-4d3 { color: #151515 !important; text-shadow: 1px 1px 0 #2b2b2b, 2px 2px 0 #2b2b2b, 3px 3px 0 #333, 4px 6px 6px rgba(0,0,0,.35); }
#main.pb2 .pb2-fx-4d3g { color: #050505 !important; text-shadow: 0 -1px 0 rgba(255,255,255,.6), 1px 1px 0 #2b2b2b, 2px 2px 0 #2b2b2b, 3px 3px 0 #333, 4px 6px 6px rgba(0,0,0,.35); }
#main.pb2 .pb2-fx-4d5 { color: #151515 !important; text-shadow: 1px 1px 0 #2b2b2b, 2px 2px 0 #2b2b2b, 3px 3px 0 #2f2f2f, 4px 4px 0 #333, 5px 5px 0 #363636, 6px 9px 9px rgba(0,0,0,.38); }
/* 4D Retro: the letters are drawn on a canvas over the plate (see RETRO in the script); the text stays for layout only */
#main.pb2 .pb2-text.pb2-fx-retro, #main.pb2 .pb2-text.pb2-fx-gel, #main.pb2 .pb2-text.pb2-fx-4d3g, #main.pb2 .pb2-text.pb2-fx-4d5g, #main.pb2 .pb2-text.pb2-fx-4d3, #main.pb2 .pb2-text.pb2-fx-4d5, #main.pb2 .pb2-text.pb2-fx-pressed { color: transparent !important; text-shadow: none !important; }
#main.pb2 .pb2-bl { display: inline-block; width: 0; height: 0; vertical-align: baseline; }
#main.pb2 .pb2-retro { position: absolute; left: 0; top: 0; pointer-events: none; }
#main.pb2 .pb2-retro.pb2-empty { opacity: .28; }
#main.pb2 .pb2-retrosample { display: block; width: 110px; height: 46px; }
#main.pb2 .pb2-fx-4d5g { color: #050505 !important; text-shadow: 0 -1px 0 rgba(255,255,255,.6), 1px 1px 0 #2b2b2b, 2px 2px 0 #2b2b2b, 3px 3px 0 #2f2f2f, 4px 4px 0 #333, 5px 5px 0 #363636, 6px 9px 9px rgba(0,0,0,.38); }

/* panel */
#main.pb2 .pb2-panel { flex: 1 1 400px; max-width: 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
#main.pb2 .pb2-card { background: #fff; border-radius: 16px; padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
#main.pb2 .pb2-step { display: flex; align-items: center; gap: 12px; }
#main.pb2 .pb2-step span { width: 28px; height: 28px; border-radius: 50%; background: var(--pb2-ink); color: var(--pb2-yellow); font-size: 14px; font-weight: 700; display: grid; place-items: center; flex: none; }
#main.pb2 .pb2-step h2 { margin: 0; font-size: 19px; font-weight: 600; color: var(--pb2-ink); }
#main.pb2 .pb2-step em { margin-left: auto; font-style: normal; font-size: 13px; color: #5c5a52; }
#main.pb2 .pb2-help, #main.pb2 .pb2-muted { margin: 0; font-size: 14px; line-height: 1.45; color: var(--pb2-muted); }
#main.pb2 .pb2-small { margin: 0; font-size: 13px; color: #6a675e; }

#main.pb2 .pb2-boxes { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
#main.pb2 .pb2-box { width: 100%; min-width: 0; height: 58px; border: 2px solid #d9d7cf; border-radius: 10px; background: #fbfbf8; text-align: center; font-family: UKNumberPlate, 'Arial Narrow', sans-serif; font-weight: 700; font-size: 32px; color: var(--pb2-ink); padding: 0; text-transform: uppercase; }
#main.pb2 .pb2-box:focus { outline: none; border-color: var(--pb2-ink); box-shadow: 0 0 0 3px var(--pb2-yellow); }
#main.pb2 .pb2-box:disabled { background: #ecebe6; color: #b9b7af; cursor: not-allowed; }
#main.pb2 .pb2-readrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
#main.pb2 .pb2-readrow p { margin: 0; font-size: 14px; color: var(--pb2-muted); }
#main.pb2 .pb2-readas, #main.pb2 .pb2-reg { font-family: UKNumberPlate, 'Arial Narrow', sans-serif; font-size: 18px; color: var(--pb2-ink); white-space: pre; background: #f3f2ee; padding: 2px 8px; border-radius: 6px; }
#main.pb2 .pb2-link { background: none; border: 0; min-height: 44px; padding: 0 4px; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: var(--pb2-ink); }

#main.pb2 .pb2-msgs { display: flex; flex-direction: column; gap: 10px; }
#main.pb2 .pb2-msgs:empty { display: none; }
#main.pb2 .pb2-msg { margin: 0; border-radius: 10px; padding: 10px 12px; font-size: 14px; line-height: 1.4; }
#main.pb2 .pb2-warn { background: #fff4cc; color: #3a2f00; }
#main.pb2 .pb2-info { background: #eef2f7; color: #1e293b; }
#main.pb2 .pb2-ok { padding: 0; color: #166534; }
#main.pb2 .pb2-ok::before { content: '✓ '; font-weight: 700; }
#main.pb2 .pb2-bad { border: 2px solid #c2410c; background: #fff4ed; color: #431407; display: flex; flex-direction: column; gap: 12px; padding: 14px; }
#main.pb2 .pb2-bad p { margin: 0; }
#main.pb2 .pb2-msgtitle { font-size: 15px; font-weight: 600; color: #7c2d12; }
#main.pb2 .pb2-bad .pb2-reg { background: #fff; }
#main.pb2 .pb2-ack { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; cursor: pointer; min-height: 44px; }
#main.pb2 .pb2-ack input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--pb2-ink); }

#main.pb2 .pb2-chips { display: flex; flex-wrap: wrap; gap: 8px; }
#main.pb2 .pb2-chip { min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer; border: 2px solid #d9d7cf; background: #fff; color: var(--pb2-ink); }
#main.pb2 .pb2-chip-sm { min-height: 40px; padding: 0 14px; font-size: 13px; }
#main.pb2 .pb2-chip[aria-pressed="true"], #main.pb2 .pb2-chip[aria-selected="true"] { border-color: var(--pb2-ink); background: var(--pb2-ink); color: #fff; }

#main.pb2 .pb2-sizes { display: flex; flex-direction: column; gap: 8px; }
#main.pb2 .pb2-sizes[hidden], #main.pb2 .pb2-spec[hidden] { display: none; }
#main.pb2 .pb2-size { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 14px 8px 8px; border-radius: 12px; color: var(--pb2-ink); cursor: pointer; text-align: left; border: 2px solid var(--pb2-line); background: #fff; }
#main.pb2 .pb2-size[aria-checked="true"] { border-color: var(--pb2-ink); background: #fffbe6; }
#main.pb2 .pb2-sizeicon { width: 52px; height: 32px; display: grid; place-items: center; flex: none; }
#main.pb2 .pb2-sizeicon span { display: block; border-radius: 3px; background: #e6e4dc; box-shadow: inset 0 0 0 1.5px #b9b7af; }
#main.pb2 .pb2-size[aria-checked="true"] .pb2-sizeicon span { background: var(--pb2-yellow); box-shadow: inset 0 0 0 1.5px var(--pb2-ink); }
#main.pb2 .pb2-sizetext { display: flex; flex-direction: column; gap: 2px; flex: 1; }
#main.pb2 .pb2-sizetext b { font-size: 15px; font-weight: 600; }
#main.pb2 .pb2-sizetext span { font-size: 13px; color: #5c5a52; }
#main.pb2 .pb2-tag { font-style: normal; font-size: 12px; font-weight: 600; background: var(--pb2-ink); color: var(--pb2-yellow); padding: 4px 8px; border-radius: 999px; white-space: nowrap; }

#main.pb2 .pb2-spec { display: flex; flex-direction: column; gap: 14px; }
#main.pb2 .pb2-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 10px; }
#main.pb2 .pb2-two label, #main.pb2 .pb2-label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; margin: 0; }
#main.pb2 .pb2-label span { font-weight: 400; color: var(--pb2-muted); }
#main.pb2 .pb2-sel { height: 46px; border: 2px solid #d9d7cf; border-radius: 10px; padding: 0 10px; font: inherit; font-size: 15px; font-weight: 400; background: #fbfbf8; color: var(--pb2-ink); }
#main.pb2 .pb2-designs { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid #ecebe6; padding-top: 14px; }
#main.pb2 .pb2-designhead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
#main.pb2 .pb2-designhead p { margin: 0; font-size: 15px; font-weight: 600; }
#main.pb2 .pb2-designhead span { font-size: 13px; color: var(--pb2-muted); }
#main.pb2 .pb2-designgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(132px, 100%), 1fr)); gap: 8px; }
#main.pb2 .pb2-design { display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 10px; color: var(--pb2-ink); cursor: pointer; border: 2px solid var(--pb2-line); background: #fff; text-align: left; font-size: 13px; font-weight: 500; }
#main.pb2 .pb2-design[aria-checked="true"] { border-color: var(--pb2-ink); background: #fffbe6; }
#main.pb2 .pb2-design img, #main.pb2 .pb2-nothumb { display: block; width: 100%; height: 46px; object-fit: cover; border-radius: 6px; background: #ecebe6; }

#main.pb2 .pb2-styles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); gap: 8px; }
#main.pb2 .pb2-style { display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 12px; color: var(--pb2-ink); cursor: pointer; border: 2px solid var(--pb2-line); background: #fff; font-size: 14px; font-weight: 600; text-align: left; }
#main.pb2 .pb2-style[aria-checked="true"] { border-color: var(--pb2-ink); background: #fffbe6; }
#main.pb2 .pb2-sample { height: 52px; border-radius: 6px; background: linear-gradient(180deg, #fff, #f1f0ec); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); display: grid; place-items: center; overflow: hidden; }
#main.pb2 .pb2-sample span { font-family: UKNumberPlate, 'Arial Narrow', sans-serif; font-weight: 700; font-size: 34px; color: #0d0d0d; }
#main.pb2 .pb2-sample .pb2-fx-gel, #main.pb2 .pb2-sample .pb2-fx-4d3, #main.pb2 .pb2-sample .pb2-fx-4d3g, #main.pb2 .pb2-sample .pb2-fx-4d5, #main.pb2 .pb2-sample .pb2-fx-4d5g { text-shadow: 1px 1px 0 #333, 2px 2px 2px rgba(0,0,0,.35); }

#main.pb2 .pb2-extras .pb2-label { font-size: 14px; }
#main.pb2 .pb2-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
#main.pb2 .pb2-swatch { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0; background: #fff; border: 2px solid transparent; }
#main.pb2 .pb2-swatch[aria-checked="true"] { border-color: var(--pb2-ink); }
#main.pb2 .pb2-swatch span { display: block; width: 26px; height: 26px; border-radius: 50%; }
#main.pb2 .pb2-none span { background: linear-gradient(135deg, transparent 45%, #b0aea6 45%, #b0aea6 55%, transparent 55%); box-shadow: inset 0 0 0 1.5px #b0aea6; }

/* notes */
#main.pb2 .pb2-notecard { background: #fff; border-radius: 16px; padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; }
#main.pb2 .pb2-notetitle { margin: 0; font-size: 15px; font-weight: 600; }
#main.pb2 .pb2-notegrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 10px 24px; font-size: 14px; line-height: 1.45; color: #3d3b35; }
#main.pb2 .pb2-notegrid p { margin: 0; }
#main.pb2 .pb2-notes-compact { display: none; }

/* price bar */
#main.pb2 .pb2-bar { position: sticky; bottom: 16px; background: var(--pb2-ink); color: #fff; border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.25); z-index: 4; }
#main.pb2 .pb2-barrow { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
#main.pb2 .pb2-barinfo p { margin: 0 0 4px; font-size: 13px; color: #c9c7bf; }
#main.pb2 .pb2-price { margin: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
#main.pb2 .pb2-was { font-size: 14px; color: #c9c7bf; }
#main.pb2 .pb2-now { font-size: 30px; font-weight: 700; line-height: 1; }
#main.pb2 .pb2-on-sale .pb2-now { color: var(--pb2-yellow); }
#main.pb2 .pb2-price small { font-size: 12px; color: #c9c7bf; }
#main.pb2 .pb2-barbtns { display: flex; gap: 10px; flex-wrap: wrap; }
#main.pb2 .pb2-cta { flex: 2 1 180px; min-height: 52px; border: 0; border-radius: 12px; background: var(--pb2-yellow); color: var(--pb2-ink); font-size: 16px; font-weight: 700; cursor: pointer; padding: 0 16px; }
#main.pb2 .pb2-cta:hover { background: #fff066; }
#main.pb2 .pb2-cta:disabled { background: #3a3a37; color: #9a988f; cursor: not-allowed; }
#main.pb2 .pb2-bad .pb2-cta { flex: none; min-height: 46px; font-size: 15px; }
#main.pb2 .pb2-checkout { flex: 1 1 120px; min-height: 52px; border: 2px solid #4a4a46; border-radius: 12px; color: #fff !important; font-size: 15px; font-weight: 500; display: grid; place-items: center; text-decoration: none; }
#main.pb2 .pb2-basketnote { margin: 0; font-size: 13px; color: #fdba74; }
#main.pb2 .pb2-basketnote:empty { display: none; }

#main.pb2 button:focus-visible, #main.pb2 a:focus-visible, #main.pb2 select:focus-visible { outline: 3px solid var(--pb2-yellow); outline-offset: 2px; }

/* SEO copy carried over from the original page */
#main.pb2 .pb2-seo { padding: 24px 24px 56px; }
#main.pb2 .pb2-seo-inner { max-width: 1100px; margin: 0 auto; background: #fff; border-radius: 16px; padding: 32px; color: #3d3b35; font-size: 15px; line-height: 1.6; }
#main.pb2 .pb2-seo-inner img { max-width: 100%; height: auto; display: block; margin-bottom: 16px; }
#main.pb2 .pb2-seo-inner h2, #main.pb2 .pb2-seo-inner h3, #main.pb2 .pb2-seo-inner h5 { color: var(--pb2-ink); }

/* phones: compact sticky preview that shrinks to half size when scrolling */
#main.pb2 .pb2-compact .pb2-stagecol { flex: 1 1 100%; position: sticky; top: var(--pb2-top); z-index: 20; margin: 0 -24px; }
#main.pb2 .pb2-compact .pb2-stage { border-radius: 0 0 18px 18px; padding: 10px 12px 12px; gap: 10px; min-height: 0; box-shadow: 0 10px 24px rgba(0,0,0,.28); background: radial-gradient(ellipse 90% 80% at 50% 30%, #2e2e2c 0%, #141413 75%); }
#main.pb2 .pb2-compact .pb2-plates { gap: 8px; padding: 0; }
#main.pb2 .pb2-compact .pb2-trust, #main.pb2 .pb2-compact .pb2-notes-wide { display: none; }
#main.pb2 .pb2-compact .pb2-notes-compact { display: block; }
#main.pb2 .pb2-compact .pb2-panel { max-width: none; }
#main.pb2 .pb2-compact .pb2-h1 { font-size: 30px; }
#main.pb2 .pb2-mini .pb2-stage { padding: 8px 12px; gap: 0; }
#main.pb2 .pb2-mini .pb2-stagebar, #main.pb2 .pb2-mini .pb2-plate figcaption { display: none; }
#main.pb2 .pb2-mini .pb2-plates { flex-direction: row; flex-wrap: wrap; gap: 6px; }

@media (prefers-reduced-motion: reduce) { #main.pb2 .pb2-scale, #main.pb2 .pb2-inner { transition: none; } }

/* keep the theme's global button/input styles (Hello Elementor reset) out of the builder */
#main.pb2 button { text-transform: none; line-height: 1.25; letter-spacing: normal; box-shadow: none; }
#main.pb2 .pb2-box { padding: 0; line-height: 54px; border-radius: 10px; transition: none; }
/* registration: one invisible text field over 8 display boxes */
#main.pb2 .pb2-boxwrap { position: relative; }
#main.pb2 .pb2-regin { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 10px; background: transparent; color: transparent; -webkit-text-fill-color: transparent; caret-color: transparent; font-size: 16px; opacity: .011; z-index: 2; cursor: text; outline: none; box-shadow: none; }
#main.pb2 .pb2-box { display: flex; align-items: center; justify-content: center; user-select: none; -webkit-user-select: none; }
#main.pb2 .pb2-box.pb2-ph { color: #c9c7bf; }
#main.pb2 .pb2-box.pb2-off { background: #ecebe6; color: #b9b7af; }
#main.pb2 .pb2-box.pb2-active { border-color: var(--pb2-ink); box-shadow: 0 0 0 3px var(--pb2-yellow); }
#main.pb2 .pb2-box.pb2-active.pb2-ph, #main.pb2 .pb2-box.pb2-active:empty { color: transparent; position: relative; }
#main.pb2 .pb2-box.pb2-active.pb2-ph::after, #main.pb2 .pb2-box.pb2-active:empty::after { content: ''; position: absolute; left: 50%; top: 22%; width: 2px; height: 56%; background: var(--pb2-ink); animation: pb2-blink 1s steps(1) infinite; }
@keyframes pb2-blink { 50% { opacity: 0; } }
#main.pb2 .pb2-boxwrap:focus-within .pb2-boxes { outline: none; }
#main.pb2 .pb2-sel { width: 100%; padding: 0 10px; border-radius: 10px; line-height: normal; appearance: auto; }
#main.pb2 .pb2-chip:hover, #main.pb2 .pb2-size:hover, #main.pb2 .pb2-style:hover, #main.pb2 .pb2-design:hover { border-color: var(--pb2-ink); }
#main.pb2 .pb2-chip[aria-pressed="true"]:hover, #main.pb2 .pb2-chip[aria-selected="true"]:hover { background: var(--pb2-ink); color: #fff; }
#main.pb2 .pb2-seg button:hover { color: #fff; }
#main.pb2 .pb2-seg button[aria-pressed="true"]:hover { color: var(--pb2-ink); }
#main.pb2 .pb2-link:hover, #main.pb2 .pb2-guide:hover { color: var(--pb2-ink); background: none; }
#main.pb2 .pb2-text > div { white-space: nowrap; }
#main.pb2 .pb2-fit[hidden] { display: none; }

/* phones and tablets: full-size buttons, with the long order summary line hidden to save space */
#main.pb2 .pb2-compact .pb2-bar { padding: 12px 14px; gap: 10px; bottom: 8px; }
#main.pb2 .pb2-compact .pb2-summary { display: none; }
#main.pb2 .pb2-compact .pb2-barrow { align-items: center; }
#main.pb2 .pb2-compact .pb2-barinfo p { margin: 0; }
#main.pb2 .pb2-compact .pb2-now { font-size: 26px; }
#main.pb2 .pb2-compact .pb2-barbtns { flex-wrap: nowrap; }
#main.pb2 .pb2-compact .pb2-cta, #main.pb2 .pb2-compact .pb2-checkout { white-space: nowrap; }

/* text style close-up photos */
#main.pb2 .pb2-stylecard { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#main.pb2 .pb2-stylecard .pb2-style { width: 100%; }
#main.pb2 .pb2-zoombtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 6px; border: 0; background: none; color: var(--pb2-ink); font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#main.pb2 .pb2-zoombtn:hover { background: none; color: var(--pb2-ink); }
#main.pb2 .pb2-zoom { width: min(92vw, 900px); max-width: none; max-height: 90vh; border: 0; border-radius: 16px; padding: 14px; background: #fff; color: var(--pb2-ink); box-shadow: 0 20px 60px rgba(0,0,0,.4); }
#main.pb2 .pb2-zoom::backdrop { background: rgba(0,0,0,.72); }
#main.pb2 .pb2-zoomhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
#main.pb2 .pb2-zoomtitle { margin: 0; font-size: 16px; font-weight: 600; }
#main.pb2 .pb2-zoomclose { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f1f0ec; color: var(--pb2-ink); font-size: 26px; line-height: 1; cursor: pointer; padding: 0; }
#main.pb2 .pb2-zoomclose:hover { background: #e6e4dc; color: var(--pb2-ink); }
#main.pb2 .pb2-zoomimg { display: block; width: 100%; height: auto; max-height: calc(90vh - 90px); object-fit: contain; border-radius: 10px; background: #f3f2ee; }
/* shrunk preview keeps its full-size space; taps pass through the empty part to the form */
#main.pb2 .pb2-compact.pb2-mini .pb2-stagecol { height: var(--pb2-stageh, auto); pointer-events: none; }
#main.pb2 .pb2-compact.pb2-mini .pb2-stage { pointer-events: auto; cursor: pointer; }

/* phones: enlarge / minimise tab hanging under the stuck preview (not shown on desktop) */
#main.pb2 .pb2-stage { position: relative; }
#main.pb2 .pb2-sizetoggle { display: none; }
#main.pb2 .pb2-compact.pb2-stuck .pb2-sizetoggle { display: inline-flex; position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%); align-items: center; gap: 8px; min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--pb2-yellow); color: var(--pb2-ink); font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,.3); cursor: pointer; z-index: 3; pointer-events: auto; }
#main.pb2 .pb2-compact.pb2-stuck .pb2-sizetoggle:hover { background: var(--pb2-yellow); color: var(--pb2-ink); }
#main.pb2 .pb2-sizetoggle::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -4px; }
#main.pb2 .pb2-st-close { display: none; }
#main.pb2 .pb2-stuck:not(.pb2-mini) .pb2-st-open { display: none; }
#main.pb2 .pb2-stuck:not(.pb2-mini) .pb2-st-close { display: inline; }
#main.pb2 .pb2-stuck:not(.pb2-mini) .pb2-sizetoggle::after { transform: rotate(-135deg); margin-top: 4px; }
#main.pb2 .pb2-compact .pb2-stage { padding-bottom: 24px; }
#main.pb2 .pb2-compact.pb2-mini .pb2-stage { padding-bottom: 14px; }
/* stop the browser's scroll anchoring from "correcting" the scroll position when the
   preview changes size (this caused the page to jump back and forth on slow scrolls) */
#main.pb2, #main.pb2 .pb2-app, #main.pb2 .pb2-stagecol, #main.pb2 .pb2-stage { overflow-anchor: none; }
