/* eStore, cart, checkout and contact pages (loads after style.css) */
.shead{ background:var(--teal); color:#fff; padding:36px 0 30px; }
.shead h1{ color:#fff; margin:0 0 6px; }
.shead p{ margin:0 0 18px; color:#c9d6d3; max-width:60ch; }
.shead .crumbs, .shead .crumbs a{ color:#9fd6c3; }
.search{ display:flex; gap:8px; max-width:560px; }
.search input{ flex:1; min-width:0; font:inherit; font-size:16px; padding:13px 16px; border-radius:10px; border:0; }
.trust{ display:flex; flex-wrap:wrap; gap:8px 22px; margin-top:16px; font-size:13.5px; color:#dbe7e4; }
.trust span:before{ content:"\2713\00a0"; color:#9fd6c3; font-weight:700; }

.chips{ display:flex; gap:8px; flex-wrap:wrap; padding:22px 0 6px; }
.chip{ font:inherit; font-size:14.5px; font-weight:600; padding:9px 16px; border-radius:22px; border:1.5px solid var(--teal); background:#fff; color:var(--teal); cursor:pointer; }
.chip[aria-pressed="true"]{ background:var(--teal); color:#fff; }
.chip:focus-visible, .btn:focus-visible, .qty button:focus-visible{ outline:3px solid #00AEEF; outline-offset:2px; }

.sec-title{ margin:30px 0 14px; font-size:22px; }
.pgrid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.pcard{ background:#fff; border:1px solid #d5d3cc; border-radius:14px; overflow:hidden; display:flex; flex-direction:column; text-align:left; padding:0; font:inherit; color:inherit; cursor:pointer; transition:border-color .15s, transform .15s, box-shadow .15s; }
.pcard:hover{ border-color:var(--teal); transform:translateY(-2px); box-shadow:0 6px 16px rgba(27,80,91,.12); }
.pcard .ph{ aspect-ratio:4/3; background:#EDECEC; display:grid; place-items:center; color:#8a8f90; font-size:13px; overflow:hidden; }
.pcard .ph img{ width:100%; height:100%; object-fit:cover; image-rendering:auto; }
.pcard .pb{ padding:14px 16px 16px; display:flex; flex-direction:column; gap:4px; flex:1; }
.pcard .brand{ font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--teal); }
.pcard h3{ margin:0; font-size:16.5px; color:var(--ink); }
.pcard .from{ margin-top:auto; padding-top:8px; font-size:15px; }
.pcard .from b{ font-size:18px; color:var(--ink); }
.pcard .cta{ font-size:13.5px; font-weight:700; color:var(--teal); }
.sheet-card{ cursor:default; }
.sheet-card:hover{ transform:none; }
.buyrow{ display:flex; gap:8px; align-items:center; margin-top:10px; flex-wrap:wrap; }

.qty{ display:inline-flex; align-items:center; border:1.5px solid #cfd3d2; border-radius:10px; overflow:hidden; background:#fff; }
.qty button{ font:inherit; font-size:18px; width:36px; height:38px; border:0; background:#f4f4f2; cursor:pointer; color:var(--ink); }
.qty button:hover{ background:#e8e8e5; }
.qty input{ width:64px; text-align:center; border:0; font:inherit; font-size:16px; height:38px; -moz-appearance:textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }

.frow{ display:grid; grid-template-columns:1fr auto auto auto; gap:12px; align-items:center; padding:12px 14px; border:1px solid #e0dfd8; border-radius:12px; background:#fff; margin-bottom:8px; }
.frow .nm{ font-size:15px; color:var(--ink); font-weight:600; }
.frow .nm small{ display:block; font-weight:400; color:#5f6a6c; font-size:12.5px; }
.frow .pr{ font-weight:700; color:var(--ink); white-space:nowrap; }
.frow .pr small{ font-weight:400; color:#5f6a6c; }
.subhead{ font-size:15px; margin:18px 0 8px; color:var(--teal); text-transform:uppercase; letter-spacing:.05em; }
.empty{ text-align:center; padding:60px 20px; color:#5f6a6c; }
.timber-box{ background:#fff; border:1px solid #d5d3cc; border-radius:14px; padding:22px; max-width:720px; }
.field{ display:flex; flex-direction:column; gap:5px; margin-bottom:14px; }
.field label{ font-size:14px; font-weight:700; color:var(--ink); }
.field input, .field select, .field textarea{ font:inherit; font-size:16px; padding:11px 13px; border:1.5px solid #cfd3d2; border-radius:9px; background:#fff; width:100%; min-width:0; }
.field textarea{ min-height:110px; resize:vertical; }
.field input:focus, .field select:focus, .field textarea:focus{ outline:3px solid #00AEEF55; border-color:var(--teal); }
.fgrid{ display:grid; grid-template-columns:1fr 1fr; gap:0 16px; }
.hint{ font-size:13px; color:#5f6a6c; margin:2px 0 0; }
.err{ color:#b1201f; font-size:14px; margin:8px 0 0; }
.ok{ color:#1e6b2e; font-size:14.5px; }
.stock{ font-size:13.5px; margin:4px 0 12px; color:#1e6b2e; font-weight:600; }
.stock.none{ color:#8a5a00; }

dialog.pm{ border:0; border-radius:16px; padding:0; width:min(760px, 94vw); max-height:92vh; overflow:auto; box-shadow:0 20px 60px rgba(0,0,0,.35); }
dialog.pm::backdrop{ background:rgba(12,20,22,.6); }
.pm .pm-grid{ display:grid; grid-template-columns:1fr 1fr; }
.pm .pm-img{ background:#EDECEC; min-height:280px; display:grid; place-items:center; }
.pm .pm-img img{ width:100%; height:100%; object-fit:cover; }
.pm .pm-body{ padding:24px; }
.pm .pm-body h2{ margin:0 0 4px; font-size:22px; }
.pm .x{ position:absolute; top:10px; right:10px; width:38px; height:38px; border-radius:50%; border:0; background:rgba(255,255,255,.9); font-size:22px; cursor:pointer; }
.price-big{ font-size:26px; font-weight:800; color:var(--ink); margin:8px 0 2px; }
.total-line{ font-size:15px; margin:10px 0 14px; color:#3d4749; }

.toast{ position:fixed; bottom:20px; left:50%; transform:translate(-50%,120px); background:var(--ink,#161d1f); color:#fff; padding:13px 18px; border-radius:12px; display:flex; gap:16px; align-items:center; z-index:200; transition:transform .25s; box-shadow:0 8px 24px rgba(0,0,0,.3); max-width:92vw; }
.toast.show{ transform:translate(-50%,0); }
.toast a{ color:#9fd6c3; font-weight:700; white-space:nowrap; }

/* cart + checkout */
.shop-cols{ display:grid; grid-template-columns:1fr 360px; gap:28px; padding:32px 0 56px; align-items:start; }
.line{ display:grid; grid-template-columns:72px 1fr auto; gap:14px; padding:16px 0; border-bottom:1px solid #e4e4e1; align-items:center; }
.line .lt{ width:72px; height:72px; border-radius:10px; background:#EDECEC; overflow:hidden; display:grid; place-items:center; font-size:11px; color:#8a8f90; text-align:center; }
.line .lt img{ width:100%; height:100%; object-fit:cover; }
.line h3{ margin:0 0 2px; font-size:16px; color:var(--ink); }
.line .dt{ font-size:13.5px; color:#5f6a6c; margin:0 0 8px; }
.line .rm{ background:none; border:0; color:#b1201f; font:inherit; font-size:13.5px; cursor:pointer; text-decoration:underline; margin-left:12px; }
.line .lp{ text-align:right; font-weight:700; color:var(--ink); white-space:nowrap; }
.line .lp small{ display:block; font-weight:400; color:#5f6a6c; font-size:12.5px; }
.summary{ background:#fff; border:1px solid #d5d3cc; border-radius:14px; padding:22px; position:sticky; top:90px; }
.summary h2{ margin:0 0 12px; font-size:19px; }
.srow{ display:flex; justify-content:space-between; gap:12px; padding:6px 0; font-size:15px; }
.srow.grand{ border-top:2px solid var(--ink); margin-top:8px; padding-top:12px; font-size:19px; font-weight:800; color:var(--ink); }
.summary .btn{ width:100%; justify-content:center; margin-top:14px; }
.sumlines{ font-size:13.5px; color:#3d4749; margin:0 0 10px; padding:0; list-style:none; max-height:220px; overflow:auto; }
.sumlines li{ display:flex; justify-content:space-between; gap:10px; padding:4px 0; border-bottom:1px dashed #e4e4e1; }
.opt{ display:flex; gap:12px; align-items:flex-start; border:1.5px solid #cfd3d2; border-radius:12px; padding:14px 16px; margin-bottom:10px; cursor:pointer; background:#fff; }
.opt input{ margin-top:4px; accent-color:var(--teal); }
.opt.on{ border-color:var(--teal); background:#f2f7f6; }
.opt b{ display:block; color:var(--ink); }
.opt span{ font-size:13.5px; color:#5f6a6c; }
.callout{ background:#fff8e1; border:1px solid #eadfae; border-radius:10px; padding:12px 14px; font-size:14px; color:#5b4a10; margin:10px 0; }
.callout.good{ background:#eaf6ee; border-color:#bfe0c8; color:#1e5a2d; }
.card-block{ background:#fff; border:1px solid #d5d3cc; border-radius:14px; padding:22px; margin-bottom:18px; }
.card-block h2{ margin:0 0 14px; font-size:19px; }
.honey{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.cinfo{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; padding:36px 0 8px; }
.cinfo .tile p a{ color:var(--teal); font-weight:700; }

@media (max-width:940px){
  .pgrid{ grid-template-columns:repeat(2,1fr); }
  .shop-cols{ grid-template-columns:1fr; }
  .summary{ position:static; }
  .cinfo{ grid-template-columns:1fr; }
}
@media (max-width:640px){
  .pgrid{ grid-template-columns:1fr 1fr; gap:10px; }
  .frow{ grid-template-columns:1fr auto; }
  .frow .qty{ grid-column:1; }
  .frow .pr{ grid-column:2; grid-row:1; }
  .frow .btn{ grid-column:1 / -1; justify-content:center; }
  .pm .pm-grid{ grid-template-columns:1fr; }
  .pm .pm-img{ min-height:200px; max-height:240px; }
  .line{ grid-template-columns:56px 1fr; }
  .line .lt{ width:56px; height:56px; }
  .line .lp{ grid-column:1 / -1; text-align:left; }
  .fgrid{ grid-template-columns:1fr; }
}

/* Page headers shared with the contact page */
.ghead{ background:var(--off); padding:36px 0 32px; }
.ghead h1{ margin:0 0 8px; }
.crumbs{ font-size:13px; color:#6b7577; }
.crumbs a{ color:var(--teal); font-weight:600; }
.cinfo{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; padding:32px 0 24px; }
.cinfo .tile p a{ color:var(--teal); font-weight:700; }
@media (max-width:940px){ .cinfo{ grid-template-columns:1fr; } }

/* Search feedback bar */
.resultsbar{ margin:16px 0 0; padding:13px 16px; border-radius:10px; background:#eaf3f1; border:1px solid #cfe2dd; color:#1d4a44; font-size:15px; scroll-margin-top:90px; }
.resultsbar.none{ background:#fff3cd; border-color:#eadfae; color:#5b4a10; }
.resultsbar a{ color:var(--teal); font-weight:700; }
.resultsbar .linkbtn{ background:none; border:0; padding:0 0 0 10px; font:inherit; font-weight:700; color:var(--teal); text-decoration:underline; cursor:pointer; }
.resultsbar.flash{ animation:rbflash .9s ease-out; }
@keyframes rbflash{ from{ box-shadow:0 0 0 4px #00AEEF66; } to{ box-shadow:0 0 0 0 #00AEEF00; } }
.search .btn:active{ transform:scale(.97); }

/* ---------- Oct 2026: supplier-first tiles, "i" info buttons, two-ways explainer, insulation ---------- */
.twoways{ margin:26px 0 4px; }
.twoways h2{ font-size:20px; margin:0 0 12px; }
.twoways-grid{ display:grid; grid-template-columns:1fr 1.4fr; gap:14px; }
.way{ background:#fff; border:1px solid #d5d3cc; border-radius:14px; padding:18px 20px; }
.way h3{ margin:0 0 6px; font-size:17px; color:var(--ink); }
.way p{ margin:0 0 8px; font-size:14.5px; }
.way-sys{ background:#fff8e1; border-color:#eadfae; }
.way-sys h3, .way-sys p{ color:#4a3d0c; }
.way-link{ font-weight:700; color:var(--teal); margin-bottom:0 !important; }
.way-link a{ color:var(--teal); border-bottom:1.5px solid var(--teal); }

.sec-title.sub{ font-size:19px; margin-top:34px; }
.step-lead{ margin:0 0 14px; font-size:16px; max-width:64ch; }
.sgrid{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.scard{ font:inherit; text-align:center; cursor:pointer; background:#fff; border:1.5px solid #d5d3cc; border-radius:14px; padding:26px 12px; display:flex; flex-direction:column; gap:6px; align-items:center; transition:border-color .15s, transform .15s, box-shadow .15s; color:inherit; }
.scard:hover{ border-color:var(--teal); transform:translateY(-2px); box-shadow:0 6px 16px rgba(27,80,91,.12); }
.scard:focus-visible{ outline:3px solid #00AEEF; outline-offset:2px; }
.scard .sname{ font-size:19px; font-weight:800; color:var(--teal); letter-spacing:.03em; text-transform:uppercase; }
.scard .smeta{ font-size:13.5px; color:#5f6a6c; }
.scard .swarn{ font-size:13px; font-weight:700; color:#8b1c1c; }
.supbar{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; background:#eaf3f1; border:1px solid #cfe2dd; border-radius:10px; padding:10px 16px; margin:0 0 16px; color:#1d4a44; }
.supbar em{ font-style:normal; font-weight:700; color:#8b1c1c; font-size:13.5px; }
.linkbtn{ background:none; border:0; padding:0; font:inherit; font-weight:700; color:var(--teal); text-decoration:underline; cursor:pointer; }
.hint.est{ margin:14px 0 0; font-size:14.5px; max-width:70ch; }
.inl{ color:var(--teal); font-weight:700; border-bottom:1.5px solid var(--teal); }
.famhead{ margin:12px 0 6px; font-size:14.5px; color:#3d4749; }

/* the "i" button: sits on cards (top-right) and inline next to row names */
.pwrap{ position:relative; display:flex; }
.pwrap > .pcard{ width:100%; }
.pwrap > .ibtn, .sheet-card > .ibtn{ position:absolute; top:8px; right:8px; background:rgba(255,255,255,.95); box-shadow:0 1px 4px rgba(0,0,0,.25); }
.sheet-card{ position:relative; }
.ibtn{ font:italic 700 14px/1 Georgia, "Times New Roman", serif; width:24px; height:24px; border-radius:50%; border:1.5px solid var(--teal); background:#fff; color:var(--teal); cursor:pointer; padding:0; display:inline-grid; place-items:center; vertical-align:middle; margin-left:4px; }
.ibtn:hover{ background:var(--teal); color:#fff; }
.ibtn:focus-visible{ outline:3px solid #00AEEF; outline-offset:2px; }
.subhead .ibtn, .famhead .ibtn{ text-transform:none; letter-spacing:0; }

.frow .pr.req{ color:#8a5a00; font-weight:700; white-space:normal; }
dialog.im{ border:0; border-radius:16px; padding:0; width:min(520px, 94vw); max-height:92vh; overflow:auto; box-shadow:0 20px 60px rgba(0,0,0,.35); }
dialog.im::backdrop{ background:rgba(12,20,22,.6); }
.im .x{ position:absolute; top:10px; right:10px; width:38px; height:38px; border-radius:50%; border:0; background:#eee; font-size:22px; cursor:pointer; }
.im-body{ padding:26px 26px 24px; }
.im-body h2{ margin:2px 0 10px; font-size:21px; padding-right:36px; }
.im-body p{ margin:0 0 8px; font-size:15px; }
.facts{ display:grid; grid-template-columns:auto 1fr; gap:6px 14px; margin:14px 0 0; font-size:14.5px; }
.facts dt{ font-weight:700; color:var(--ink); }
.facts dd{ margin:0; }

@media (max-width:940px){
  .sgrid{ grid-template-columns:repeat(2,1fr); }
  .twoways-grid{ grid-template-columns:1fr; }
}

/* ---------- Oct 2026: contact page (no form) ---------- */
.est-banner{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; background:var(--teal); color:#fff; border-radius:16px; padding:26px 28px; margin:30px 0 0; transition:transform .15s, box-shadow .15s; }
.est-banner:hover{ transform:translateY(-2px); box-shadow:0 8px 22px rgba(27,80,91,.3); }
.est-banner .eb-text b{ display:block; font-size:22px; line-height:1.25; }
.est-banner .eb-text span{ color:#c9d6d3; font-size:15.5px; }
.est-banner .eb-go{ background:#fff; color:var(--teal); font-weight:800; font-size:16px; padding:14px 24px; border-radius:10px; white-space:nowrap; }
.wa-link{ font-size:18px; font-weight:800; }
.carp-link{ display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap; background:#fff; border:1px solid #d5d3cc; border-radius:14px; padding:22px 26px; margin:8px 0 0; }
.carp-link h2{ margin:0 0 4px; font-size:20px; }
.carp-link p{ margin:0; max-width:56ch; }
.visit{ margin:26px 0 0; }
.visit h3{ margin:0 0 4px; font-size:17px; color:var(--ink); }
.visit p{ margin:0; }
.visit a{ color:var(--teal); font-weight:700; }
.visit-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:6px 32px; }
@media (max-width:760px){ .visit-grid{ grid-template-columns:1fr; } }
.wa-ico{ width:22px; height:22px; vertical-align:-5px; margin-right:7px; }
.wa-bubble{ position:fixed; right:20px; bottom:20px; width:60px; height:60px; border-radius:50%; background:#25D366; display:grid; place-items:center; box-shadow:0 6px 18px rgba(0,0,0,.3); z-index:150; transition:transform .15s; }
.wa-bubble:hover{ transform:scale(1.08); }
.wa-bubble:focus-visible{ outline:3px solid #00AEEF; outline-offset:3px; }
.scard .slogo{ height:44px; max-width:150px; width:auto; object-fit:contain; margin-bottom:4px; }
.supname{ display:inline-flex; align-items:center; gap:10px; }
.supname .slogo{ height:26px; max-width:90px; width:auto; object-fit:contain; background:#fff; border-radius:6px; padding:2px 6px; }

/* an element marked hidden must stay hidden, even when its class sets a display (e.g. the checkout form with an empty cart) */
[hidden]{ display:none !important; }

/* ---------- Roof tiles: supplier -> family -> colour (same steps as the estimator), then price + add to cart ---------- */
.tflow{ display:grid; grid-template-columns:minmax(0,1fr) 380px; gap:36px; align-items:start; margin-top:6px; }
.tsteps{ display:flex; flex-direction:column; gap:28px; min-width:0; }
.tstep{ scroll-margin-top:150px; }
.tstep h3{ margin:0 0 12px; font-size:18px; color:var(--ink); display:flex; align-items:center; gap:10px; }
.tn{ width:28px; height:28px; border-radius:50%; background:var(--teal); color:#fff; display:inline-grid; place-items:center; font-size:14px; font-weight:800; flex:none; }
.tstep .field{ max-width:420px; margin-bottom:0; }

/* supplier cards: just the logo, centred */
.scard{ min-height:96px; justify-content:center; align-items:center; padding:14px 10px; gap:8px; }
.scard .slogo{ height:auto; max-height:54px; max-width:86%; width:auto; margin:0; object-fit:contain; }
.scard.on{ border-color:var(--teal); box-shadow:0 0 0 2px var(--teal) inset; background:#fff; }
.scard .swarn{ font-size:12px; text-align:center; line-height:1.25; }

/* colour swatches (the photo is the selector) */
.sgroup{ margin-bottom:18px; }
.sgroup h4{ margin:0 0 6px; font-size:15px; color:var(--ink); }
.sgroup h4 span{ font-weight:400; color:#5f6a6c; margin-left:6px; }
.swatches{ display:flex; flex-wrap:wrap; gap:10px; }
.swatch{ display:flex; flex-direction:column; align-items:center; gap:5px; width:98px; padding:6px; border:2px solid transparent; border-radius:10px; background:#fff; cursor:pointer; font:inherit; color:inherit; }
.swatch img, .swatch .nophoto{ width:80px; height:80px; border-radius:6px; object-fit:cover; box-shadow:0 1px 4px rgba(0,0,0,.28); display:block; }
.swatch .nophoto{ display:grid; place-items:center; background:#EDECEC; color:#6b6459; box-shadow:none; }
.swatch span{ font-size:12px; line-height:1.2; text-align:center; }
.swatch b{ font-size:12.5px; color:var(--ink); }
.swatch:hover{ border-color:#c9c5b8; }
.swatch.on{ border-color:var(--teal); }
.swatch.on span{ font-weight:700; color:var(--teal); }
.swatch:focus-visible{ outline:3px solid #00AEEF; outline-offset:2px; }

/* the price panel beside the steps */
.tpanel{ position:sticky; top:150px; background:#fff; border:1px solid #d5d3cc; border-radius:16px; overflow:hidden; }
.tp-img{ height:210px; background:#EDECEC; display:grid; place-items:center; }
.tp-img img{ width:100%; height:100%; object-fit:cover; display:block; }
.tp-body{ padding:18px 20px 20px; }
.tp-body .slogo{ height:auto; max-height:30px; max-width:130px; display:block; margin:0 0 8px; object-fit:contain; }
.tp-body h3{ margin:0 0 2px; font-size:21px; }
.tp-sub{ margin:0 0 6px; color:#5f6a6c; font-size:14px; }
.tp-empty{ padding:44px 24px; text-align:center; color:#5f6a6c; }
.tp-empty .slogo{ height:auto; max-height:46px; max-width:150px; margin:0 auto 12px; display:block; object-fit:contain; }
.pickfam .slogo{ height:auto; max-height:30px; max-width:120px; margin:0 0 8px; object-fit:contain; align-self:flex-start; }
@media (max-width:940px){
  .tflow{ grid-template-columns:1fr; }
  .tpanel{ position:static; }
}
@media (max-width:520px){ .sgrid{ grid-template-columns:repeat(2,1fr); } }

/* ---------- Quote-style info panels (copied from the estimator) ---------- */
.info-btn{ font:italic 700 14px/1 Georgia,"Times New Roman",serif; width:24px; height:24px; border-radius:50%; border:1.5px solid var(--teal); background:#fff; color:var(--teal); cursor:pointer; padding:0; display:inline-grid; place-items:center; vertical-align:middle; margin-left:6px; }
.info-btn:hover, .info-btn[aria-expanded="true"]{ background:var(--teal); color:#fff; }
.info-btn:focus-visible{ outline:3px solid #00AEEF; outline-offset:2px; }
.ipanel{ border:1px solid #e4e4e1; border-radius:10px; background:#f6f6f3; padding:14px 16px; display:grid; grid-template-columns:140px minmax(0,1fr); gap:16px; margin:8px 0 18px; }
.ipanel[hidden]{ display:none; }
.ipanel.ipanel-wide{ grid-template-columns:1fr; margin:10px 0 12px; }
.ipanel .art{ background:#fff; border:1px solid #e4e4e1; border-radius:6px; padding:9px; }
.ipanel .art svg{ display:block; width:100%; height:auto; color:#5f6569; }
.ipanel h4{ font-size:15px; font-weight:700; margin:0 0 6px; color:var(--ink); }
.ipanel p{ margin:0 0 8px; font-size:13.5px; line-height:1.5; color:#4f5a5c; }
.ipanel p:last-child{ margin-bottom:0; }
.ipanel dt{ font-weight:700; font-size:13px; color:var(--ink); margin-top:6px; }
.ipanel dd{ margin:0 0 6px; color:#4f5a5c; font-size:13px; line-height:1.45; }
.icap{ font-size:10px; letter-spacing:.06em; text-transform:uppercase; color:#6b6459; font-weight:700; text-align:center; margin-top:7px; }
@media (max-width:620px){ .ipanel{ grid-template-columns:1fr; } }

/* ---------- Ridge, hip starter and verge tiles ---------- */
.rd-range{ max-width:420px; }
.racards{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; align-items:start; }
.racard{ background:#fff; border:1px solid #d5d3cc; border-radius:16px; overflow:hidden; display:flex; flex-direction:column; }
.ra-pic{ aspect-ratio:4/3; background:#f4f3ef; display:grid; place-items:center; overflow:hidden; }
.ra-pic img{ width:100%; height:100%; object-fit:cover; display:block; }
.ra-hold{ padding:18px; text-align:center; color:#6b7577; font-size:14px; }
.ra-body{ padding:16px 18px 18px; }
.ra-body h3{ margin:0 0 8px; font-size:19px; color:var(--ink); display:flex; align-items:center; }
.ra-body .field{ margin-bottom:12px; }
@media (max-width:940px){ .racards{ grid-template-columns:1fr; } }

/* Dark tiles (slate, charcoal, black): lifted so the shape and texture can be seen */
.swatch img{ outline:1px solid rgba(22,29,31,.18); outline-offset:-1px; }
.ra-pic{ background:#fff; }
.ra-pic img{ object-fit:contain; }
#tColourHost{ display:contents; }

/* the price panel's photo must stay inside its box, so the text below is never printed over it */
.tp-img{ position:relative; overflow:hidden; }
.tp-img img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.tp-body{ position:relative; background:#fff; }

/* ---------- Top Hat Channels tab ---------- */
.th-intro{ margin:0 0 4px; font-weight:700; color:var(--ink); }
.frow.throw{ grid-template-columns:84px 1fr auto auto auto; }
.thpic{ width:84px; height:84px; border:1px solid #e0dfd8; border-radius:10px; background:#fff; overflow:hidden; display:grid; place-items:center; }
.thpic img{ width:100%; height:100%; object-fit:contain; display:block; }
.thpic.cover img{ object-fit:cover; }
.hpic{ width:96px; height:96px; padding:6px; }
.hpic img{ object-fit:contain; }
.frow.throw:has(.hpic){ grid-template-columns:96px 1fr auto auto auto; }
@media (max-width:640px){ .frow.throw:has(.hpic){ grid-template-columns:96px 1fr; } }
.th-use{ margin:10px 0 4px; }
.th-use img{ display:block; width:100%; max-width:420px; border-radius:8px; border:1px solid #e0dfd8; }
.th-use figcaption{ margin-top:4px; font-size:13px; color:#5a6667; }
.thhold{ font-size:11px; line-height:1.25; color:#8a9496; text-align:center; padding:6px; }
@media (max-width:640px){
  .frow.throw{ grid-template-columns:84px 1fr; }
  .frow.throw .pr, .frow.throw .qty, .frow.throw .btn{ grid-column:1 / -1; }
  .frow.throw .qty{ justify-self:start; }
}

/* Custom length (top hat channels): length box under the name */
.clenbox{ display:flex; align-items:center; gap:8px; margin-top:8px; font-size:13px; font-weight:700; color:var(--ink); }
.clen{ width:96px; padding:8px 10px; border:1px solid #cfd6d4; border-radius:8px; font:inherit; font-weight:600; }
.clen.bad{ border-color:#b3402e; }
.btn[disabled]{ opacity:.45; cursor:not-allowed; }
.frow.throw.custom{ grid-template-columns:84px 1fr auto auto; }
.cfields{ display:flex; flex-wrap:wrap; gap:14px 22px; margin-top:10px; }
.cfields .clenbox{ flex-direction:column; align-items:flex-start; gap:4px; margin-top:0; }
.cfields .clenbox > span{ font-size:12px; font-weight:700; color:var(--ink); }
.frow.custom .pr{ text-align:right; }
.frow.custom .pr .ptot{ display:block; font-size:20px; font-weight:800; color:var(--ink); }
.frow.custom .pr small{ display:block; }
@media (max-width:640px){
  .frow.throw.custom{ grid-template-columns:84px 1fr; }
  .frow.throw.custom .pr, .frow.throw.custom .btn{ grid-column:1 / -1; }
  .frow.custom .pr{ text-align:left; }
}

/* Roof Brands truss-column mark, right side of the eStore hero (website notes, item 3) */
.shead .wrap{ position:relative; }
.shead-mark{ position:absolute; right:20px; top:50%; transform:translateY(-50%); height:min(210px,88%); width:auto; filter:brightness(0) invert(1); opacity:.9; pointer-events:none; }
@media (max-width:760px){ .shead-mark{ display:none; } }

/* Roof sheets: cards on the left, colour chart in the free space on the right (item 5) */
.sheet-layout{ display:flex; gap:28px; align-items:flex-start; flex-wrap:wrap; }
.sheet-layout .sheet-grid{ grid-template-columns:repeat(2,minmax(0,300px)); flex:0 1 auto; }
.colour-chart{ flex:1 1 360px; min-width:300px; background:#fff; border:1px solid #d5d3cc; border-radius:14px; padding:18px 18px 14px; }
.colour-chart h3{ margin:0 0 2px; font-size:18px; }
.colour-chart .cc-sub{ margin:0 0 10px; font-size:14px; color:#5a6667; }
.colour-chart .cc-scroll{ overflow-x:auto; }
/* Colour chart as a table: one swatch column, then each manufacturer's name (2026-10-22) */
.cc-table{ width:100%; border-collapse:collapse; font-size:13.5px; }
.cc-table th{ text-align:left; vertical-align:bottom; padding:6px 8px; border-bottom:1.5px solid #e4e4e1; font-size:13px; }
.cc-table th small{ display:block; font-weight:400; color:#5a6667; font-size:12px; }
.cc-table td{ padding:5px 8px; border-bottom:1px solid #eee; }
.cc-table td.nm{ color:#a3a39a; font-style:italic; }
.cc-table td.sw{ width:38px; padding-left:0; }
.cc-table td.sw span{ display:inline-block; width:28px; height:18px; border-radius:4px; border:1px solid #c9cfd0; vertical-align:middle; }
.colour-chart .cc-guide{ margin:8px 0 0; font-size:12.5px; color:#5a6667; }
.timber-box .grade-info{ margin:-4px 0 14px; padding:10px 12px; border-radius:8px; background:#eef4f4; font-size:13.5px; line-height:1.5; color:#2c3a3c; }
.timber-box .grade-info.caution{ background:#fdf3e1; color:#5b4210; }
.colour-chart .cc-img{ display:block; width:100%; height:auto; border-radius:8px; }
.cc-zoom{ position:relative; display:block; width:100%; padding:0; border:0; background:none; cursor:zoom-in; }
.cc-zoom .cc-hint{ position:absolute; right:8px; bottom:8px; background:rgba(255,255,255,.94); border-radius:99px; padding:3px 11px; font-size:12px; font-weight:700; color:var(--teal); box-shadow:0 1px 4px rgba(0,0,0,.2); }
.fire-guide{ display:flex; align-items:center; gap:12px; width:auto; max-width:540px; margin:6px 0 14px; padding:8px 14px 8px 8px; text-align:left; border:1px solid #d5d3cc; border-radius:12px; background:#fff; }
.fire-guide img{ flex:none; display:block; width:112px; height:auto; border-radius:6px; }
.fire-guide .fg-txt{ display:block; font-size:14px; line-height:1.35; color:#3d4749; }
.fire-guide .fg-txt b{ display:block; color:var(--ink); font-size:15px; }
.fire-guide .fg-txt small{ display:block; color:#5a6667; font-size:13px; }
/* Product pictures that enlarge on tap (zoomPic in estore.js). The button takes the picture's place in its box. */
.zpic img{ display:block; }
.zpic .cc-hint{ right:6px; bottom:6px; padding:2px 9px; font-size:11.5px; pointer-events:none; }
.zpic.zmini .cc-hint{ right:3px; bottom:3px; width:24px; height:24px; padding:0; display:grid; place-items:center; border-radius:50%; }
.zpic.zmini .cc-hint svg{ width:14px; height:14px; }
.zpic:focus-visible{ outline:3px solid var(--teal); outline-offset:2px; }
.thpic:has(.zpic){ grid-template:100% / 100%; }
.thpic .zpic{ height:100%; min-height:0; }
.ra-pic .zpic, .pcard .ph .zpic{ position:absolute; inset:0; height:100%; }
.ra-pic, .pcard .ph{ position:relative; }
.th-use .zpic{ max-width:420px; }
.im-pic{ margin:12px 0 4px; border:1px solid #e0ded8; border-radius:10px; overflow:hidden; background:#fff; }
.im-pic img{ display:block; width:100%; height:auto; }
dialog.cc-dlg{ width:min(96vw,1100px); max-height:94vh; padding:0; border:0; border-radius:12px; background:#fff; box-shadow:0 12px 40px rgba(0,0,0,.35); }
dialog.cc-dlg::backdrop{ background:rgba(0,0,0,.62); }
.cc-dlg .cc-view{ overflow:auto; max-height:calc(94vh - 40px); }
.cc-dlg .cc-view img{ display:block; width:100%; height:auto; cursor:zoom-in; }
.cc-dlg.zoomed .cc-view img{ width:var(--zw,1900px); max-width:none; cursor:zoom-out; }
.cc-dlg .cc-x{ position:absolute; top:8px; right:10px; z-index:2; width:34px; height:34px; border:0; border-radius:50%; background:rgba(0,0,0,.65); color:#fff; font-size:22px; line-height:1; cursor:pointer; padding:0; }
.cc-dlg .cc-tip{ margin:0; padding:7px 14px; font-size:13px; color:#555; }
.colour-chart .cc-sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.colour-chart table{ width:100%; border-collapse:collapse; font-size:13.5px; }
.colour-chart th{ text-align:left; padding:6px 8px; border-bottom:2px solid #d5d3cc; color:var(--teal); font-size:12.5px; }
.colour-chart td{ padding:5px 8px; border-bottom:1px solid #eceae4; }
.colour-chart td.nm{ color:#a3a39a; font-style:italic; }
.colour-chart .cc-note{ margin:12px 0 0; font-size:14px; }
.colour-chart .cc-note a{ color:var(--teal); font-weight:700; }
@media (max-width:760px){ .sheet-layout .sheet-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; } .colour-chart{ flex-basis:100%; } }

/* Section heading with a brand logo on the right (top hat channels, item 8) */
.sec-head{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.sec-head .sec-title{ margin:30px 0 14px; }
.sec-logo{ height:84px; width:auto; margin-top:12px; }

/* ---------- Forms: a missing or wrong field is outlined in red, with a short reason underneath ---------- */
.field.invalid > label, .field.invalid > div > label{ color:#b3261e; }
.field.invalid input:not([type="checkbox"]):not([type="file"]), .field.invalid select, .field.invalid textarea{
  border-color:#d32f2f; background:#fff5f5; box-shadow:0 0 0 3px rgba(211,47,47,.16);
}
.field.invalid .checks{ outline:2px solid #d32f2f; outline-offset:3px; border-radius:10px; background:#fff5f5; }
.field.invalid input[type="checkbox"]{ outline:2px solid #d32f2f; }
.field-msg{ margin:6px 0 0; font-size:13.5px; font-weight:700; color:#b3261e; }

/* ---------- Partner portal: training (provider tiles, course rows, info + sign-up dialogs) ---------- */
.tprovs{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:10px 0 0; }
.tprov{ position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; min-height:58px; padding:10px 26px; background:#fff; border:1.5px solid #d5d3cc; border-radius:12px; cursor:pointer; font:inherit; color:var(--ink); text-align:center; }
.tprov:hover{ border-color:#9db3b0; }
.tprov[aria-expanded="true"]{ border-color:var(--teal); box-shadow:0 0 0 2px var(--teal) inset; }
.tprov img{ height:36px; max-width:100%; width:auto; flex:none; object-fit:contain; display:block; }
.tprov .pw{ font-weight:800; font-size:20px; letter-spacing:.5px; color:var(--teal); line-height:1; }
.tprov .pn{ font-size:12.5px; font-weight:700; color:#3d4749; }
.pbar{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:10px 0 0; }
.pbar .pl{ font-size:13px; font-weight:700; color:#3d4749; margin-right:2px; }
.pbtn{ border:1.5px solid var(--teal); background:#fff; color:var(--teal); font:inherit; font-size:13.5px; font-weight:700; padding:5px 12px; border-radius:99px; cursor:pointer; }
.pbtn:hover{ background:var(--teal); color:#fff; }
.snum{ flex:none; width:24px; height:24px; border-radius:50%; background:var(--teal); color:#fff; font-size:13px; font-weight:700; display:grid; place-items:center; }
.ibtn{ display:inline-grid; place-items:center; width:22px; height:22px; border-radius:50%; border:1.5px solid var(--teal); background:#fff; color:var(--teal); font:italic 700 13px/1 Georgia,serif; cursor:pointer; padding:0; flex:none; }
.ibtn:hover{ background:var(--teal); color:#fff; }
.tprov .ibtn{ position:absolute; top:3px; right:3px; width:20px; height:20px; font-size:12px; }
.crows{ margin:10px 0 0; border:1px solid #e0ded8; border-radius:12px; overflow:hidden; background:#fff; }
.crow{ display:flex; align-items:center; gap:8px; padding:8px 10px; border-top:1px solid #ecebe6; }
.crow:first-child{ border-top:0; }
.crow .ct{ flex:1 1 auto; min-width:0; }
.crow .ct b{ display:block; font-size:15px; color:var(--ink); line-height:1.25; }
.crow .ct span{ display:block; font-size:12.5px; color:#6b7577; line-height:1.3; }
.crow .cfee{ font-size:12.5px; font-weight:700; color:#3d4749; white-space:nowrap; }
.crow .btn{ padding:6px 14px; font-size:14px; white-space:nowrap; }
.crow .tbadge{ font-size:12px; font-weight:700; padding:3px 9px; border-radius:99px; background:#e8f1f0; color:#1f6f66; white-space:nowrap; }
.crow .tbadge.in-progress{ background:#fff3d6; color:#8a5a00; }
.crow .tbadge.completed{ background:#dff3e3; color:#1d6b32; }
.crow .wd{ border:0; background:none; color:#6b7577; font-size:12px; text-decoration:underline; cursor:pointer; padding:0; }
@media (max-width:560px){ .tprovs{ grid-template-columns:repeat(2,1fr); } .crow{ flex-wrap:wrap; } .crow .ct{ flex:1 1 100%; } .crow .cfee{ order:1; flex:1 1 auto; } .crow .ibtn, .crow .btn, .crow .tbadge, .crow .wd{ order:2; } .tprov .pw{ font-size:19px; } }
dialog.tdlg{ width:min(600px,94vw); max-height:90vh; padding:0; border:0; border-radius:14px; box-shadow:0 12px 40px rgba(0,0,0,.28); color:var(--ink); }
dialog.tdlg::backdrop{ background:rgba(0,0,0,.45); }
.tdlg .dh{ display:flex; align-items:center; gap:10px; padding:12px 16px; border-bottom:1px solid #e4e4e1; position:sticky; top:0; background:#fff; z-index:1; }
.tdlg .dh h3{ margin:0; font-size:17px; flex:1; }
.tdlg .dh .x{ border:0; background:none; font-size:26px; line-height:1; cursor:pointer; color:#555; padding:0 4px; }
.tdlg .db{ padding:12px 16px 16px; }
.tdlg .il{ margin:0 0 9px; font-size:14px; line-height:1.45; color:#3d4749; }
.tdlg .il b{ color:var(--ink); }
.tdlg .tf{ display:grid; grid-template-columns:1fr 1fr; gap:8px 12px; }
.tdlg .tf .field{ margin:0; }
.tdlg .tf .field.full{ grid-column:1 / -1; }
.tdlg .tf label{ font-size:13px; margin-bottom:2px; }
.tdlg .tf input:not([type="checkbox"]), .tdlg .tf select{ padding:7px 9px; font-size:15px; }
.tdlg .tf .checks{ grid-template-columns:1fr 1fr; gap:4px 12px; }
.tdlg .tf .checks label{ font-size:14px; }
.tdlg .tf .one{ display:flex; gap:8px; align-items:flex-start; font-weight:400; font-size:14px; }
.tdlg .tf .one input{ width:auto; margin-top:3px; accent-color:var(--teal); }
.tdlg .sub{ margin:12px 0 0; display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
@media (max-width:560px){ .tdlg .tf{ grid-template-columns:1fr; } .tdlg .tf .checks{ grid-template-columns:1fr; } }
/* eCo Fasteners logo beside the Truss hangers & fasteners heading (item 7) */
.sec-logo-eco, .sec-logo-m20{ height:56px; margin-top:20px; border-radius:6px; }
.sec-logo-merensky{ height:44px; margin-top:22px; }

/* Product photo inside a card (roof sheets, item 5) */
.pcard .ph img{ width:100%; height:100%; object-fit:cover; display:block; }
