/* UK Timber gate configurator: rework layout (door-style shell, 18 Oct 2026). Sticky drawing + options beside (desktop),
   drawing on top + options below (phone), fixed price + Add bar. */
:root{--ink:#1f261c;--muted:#5d6658;--line:#d9ddd3;--accent:#2f4a2c;--bg:#f6f4ef;--card:#fffdf8;--radius:10px;--bar-h:76px}
*{box-sizing:border-box}body{margin:0;font:15px/1.45 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--ink);background:var(--bg);padding-bottom:calc(var(--bar-h) + 16px)}
.ukt-gate{max-width:1760px;margin:0 auto;padding:12px 1.5rem}.hd h1{margin:0 0 2px;font-size:24px;color:var(--accent)}.sub{margin:0;color:var(--muted);font-size:14px}
.staging{display:inline-block;margin:6px 0 0;font-size:12px;background:#fff3cd;padding:2px 8px;border-radius:4px}
.grid{display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:20px;margin-top:12px;align-items:start}.side,.preview{min-width:0}
.preview{position:sticky;top:10px;z-index:5}
/* drawing stage */
.viz{position:relative;display:flex;flex-direction:column;height:min(62vh,600px);min-height:340px;border-radius:var(--radius);border:1px solid var(--line);background:#f7f5ef;padding:54px 10px 54px;overflow:hidden}
#vizDraw{flex:1 1 auto;min-height:0;position:relative}#vizDraw svg{width:100%;height:100%;display:block}
#vizDraw.stale svg{opacity:.38;filter:grayscale(.5)}
.svg-empty{display:flex;align-items:center;justify-content:center;height:100%;color:var(--muted);font-size:14px;text-align:center;padding:10px}
#errors{flex:0 0 auto;max-height:45%;overflow:auto}
#errors ul{list-style:none;margin:0;padding:0}#errors li{color:#b71c1c;background:#fdecea;padding:8px;border-radius:6px;margin-top:8px;box-shadow:0 0 0 1px #f5c2bd;font-size:14px}
#errors div,#errors p{color:#b71c1c;background:#fdecea;padding:8px;border-radius:6px;margin-top:8px}
.views{position:absolute;left:12px;bottom:12px;display:flex;flex-wrap:wrap;gap:6px;z-index:3}
.views button,.doorops button{font:inherit;font-size:13px;font-weight:600;padding:6px 12px;border-radius:999px;border:1px solid var(--line);background:rgba(255,253,248,.95);color:var(--ink);cursor:pointer}
.views button[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:#fff}
.views .sep{width:1px;background:var(--line);margin:0 2px}
.doorops{position:absolute;right:12px;top:12px;z-index:3}
.doorops button{border-color:var(--accent);color:var(--accent);font-weight:700;padding:7px 16px}
.doorops button[aria-pressed=true]{background:var(--accent);color:#fff}
.viznote{font-size:12.5px;color:var(--muted);margin:6px 2px 0;line-height:1.4}.viznote b{color:var(--ink)}
/* svg styling */
.gate-svg .ground{stroke:#b9b4aa;stroke-width:4}.gate-svg .ol{fill:none;stroke:#3b250f;stroke-opacity:.55;stroke-width:3}
.gate-svg .leaf{fill:#e7d2ad}.gate-svg .leaf.five_bar,.gate-svg .leaf.half_paled{fill:none}.gate-svg .leaf-edge{stroke:#2e1c0a;stroke-width:5}
.gate-svg .leaf.five_bar~.leaf-edge,.gate-svg .leaf.half_paled~.leaf-edge{fill:none;stroke:none}
.gate-svg .vj{stroke:#3b250f;stroke-opacity:.55;stroke-width:3}.gate-svg .post.existing{fill:#dcdcdc;stroke:#a9a9a9;stroke-width:3;stroke-dasharray:20 12}
.gate-svg .member{stroke:none}.gate-svg .pale{stroke:#3b250f;stroke-opacity:.4;stroke-width:3}
.gate-svg .dim line{stroke:#1d5fa8;stroke-width:5}.gate-svg .dim text{fill:#17497f;font-weight:600}.gate-svg .dim .lbg{fill:rgba(247,245,239,.88)}
.gate-svg .exl{opacity:0;fill:#3b2a14;font-weight:700;transition:opacity .4s;paint-order:stroke;stroke:#f7f5ef;stroke-width:8px}
.gate-svg .dim{transition:opacity .3s}
.vx-nosizes .gate-svg .dim,.vx-open .gate-svg .dim,.vx-exploded .gate-svg .dim{opacity:0}
.vx-exploded .gate-svg .exl{opacity:1}
.gate-svg .leafg,.gate-svg .xp{transition:transform .8s cubic-bezier(.45,.05,.25,1)}
.vx-exploded .gate-svg .xp{transform:translate(var(--ex),var(--ey))}
.vx-exploded .gate-svg .leafg{transform:translateX(var(--sp))}
.vx-exploded .gate-svg .infill{clip-path:none}.vx-exploded .gate-svg .leaf{fill:none}.vx-exploded .gate-svg .leaf-edge{stroke:none;fill:none}   /* parts pulled out of the leaf outline */
.vx-open .gate-svg .leafg{transform:scaleX(.16) skewY(var(--sk))}
@media (prefers-reduced-motion:reduce){.gate-svg .leafg,.gate-svg .xp{transition:none}}
/* options */
.opts{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:2px 14px 8px}
.step{border-bottom:1px solid var(--line);padding:10px 0}.opts .step:last-child{border-bottom:0}
.sh{font-size:12px;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);margin:2px 0 8px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.sh .n{background:var(--accent);color:#fff;border-radius:50%;width:20px;height:20px;display:inline-grid;place-items:center;font-size:11px;flex:0 0 auto}
.sh .sum{margin-left:auto;text-transform:none;letter-spacing:0;color:var(--ink);font-weight:600;text-align:right}
.field{margin:0 0 10px}.field>label{font-weight:600;display:block;margin-bottom:5px;font-size:14px}
.seg{display:flex;flex-wrap:wrap;gap:6px}.seg button{border:1px solid #c5c9be;background:#fff;border-radius:8px;padding:6px 10px;cursor:pointer;font:inherit;font-size:14px}
.seg button[aria-checked=true]{background:var(--accent);color:#fff;border-color:var(--accent)}
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.tile{border:1px solid var(--line);border-radius:8px;background:#fff;padding:3px;text-align:center;font:inherit;font-size:12px;cursor:pointer;line-height:1.25;color:var(--ink)}
.tile img,.tile .noimg{width:100%;height:auto;aspect-ratio:240/168;object-fit:cover;border-radius:5px;display:block;margin-bottom:3px;background:#eee}
.tile small{color:var(--muted)}.tile[aria-checked=true]{border:2px solid var(--accent);background:#eef3ea;font-weight:700;padding:2px}
select,input[type=number],input[type=text]{width:100%;max-width:100%;padding:7px 8px;font:inherit;border:1px solid #bbb;border-radius:6px;background:#fff}
input[data-k=w]{max-width:200px}
.hcustom{margin-top:8px;display:flex;align-items:center;gap:8px}.hcustom input{max-width:140px}
.help,.muted{color:var(--muted);font-size:13px}.small{font-size:12px}.tbc{display:inline-block;font-size:11px;background:#eef;color:#335;border-radius:3px;padding:0 4px;margin-left:3px;cursor:help;vertical-align:1px}
.field .sub{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.field .sub select{flex:1 1 45%}
.hwrow{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:6px 0 2px}.hwname{min-width:90px;font-weight:600}.hwrow select{flex:1;min-width:0}.hwrow .qty{width:70px;flex:0 0 70px}
.sug{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;background:#f3f6f0;border-radius:8px;padding:6px 8px;margin:4px 0;font-size:13px}.sug .sugt{flex:1 1 200px}
.sugcheck{cursor:pointer}.sugcheck input{margin:0 4px 0 0}
.btn3{border:1px solid var(--accent);background:#fff;color:var(--accent);border-radius:999px;padding:4px 12px;font:600 13px system-ui,sans-serif;cursor:pointer}
.ok{color:#2e7d32;font-weight:600}
/* review */
.review{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:8px 14px;margin-top:12px}.review h3{font-size:15px;margin:10px 0 4px}
.summary{font-size:14px}
#parts table{width:100%;border-collapse:collapse;background:#fff}#parts td,#parts th{border-bottom:1px solid #eee;padding:6px;text-align:left;vertical-align:top;font-size:14px}
#parts td:last-child,#parts th:last-child{text-align:right;white-space:nowrap}.note{font-size:13px;color:#555;margin:10px 0}
.share{display:flex;gap:6px;margin:10px 0}.share input{flex:1;min-width:0}.tbcbox{background:#fff;border:1px solid #ddd;border-radius:8px;padding:8px 12px;font-size:13px}
.btn2{padding:7px 12px;border:1px solid var(--accent);background:#fff;border-radius:6px;cursor:pointer;font:inherit}
/* fixed price + Add bar */
.bar{position:fixed;left:0;right:0;bottom:0;z-index:50;background:rgba(255,253,248,.98);border-top:1px solid var(--line);box-shadow:0 -6px 18px rgba(26,31,22,.08)}
.bar-in{max-width:1760px;margin:0 auto;padding:8px 1.5rem;display:flex;align-items:flex-end;gap:16px;min-height:var(--bar-h)}
.pricebox{flex:1;min-width:0}#price{min-width:0}.big{font-size:24px;font-weight:800;line-height:1.15}.big small{font-size:13px;font-weight:600;color:var(--muted)}#price>div:not(.big){font-size:13px;color:var(--muted)}
.sale{background:#c62828;color:#fff;padding:0 5px;border-radius:3px;font-size:11px;white-space:nowrap;display:inline-block;line-height:1.35}
.links{font-size:12px;margin:2px 0 0}.links a{color:var(--accent)}.msg{font-size:12.5px}.msg.ok{color:#2e7d32}.msg.err{color:#c62828}
.addwrap{display:flex;flex-direction:column;align-items:center;gap:2px}
.btn{width:auto;min-width:200px;padding:13px 26px;font:700 16px system-ui,sans-serif;background:var(--accent);color:#fff;border:0;border-radius:8px;cursor:pointer;white-space:nowrap}.btn:disabled{background:#999;cursor:not-allowed}
.btn.added{background:#2e7d32}.viewbasket{font-size:13px;font-weight:700;color:var(--accent);visibility:hidden;line-height:18px;display:inline-flex;align-items:center;justify-content:center;min-width:88px;min-height:44px;padding:0 8px}.viewbasket.on{visibility:visible}   /* space always reserved: Add never moves */
.basketpanel{position:fixed;right:20px;bottom:calc(var(--bar-h) + 16px);z-index:60;background:#fff;border:2px solid #2e7d32;border-radius:10px;padding:10px 14px;box-shadow:0 8px 24px rgba(0,0,0,.15);max-width:420px;font-size:13px}
.basketpanel h3{margin:0 0 4px;font-size:15px}.basketpanel ol{padding-left:18px;margin:6px 0}
@media (max-width:860px){
 .ukt-gate{padding:0}.hd{padding:8px 12px 4px}.hd h1{font-size:19px}.sub{font-size:13px}
 .grid{grid-template-columns:1fr;gap:0;margin-top:4px}
 .preview{position:sticky;top:0;z-index:20;background:var(--bg)}
 .viz{height:40vh;min-height:270px;border-radius:0;border-left:0;border-right:0;padding:44px 4px 46px}
 .views{top:8px;bottom:auto;left:6px;right:6px;justify-content:center}.views button{padding:4px 9px;font-size:12px}
 .doorops{top:auto;bottom:8px;left:6px;right:6px;display:flex;justify-content:center}.doorops button{padding:5px 14px;font-size:13px}
 .viznote{display:none}
 .opts,.review{border-radius:0;border-left:0;border-right:0;margin-top:0}
 .tiles{grid-template-columns:repeat(3,1fr)}
 .bar-in{padding:6px 10px;gap:8px;flex-wrap:nowrap}.big{font-size:19px}.btn{min-width:0;padding:11px 14px;font-size:15px}.links{display:none}
 #addnote,#mtm,#msg{font-size:11.5px;line-height:1.25}
 .basketpanel{left:10px;right:10px;max-width:none}
}
@media (max-width:420px){.big{font-size:18px}#parts td,#parts th{font-size:13px;padding:4px}#parts td{word-break:break-word}#price>div:not(.big){font-size:12px}}

/* PROOF-FIX 18 Oct 2026 */
html{scroll-padding-bottom:calc(var(--bar-h) + 40px)}   /* JS replaces with the measured bar height (F1) */
body{padding-bottom:calc(var(--bar-real,var(--bar-h)) + 16px)}
.vx-measure .gate-svg .leafg,.vx-measure .gate-svg .xp,.vx-measure .gate-svg .exl{transition:none!important}
.btn3.insug{border-color:#2e7d32;color:#2e7d32;cursor:default;background:#eef6ec}
.deliv summary{cursor:pointer}.deliv p{margin:4px 0 0}
.share{flex-wrap:wrap;align-items:center}.sharelink{flex:1 1 100%;font-size:13px}.sharelink summary{cursor:pointer;color:var(--accent)}.sharelink input{margin-top:4px}
@media (max-width:860px){
 .viz{height:clamp(220px,38vh,400px);min-height:0;padding:40px 4px 42px}   /* F2: Flow 36-38 vh (top of the range), min 220, max 400 */
}
/* F2 short viewports (landscape phones, keyboard open): the stage stops sticking and gets smaller, so the options and the focused field have room */
@media (max-width:860px) and (max-height:500px){
 .preview{position:relative}
 .viz{height:clamp(200px,62vh,300px)}
}
@media (max-width:860px){ html.vv-short .preview{position:relative} }
@media (min-width:861px) and (max-height:560px){ .preview{position:relative} .viz{height:max(300px,70vh);min-height:0} }
@media (max-width:860px) and (min-height:501px){ .viz.single-stage{height:var(--single-h,clamp(220px,38vh,400px))} }   /* 19 Oct: singles take the drawing's aspect, 38-50 vh */
html.vv-short .viz.single-stage{height:clamp(200px,62vh,300px)}
.werr{color:#b71c1c;background:#fdecea;border-radius:6px;padding:4px 8px;margin-top:4px;font-size:13px}
@media (min-width:861px){ .viz.single-stage{height:var(--single-h,min(62vh,600px));padding-top:12px} }   /* desktop singles: taller stage; the Open pill sits in the free top-right corner */
@media (max-width:360px){ .views{flex-wrap:nowrap;gap:4px;left:4px;right:4px}.views button{padding:4px 7px;font-size:11.5px;white-space:nowrap}.views .sep{display:none} }   /* 320: chips stay on one row */
.sug .sugerr:empty{margin:0;height:0}.sug .sugerr{flex-basis:100%;display:block;color:#a3261b;font-size:13px;margin-top:4px}

/* BUILD A (27 Oct 2026): options LEFT, preview RIGHT on desktop; recommendation block; tap targets >= 44 px; invalid reason in the price box */
@media (min-width:861px){
 .grid{grid-template-columns:minmax(280px,380px) minmax(0,1fr);gap:1.25rem;grid-template-areas:"side preview"}
 .side{grid-area:side}.preview{grid-area:preview}
}
.ukt-gate .seg button,.ukt-gate .btn3,.ukt-gate select,.ukt-gate input[type=number],.ukt-gate .stp,.ukt-gate .views button,.ukt-gate .doorops button,.ukt-gate .btn2{min-height:44px}
.ukt-gate .seg button{min-width:44px}.ukt-gate .btn3{padding:8px 16px}
.stepper{display:inline-flex;align-items:center;gap:2px}.stp{min-width:44px;border:1px solid #c5c9be;background:#fff;border-radius:8px;font:700 18px system-ui,sans-serif;cursor:pointer}
.hwrow .stepper .qty{width:56px;flex:0 0 56px;text-align:center}
.reco{background:#f3f6f0;border:1px solid #cfd8c8;border-radius:var(--radius);padding:10px 12px;margin:0 0 12px}
.reco h3{margin:0 0 6px;font-size:15px;color:var(--accent)}.reco ul{margin:0 0 8px;padding-left:18px}.reco li{margin:3px 0}.reco a{color:var(--accent);font-weight:600}
.recoinv{color:#a3261b;margin:0 0 8px}
.recobtns{display:flex;flex-wrap:wrap;gap:8px}.btn3.ghost{border-color:#c5c9be;color:var(--ink)}.btn3:disabled{opacity:.45;cursor:default}
.reconote{margin:6px 0 0;font-size:13px;color:var(--accent);min-height:1em}
.sugcheck{display:flex;align-items:center;gap:10px;min-height:44px;margin:4px 0 8px;cursor:pointer}.sugcheck input{-webkit-appearance:none;appearance:none;position:relative;width:44px;height:44px;margin:-10px -10px -10px -10px;flex:0 0 44px;padding:0;border:0;background:none;cursor:pointer}.sugcheck input::before{content:"";position:absolute;left:10px;top:10px;width:24px;height:24px;box-sizing:border-box;border:2px solid var(--muted);border-radius:4px;background:#fff}.sugcheck input:checked::before{background:var(--accent);border-color:var(--accent)}.sugcheck input:checked::after{content:"";position:absolute;left:19px;top:14px;width:6px;height:12px;border:solid #fff;border-width:0 3px 3px 0;transform:rotate(45deg)}.sugcheck input:focus-visible::before{outline:2px solid var(--accent);outline-offset:2px}/* J3dd: 44px tap target (Proof J3dc), 24px visible box */
#price .invalid{color:#a3261b;font-weight:600;font-size:14px;line-height:1.3}
@media (max-width:860px){ #price .invalid{font-size:12.5px} .stp{min-width:44px} }
#share{min-height:44px}

#ukt-gate-configurator .field>label{display:block;text-align:left;width:auto;float:none;padding:0}
/* E3d: 3D view tab (default) over the same stage; the Drawing keeps its layout underneath (visibility only) so sizing/labels keep working */
.g3d-tabs{position:absolute;left:12px;top:12px;z-index:4;display:flex;gap:2px;padding:2px;border-radius:999px;background:rgba(255,253,248,.95);border:1px solid var(--line)}
.g3d-tab{font:inherit;font-size:13px;font-weight:600;padding:5px 12px;border:0;border-radius:999px;background:transparent;color:var(--ink);cursor:pointer}
.g3d-tab[aria-selected=true]{background:var(--accent);color:#fff}.g3d-tab:disabled{display:none}
.g3d{position:absolute;inset:0;z-index:2;background:#f1f3ec}.g3d[hidden]{display:none}
.viz.t3d #vizDraw{visibility:hidden}
.g3d-stage{position:absolute;inset:0;touch-action:none}.g3d-canvas{display:block;width:100%!important;height:100%!important;cursor:grab}.g3d-canvas:active{cursor:grabbing}
.g3d-hint,.g3d-status{position:absolute;left:50%;transform:translateX(-50%);top:54px;margin:0;font-size:12.5px;color:#5b5446;background:rgba(255,253,248,.88);padding:3px 10px;border-radius:999px;pointer-events:none;white-space:nowrap}
.g3d-hint[hidden],.g3d-status[hidden]{display:none}
.g3d-reset{position:absolute;right:12px;top:54px;z-index:3;font:inherit;font-size:13px;font-weight:600;padding:6px 12px;border-radius:999px;border:1px solid var(--line);background:rgba(255,253,248,.95);color:var(--ink);cursor:pointer}
.viz.g3d-stale .g3d-stage{opacity:.38;filter:grayscale(.5)}
@media (max-width:860px){.g3d-tabs{top:auto;bottom:8px;left:6px}.g3d-tab{padding:4px 9px;font-size:12px}.g3d-reset{top:auto;bottom:8px;right:6px;padding:4px 9px;font-size:12px;z-index:4}.g3d-hint,.g3d-status{top:44px;font-size:11.5px}}
/* J3dc (28 Oct 2026): 320-360 phones: the 44 px tap-target chips sit on one row ABOVE the drawing: chips flush to the stage top (0..44 px), stage top padding 40 -> 44 (drawing loses 4 px only) */
@media (max-width:360px){ .ukt-gate .views{top:0} .ukt-gate .viz{padding-top:44px} }
/* J3dc: large desktops (1440x900): taller stage so the drawing median is >= 0.98x the 18 Oct (eadc0086) size; labels scale up with it */
@media (min-width:1400px) and (min-height:860px){ .viz{height:min(68vh,640px)} }
/* J3dc: give the 4 px back on 320-340 portrait phones only (320x568 singles keep >= 0.5x the 18 Oct drawing); 360 phones keep the 36-38% / 38-50% stage rules */
@media (max-width:340px) and (min-height:501px){ .ukt-gate .viz{height:calc(clamp(220px,38vh,400px) + 4px)} .ukt-gate .viz.single-stage{height:calc(var(--single-h,clamp(220px,38vh,400px)) + 4px)} }

/* J3dd (James 29 Oct 15:51): page width = live pergola configurator layout standard (uktpergolacart 1.0.16 pergola-theme.css, same as uktbollardcart 1.4.1).
   >=861px: full-bleed section, theme #wrapper>.container widened to 1792px on this page only, content column max 1760px with 1.5rem gutters;
   >=1280px: options column minmax(320px,440px), viewer takes the rest; <=860px: one column. --ukt-gc-sbw = scrollbar width (gate-app.js). */
@media (min-width:861px){
 body#module-uktgatecart-configurator.layout-full-width{overflow-x:clip}
 body#module-uktgatecart-configurator #wrapper>.container{width:100%;max-width:1792px}
 body#module-uktgatecart-configurator.layout-full-width #ukt-gate-configurator{position:relative;box-sizing:border-box;max-width:none;width:calc(100vw - var(--ukt-gc-sbw,0px));margin-left:calc(50% - 50vw + var(--ukt-gc-sbw,0px) / 2);margin-right:calc(50% - 50vw + var(--ukt-gc-sbw,0px) / 2)}
}
@media (min-width:1280px){ .ukt-gate .grid{grid-template-columns:minmax(320px,440px) minmax(0,1fr)} }
body#module-uktgatecart-configurator #content-wrapper>section>.page-content,body#module-uktgatecart-configurator #ukt-gate-configurator.page-content{padding:0;margin-bottom:0;border:0;box-shadow:none}

/* J3de (James 30 Oct): keep Add to basket clear of the shop's Tidio chat bubble (bottom right, about 60 px + 20-24 px margin on desktop,
   about 56 px + 16-20 px on phones). Module-side only: the cart bar reserves a right-hand gutter; Tidio itself is never touched. */
.bar-in{padding-right:max(1.5rem,108px)}
@media (max-width:860px){.bar-in{padding-right:88px}}
/* ---- 1.0.3.3 mortice and tenon joints + detail bubble (bubble ported from the door configurator 1.3.10 .ukt-bubble) ---- */
.gate-svg .joints{display:none;pointer-events:none}
.gate-svg .tenon{fill-opacity:0;stroke:none}
.gate-svg .mortice{fill:none;stroke:none}
.gate-svg .housing{fill:none;stroke:#4a2f14;stroke-width:4;stroke-opacity:.85}
.gate-svg .exploded-only{display:none}
.vx-exploded .gate-svg .exploded-only{display:inline}
.vx-exploded .gate-svg .plain-only{display:none}
.vx-exploded .gate-svg .joints{display:inline}
.vx-exploded .gate-svg .tenon{fill-opacity:1;stroke:#4a2f14;stroke-width:4;stroke-dasharray:none;stroke-opacity:.9}
.vx-exploded .gate-svg .mortice{fill:#2b1a0b;fill-opacity:.55;stroke:#2b1a0b;stroke-width:3}
.vx-open .gate-svg .jhots{display:none}
.gate-svg .jhot{cursor:pointer;outline:none}
.gate-svg .jhc{fill:#2f4a2c;fill-opacity:.88;stroke:#fff;stroke-width:8}
.gate-svg .jht{fill:#fff;font-weight:700;pointer-events:none}
.gate-svg .jhot:hover .jhc,.gate-svg .jhot:focus-visible .jhc,.gate-svg .jhot.on .jhc{fill:#c26a1a}
.g3d-jhots{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.g3d-jhot{position:absolute;width:26px;height:26px;margin:-13px 0 0 -13px;border-radius:50%;border:2px solid #fff;background:rgba(47,74,44,.9);color:#fff;font:700 17px/1 system-ui,sans-serif;padding:0;cursor:pointer;pointer-events:auto;box-shadow:0 1px 4px rgba(0,0,0,.35)}
.g3d-jhot:hover,.g3d-jhot:focus-visible,.g3d-jhot.on{background:#c26a1a}
.g3d-jhot[hidden]{display:none}
#viz .ukt-bubble{position:absolute;right:.6rem;top:3.2rem;z-index:30;width:min(340px,calc(100% - 1.2rem));max-height:calc(100% - 4rem);overflow:auto;box-sizing:border-box;background:#fffdf8;border:1px solid #d8d2c4;border-radius:12px;box-shadow:0 10px 28px rgba(26,31,22,.22);padding:.55rem .7rem .6rem;text-align:left}
#viz .ukt-bubble[hidden]{display:none}
#viz .ukt-bubble-h{display:flex;align-items:flex-start;justify-content:space-between;gap:.5rem;font-size:.92rem;line-height:1.3}
#viz .ukt-bubble-x{flex:0 0 auto;width:36px;height:36px;border-radius:50%;border:1px solid #c9cfc4;background:#fff;font-size:1.35rem;line-height:1;cursor:pointer;color:#1f2a1f}
#viz .ukt-bubble-x:hover,#viz .ukt-bubble-x:focus-visible{background:#eef4ec;border-color:#2e5b34}
#viz .ukt-bubble-fig{display:block;width:100%;height:auto;margin:.35rem 0 .2rem;background:#f6f3ec;border-radius:8px}
#viz .ukt-bubble-d{font-weight:700;font-size:.82rem;margin:.15rem 0}
#viz .ukt-bubble-n{font-size:.76rem;color:#5a645a;margin:.15rem 0 .35rem}
@media (max-width:600px){
  #viz .ukt-bubble{position:fixed;left:.5rem;right:.5rem;top:auto;width:auto;bottom:calc(var(--bar-h,76px) + .5rem);max-height:calc(100vh - var(--bar-h,76px) - 1.5rem);z-index:60}
}

/* 1.0.3.3 fitting photos (high-confidence Birkdale matches) */
.hwrow .hwimg{width:56px;height:56px;flex:0 0 56px;object-fit:contain;background:#fff;border:1px solid #ddd;border-radius:4px}
/* 1.0.4.0 gate posts: "Our suggestion" block, long-post note, buried part in the Drawing */
.postsug{margin:8px 0;padding:10px 12px;border:1px solid #d8d2c4;border-radius:8px;background:#faf8f3;line-height:1.45}
.postsug.on{border-color:#3d7a3a;background:#f1f7ef}.postsug .pcheck{display:block;margin-top:4px;color:#7a4b00;font-weight:600}
.postsug .btn3{margin-left:6px;min-height:36px;padding:4px 10px;border:1px solid #3d7a3a;border-radius:6px;background:#fff;color:#2c5a2a;cursor:pointer}
.pwarn{color:#7a4b00}
.gate-svg .post.below{stroke:none}.gate-svg .ol.below{stroke:#5a4a32;stroke-width:6}.gate-svg .dim.bury line{stroke:#5a4a32}

/* 1.0.4.1: buried-ground band mock-up (bollard ground colour #c8ccd1 at 0.42) and nested post-top field */
.gate-svg .gband{pointer-events:none}
.field .field{margin-top:8px}

/* 1.0.4.9: chamfer facet marks on planed-and-chamfered posts */
.gate-svg .post-chamfer{fill:none;stroke:#3b250f;stroke-opacity:.45;stroke-width:3}

/* 1.0.5.0: two-line hardware cards, thumbnail enlarge, optional picture browser (Flow UX, James 7 Nov) */
.hwrow{display:grid;gap:8px;margin:8px 0;padding:10px;background:#fff;border:1px solid #ddd;border-radius:8px;align-items:stretch}
.hwrow select{flex:unset;min-width:0;width:100%}
.hwl1{display:grid;grid-template-columns:64px 1fr;gap:10px;align-items:center}
.hwl1.noimg{grid-template-columns:1fr}
.hwchoice{display:grid;gap:4px;min-width:0}
.hwchoice .hwname{display:block;min-width:0;font-weight:600;font-size:13px}
.hwchoice select{width:100%;min-height:44px}
.hwsee{justify-self:start;background:none;border:0;padding:0 2px;color:var(--accent);font:600 13px system-ui,sans-serif;cursor:pointer;text-align:left;min-height:44px}
.hwl2{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.hwl2 select{flex:1 1 160px;width:auto;min-height:44px}
.hwprice{margin-left:auto;color:#555;font-size:13px;white-space:nowrap}
.hwzoom{position:relative;width:64px;height:64px;padding:0;border:1px solid #ccc;border-radius:6px;background:#fff;cursor:zoom-in}
.hwzoom .hwimg{width:100%;height:100%;flex:none;object-fit:contain;display:block;border-radius:6px}
.hwmag{position:absolute;right:-6px;bottom:-6px;width:24px;height:24px;border-radius:50%;background:#2d4a2b;color:#fff;display:grid;place-items:center;font-size:12px;line-height:1;pointer-events:none}
.hwzoom:focus-visible,.hwdlg-x:focus-visible,.hwsee:focus-visible,.hwfit:focus-visible,.hwtab:focus-visible,.hwuse:focus-visible{outline:3px solid #2d4a2b;outline-offset:2px}
.hwscrim{position:fixed;inset:0;background:rgba(20,24,18,.55);display:flex;align-items:center;justify-content:center;padding:12px;z-index:80}
.hwscrim[hidden]{display:none}
.hwdlg{background:#fffdf8;border-radius:12px;width:min(560px,calc(100vw - 24px));max-height:calc(100vh - 24px);overflow:auto;padding:12px 16px 16px;box-sizing:border-box;box-shadow:0 12px 32px rgba(26,31,22,.28)}
.hwdlg.browse{width:min(720px,calc(100vw - 24px))}
.hwdlg-h{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}
.hwdlg-h h2{font-size:1.1rem;margin:10px 0;line-height:1.3}
.hwdlg-x{width:44px;height:44px;flex:0 0 44px;border-radius:50%;border:1px solid #c9cfc4;background:#fff;font-size:1.4rem;line-height:1;cursor:pointer}
.hwdlg-x:hover,.hwdlg-x:focus-visible{background:#eef4ec;border-color:#2e5b34}
.hwfig{display:flex;justify-content:center;margin:0}
.hwfig img{width:100%;max-width:400px;height:auto;aspect-ratio:1;object-fit:contain;background:#fff}
.hwsizes{margin:8px 0 0;color:#444;font-size:14px}
.hwbrowse-n{margin:0 0 10px;color:#444;font-size:14px}
.hwcards{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px}
.hwcard{border:1px solid #ddd;border-radius:8px;padding:8px;background:#fff;display:grid;gap:6px;align-content:start}
.hwcard.on{border-color:var(--accent);background:#eef3ea}
.hwcard img,.hwcard-ph{width:100%;aspect-ratio:1;object-fit:contain;background:#fff;border-radius:4px}
.hwcard-ph{background:#f3f1ea}
.hwcard h3{margin:0;font-size:14px;line-height:1.3}
.hwuse{min-height:44px;border:1px solid var(--accent);background:#fff;color:var(--accent);border-radius:8px;cursor:pointer;font:600 13px system-ui,sans-serif}
@media (max-width:600px){
  .hwdlg,.hwdlg.browse{width:calc(100vw - 16px);max-height:calc(100vh - 16px)}
}

/* 1.0.5.1: Fitting help next to See options; dialog tabs; header hanging-guide link (hidden until a guide is approved) */
.hwacts{display:flex;flex-wrap:wrap;gap:0 16px;align-items:center}
.hwfit{justify-self:start;background:none;border:0;padding:0 2px;color:var(--accent);font:600 13px system-ui,sans-serif;cursor:pointer;text-align:left;min-height:44px}
.hwtabs{display:flex;gap:0;border-bottom:1px solid #ddd;margin:0 0 12px}
.hwtabs [role=tab],.hwtab{min-height:44px;padding:8px 14px;border:0;border-bottom:2px solid transparent;background:none;cursor:pointer;font:600 14px system-ui,sans-serif;color:#444}
.hwtabs [role=tab][aria-selected=true],.hwtab[aria-selected=true]{border-bottom-color:var(--accent);color:var(--accent)}
.ghscrim{position:fixed;inset:0;background:rgba(20,24,18,.6);display:flex;align-items:center;justify-content:center;padding:12px;z-index:2147483000}
.ghscrim[hidden]{display:none}
.ghdlg{background:#fffdf8;border-radius:12px;width:min(860px,calc(100vw - 24px));height:calc(100vh - 24px);height:calc(100dvh - 24px);display:flex;flex-direction:column;box-sizing:border-box;box-shadow:0 12px 32px rgba(26,31,22,.28);overflow:hidden}
.ghdlg-h{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px 10px 16px;border-bottom:1px solid #e4dfd2;flex:0 0 auto}
.ghdlg-h h2{margin:0;font:600 16px/1.3 system-ui,sans-serif;color:#1f2a1c;overflow-wrap:anywhere}
.ghdlg-b{flex:1 1 auto;overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:12px;background:#ece8de;display:flex;flex-direction:column;align-items:center;gap:12px}
.ghdlg-b:focus-visible{outline:3px solid #2d4a2b;outline-offset:-3px}
.ghpage{display:block;max-width:100%;height:auto;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.18)}
.ghload,.ghfail{margin:24px 8px;font:14px/1.45 system-ui,sans-serif;color:#333;text-align:center}
.ghfail a{color:var(--accent)}
html.ghlock,html.ghlock body{overflow:hidden}
@media (max-width:600px){.ghscrim{padding:0}.ghdlg{width:100vw;height:100vh;height:100dvh;border-radius:0}.ghdlg-b{padding:8px}}
.hwfitcopy{margin:0 0 10px;font-size:14px;line-height:1.45;color:#333}
.hwfitlink{margin:0;font-size:14px}
.hwfitlink a{color:var(--accent)}
a.ghang{margin-left:0;flex:0 1 auto;text-transform:none;letter-spacing:0;font:600 13px system-ui,sans-serif;color:var(--accent);text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
@media (max-width:600px){
  a.ghang{flex:1 1 100%;justify-content:flex-start}
}
/* 1.0.5.1 staging-only ?ghelp=preview (needs UKTGATE_GHELP_PREVIEW_ON=1 on a staging host): placeholder badges */
.ghbadge{display:inline-block;margin-left:6px;padding:1px 6px;border-radius:3px;background:#b3261e;color:#fff;font:700 11px system-ui,sans-serif;letter-spacing:.02em;text-transform:none;vertical-align:middle}
.ghprev[aria-disabled=true]{cursor:not-allowed}
.ghprev-badge{position:sticky;top:0;z-index:20;margin:0 0 10px;padding:8px 12px;background:#b3261e;color:#fff;font:700 14px system-ui,sans-serif;border-radius:4px;text-align:center}
/* 1.0.5.1 cad-r7-grain (field / curved-heel only): member outlines drawn on top of the grain, dark and readable on a phone (GRAIN-CONTRACT draw order: fill then outline per member) */
.gate-svg.grain-r7 .ol{stroke:#111;stroke-opacity:1;stroke-width:4}
.gate-svg.grain-r7 .pale{stroke:#111;stroke-opacity:.9;stroke-width:3}

/* 1.0.5.4-r2: Product details Fitting help tab hosts the same scrollable pdf.js viewer as the row pop-up */
.hwdlg.fitpdf{width:min(860px,calc(100vw - 24px));height:calc(100vh - 24px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);display:flex;flex-direction:column;overflow:hidden;padding:12px 16px 0;box-sizing:border-box}
.hwdlg.fitpdf .hwdlg-h,.hwdlg.fitpdf .hwtabs{flex:0 0 auto}
.hwdlg.fitpdf #hwDlgBody{flex:1 1 auto;display:flex;flex-direction:column;min-height:0;overflow:hidden}
.hwdlg.fitpdf #hwPanelFit{flex:1 1 auto;display:flex;flex-direction:column;min-height:0;overflow:hidden}
.hwfitview{flex:1 1 auto;overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:12px;background:#ece8de;display:flex;flex-direction:column;align-items:center;gap:12px;min-height:240px}
.hwfitview:focus-visible{outline:3px solid #2d4a2b;outline-offset:-3px}
@media (max-width:600px){.hwdlg.fitpdf{width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}.hwfitview{padding:8px}}
/* r3 Reset All + pedestrian gate top tiles */
.resetall{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;margin:0 0 10px}.resetnote{font-size:13px;color:var(--muted)}.resetnote:empty{display:none}
.pedtops{display:contents}
