/* shop.aioscilloscope.com: only what a shop adds to aioscilloscope.com's own site.css (loaded first, unchanged).
   Every colour, font and size here is one of site.css's tokens, so the shop reads as the same site. */

/* nav: the quote list's count */
nav.top .qcount { font-family: var(--mono); font-size: .72rem; color: var(--paper); background: var(--accent); border-radius: 3px; padding: 0 .35rem; margin-left: .15rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* product photos are RIGOL's studio shots on white: framed like the site's screenshots */
.shot.product { background: #fff; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.shot.product img { width: 100%; height: 100%; object-fit: contain; aspect-ratio: auto; }
.shot.product.ph { background: var(--scope); }
/* the page's hero photo: the live pages' 1024x600 screen frame, a product on white inside it */
.hero > .shot.product { aspect-ratio: 1024 / 600; padding: 1.2rem; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 8rem), 1fr)); gap: .6rem; margin-top: .6rem; }
.thumbs .shot.product { border-radius: 4px; }

/* the price box under the hero: the download page's .dl box, for a price */
.buy { display: grid; gap: .55rem; border: 1px solid var(--accent); border-radius: 6px; background: var(--panel); padding: .9rem 1.1rem; }
.buy p { max-width: none; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; }
.lp-label { font-family: var(--mono); font-size: var(--s-1); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.lp-amount { font-family: var(--display); font-weight: 700; font-size: var(--s2); color: var(--accent); line-height: 1; }
.buy-note { font-family: var(--mono); font-size: var(--s-1); color: var(--muted); }
.buy-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.card .lp { font-family: var(--mono); font-size: var(--s-1); color: var(--accent); }
.card .tag { justify-self: start; }
.tag.new { color: var(--good); border-color: var(--good); }
.usa-only a { overflow-wrap: anywhere; }

/* buttons: the download page's .dl-btn */
.qbtn { font-family: var(--mono); font-weight: 600; font-size: var(--s-1); color: var(--paper); background: var(--accent); border: 1px solid var(--accent); border-radius: 4px; padding: .55rem 1rem; text-decoration: none; cursor: pointer; display: inline-block; line-height: 1.3; }
.qbtn:hover, .qbtn:focus-visible { background: var(--ink); border-color: var(--ink); }
.qbtn.ghost { background: transparent; color: var(--accent); }
.qbtn.ghost:hover, .qbtn.ghost:focus-visible { color: var(--paper); background: var(--accent); border-color: var(--accent); }
.qbtn.added { color: var(--good); border-color: var(--good); }
.qbtn.buy { background: var(--ch1); border-color: var(--ch1); }
.qbtn[disabled] { opacity: .6; cursor: progress; }
td .qbtn { padding: .25rem .6rem; font-size: .72rem; }
td.src { font-family: var(--mono); font-size: .72rem; color: var(--muted); }

/* quote and inquiry forms: the site's .ask panel holding input.filter-style fields */
.qform { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .8rem 1rem; }
.qform .hint, .qform .status, .qform .wide, .qform .actions, .qform .qty, .qform fieldset, .qform noscript { grid-column: 1 / -1; }
.fld { display: grid; gap: .3rem; min-width: 0; }
.fld > span:first-child { font-family: var(--mono); font-size: var(--s-1); color: var(--muted); }
.fld i { font-style: normal; opacity: .8; }
.fld input, .fld select, .fld textarea { width: 100%; font-family: var(--mono); font-size: var(--s-1); color: var(--ink); background: var(--scope); border: 1px solid var(--rule); border-radius: 4px; padding: .5rem .6rem; }
.fld input:focus-visible, .fld select:focus-visible, .fld textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.fld.qty input { max-width: 9rem; }
.fixed { font-family: var(--mono); font-size: var(--s-1); color: var(--ink); border: 1px dashed var(--rule); border-radius: 4px; padding: .5rem .6rem; }
fieldset.shipto { border: 1px solid var(--rule); border-radius: 6px; margin: 0; padding: .7rem .9rem .9rem; display: grid; gap: .8rem 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
fieldset.shipto .wide { grid-column: 1 / -1; }
fieldset.shipto legend { font-family: var(--display); font-weight: 700; font-size: 1.05rem; padding: 0 .3rem; }
.consent { grid-template-columns: auto 1fr; align-items: start; }
.consent > span:first-child { display: none; }
.consent input { width: auto; margin-top: .3rem; }
.consent span { font-family: var(--body); font-size: var(--s0); color: var(--ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.status { font-family: var(--mono); font-size: var(--s-1); min-height: 1.3em; }
.status.ok { color: var(--good); }
.status.err { color: #ff7f6e; }
.status a { color: inherit; }
.intl-items { margin: 0; }
.intl-items .qbtn { margin-left: .4rem; }

/* filters, search box, quote list */
.filters input.filter.num { flex: 0 1 9rem; }
.filters .shown input { vertical-align: middle; }
form.search.big { display: block; max-width: 40rem; }
form.search.big input.filter { max-width: none; font-size: var(--s0); padding: .6rem .75rem; }
[data-quote-list] input[type="number"] { width: 5.5rem; font-family: var(--mono); color: var(--ink); background: var(--scope); border: 1px solid var(--rule); border-radius: 4px; padding: .3rem .4rem; }
.sr-list .sr-where { color: var(--accent); }
[hidden] { display: none !important; }

/* "added to quote list" */
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); max-width: calc(100% - 32px); font-family: var(--mono); font-size: var(--s-1); background: var(--panel); color: var(--ink); border: 1px solid var(--accent); border-radius: 6px; padding: .6rem 1rem; z-index: 30; box-shadow: 0 10px 30px rgb(0 0 0 / .5); }
