/**
 * Lowe Calculator v3.3.0 — SVG Icons, Industry USPs, UI Polish, Audit Fixes
 * Brand: Navy #0f172a, Red #c9302c, White
 * Font: Outfit
 */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --lw-red: #c9302c;
    --lw-red-h: #e03e3a;
    --lw-red-d: #a82824;
    --lw-red-bg: rgba(201,48,44,0.06);
    --lw-red-border: rgba(201,48,44,0.25);
    --lw-navy: #0f172a;
    --lw-navy-2: #1e293b;
    --lw-navy-3: #253347;
    --lw-navy-4: #334155;
    --lw-navy-5: #475569;
    --lw-slate: #64748b;
    --lw-silver: #94a3b8;
    --lw-light: #cbd5e1;
    --lw-cream: #f1f5f9;
    --lw-white: #ffffff;
    --lw-green: #10b981;
    --lw-green-bg: rgba(16,185,129,0.08);
    --lw-amber: #f59e0b;
    --lw-amber-bg: rgba(245,158,11,0.06);
    --lw-blue: #3b82f6;
    --lw-blue-bg: rgba(59,130,246,0.06);
    --lw-r: 8px;
    --lw-r2: 12px;
    --lw-r3: 16px;
    --lw-shadow: 0 4px 24px rgba(0,0,0,0.25);
    --lw-shadow-sm: 0 2px 8px rgba(0,0,0,0.15);
    --lw-ease: cubic-bezier(0.16,1,0.3,1);
}

/* ── WRAPPER ── */
.lw { max-width: 1200px; margin: 0 auto; padding: 40px 32px; background: var(--lw-navy); border-radius: var(--lw-r3); font-family: 'Outfit', sans-serif; color: var(--lw-light); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.lw *, .lw *::before, .lw *::after { box-sizing: border-box; }
.lw img { max-width: 100%; height: auto; }

/* ── INLINE SVG ICON BASE ── */
.lw-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lw-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lw-icon-sm { width: 16px; height: 16px; }
.lw-icon-md { width: 20px; height: 20px; }
.lw-icon-lg { width: 24px; height: 24px; }
.lw-icon-xl { width: 32px; height: 32px; }

/* ── PERSISTENT PRODUCT BAR ── */
.lw-product-bar { display: none; align-items: center; gap: 14px; padding: 10px 16px; margin-bottom: 24px; background: var(--lw-navy-2); border: 1px solid var(--lw-navy-4); border-radius: var(--lw-r2); position: sticky; top: 0; z-index: 50; transition: all 0.3s var(--lw-ease); }
.lw-product-bar.visible { display: flex; }
.lw-product-bar img { width: 48px; height: 48px; object-fit: contain; background: var(--lw-cream); border-radius: 6px; padding: 3px; }
.lw-pbar-info { flex: 1; }
.lw-pbar-name { font-weight: 600; color: var(--lw-white); font-size: 14px; }
.lw-pbar-dims { font-size: 12px; color: var(--lw-silver); }
.lw-pbar-sector { font-size: 11px; color: var(--lw-blue); margin-top: 1px; }
.lw-pbar-change { color: var(--lw-blue); font-size: 13px; cursor: pointer; font-weight: 500; transition: color 0.2s; }
.lw-pbar-change:hover { color: var(--lw-white); }

/* ── CUSTOM CTA ── */
.lw-custom-cta { display: flex; align-items: center; gap: 20px; padding: 18px 24px; margin-bottom: 20px; background: linear-gradient(135deg, rgba(201,48,44,0.10), rgba(201,48,44,0.03)); border: 1px dashed var(--lw-red-border); border-radius: var(--lw-r2); cursor: pointer; transition: all 0.25s var(--lw-ease); }
.lw-custom-cta:hover { border-color: var(--lw-red); background: linear-gradient(135deg, rgba(201,48,44,0.16), rgba(201,48,44,0.06)); transform: translateY(-1px); }
.lw-custom-cta .lw-icon { color: var(--lw-red-h); }
.lw-custom-text { flex: 1; }
.lw-custom-text h4 { margin: 0 0 2px; font-size: 15px; font-weight: 700; color: var(--lw-white); }
.lw-custom-text p { margin: 0; font-size: 13px; color: var(--lw-silver); }
.lw-custom-arrow { color: var(--lw-red); font-weight: 700; font-size: 20px; transition: transform 0.2s; }
.lw-custom-cta:hover .lw-custom-arrow { transform: translateX(3px); }

/* ── PROGRESS ── */
.lw-progress { display: flex; justify-content: center; gap: 0; margin-bottom: 28px; position: relative; }
.lw-progress::before { content:''; position: absolute; top: 18px; left: 15%; right: 15%; height: 2px; background: var(--lw-navy-4); z-index: 0; }
.lw-prog-step { display: flex; flex-direction: column; align-items: center; z-index: 1; flex: 0 0 25%; cursor: default; }
.lw-prog-num { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; margin-bottom: 6px; transition: all 0.3s var(--lw-ease); background: var(--lw-navy-2); border: 2px solid var(--lw-navy-4); color: var(--lw-slate); }
.lw-prog-label { font-size: 11px; color: var(--lw-slate); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; transition: color 0.3s; }
.lw-prog-step.active .lw-prog-num { background: var(--lw-red); border-color: var(--lw-red); color: #fff; box-shadow: 0 0 0 4px rgba(201,48,44,0.2); }
.lw-prog-step.active .lw-prog-label { color: var(--lw-white); }
.lw-prog-step.done .lw-prog-num { background: var(--lw-green); border-color: var(--lw-green); color: #fff; }
.lw-prog-step.done .lw-prog-label { color: var(--lw-green); }

/* ── PANELS ── */
.lw-panel { display: none; }
.lw-panel.on { display: block; animation: lwFade 0.3s var(--lw-ease); }
@keyframes lwFade { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform: translateY(0); } }
.lw-header { text-align: center; margin-bottom: 24px; }
.lw-header h2 { font-size: 26px; font-weight: 700; margin: 0 0 6px; color: var(--lw-white); }
.lw-header p { margin: 0; color: var(--lw-silver); font-size: 15px; }
.lw-body { max-width: 1100px; margin: 0 auto; }

/* ── INDUSTRY SELECTOR ── */
.lw-industry { margin-bottom: 24px; }
.lw-industry-label { font-size: 13px; font-weight: 600; color: var(--lw-silver); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; justify-content: center; }
.lw-industry-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; }
.lw-ind {
    display: flex; align-items: center; gap: 8px; padding: 10px 12px;
    border: 1px solid var(--lw-navy-4); border-radius: var(--lw-r); cursor: pointer;
    transition: all 0.2s var(--lw-ease); background: transparent; font-family: inherit;
    color: var(--lw-silver); font-size: 12px; font-weight: 500; text-align: left;
}
.lw-ind:hover { border-color: var(--lw-navy-5); background: rgba(255,255,255,0.02); color: var(--lw-light); }
.lw-ind.on { border-color: var(--lw-red); background: var(--lw-red-bg); color: var(--lw-white); }
.lw-ind .lw-icon { color: var(--lw-slate); transition: color 0.2s; }
.lw-ind.on .lw-icon { color: var(--lw-red-h); }

/* ── PILLS ── */
.lw-pills { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 16px; }
.lw-pill { padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s var(--lw-ease); border: none; font-family: inherit; background: var(--lw-navy-3); color: var(--lw-silver); }
.lw-pill:hover { background: var(--lw-navy-4); color: var(--lw-white); transform: translateY(-1px); }
.lw-pill.on { background: var(--lw-red); color: #fff; }
.lw-pill-label { font-size: 12px; color: var(--lw-slate); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.lw-pills-pain { margin-bottom: 16px; flex-direction: column; align-items: center; }
.lw-pills-pain .lw-pill-label { width: 100%; text-align: center; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; justify-content: center; }
.lw-pills-pain-btns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.lw-pill-pain { padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.2s var(--lw-ease); border: 1px solid var(--lw-navy-4); font-family: inherit; background: transparent; color: var(--lw-slate); display: inline-flex; align-items: center; gap: 5px; }
.lw-pill-pain:hover { border-color: var(--lw-red); color: var(--lw-red-h); transform: translateY(-1px); }
.lw-pill-pain.on { border-color: var(--lw-red); background: var(--lw-red-bg); color: var(--lw-red-h); }
.lw-pill-pain .lw-icon { width: 14px; height: 14px; }

/* ── PRODUCT GRID (4-col) ── */
.lw-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.lw-card { display: flex; flex-direction: column; background: var(--lw-navy-2); border: 1px solid var(--lw-navy-4); border-radius: var(--lw-r); cursor: pointer; transition: all 0.25s var(--lw-ease); overflow: hidden; position: relative; }
.lw-card:hover { border-color: var(--lw-red); transform: translateY(-3px); box-shadow: var(--lw-shadow); }
.lw-card:hover .lw-card-cta { opacity: 1; transform: translateX(-50%) translateY(0); }
.lw-card:active { transform: translateY(-1px) scale(0.98); }
.lw-card.picked { border-color: var(--lw-red); box-shadow: 0 0 0 2px var(--lw-red); }
.lw-card-img { width: 100%; height: 180px; background: var(--lw-cream); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.lw-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 100% !important; transition: transform 0.4s var(--lw-ease); }
.lw-card:hover .lw-card-img img { transform: scale(1.05); }
.lw-card-cta { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%) translateY(4px); padding: 6px 16px; background: var(--lw-red); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.3px; opacity: 0; transition: all 0.25s var(--lw-ease); white-space: nowrap; text-transform: uppercase; display: flex; align-items: center; gap: 4px; }
.lw-card-body { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.lw-card-body h4 { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--lw-white); line-height: 1.25; }
.lw-card-body p { margin: 0; font-size: 11px; color: var(--lw-slate); line-height: 1.35; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lw-card-tag { display: inline-block; font-size: 9px; padding: 2px 7px; margin-top: 6px; background: var(--lw-red-bg); border-radius: 999px; color: var(--lw-red-h); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; align-self: flex-start; }
.lw-no-img { color: var(--lw-slate); opacity: 0.4; }

/* ── DIMENSIONS ── */
.lw-dim-info { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--lw-blue-bg); border: 1px solid rgba(59,130,246,0.15); border-radius: var(--lw-r); font-size: 12px; color: var(--lw-blue); margin-bottom: 20px; }
.lw-dim-info .lw-icon { flex-shrink: 0; }
.lw-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 24px; }
.lw-quick-pill { padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.2s var(--lw-ease); border: 1px solid var(--lw-navy-4); background: transparent; color: var(--lw-silver); font-family: inherit; }
.lw-quick-pill:hover { border-color: var(--lw-red); color: var(--lw-red-h); background: var(--lw-red-bg); transform: translateY(-1px); }
.lw-quick-pill.popular { border-color: rgba(16,185,129,0.3); color: var(--lw-green); }
.lw-quick-pill.popular::before { content: ''; display: inline-block; width: 6px; height: 6px; background: var(--lw-green); border-radius: 50%; margin-right: 4px; }
.lw-dim-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 20px; }
.lw-dim-grp label { display: block; font-size: 13px; font-weight: 600; color: var(--lw-light); margin-bottom: 6px; }
.lw-dim-grp label .req { color: var(--lw-red); }
.lw-dim-grp input { width: 100%; padding: 14px; border: 1px solid var(--lw-navy-4); border-radius: var(--lw-r); background: #1e293b !important; color: #ffffff !important; font-size: 18px; font-family: inherit; font-weight: 600; transition: all 0.2s var(--lw-ease); -webkit-text-fill-color: #ffffff !important; -moz-appearance: textfield; }
.lw-dim-grp input:focus { outline: none; border-color: var(--lw-red); box-shadow: 0 0 0 3px rgba(201,48,44,0.12); }
.lw-dim-grp input.ok { border-color: var(--lw-green); }
.lw-dim-grp input.warn { border-color: var(--lw-amber); }
.lw-dim-hint { font-size: 11px; color: var(--lw-slate); margin-top: 4px; display: block; }

/* ── OPTIONS ── */
.lw-opt-section { margin-bottom: 28px; }
.lw-opt-section h3 { font-size: 13px; font-weight: 700; color: var(--lw-white); margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.8px; display: flex; align-items: center; gap: 8px; }
.lw-opt-section h3 .lw-icon { color: var(--lw-slate); }
.lw-opt-section h3::after { content: ''; flex: 1; height: 1px; background: var(--lw-navy-4); }

/* Colours */
.lw-colours { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.lw-colour { display: flex; align-items: center; gap: 10px; padding: 12px; border: 2px solid var(--lw-navy-4); border-radius: var(--lw-r); cursor: pointer; transition: all 0.2s var(--lw-ease); }
.lw-colour:hover { border-color: var(--lw-navy-5); }
.lw-colour.on { border-color: var(--lw-red); background: var(--lw-red-bg); }
.lw-colour input { display: none; }
.lw-swatch { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--lw-navy-4); flex-shrink: 0; }
.lw-swatch-ral { background: conic-gradient(red,yellow,green,cyan,blue,magenta,red); }
.lw-swatch-galv { background: linear-gradient(135deg,#b8b8b8,#d4d4d4,#a0a0a0); }
.lw-colour-txt { font-size: 13px; font-weight: 600; color: var(--lw-white); line-height: 1.2; }
.lw-colour-txt small { font-weight: 400; color: var(--lw-slate); font-size: 11px; display: block; }

/* Accessories grid */
.lw-acc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.lw-acc { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--lw-navy-4); border-radius: var(--lw-r); cursor: pointer; transition: all 0.2s var(--lw-ease); }
.lw-acc:hover { border-color: var(--lw-navy-5); background: rgba(255,255,255,0.015); }
.lw-acc input { display: none; }
.lw-acc input:checked ~ .lw-acc-check { background: var(--lw-red); border-color: var(--lw-red); }
.lw-acc input:checked ~ .lw-acc-check .lw-icon { display: inline-flex; }
.lw-acc-icon { flex-shrink: 0; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--lw-navy-3); border-radius: 6px; color: var(--lw-silver); }
.lw-acc-check { width: 18px; height: 18px; border: 2px solid var(--lw-navy-5); border-radius: 4px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.lw-acc-check .lw-icon { display: none; color: #fff; width: 12px; height: 12px; }
.lw-acc-info { flex: 1; min-width: 0; }
.lw-acc-name { font-size: 13px; font-weight: 600; color: var(--lw-white); display: block; }
.lw-acc-desc { font-size: 10px; color: var(--lw-slate); line-height: 1.3; display: block; }
.lw-acc-price { font-size: 12px; color: var(--lw-red-h); font-weight: 700; white-space: nowrap; }

/* Castors */
.lw-castors { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.lw-castor { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px; border: 2px solid var(--lw-navy-4); border-radius: var(--lw-r); cursor: pointer; text-align: center; transition: all 0.2s var(--lw-ease); }
.lw-castor:hover { border-color: var(--lw-navy-5); }
.lw-castor.on { border-color: var(--lw-red); background: var(--lw-red-bg); }
.lw-castor input { display: none; }
.lw-castor-icon { color: var(--lw-silver); }
.lw-castor.on .lw-castor-icon { color: var(--lw-red-h); }
.lw-castor-name { font-size: 12px; font-weight: 600; color: var(--lw-white); line-height: 1.2; }
.lw-castor-price { font-size: 11px; color: var(--lw-slate); }

/* Quantity */
.lw-qty-section { display: flex; align-items: center; gap: 20px; padding: 20px; background: var(--lw-navy-2); border: 1px solid var(--lw-navy-4); border-radius: var(--lw-r2); flex-wrap: wrap; }
.lw-qty-label { font-size: 16px; font-weight: 700; color: var(--lw-white); }
.lw-qty-ctrl { display: flex; align-items: stretch; border: 2px solid var(--lw-navy-4); border-radius: var(--lw-r); overflow: hidden; }
.lw-qty-btn { width: 48px; background: var(--lw-navy-3); border: none; color: var(--lw-white); font-size: 20px; font-weight: 700; cursor: pointer; transition: all 0.15s; font-family: inherit; }
.lw-qty-btn:hover { background: var(--lw-navy-4); }
.lw-qty-btn:active { transform: scale(0.95); }
.lw-qty-ctrl input { width: 64px; text-align: center; border: none; border-left: 1px solid var(--lw-navy-4); border-right: 1px solid var(--lw-navy-4); background: var(--lw-navy) !important; color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; font-size: 20px; font-weight: 700; font-family: inherit; -moz-appearance: textfield; }
.lw-qty-ctrl input::-webkit-inner-spin-button, .lw-qty-ctrl input::-webkit-outer-spin-button { -webkit-appearance: none; }
.lw-qty-tiers { display: flex; flex-wrap: wrap; gap: 6px; }
.lw-qty-tier { font-size: 11px; padding: 4px 10px; border-radius: 999px; background: var(--lw-green-bg); color: var(--lw-green); font-weight: 600; }

/* ── BUTTONS ── */
.lw-btns { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; gap: 12px; }
.lw-btn { padding: 14px 28px; border: none; border-radius: var(--lw-r); font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.2s var(--lw-ease); font-family: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.lw-btn:active { transform: scale(0.97); }
.lw-btn-red { background: var(--lw-red); color: #fff; box-shadow: 0 2px 10px rgba(201,48,44,0.25); }
.lw-btn-red:hover { background: var(--lw-red-h); box-shadow: 0 4px 16px rgba(201,48,44,0.35); transform: translateY(-1px); }
.lw-btn-red:disabled { background: var(--lw-navy-4); color: var(--lw-slate); cursor: not-allowed; box-shadow: none; transform: none; }
.lw-btn-ghost { background: transparent; color: var(--lw-silver); border: 1px solid var(--lw-navy-4); }
.lw-btn-ghost:hover { border-color: var(--lw-silver); color: var(--lw-white); background: rgba(255,255,255,0.03); }
.lw-btn-lg { padding: 16px 36px; font-size: 15px; }
.lw-btn-full { width: 100%; justify-content: center; }

/* ── PRICE RESULT ── */
.lw-result { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; align-items: start; }
.lw-result-left, .lw-result-right { display: flex; flex-direction: column; gap: 16px; }
.lw-price-box { position: relative; border: 2px solid var(--lw-red); border-radius: var(--lw-r); padding: 28px 24px 20px; text-align: center; background: linear-gradient(135deg, rgba(201,48,44,0.06) 0%, transparent 60%); }
.lw-price-box-inner { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.lw-price-unit, .lw-price-total-section { flex: 1; min-width: 200px; }
.lw-price-total-section { border-left: 1px solid var(--lw-navy-4); padding-left: 40px; }
.lw-summary { background: var(--lw-navy-2); border: 1px solid var(--lw-navy-4); border-radius: var(--lw-r2); padding: 24px; }
.lw-summary h3 { font-size: 12px; color: var(--lw-silver); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin: 0 0 16px; display: flex; align-items: center; gap: 6px; }
.lw-sum-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--lw-navy-4); }
.lw-sum-row:last-child { border-bottom: none; }
.lw-sum-label { color: var(--lw-silver); font-size: 14px; font-weight: 500; }
.lw-sum-val { color: var(--lw-white); font-size: 14px; font-weight: 600; text-align: right; }
.lw-sum-val.green { color: var(--lw-green); }
.lw-sum-opts { list-style: none; margin: 0; padding: 0; text-align: right; }
.lw-sum-opts li { font-size: 12px; color: var(--lw-silver); margin-bottom: 2px; }
.lw-sum-product { display: flex; align-items: center; gap: 12px; }
.lw-sum-product img { width: 50px; height: 50px; object-fit: contain; background: var(--lw-cream); border-radius: 6px; padding: 3px; }

/* Price box */
.lw-price-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--lw-red); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; padding: 4px 18px; border-radius: 999px; text-transform: uppercase; }
.lw-price-label { font-size: 12px; color: var(--lw-silver); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.lw-price-big { font-size: 42px; font-weight: 800; color: var(--lw-white); line-height: 1.1; }
.lw-price-big small { font-size: 16px; color: var(--lw-slate); font-weight: 500; }
.lw-price-vat { font-size: 14px; color: var(--lw-silver); margin-top: 4px; }
.lw-price-total { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--lw-navy-4); }
.lw-price-note { margin-top: 12px; font-size: 11px; color: var(--lw-amber); font-style: italic; display: flex; align-items: center; gap: 4px; justify-content: center; }

/* Actions */
.lw-actions { display: flex; flex-direction: column; gap: 10px; }
.lw-btn-checkout { background: var(--lw-green); color: #fff; box-shadow: 0 2px 10px rgba(16,185,129,0.25); }
.lw-btn-checkout:hover { background: #0d9669; box-shadow: 0 4px 16px rgba(16,185,129,0.35); transform: translateY(-1px); }
.lw-btn-engineer { background: transparent; color: var(--lw-white); border: 2px solid var(--lw-navy-4); padding: 14px 28px; font-size: 13px; }
.lw-btn-engineer:hover { border-color: var(--lw-silver); background: rgba(255,255,255,0.03); }

/* USPs */
.lw-usps { background: var(--lw-navy-2); border: 1px solid var(--lw-navy-4); border-radius: var(--lw-r2); padding: 20px; }
.lw-usps h3 { font-size: 12px; color: var(--lw-silver); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin: 0 0 14px; display: flex; align-items: center; gap: 6px; }
.lw-usp-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; }
.lw-usp-item .lw-icon { color: var(--lw-green); flex-shrink: 0; margin-top: 1px; }
.lw-usp-item span { font-size: 13px; color: var(--lw-light); line-height: 1.4; }

/* Upsells */
.lw-upsells { background: var(--lw-navy-2); border: 1px solid var(--lw-navy-4); border-radius: var(--lw-r2); padding: 20px; margin-top: 20px; }
.lw-upsells h3 { font-size: 12px; color: var(--lw-silver); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin: 0 0 12px; display: flex; align-items: center; gap: 6px; }
.lw-upsell { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--lw-navy-4); border-radius: var(--lw-r); margin-bottom: 8px; cursor: pointer; transition: all 0.2s var(--lw-ease); }
.lw-upsell:last-child { margin-bottom: 0; }
.lw-upsell:hover { border-color: var(--lw-red-border); background: var(--lw-red-bg); transform: translateX(2px); }
.lw-upsell .lw-icon { color: var(--lw-slate); flex-shrink: 0; }
.lw-upsell-info { flex: 1; }
.lw-upsell-name { font-size: 13px; font-weight: 600; color: var(--lw-white); }
.lw-upsell-desc { font-size: 11px; color: var(--lw-slate); }
.lw-upsell-price { font-size: 12px; color: var(--lw-red-h); font-weight: 700; white-space: nowrap; }

/* Quote notice */
.lw-quote-notice { display: flex; gap: 12px; padding: 16px; background: var(--lw-amber-bg); border: 1px solid rgba(245,158,11,0.25); border-radius: var(--lw-r); text-align: left; }
.lw-quote-notice .lw-icon { color: var(--lw-amber); flex-shrink: 0; margin-top: 2px; }
.lw-quote-notice p { margin: 0; font-size: 13px; color: var(--lw-silver); line-height: 1.5; }
.lw-quote-notice strong { color: var(--lw-amber); }

/* ── LOADING ── */
.lw-loading { text-align: center; padding: 60px 20px; }
.lw-spinner { width: 40px; height: 40px; border: 3px solid var(--lw-navy-4); border-top-color: var(--lw-red); border-radius: 50%; animation: lwSpin 0.7s linear infinite; margin: 0 auto 16px; }
@keyframes lwSpin { to { transform: rotate(360deg); } }
.lw-loading p { color: var(--lw-silver); font-size: 14px; }
.lw-error { text-align: center; padding: 40px; color: var(--lw-red-h); font-size: 15px; }

/* ── MODAL ── */
.lw-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.8); z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; animation: lwFadeIn 0.2s; }
@keyframes lwFadeIn { from { opacity: 0; } to { opacity: 1; } }
.lw-modal { background: var(--lw-navy-2); border: 1px solid var(--lw-navy-4); border-radius: var(--lw-r3); padding: 32px; max-width: 640px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; animation: lwSlideUp 0.3s var(--lw-ease); }
@keyframes lwSlideUp { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform: translateY(0); } }
.lw-modal h3 { margin: 0 0 4px; font-size: 22px; color: var(--lw-white); font-weight: 700; display: flex; align-items: center; gap: 10px; }
.lw-modal-sub { color: var(--lw-silver); font-size: 14px; margin: 0 0 24px; }
.lw-modal-x { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--lw-slate); cursor: pointer; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all 0.2s; }
.lw-modal-x:hover { background: var(--lw-navy-3); color: var(--lw-white); }
.lw-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.lw-modal-field { display: flex; flex-direction: column; margin-bottom: 12px; }
.lw-modal-field label { font-size: 13px; font-weight: 600; color: var(--lw-light); margin-bottom: 6px; }
.lw-modal-field input, .lw-modal-field textarea { padding: 10px 12px; border: 1px solid var(--lw-navy-4); border-radius: var(--lw-r); background: var(--lw-navy) !important; color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; font-size: 14px; font-family: inherit; transition: all 0.2s; }
.lw-modal-field input:focus, .lw-modal-field textarea:focus { outline: none; border-color: var(--lw-red); box-shadow: 0 0 0 3px rgba(201,48,44,0.1); }
.lw-modal-config { padding: 14px; background: var(--lw-navy); border-radius: var(--lw-r); font-size: 13px; color: var(--lw-silver); line-height: 1.6; margin-bottom: 20px; }
.lw-modal-config strong { color: var(--lw-white); }

/* ── TOAST ── */
.lw-toast { position: fixed; bottom: 24px; right: 24px; background: var(--lw-navy-2); border: 1px solid var(--lw-green); border-radius: var(--lw-r); padding: 16px 20px; display: flex; align-items: center; gap: 12px; z-index: 99999; box-shadow: var(--lw-shadow); max-width: 420px; animation: lwSlideUp 0.3s var(--lw-ease); }
.lw-toast .lw-icon { color: var(--lw-green); flex-shrink: 0; }
.lw-toast-msg { flex: 1; font-size: 14px; color: var(--lw-white); }
.lw-toast-link { color: var(--lw-red); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.lw-toast-link:hover { text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .lw-grid { grid-template-columns: repeat(3, 1fr); }
    .lw-result { grid-template-columns: 1fr; }
    .lw-price-box-inner { flex-direction: column; gap: 16px; }
    .lw-price-total-section { border-left: none; padding-left: 0; border-top: 1px solid var(--lw-navy-4); padding-top: 16px; }
    .lw-acc-grid { grid-template-columns: repeat(2, 1fr); }
    .lw-industry-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .lw { padding: 24px 16px; }
    .lw-grid { grid-template-columns: repeat(2, 1fr); }
    .lw-card-img { height: 120px; }
    .lw-dim-row { grid-template-columns: 1fr; }
    .lw-colours { grid-template-columns: repeat(2, 1fr); }
    .lw-acc-grid { grid-template-columns: 1fr; }
    .lw-castors { grid-template-columns: 1fr; }
    .lw-btns { flex-direction: column; }
    .lw-btn { width: 100%; justify-content: center; }
    .lw-price-big { font-size: 32px; }
    .lw-modal-grid { grid-template-columns: 1fr; }
    .lw-progress::before { left: 5%; right: 5%; }
    .lw-qty-section { flex-direction: column; align-items: flex-start; }
    .lw-product-bar { flex-wrap: wrap; }
    .lw-custom-cta { flex-direction: column; text-align: center; }
    .lw-industry-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .lw-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .lw-card-img { height: 100px; }
    .lw-card-body h4 { font-size: 11px; }
    .lw-card-body p { display: none; }
    .lw-prog-label { font-size: 9px; }
    .lw-prog-num { width: 30px; height: 30px; font-size: 12px; }
    .lw-pills { gap: 4px; }
    .lw-pill { padding: 5px 10px; font-size: 11px; }
    .lw-colours { grid-template-columns: 1fr 1fr; }
    .lw-industry-grid { grid-template-columns: 1fr; }
}

/* FIX #20: Quick size pill active state */
.lw .lw-quick-pill.active {
    background: var(--lw-navy);
    color: #fff;
    border-color: var(--lw-navy);
}

/* FIX #15: Focus visible rings for accessibility */
.lw .lw-card:focus-visible,
.lw .lw-pill:focus-visible,
.lw .lw-pill-pain:focus-visible,
.lw .lw-ind:focus-visible,
.lw .lw-quick-pill:focus-visible,
.lw .lw-upsell:focus-visible,
.lw .lw-btn:focus-visible {
    outline: 2px solid var(--lw-red);
    outline-offset: 2px;
}

/* Modal error text — FIX #26: dark theme */
.lw-modal-err {
    padding: 8px 12px;
    background: rgba(201, 48, 44, 0.08);
    border-radius: 6px;
    border: 1px solid rgba(201, 48, 44, 0.2);
}

/* FIX #27: checkout button disabled state */
.lw-btn-checkout:disabled {
    background: var(--lw-navy-4);
    color: var(--lw-slate);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}


/* === v3.2.0 UX and OpenClaw === */

/* UX #2: clickable progress */
.lw-prog-step.done { cursor: pointer; }
.lw-prog-step.done:hover .lw-prog-num { box-shadow: 0 0 0 4px rgba(16,185,129,0.25); transform: scale(1.08); }
.lw-prog-step.done:hover .lw-prog-label { color: var(--lw-white); }

/* UX #3: dim validation */
.lw-dim-error { display: flex; align-items: center; gap: 8px; padding: 10px 14px; margin-top: 12px; background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.25); border-radius: var(--lw-r); font-size: 13px; color: var(--lw-amber); }
.lw-dim-error .lw-icon { flex-shrink: 0; }
.lw-dim-error.lw-dim-error-red { background: rgba(201,48,44,0.08); border-color: rgba(201,48,44,0.25); color: var(--lw-red-h); }
.lw-dim-grp input.overmax { border-color: var(--lw-red) !important; box-shadow: 0 0 0 3px rgba(201,48,44,0.12); }
/* Force white text on ALL .lw inputs (theme override protection) */
.lw input, .lw select, .lw textarea { color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; }
.lw input::placeholder, .lw textarea::placeholder { color: #64748b !important; -webkit-text-fill-color: #64748b !important; opacity: 1 !important; }
/* Extra specificity for stubborn themes */
div.lw .lw-dim-grp input[type="number"],
div.lw input.lw-dim,
.lw .lw-body input,
.lw .lw-body select,
.lw .lw-body textarea,
.lw .lw-modal input,
.lw .lw-modal select,
.lw .lw-modal textarea { color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; }
div.lw .lw-dim-grp input[type="number"]::placeholder,
div.lw input.lw-dim::placeholder { color: #64748b !important; -webkit-text-fill-color: #64748b !important; opacity: 1 !important; }
@keyframes lwShake { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-6px)} 40%{transform:translateX(6px)} 60%{transform:translateX(-4px)} 80%{transform:translateX(4px)} }
.lw-shake { animation: lwShake 0.4s ease; }

/* UX #4: product count */
.lw-grid-count { text-align: center; padding: 10px 0; margin-top: 8px; font-size: 12px; color: var(--lw-slate); display: flex; align-items: center; justify-content: center; gap: 6px; }

/* UX #5: quick qty pills */
.lw-qty-quick-row { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.lw-qty-quick { padding: 5px 16px; border-radius: 999px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s var(--lw-ease); border: 1px solid var(--lw-navy-4); background: transparent; color: var(--lw-silver); font-family: inherit; }
.lw-qty-quick:hover { border-color: var(--lw-green); color: var(--lw-green); }
.lw-qty-quick.active { border-color: var(--lw-green); background: var(--lw-green-bg); color: var(--lw-green); }

/* UX #7: live price preview */
.lw-preview-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 20px; border-radius: var(--lw-r2); font-size: 14px; transition: all 0.3s var(--lw-ease); }
.lw-preview-banner.lw-preview-ok { background: var(--lw-green-bg); border: 1px solid rgba(16,185,129,0.25); }
.lw-preview-banner.lw-preview-ok .lw-icon { color: var(--lw-green); }
.lw-preview-banner.lw-preview-warn { background: var(--lw-amber-bg); border: 1px solid rgba(245,158,11,0.25); }
.lw-preview-banner.lw-preview-warn .lw-icon { color: var(--lw-amber); }
.lw-preview-price { font-size: 22px; font-weight: 800; color: var(--lw-white); }
.lw-preview-price small { font-size: 12px; font-weight: 400; color: var(--lw-silver); margin-left: 4px; }
.lw-preview-total { font-size: 13px; color: var(--lw-silver); }
.lw-preview-disc { font-size: 11px; padding: 3px 10px; border-radius: 999px; background: var(--lw-green-bg); color: var(--lw-green); font-weight: 600; }

/* UX #8: lead time */
.lw-lead-time { display: flex; align-items: center; gap: 8px; padding: 10px 14px; margin-bottom: 8px; background: var(--lw-blue-bg); border: 1px solid rgba(59,130,246,0.15); border-radius: var(--lw-r); font-size: 13px; color: var(--lw-blue); }
.lw-lead-time .lw-icon { flex-shrink: 0; }
.lw-lead-time strong { color: var(--lw-white); }

/* OpenClaw: Complexity badge */
.lw-complexity { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 12px; background: var(--lw-navy-2); border: 1px solid var(--lw-navy-4); border-radius: var(--lw-r); font-size: 12px; color: var(--lw-silver); }
.lw-cplx-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 20px; border-radius: 4px; font-size: 10px; font-weight: 800; color: #fff; letter-spacing: 0.5px; padding: 0 6px; }

/* OpenClaw: Compliance messaging */
.lw-compliance { padding: 14px; margin-bottom: 8px; background: var(--lw-navy-2); border: 1px solid var(--lw-navy-4); border-radius: var(--lw-r2); }
.lw-compliance-body { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--lw-silver); line-height: 1.5; margin-bottom: 10px; }
.lw-compliance-body .lw-icon { color: var(--lw-green); flex-shrink: 0; margin-top: 1px; }
.lw-compliance-certs { display: flex; flex-wrap: wrap; gap: 5px; }
.lw-cert-tag { padding: 2px 8px; border-radius: 4px; font-size: 9px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; background: rgba(59,130,246,0.08); color: var(--lw-blue); border: 1px solid rgba(59,130,246,0.15); }

/* Modal select */
.lw-modal-field select { padding: 10px 12px; border: 1px solid var(--lw-navy-4); border-radius: var(--lw-r); background: var(--lw-navy) !important; color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; font-size: 14px; font-family: inherit; transition: all 0.2s; width: 100%; }
.lw-modal-field select:focus { outline: none; border-color: var(--lw-red); box-shadow: 0 0 0 3px rgba(201,48,44,0.1); }


/* === v3.3.0 Additions === */

/* v3.3 #9: product search */
.lw .lw-search-wrap { position: relative; margin-bottom: 16px; max-width: 420px; margin-left: auto; margin-right: auto; display: flex; align-items: center; }
.lw .lw-search-wrap .lw-icon { position: absolute; right: 16px; left: auto !important; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.4); pointer-events: none; z-index: 2; width: 18px; height: 18px; }
.lw .lw-search-wrap .lw-icon svg { width: 18px; height: 18px; }
.lw input[type="text"].lw-search-input,
.lw .lw-search-input { width: 100% !important; padding: 13px 44px 13px 20px !important; border: 2px solid rgba(255,255,255,0.15) !important; border-radius: 999px !important; background: rgba(255,255,255,0.06) !important; color: #ffffff !important; font-size: 15px !important; font-family: inherit; transition: all 0.2s var(--lw-ease); -webkit-appearance: none; appearance: none; box-sizing: border-box; }
.lw input[type="text"].lw-search-input:focus,
.lw .lw-search-input:focus { outline: none !important; border-color: var(--lw-red) !important; box-shadow: 0 0 0 3px rgba(201,48,44,0.2) !important; background: rgba(255,255,255,0.1) !important; }
.lw .lw-search-input::placeholder { color: rgba(255,255,255,0.4) !important; }
.lw .lw-search-input::-webkit-input-placeholder { color: rgba(255,255,255,0.4) !important; }

/* v3.3 #5 + #6: print & email quote tools */
.lw-quote-tools { display: flex; gap: 8px; margin-top: 12px; }
.lw-quote-tool { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 12px; border: 1px solid var(--lw-navy-4); border-radius: var(--lw-r); background: transparent; color: var(--lw-silver); font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all 0.2s var(--lw-ease); }
.lw-quote-tool:hover { border-color: var(--lw-silver); color: var(--lw-white); background: rgba(255,255,255,0.03); }

/* v3.3 #7: retry error state */
.lw-error-retry { display: flex; flex-direction: column; align-items: center; }
.lw-error-retry .lw-icon { margin-bottom: 8px; }

/* v3.3 #3: modal checkbox field */
.lw-modal-chk-field { display: flex; align-items: center; justify-content: flex-start; }
.lw-modal-chk-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--lw-light); cursor: pointer; font-weight: 500; }
.lw-modal-chk-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--lw-red); cursor: pointer; }

/* v3.3 #6: small modal variant */
.lw-modal-sm { max-width: 420px; }

/* Dropzone */
.lw .lw-dropzone { border: 2px dashed var(--lw-navy-4); border-radius: var(--lw-r); padding: 20px; text-align: center; cursor: pointer; transition: all 0.2s var(--lw-ease); }
.lw .lw-dropzone:hover, .lw .lw-dropzone.lw-drag-over { border-color: var(--lw-red); background: rgba(201,48,44,0.05); }
.lw .lw-dropzone-label { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--lw-slate); font-size: 14px; }
.lw .lw-dropzone-info { display: block; color: var(--lw-slate); font-size: 11px; margin-top: 6px; opacity: 0.7; }
.lw .lw-file-name { font-size: 13px; color: #10b981; margin-top: 6px; display: flex; align-items: center; gap: 6px; }

/* ══ NUCLEAR: White text override for ALL form inputs ══
   Themes (Flatsome, Divi, Astra, etc.) often set input colors
   with very high specificity. This block uses maximum specificity
   with hardcoded hex values to guarantee white text on dark inputs. */
html body .lw input[type="number"],
html body .lw input[type="text"],
html body .lw input[type="email"],
html body .lw input[type="tel"],
html body .lw input[type="search"],
html body .lw select,
html body .lw textarea,
html body .lw .lw-dim-grp input,
html body .lw .lw-qty-ctrl input,
html body .lw .lw-modal-field input,
html body .lw .lw-modal-field select,
html body .lw .lw-modal-field textarea {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
html body .lw input::placeholder,
html body .lw textarea::placeholder {
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
    opacity: 1 !important;
}

/* v3.3 #5: Print styles */
@media print {
    body * { visibility: hidden !important; }
    .lw, .lw * { visibility: visible !important; }
    .lw { position: absolute; top: 0; left: 0; width: 100%; padding: 20px; background: #fff !important; color: #1a1a1a !important; border-radius: 0; }
    .lw-panel { display: none !important; }
    .lw-panel#lw-p4 { display: block !important; }
    .lw-product-bar, .lw-custom-cta, .lw-progress, .lw-actions, .lw-upsells, .lw-quote-tools, .lw-toast { display: none !important; }
    .lw-result { grid-template-columns: 1fr !important; }
    .lw-summary, .lw-price-box, .lw-usps, .lw-lead-time, .lw-compliance, .lw-complexity { background: #f5f5f5 !important; border-color: #ddd !important; }
    .lw-header h2 { color: #1a1a1a !important; }
    .lw-sum-label, .lw-sum-val, .lw-price-big, .lw-price-vat, .lw-price-label { color: #1a1a1a !important; }
    .lw-sum-val.green { color: #10b981 !important; }
    .lw-price-badge { background: #c9302c !important; }
    .lw-icon svg { stroke: #333 !important; }
    .lw-lead-time, .lw-compliance-body, .lw-usp-item span { color: #333 !important; }
    .lw-cert-tag { background: #e8f0fe !important; color: #1a73e8 !important; border-color: #c5d9f2 !important; }
    .lw::after { content: 'www.stillagesandcages.co.uk | Lowe Manufacturing'; display: block; text-align: center; margin-top: 24px; font-size: 11px; color: #999; }
}
