/* SBS Showroom Tour: SBS look (gold #c19031, cream #faf7f0, line #e3e1dc, ink #101828, muted #5d6675, theme font) */
html body .sbs-tour[data-sbs-tour]{--ink:#101828;--muted:#5d6675;--line:#e3e1dc;--gold:#c19031;--gold-d:#a37a22;--soft:#faf7f0;box-sizing:border-box;width:min(1180px,calc(100vw - 32px));max-width:none!important;margin:0 0 32px;margin-left:calc(50% - min(590px,50vw - 16px))!important;margin-right:0!important;color:var(--ink);font-family:inherit;line-height:1.55;text-align:left}
html body .sbs-tour *,html body .sbs-tour *::before,html body .sbs-tour *::after{box-sizing:border-box}
html body .sbs-tour-head{margin:0 0 18px}
html body .sbs-tour-eyebrow{display:flex;align-items:center;gap:9px;margin:0 0 8px;font-size:13px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--gold)}
html body .sbs-tour-ico{display:inline-flex;width:22px;height:22px;color:var(--gold);flex:none}
html body .sbs-tour-ico svg{width:100%;height:100%;display:block}
html body .sbs-tour h2{margin:0 0 8px;font-family:inherit;font-weight:600;letter-spacing:-.01em;color:var(--ink);font-size:clamp(26px,3.2vw,38px);line-height:1.15}
html body .sbs-tour-lead{margin:0;max-width:760px;color:var(--muted);font-size:17px}

/* stage: the tour alone, or tour + designer side by side */
html body .sbs-tour-stage{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:stretch}
html body .sbs-tour-frame,html body .sbs-tour-panel{min-width:0} /* the brand bar scrolls inside, it never widens the tour */
html body .sbs-tour-stage.is-split{grid-template-columns:minmax(0,5fr) minmax(0,6fr)}
/* SBS frame: cream mount with a thin gold line around the tour, like a picture frame */
html body .sbs-tour-frame{--mat:12px;display:flex;flex-direction:column;gap:var(--mat);height:clamp(440px,72vh,760px);padding:var(--mat);border-radius:14px;background:var(--soft);border:1px solid #d9bf86;box-shadow:inset 0 0 0 4px #fff}
html body .sbs-tour-view{position:relative;flex:1;min-height:0;border-radius:12px;overflow:hidden;background:#1b1f27}
html body .sbs-tour-view::after{content:"";position:absolute;inset:0;border-radius:12px;border:1px solid #d9bf86;pointer-events:none;z-index:4}
html body .sbs-tour-view>iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}

/* brand menu under the scan, inside the frame */
html body .sbs-tour-bar{display:flex;align-items:center;gap:8px;flex:none;min-height:46px;margin:0 -2px;padding:0 2px;overflow-x:auto;scrollbar-width:thin;animation:sbs-tour-in .25s ease-out}
html body .sbs-tour-bar[hidden]{display:none}
html body .sbs-tour-home{flex:none;display:grid;place-items:center;width:42px;height:42px;padding:0;border-radius:999px;border:1px solid #d9bf86;background:#fff;color:var(--gold);cursor:pointer;transition:background .15s}
html body .sbs-tour-home:hover{background:var(--soft)}
html body .sbs-tour-home svg{width:22px;height:22px;display:block}
html body .sbs-tour-bar button[data-brand]{flex:none;appearance:none;cursor:pointer;font:inherit;font-size:15px;line-height:1;padding:12px 16px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--ink);white-space:nowrap;transition:border-color .15s,background .15s,color .15s}
html body .sbs-tour-bar button[data-brand]:hover{border-color:var(--gold)}
html body .sbs-tour-bar button[data-brand].is-on{background:#b88a2a;border-color:#b88a2a;color:#fff}

/* welcome card: the visitor chooses where to start */
html body .sbs-tour-welcome{position:absolute;inset:0;z-index:3;display:grid;place-items:center;padding:18px;background:rgba(16,24,40,.42);overflow:auto;animation:sbs-tour-fade .25s ease-out}
html body .sbs-tour-welcome[hidden]{display:none}
@keyframes sbs-tour-fade{from{opacity:0}to{opacity:1}}
html body .sbs-tour-wcard{width:min(600px,100%);padding:30px 30px 24px;border-radius:12px;background:#fff;border-top:4px solid var(--gold);box-shadow:0 24px 60px rgba(16,24,40,.35);text-align:center;animation:sbs-tour-in .3s ease-out}
html body .sbs-tour-logo{display:inline-flex;align-items:center;gap:10px;font-size:13px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--gold)}
html body .sbs-tour-logo .sbs-tour-ico{width:34px;height:34px}
html body .sbs-tour-logoimg{display:block;max-width:240px;max-height:64px;margin:0 auto;object-fit:contain}
html body .sbs-tour-wcard h3{margin:16px 0 6px;font-family:inherit;font-size:clamp(22px,2.6vw,28px);font-weight:600;line-height:1.2;color:var(--ink)}
html body .sbs-tour-wcard>p{margin:0 auto 18px;max-width:440px;font-size:15px;color:var(--muted)}
html body .sbs-tour-wbrands{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;text-align:left}
html body .sbs-tour-wbrands button{display:flex;flex-direction:column;gap:2px;appearance:none;cursor:pointer;font:inherit;padding:12px 14px;border-radius:12px;border:1px solid var(--line);background:#fff;color:var(--ink);text-align:left;transition:border-color .15s,background .15s}
html body .sbs-tour-wbrands button:hover{border-color:var(--gold);background:var(--soft)}
html body .sbs-tour-wbrands b{font-size:16px;font-weight:600}
html body .sbs-tour-wbrands small{font-size:12px;color:var(--muted)}
html body .sbs-tour-wbrands button.is-designer small{color:var(--gold)}
html body .sbs-tour-wstart{display:inline-flex;align-items:center;gap:8px;margin-top:18px;padding:12px 26px;border:1px solid var(--gold);border-radius:6px;background:var(--gold);font:inherit;font-size:15px;font-weight:600;color:#fff;cursor:pointer;text-decoration:none} /* owner 2026-10-21: gold button, not a link */
html body .sbs-tour-wstart:hover{background:var(--gold-d);border-color:var(--gold-d);color:#fff}
html body .sbs-tour-wload{grid-column:1/-1;margin:4px 0;text-align:center;font-size:14px;color:var(--muted)}

/* SBS card for a tag */
html body .sbs-tour-card{position:absolute;top:14px;right:14px;width:min(380px,calc(100% - 28px));max-height:calc(100% - 28px);overflow:auto;overscroll-behavior:contain;padding:22px 22px 0;border-radius:12px;background:#fff;border:1px solid var(--line);border-top:4px solid var(--gold);box-shadow:0 18px 48px rgba(16,24,40,.28);z-index:2;animation:sbs-tour-in .2s ease-out}
html body .sbs-tour-card[hidden]{display:none}
@keyframes sbs-tour-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
html body .sbs-tour-x{position:absolute;top:10px;right:10px;width:34px;height:34px;display:grid;place-items:center;appearance:none;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font-size:22px;line-height:1;cursor:pointer;padding:0}
html body .sbs-tour-x:hover{border-color:var(--gold);color:var(--gold)}
html body .sbs-tour-cardeye{margin:0 0 4px;padding-right:40px;font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--gold)}
html body .sbs-tour-card h3{margin:0 0 12px;padding-right:40px;font-family:inherit;font-size:22px;font-weight:600;line-height:1.2;color:var(--ink)}
html body .sbs-tour-media{display:grid;gap:10px;margin:0 0 14px}
html body .sbs-tour-media img{display:block;width:100%;height:auto;border-radius:6px;background:var(--soft)}
html body .sbs-tour-video{position:relative;aspect-ratio:16/9;border-radius:6px;overflow:hidden;background:#000}
html body .sbs-tour-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
html body .sbs-tour-desc{font-size:15px;color:var(--muted)}
html body .sbs-tour-desc p{margin:0 0 10px}
html body .sbs-tour-desc a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:3px}
html body .sbs-tour-desc a:hover{color:var(--gold)}
html body .sbs-tour-desc:last-child{padding-bottom:12px}
/* webshop products of the brand */
html body .sbs-tour-shop{margin:14px 0 0;padding:14px 0 0;border-top:1px solid var(--line)}
html body .sbs-tour-shop[hidden]{display:none}
html body .sbs-tour-shop:last-child{padding-bottom:14px}
html body .sbs-tour-shop h4{margin:0 0 10px;font-family:inherit;font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--gold)}
/* search in the brand's products */
html body .sbs-tour-search{position:relative;display:block;margin:0 0 10px}
html body .sbs-tour-search input{width:100%;height:42px;margin:0;padding:0 12px 0 38px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);font:inherit;font-size:16px;box-shadow:none;outline:0;transition:border-color .15s,box-shadow .15s}
html body .sbs-tour-search input::placeholder{color:var(--muted)}
html body .sbs-tour-search input:focus{border-color:var(--gold);box-shadow:0 0 0 3px rgba(193,144,49,.18)}
html body .sbs-tour-sico{position:absolute;left:13px;top:50%;width:13px;height:13px;margin-top:-8px;border:1.5px solid var(--gold);border-radius:50%;pointer-events:none}
html body .sbs-tour-sico::after{content:"";position:absolute;right:-5px;bottom:-4px;width:6px;height:1.5px;background:var(--gold);transform:rotate(45deg)}
html body [data-plist]{transition:opacity .15s}
html body [data-plist].is-busy{opacity:.45}
html body .sbs-tour-none{margin:4px 0 0;font-size:14px;color:var(--muted)}
/* one product per line: photo, name and price, gold arrow */
html body .sbs-tour-prods{display:flex;flex-direction:column;border-top:1px solid var(--line)}
html body .sbs-tour-prod{display:grid;grid-template-columns:52px minmax(0,1fr) 18px;align-items:center;gap:12px;padding:9px 4px;border-bottom:1px solid var(--line);color:var(--ink)!important;text-decoration:none!important;font-size:14px;line-height:1.3;transition:background .15s}
html body .sbs-tour-prod:hover{background:var(--soft)}
html body .sbs-tour-pimg{display:grid;place-items:center;width:52px;height:52px;border-radius:4px;background:var(--soft);overflow:hidden}
html body .sbs-tour-pimg img{width:100%;height:100%;object-fit:contain;display:block;mix-blend-mode:multiply}
html body .sbs-tour-ptxt{display:flex;flex-direction:column;gap:2px;min-width:0}
html body .sbs-tour-pname{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
html body .sbs-tour-pprice{font-size:13px;font-weight:600;color:var(--ink)}
html body .sbs-tour-pprice del{font-weight:400;color:var(--muted)}
html body .sbs-tour-pgo{width:9px;height:9px;justify-self:center;border-top:1.5px solid var(--gold);border-right:1.5px solid var(--gold);transform:rotate(45deg);transition:transform .2s}
html body .sbs-tour-prod:hover .sbs-tour-pgo{transform:translateX(3px) rotate(45deg)}
html body .sbs-tour-more{display:inline-block;margin-top:12px;font-size:14px;color:var(--ink)!important;text-decoration:underline!important;text-decoration-color:var(--gold)!important;text-underline-offset:3px}
html body .sbs-tour-more:hover{color:var(--gold)!important}
/* the button stays in sight at the bottom of the card while the text and videos scroll */
html body .sbs-tour-actions{position:sticky;bottom:0;z-index:1;margin:16px -22px 0;padding:14px 22px 18px;background:#fff;border-top:1px solid var(--line)}

/* gold button with the white arrow square, as on smartbuildingsolutions.us */
html body .sbs-tour-btn{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:52px;padding:0 6px 0 18px;border-radius:6px;background:#b88a2a;border:1px solid #b88a2a;color:#fff!important;font-size:16px;font-weight:400;text-decoration:none!important;line-height:1.2;transition:background .15s,border-color .15s}
html body .sbs-tour-btn:hover{background:var(--gold-d);border-color:var(--gold-d)}
html body .sbs-tour-bi{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:4px;background:#fff;flex:none}
html body .sbs-tour-bi svg{width:22px;height:auto;display:block;transition:transform .2s}
html body .sbs-tour-btn:hover .sbs-tour-bi svg{transform:translateX(3px)}

/* designer side panel */
html body .sbs-tour-panel{display:flex;flex-direction:column;height:clamp(440px,72vh,760px);border-radius:14px;overflow:hidden;background:#fff;border:1px solid #d9bf86}
html body .sbs-tour-panel[hidden]{display:none}
html body .sbs-tour-panel-bar{display:flex;align-items:center;gap:14px;padding:10px 10px 10px 18px;background:var(--soft);border-bottom:1px solid var(--line)}
html body .sbs-tour-panel-bar b{flex:1;font-weight:600;color:var(--ink)}
html body .sbs-tour-panel-bar a{font-size:14px;color:var(--muted);text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:3px}
html body .sbs-tour-panel-bar button{width:34px;height:34px;display:grid;place-items:center;appearance:none;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font-size:22px;line-height:1;cursor:pointer;padding:0}
html body .sbs-tour-panel-bar button:hover{border-color:var(--gold);color:var(--gold)}
html body .sbs-tour-panel iframe{flex:1;width:100%;border:0;display:block;background:#fff}

/* phones and small tablets: card as a sheet at the bottom of the tour, designer full screen */
html body .sbs-tour-more-t,html body .sbs-tour-wmore-s{display:none}
@media (max-width:899px){
  /* 1. short intro, tour edge to edge and tall */
  html body .sbs-tour-head{margin:0 0 12px}
  html body .sbs-tour-eyebrow{font-size:11px;margin-bottom:4px}
  html body .sbs-tour h2{font-size:22px;margin:0}
  html body .sbs-tour-lead{display:none}
  html body .sbs-tour-stage{margin-left:-16px;width:calc(100% + 32px)}
  html body .sbs-tour-stage.is-split{grid-template-columns:minmax(0,1fr)}
  html body .sbs-tour-frame{--mat:0px;gap:0;height:78vh;height:78svh;min-height:460px;padding:0;border:0;border-radius:0;box-shadow:none;background:var(--soft)}
  html body .sbs-tour-view,html body .sbs-tour-view::after{border-radius:0}
  html body .sbs-tour-view::after{border-width:0 0 1px}
  /* 4. one bottom area: the brand menu on cream right under the scan */
  html body .sbs-tour-bar{min-height:54px;margin:0;padding:6px 12px;gap:6px;background:var(--soft);border-bottom:1px solid #d9bf86;scrollbar-width:none}
  html body .sbs-tour-bar::-webkit-scrollbar{display:none}
  html body .sbs-tour-bar button[data-brand]{font-size:14px;padding:10px 14px}
  html body .sbs-tour-home{width:40px;height:40px}
  /* 2. welcome as a sheet at the bottom: the showroom stays in sight above it */
  html body .sbs-tour-welcome{place-items:end stretch;padding:0;background:none;pointer-events:none;overflow:visible}
  html body .sbs-tour-wcard{pointer-events:auto;width:100%;padding:12px 16px 14px;border-radius:14px 14px 0 0;text-align:left;box-shadow:0 -10px 30px rgba(16,24,40,.25)}
  html body .sbs-tour-wcard::before{content:"";display:block;width:38px;height:4px;margin:0 auto 10px;border-radius:2px;background:#d3d1c7}
  html body .sbs-tour-logo{font-size:11px;gap:8px}
  html body .sbs-tour-logo .sbs-tour-ico{width:22px;height:22px}
  html body .sbs-tour-logoimg{margin:0;max-height:34px}
  html body .sbs-tour-wcard h3{font-size:18px;margin:8px 0 10px}
  html body .sbs-tour-wcard>p,html body .sbs-tour-wmore-l{display:none}
  html body .sbs-tour-wmore-s{display:inline}
  html body .sbs-tour-wbrands{display:flex;gap:8px;overflow-x:auto;margin:0 -16px;padding:0 16px 2px;scrollbar-width:none}
  html body .sbs-tour-wbrands::-webkit-scrollbar{display:none}
  html body .sbs-tour-wbrands button{flex:none;min-width:116px;padding:9px 12px}
  html body .sbs-tour-wbrands b{font-size:15px}
  html body .sbs-tour-wstart{margin-top:12px;font-size:14px}
  /* 3. card as a peek bar: brand, name and the gold button; More slides it up */
  html body .sbs-tour-card{top:auto;bottom:0;right:0;left:0;width:auto;max-height:80%;padding:12px 16px 0;border-radius:14px 14px 0 0;border:0;border-top:3px solid var(--gold);box-shadow:0 -10px 30px rgba(16,24,40,.25);transition:max-height .25s ease}
  html body .sbs-tour-card::before{content:"";display:block;width:38px;height:4px;margin:0 auto 8px;border-radius:2px;background:#d3d1c7}
  html body .sbs-tour-card h3{font-size:18px;margin-bottom:8px}
  html body .sbs-tour-x{top:14px;right:12px;width:32px;height:32px}
  html body .sbs-tour-more-t{display:inline-flex;align-items:center;gap:6px;position:absolute;top:16px;right:52px;height:28px;padding:0 10px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font:inherit;font-size:13px;cursor:pointer}
  html body .sbs-tour-more-t::after{content:"";width:6px;height:6px;border-top:1.5px solid var(--gold);border-left:1.5px solid var(--gold);transform:translateY(2px) rotate(45deg)}
  html body .sbs-tour-card:not(.is-peek) .sbs-tour-more-t::after{transform:translateY(-2px) rotate(225deg)}
  html body .sbs-tour-card .sbs-tour-cardeye,html body .sbs-tour-card h3{padding-right:130px}
  html body .sbs-tour-card.is-peek{overflow:hidden}
  html body .sbs-tour-card.is-peek .sbs-tour-media,html body .sbs-tour-card.is-peek .sbs-tour-desc,html body .sbs-tour-card.is-peek .sbs-tour-shop{display:none}
  html body .sbs-tour-card.is-peek .sbs-tour-actions{margin-top:4px}
  html body .sbs-tour-actions{margin:14px -16px 0;padding:10px 16px 12px}
  html body .sbs-tour-btn{min-height:48px}
  html body .sbs-tour-panel{position:fixed;inset:0;height:auto;border-radius:0;border:0;z-index:100000}
  html.sbs-tour-open{overflow:hidden}
}
