/* dustcoupler.com's builder: "Get a price" (quote.js), a menu in the views' tab row just before Collections, styled like it. Fog and
   navy ink, the brand's three faces, an orange rule on the panel like the report dialog's. Loaded on /build/ only, and only in a build
   made with DUSTCOUPLER_QUOTE=1. */

/* the tab row keeps the tabs at the left: the two menus sit together at the right */
.tabrow #quote-menu{margin-left:auto}
#quote-menu>summary[aria-disabled="true"]{opacity:.5;cursor:default}
#quote-menu>summary[aria-disabled="true"]:hover{background:#fff}
#quote-menu>summary:focus-visible{outline:2px solid #e2572b;outline-offset:2px}

.qt-pop{position:absolute;right:0;top:calc(100% + 6px);z-index:50;box-sizing:border-box;width:min(340px,calc(100vw - 32px));
  display:grid;gap:10px;padding:12px 16px 14px;background:#fff;border:1px solid var(--line,#d3dbe2);border-top:3px solid #e2572b;border-radius:10px;
  box-shadow:0 8px 28px rgba(31,35,48,.22);color:var(--ink,#13202b);font-size:14px;line-height:1.45;text-align:left}
.qt-pop p{margin:0}
.qt-kick{font:500 11px/1.2 "IBM Plex Mono",Menlo,ui-monospace,monospace;letter-spacing:.14em;text-transform:uppercase;color:var(--dim,#566472)}
.qt-body{display:grid;gap:8px}
.qt-price{font-size:14px;color:var(--ink,#13202b)}
.qt-amount{font:800 22px/1.15 "Bricolage Grotesque","Avenir Next",system-ui,sans-serif;letter-spacing:-.02em;white-space:nowrap}
.qt-ship{color:var(--dim,#566472);font-size:13px}
.qt-note,.qt-diy{color:var(--dim,#566472);font-size:13px}
.qt-no-h{font-weight:650}
.qt-why{margin:0;padding-left:18px;display:grid;gap:4px}
.qt-credit{color:var(--dim,#566472);font-size:12px;line-height:1.4}
.qt-credit a{color:var(--accent-dk,#13202b)}
.qt-wait{color:var(--dim,#566472)}
.qt-bad{color:#a33a2e}
.qt-signup{justify-self:start;font-weight:600;color:var(--accent-dk,#13202b);text-decoration:underline;text-underline-offset:2px}
.qt-signup:focus-visible,.qt-credit a:focus-visible{outline:2px solid #e2572b;outline-offset:2px;border-radius:3px}
.qt-privacy{padding-top:8px;border-top:1px solid var(--line,#d3dbe2);color:var(--dim,#566472);font-size:12px;line-height:1.4}
.qt-colours{display:inline-flex;flex-wrap:wrap;gap:4px;justify-self:start}
.qt-colours button,.qt-retry{font:inherit;font-size:13px;padding:5px 12px;border:1px solid var(--line,#d3dbe2);border-radius:999px;background:#fff;color:var(--ink,#13202b);cursor:pointer}
.qt-colours button[aria-checked="true"]{border-color:var(--accent,#1d3a54);box-shadow:inset 0 0 0 1px var(--accent,#1d3a54)}
.qt-colours button:hover,.qt-retry:hover{background:var(--tint,#e9eff4)}
.qt-colours button:focus-visible,.qt-retry:focus-visible{outline:2px solid #e2572b;outline-offset:2px}
.qt-retry{justify-self:start;border-radius:7px}

/* a phone: the panel as wide as the preview, under the tab row (the other menus do the same). The summary stays Collections' twin
   (the same height) and comes after it. The tabs take the whole first line from the first paint, so Collections starts the second
   line as it does on a narrow phone without this file, and "Get a price" joins it on its right when the server answers: nothing
   moves and the row never grows after load (on a quote build whose server is off, Collections simply sits alone on that line).
   The panel's own controls get a thumb's height. */
@media (max-width:520px){
  .tabrow .tabs{flex:1 0 100%;box-sizing:border-box}
  .tabrow #quote-menu{margin-left:0;margin-right:auto;order:1}
  /* in the page, not over the model, so it can grow as long as it needs (UX review, 2026-11-09: clipped mid-sentence inside the 3D card) */
  .tabrow #quote-menu[open]{flex:1 0 100%}
  #quote-menu .qt-pop{position:static;width:auto;box-shadow:none;margin-top:6px}
  .qt-signup{padding:12px 0}
  .qt-colours button,.qt-retry{min-height:44px}
}
/* a phone's first visit (app.js k-untouched): it waits with Collections, so the From card stays on the first screen */
@media (max-width:640px){html.k-cards.k-untouched #quote-menu{display:none}}

/* a colour's swatch (the class carries the colour: the page's policy allows no inline style) */
.qt-sw{display:inline-block;width:12px;height:12px;border-radius:50%;border:1px solid rgba(0,0,0,.4);margin-right:6px;vertical-align:-1px}
.sw-petg-black{background:#1c1f24}.sw-pla-black{background:#1c1f24}.sw-petg-white{background:#f1f1ec}.sw-petg-red{background:#c4281f}.sw-petg-orange{background:#e8761c}.sw-petg-dark-blue{background:#1b2f5b}.sw-petg-green{background:#2f7d3b}

/* "Get a price" beside Download STL, once the design is finished: on a laptop in the toolbar, where it stands in for the tab row's; on a phone in the bar at the foot, sharing it with Download */
.btn.qt-go{background:#fff;color:var(--accent-dk);border-color:var(--accent)}
.btn.qt-go:hover{background:var(--tint);color:var(--accent-dk);border-color:var(--accent)}
.qt-go[hidden]{display:none}
/* a design that can't be ordered (quote.js label): "Print only", quieter, beside the download that is its way to a part */
.btn.qt-go.qt-only{border-color:var(--line);color:var(--dim)}
html.qt-ready .stat-more{display:none}
@media (max-width:900px){#qt-go{display:none}}
@media (min-width:901px){html.qt-ready #quote-menu>summary{display:none}#quote-menu{scroll-margin-top:8px}}
@media (max-width:900px){#quote-menu{scroll-margin-top:8px}.mbar .qt-go{flex:none;padding-left:12px;padding-right:12px}}
.qt-acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.qt-act{font:inherit;font-weight:600;padding:7px 12px;border-radius:7px;border:1px solid var(--accent);background:#fff;color:var(--accent-dk);cursor:pointer}
.qt-act:hover{background:var(--tint)}
@media (max-width:360px){html.qt-ready .mbar .stat{display:none}html.qt-ready .mbar .btn{flex:1}}
@media (max-width:480px){html.qt-cart .mbar .stat{display:none}}
.mbar #mbar-cart{flex:none;padding-left:10px;padding-right:10px;white-space:nowrap}
.mbar #mbar-cart[hidden]{display:none}
