/* E-commerce tab, Catalogues part: labels | catalogues | products | product panel, the dialogs and the search results.
   Laid out like cloneQ's static/css/panel-catalogues.css, in Party Villa's colours (style.css tokens). */
.cq-ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn .cq-ic { width: 16px; height: 16px; vertical-align: -3px; }
.linkish { background: none; border: 0; padding: 0; color: var(--brand-2); font: inherit; font-size: .85rem; cursor: pointer; text-decoration: underline; }
.ecom-ic.green { color: #fff; background: var(--brand-2); border-color: var(--brand-2); }
.ecom-ic.on { color: var(--brand-2); border-color: var(--brand-2); background: var(--soft); }
.ecom-ic:disabled { opacity: .45; cursor: not-allowed; }
.ecom-ic .cq-ic { width: 18px; height: 18px; }
.ecom-ic.ecom-back { display: none; }

/* ---------- frame: four columns (200px | 320px | products | 420px) */
.cq { display: grid; grid-template-columns: 200px 320px minmax(0, 1fr); height: 100%; min-height: 0; }
.cq.with-product { grid-template-columns: 200px 320px minmax(0, 1fr) 420px; }
.cq.no-labels { grid-template-columns: 320px minmax(0, 1fr); }
.cq.no-labels.with-product { grid-template-columns: 320px minmax(0, 1fr) 420px; }
.cq.no-labels .cq-labels { display: none; }
.cq-panel { display: none; }
.cq.with-product .cq-panel { display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.cq .ecom-col { display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; }
.cq-labels { background: #f7f8f6; }
.cq-head { gap: 4px; padding: 8px 10px; }
.cq-head h2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cq-head .ecom-ic { min-width: 30px; padding: 0 5px; }
.cq-none { padding: 22px 16px; color: var(--muted); }
.cq-none .btn { margin-top: 8px; }
.cq-pad { padding: 8px 14px; margin: 0; }
.cq input[type=checkbox], .dialog input[type=checkbox], .dialog input[type=radio], .ecom-pop input[type=checkbox] { width: auto; min-height: 0; accent-color: var(--brand-2); }

/* labels */
.cq-lbls { display: flex; flex-direction: column; }
.lbl { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.lbl span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lbl em { font-style: normal; font-size: .75rem; color: var(--muted); }
.lbl:hover { background: var(--soft); }
.lbl-dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid #b9c3be; flex: none; }
.lbl.on { background: #fff; color: var(--brand-2); font-weight: 600; box-shadow: inset 3px 0 0 var(--brand-2); }
.lbl.on .lbl-dot { background: var(--brand-2); border-color: var(--brand-2); }
.cq-lbl-edit { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cq-lbl-edit li { display: flex; align-items: center; gap: 6px; }
.cq-lbl-edit li > input { flex: 1; }
.cq-lbl-del { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; color: var(--bad); white-space: nowrap; cursor: pointer; }

/* catalogue rows (_catalogue_list.html) */
.crow { position: relative; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.crow-link { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; padding: 14px 8px 14px 12px; color: var(--ink); text-decoration: none; }
.crow-link:hover { background: var(--soft); }
.crow.on { background: var(--soft); box-shadow: inset 3px 0 0 var(--brand-2); }
.crow-text { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.crow-text strong { font-size: 1rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crow-text > span { font-size: .8rem; color: var(--muted); }
.crow-title { display: flex; align-items: center; gap: 6px; min-width: 0; }
.crow-pen { flex: none; display: grid; place-items: center; border: 0; background: none; color: var(--brand-2); border-radius: 4px; padding: 2px; cursor: pointer; }
.crow-pen:hover { background: #fff; }
.crow-pen .cq-ic { width: 17px; height: 17px; }
.crow-hd { color: var(--brand); }
.crow-live { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 12px 0 4px; }
.crow-live small { font-size: .7rem; color: var(--muted); }
.crow-pick { gap: 12px; padding: 12px; cursor: pointer; }
.crow-pick:hover { background: var(--soft); }
.crow-labels { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.crow-labels b { font-weight: 500; font-size: .7rem; background: var(--soft); color: var(--brand); border-radius: 3px; padding: 1px 6px; }
.collage { display: grid; grid-template-columns: 26px 26px; grid-template-rows: 26px 26px; gap: 2px; width: 54px; height: 54px; flex: none; }
.collage img, .collage i { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: #fff; border: 1px solid var(--line); display: block; }
.collage i { background: #eef1ef; }
.cq-new-ic { display: grid; place-items: center; grid-template-columns: 1fr; border-radius: 50%; background: #fdf0d9; color: var(--warn); }
.cq-new-ic .cq-ic { width: 26px; height: 26px; }
.ctag { display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .03em; padding: 1px 6px; border-radius: 3px; vertical-align: 1px; }
.ctag-live { background: #dff3e6; color: var(--ok); }
.ctag-off { background: #eceff1; color: #4b5563; }
.ctag-closed { background: #fbe6e4; color: var(--bad); }
.ctag-auto { background: #e0ecfb; color: #1d4a8a; }

/* search and select bars */
.cq-search { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: #fbfcfb; color: var(--muted); }
.cq-search input { border: 0; background: transparent; padding: 6px 2px; min-height: 32px; }
.cq-search input:focus { outline: none; }
.cq-search.boxed { border: 1px solid var(--line); border-radius: 6px; margin: 4px 0; }
.cq-selbar { padding: 10px 12px; background: #fbfcfb; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.cq-selbar p { margin: 0; }
.cq-selrow { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cq-selrow select { width: auto; flex: 1; min-width: 120px; }

/* ---------- products column (_products.html) */
.cq-toolbar { position: sticky; top: 0; z-index: 3; min-height: 50px; flex: none; display: flex; align-items: center; justify-content: space-around; gap: 4px; padding: 4px 8px; background: var(--panel); border-bottom: 1px solid var(--line); }
.tb-icon { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid transparent; color: var(--ink); cursor: pointer; padding: 7px 9px; border-radius: 6px; font: inherit; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.tb-icon:hover { background: var(--soft); }
.tb-icon.on { color: var(--brand-2); background: var(--soft); }
.tb-select { border-color: #b9c3be; }
.cq-ptitle { padding: 8px 16px 0; font-size: .95rem; }
.cq-ptitle-in { font-size: .95rem; margin-left: 6px; }
.cq-chips { display: flex; align-items: center; gap: 8px; padding: 10px 16px 6px; flex-wrap: wrap; }
.chip-t { border: 1px solid #b9c3be; background: #fff; border-radius: 16px; padding: 5px 12px; font: inherit; font-size: .85rem; cursor: pointer; }
.chip-t em { font-style: normal; color: var(--muted); margin-left: 4px; }
.chip-t.on { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.chip-t.on em { color: #d9efe9; }
.cq-banner { margin: 6px 16px 4px; border-radius: 6px; overflow: hidden; max-height: 120px; }
.cq-banner img { width: 100%; display: block; object-fit: cover; max-height: 120px; }
.cq-banner-big { width: 100%; max-height: 200px; object-fit: contain; border-radius: 6px; background: #f3f4f1; }
.cq-desc { margin: 0 8px; }
.cq-desc summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 10px 8px; font-weight: 600; cursor: pointer; border-radius: 6px; }
.cq-desc summary::-webkit-details-marker { display: none; }
.cq-desc summary:hover { background: var(--soft); }
.cq-desc summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cq-desc-form { padding: 4px 8px 10px; }
.cq-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.cq-modebar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 12px 8px; padding: 10px 12px; background: #fdf8ec; border: 1px solid #ecd9ae; border-radius: 6px; font-size: .9rem; }
.cq-modebar > span { flex: 1; min-width: 180px; }
.cq-pickbar { position: sticky; top: 50px; z-index: 4; }
.cq-pickbar .cq-modebar { margin-top: 0; box-shadow: 0 4px 10px rgba(0, 0, 0, .08); }
.cq-pick-all { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.cq-transfer { display: flex; align-items: center; gap: 6px; flex: 1 1 100%; min-width: 0; }
.cq-transfer select { flex: 1; min-width: 0; min-height: 32px; padding: 4px 8px; }

/* product rows (_product_rows.html) */
.plist { padding-bottom: 20px; }
.prow { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 16px; border-bottom: 1px solid var(--line); cursor: pointer; min-height: 70px; }
.prow:hover { background: #f7faf9; }
.prow.on { background: var(--soft); box-shadow: inset 3px 0 0 var(--brand-2); }
.prow-pick input { width: 18px; height: 18px; }
.pthumb { width: 50px; height: 50px; flex: none; border-radius: 4px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.pthumb img { width: 100%; height: 100%; object-fit: contain; }
.pthumb.sm { width: 38px; height: 38px; }
.ptext { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ptext strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ptext small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .75rem; }
.psub { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pbadges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.badge-oos, .badge-off, .badge-var, .badge-auto { font-size: .65rem; font-weight: 700; letter-spacing: .02em; padding: 1px 6px; border-radius: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.badge-oos { background: #fbe6e4; color: var(--bad); }
.badge-off { background: #fdf0d9; color: var(--warn); }
.badge-var { background: #eceff1; color: #4b5563; }
.badge-auto { background: #e0ecfb; color: #1d4a8a; }
.pprice { white-space: nowrap; text-align: right; display: flex; flex-direction: column; align-items: flex-end; font-weight: 600; }
.pprice s { font-size: .75rem; color: var(--muted); font-weight: 400; }
.pprice small { font-size: .7rem; color: var(--muted); font-weight: 400; }
.pacts { display: flex; gap: 4px; flex: none; }
.cq-more-wrap { display: flex; justify-content: center; padding: 12px; }
.cq-pick-one { font-size: 1.05rem; }

/* reorder */
.rlist { list-style: none; margin: 0; padding: 0 10px 20px; }
.rrow { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 6px; background: #f7f8f6; border: 1px solid var(--line); margin: 4px 0; user-select: none; }
.rnum { width: 28px; text-align: right; color: var(--muted); font-size: .75rem; }
.rname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- popovers: edit menu, settings (_pop_settings.html) */
.cq-menu { min-width: 250px; }
.mi-add .cq-ic { color: var(--ok); } .mi-reorder .cq-ic { color: var(--brand-2); } .mi-banner .cq-ic { color: #5c6bc0; } .mi-action .cq-ic { color: #4f5bd5; }
.mi-layout .cq-ic { color: #e8833a; } .mi-sort .cq-ic { color: var(--ok); } .mi-excel .cq-ic { color: #1e7b45; }
.ecom-pop.cq-pop { width: 340px; padding: 4px 14px 10px; }
.ecom-pop.cq-pop.sheet { width: auto; }
.pset-group { font-size: .75rem; color: var(--brand-2); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; margin: 12px 0 2px; }
.pset { border-bottom: 1px solid var(--line); padding: 10px 0; }
.pset:last-child { border-bottom: 0; }
.pset-main { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.pset-text h4 { margin: 0 0 2px; font-size: .9rem; }
.pset-text p { margin: 0; font-size: .78rem; color: var(--muted); line-height: 1.35; }
.pset .managed { margin: 5px 0 0; color: var(--muted); font-size: .78rem; }
.pset .linkish { margin-top: 5px; font-size: .78rem; }
.pset select { width: auto; max-width: 150px; min-height: 32px; padding: 4px 6px; font-size: .85rem; }
.pset-num { display: flex; gap: 6px; align-items: center; }
.pset-num input { width: 76px; min-height: 32px; padding: 4px 6px; }

/* ---------- product panel (_product_panel.html, _tab_*.html) */
.cq-ptabs { position: sticky; top: 0; z-index: 3; min-height: 50px; flex: none; display: flex; align-items: center; gap: 4px; padding: 4px 8px 4px 12px; background: var(--panel); border-bottom: 1px solid var(--line); }
.ptabs { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.ptabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font: inherit; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; padding: 14px 5px 12px; cursor: pointer; }
.ptabs button:hover { color: var(--ink); }
.ptabs button.on { color: var(--brand-2); border-bottom-color: var(--brand-2); }
.cq-pbody { flex: 1; min-height: 0; }
.pphoto { display: grid; place-items: center; padding: 16px 0; background: radial-gradient(ellipse at center, #fff 0%, #eef1ef 70%); border-bottom: 1px solid var(--line); }
.pphoto img { width: 230px; height: 230px; object-fit: contain; background: #fff; border-radius: 4px; box-shadow: 0 2px 14px rgba(0, 0, 0, .08); }
.pphoto-none { width: 230px; height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); border: 1px dashed #b9c3be; border-radius: 6px; }
.pphoto-none .cq-ic { width: 34px; height: 34px; }
.pthumbs { display: flex; flex-wrap: wrap; gap: 14px; padding: 12px 18px 18px; border-bottom: 1px solid var(--line); }
.thumb { position: relative; width: 52px; height: 52px; border-radius: 4px; background: #fff; border: 2px solid var(--line); }
.thumb.on { border-color: var(--brand-2); }
.thumb-img { width: 100%; height: 100%; border: 0; padding: 0; background: none; cursor: pointer; }
.thumb-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 3px; display: block; }
.thumb-cover { position: absolute; left: -4px; right: -4px; bottom: -16px; text-align: center; font-size: .6rem; font-weight: 700; color: var(--brand-2); text-transform: uppercase; }
.thumb-acts { position: absolute; top: -9px; right: -9px; display: flex; gap: 2px; }
.thumb-acts button { width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.thumb-acts .cq-ic { width: 12px; height: 12px; stroke-width: 2.2; }
html:not(.touch) .thumb-acts { display: none; }
html:not(.touch) .thumb:hover .thumb-acts, .thumb:focus-within .thumb-acts { display: flex; }
.thumb-add { display: grid; place-items: center; border-style: dashed; color: var(--muted); cursor: pointer; }
.thumb-add:hover { color: var(--brand-2); border-color: var(--brand-2); }
.plink { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); font-size: .85rem; }
.plink-url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--brand-2); }
.plink-view { color: var(--brand-2); font-weight: 600; white-space: nowrap; }
.plink-off { flex: 1; color: var(--warn); }
.plink-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; cursor: pointer; }
/* Change link: the website address as text, then the name typed (wraps on a phone, never wider than the panel) */
.plink-edit { display: flex; flex-direction: column; gap: 8px; padding: 10px 18px; border-bottom: 1px solid var(--line); font-size: .85rem; }
.plink-edit[hidden] { display: none; }
.plink-in { display: flex; align-items: center; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 0 0 0 10px; background: var(--card, transparent); }
.plink-pre { color: var(--muted); white-space: nowrap; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.plink-in input { flex: 1; min-width: 0; border: 0; background: none; padding: 8px 10px 8px 0; font-size: 1rem; color: var(--ink); outline: none; }
.plink-in:focus-within { border-color: var(--brand-2); }
.plink-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.pform { display: flex; flex-direction: column; gap: 12px; padding: 14px 18px 0; }
.pform .f { display: flex; flex-direction: column; gap: 3px; font-size: .85rem; color: var(--muted); }
.pform .f > input, .pform .f > textarea { color: var(--ink); font-size: 1rem; }
.lbl-t { font-size: .85rem; }
.cq-codes { display: flex; flex-wrap: wrap; gap: 4px; }
.cq-codes code { background: #f3f4f1; border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; font-size: .8rem; color: var(--ink); }
.pbox { background: #f7f8f6; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.pbox p { margin: 0; }
.price-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--ink); }
.price-row input { max-width: 150px; }
.slab-head, .slab-row { display: grid; grid-template-columns: 1fr 1fr 1fr 34px; gap: 8px; align-items: center; }
.slab-row input { min-height: 34px; padding: 5px 8px; }
.psubcats { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.psubcats p { margin: 0; }
.chips-sm { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-sm { background: var(--soft); color: var(--brand); border-radius: 999px; padding: 3px 10px; font-size: .8rem; }
.psubcats .btn, .pbox .btn { align-self: flex-start; }
.psave { position: sticky; bottom: 0; z-index: 2; display: flex; justify-content: flex-end; gap: 10px; margin: 6px -18px 0; padding: 10px 18px; background: var(--panel); border-top: 1px solid var(--line); }
.vlist { list-style: none; margin: 0; padding: 0; }
.vrow { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.vdot { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .2); flex: none; }
.vdot.none { background: transparent; border: 1px dashed #b9c3be; }
.vtext { flex: 1; min-width: 140px; display: flex; flex-direction: column; }
.vtext span { font-size: .78rem; color: var(--muted); }
.vstock { font-weight: 600; white-space: nowrap; }
.vprice { display: flex; gap: 6px; align-items: center; }
.vprice input { width: 110px; min-height: 32px; padding: 4px 8px; }
.subcat-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chk-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: .9rem; }
.chk-chip:has(input:checked) { border-color: var(--brand-2); color: var(--brand-2); }

/* ---------- dialogs (dialogs/*.html) */
.cq-sep { border: 0; border-top: 1px solid var(--line); margin: 6px 0; width: 100%; }
.cq-danger { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.cq-danger h3 { font-size: .95rem; }
.cq-danger p { margin: 2px 0 0; }
.dtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.dtabs button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
.dtabs button.on { color: var(--brand-2); border-bottom-color: var(--brand-2); }
.dtabs .cq-ic { width: 18px; height: 18px; }
.lib-list { max-height: 46vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 6px; }
.lib-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-bottom: 1px solid var(--line); cursor: pointer; }
.lib-row:hover { background: var(--soft); }
.lib-row.added { opacity: .55; cursor: default; }
.lib-row input { width: 17px; height: 17px; }
.lib-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lib-text strong { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-text span { font-size: .75rem; color: var(--muted); }
.lib-row em { font-size: .72rem; color: var(--muted); font-style: normal; white-space: nowrap; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; }
.pager:empty { display: none; }
.cq-addall { gap: 8px; }
.cq-addall select { width: auto; flex: 1; min-width: 180px; }
.choices { display: flex; flex-direction: column; gap: 8px; }
.choice { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; color: var(--ink); font-size: .95rem; }
.choice:hover { border-color: #9fb3ab; }
.choice:has(input:checked) { border-color: var(--brand-2); background: var(--soft); }
.choice input { margin-top: 3px; }
.choice span { flex: 1; display: flex; flex-direction: column; }
.choice small { color: var(--muted); font-size: .8rem; }
.choice-now { font-style: normal; font-size: .68rem; color: var(--brand-2); text-transform: uppercase; font-weight: 700; }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 20px 14px; border: 1.5px dashed #9fb3ab; border-radius: 8px; cursor: pointer; }
.dropzone:hover { border-color: var(--brand-2); }
.dropzone .cq-ic { width: 34px; height: 34px; color: var(--brand-2); }
.dropzone span { font-size: .82rem; color: var(--muted); max-width: 460px; }
.dropzone input { border: 0; max-width: 320px; min-height: 0; }
.pm-row { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pm-row img { width: 56px; height: 56px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 4px; flex: none; }
.pm-row select { margin: 4px 0; min-height: 34px; padding: 4px 8px; }
.steps { margin: 4px 0; padding-left: 20px; font-size: .9rem; }
.steps li { margin: 4px 0; }
.cq-xl { padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: #f7f8f6; display: flex; flex-direction: column; gap: 4px; }
.cq-xl.done { border-color: #b9dcc6; background: #eef8f1; }

/* ---------- search: the drop under the top box and the results page (_search_drop.html, search.html) */
.gs-drop-head { display: flex; justify-content: space-between; margin: 0; padding: 8px 12px 4px; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.gs-drop-none { margin: 0; padding: 14px 12px; color: var(--muted); }
.gs-opts { display: flex; flex-direction: column; }
.gs-opt { display: flex; align-items: center; gap: 10px; padding: 8px 12px; cursor: pointer; border-bottom: 1px solid var(--line); }
.gs-opt:hover, .gs-opt.on { background: var(--soft); }
.gs-thumb { width: 40px; height: 40px; flex: none; border-radius: 4px; border: 1px solid var(--line); background: #fff; overflow: hidden; display: grid; place-items: center; }
.gs-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gs-opt-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gs-opt-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-opt-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: .75rem; color: var(--muted); }
.gs-opt-cat .linkish { font-size: .75rem; }
.gs-opt-price { white-space: nowrap; font-weight: 600; }
.gs-opt-price small { font-weight: 400; color: var(--muted); }
.gs-acts { flex: none; }
.gs-all { display: block; padding: 10px 12px; text-align: center; color: var(--brand-2); font-weight: 600; text-decoration: none; }
.gs-all:hover, .gs-all.on { background: var(--soft); }
.gs-page { max-width: 980px; margin: 0 auto; padding: 14px; }
.gs-page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.gs-list { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

/* ---------- items not active in billing, new arrivals buyers do not see, sub-categories */
.cq-inactive { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.cq-inactive > span { flex: 1; min-width: 200px; }
.cq-subhead { margin: 16px 12px 6px; font-size: .9rem; color: var(--muted); }
.prow-off { opacity: .8; }
.sc-list { display: grid; gap: 8px; margin: 10px 0; max-height: 50vh; overflow: auto; }
.sc-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--line); }
.sc-row input[type=text] { flex: 1; min-width: 160px; }
.sc-row label { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- smaller computer screens: labels give way to the product panel */
@media (max-width: 1500px) and (min-width: 768px) {
  .cq.with-product, .cq.no-labels.with-product { grid-template-columns: 300px minmax(0, 1fr) 400px; }
  .cq.with-product .cq-labels { display: none; }
}
@media (max-width: 1000px) and (min-width: 768px) {
  .cq { grid-template-columns: 180px 280px minmax(0, 1fr); }
  .cq.with-product, .cq.no-labels.with-product { grid-template-columns: minmax(0, 1fr) 380px; }
  .cq.with-product .cq-cats { display: none; }
}

/* ---------- phone: one column at a time, with a Back button */
@media (max-width: 767px) {
  .cq, .cq.with-product, .cq.no-labels, .cq.no-labels.with-product { display: block; height: auto; }
  .cq .ecom-col { display: none; overflow: visible; border: 0; }
  .cq .ecom-col.phone-on, .cq.no-labels .cq-labels.phone-on { display: flex; }
  .ecom-ic.ecom-back { display: inline-grid; }
  .cq-toolbar, .cq-ptabs { top: 104px; }
  .cq-pickbar { top: 154px; }
  .tb-icon { padding: 7px 6px; }
  .tb-icon .tb-label { display: none; }
  .tb-select .tb-label { display: inline; }
  .prow { padding: 10px 10px; gap: 10px; }
  .ptext strong { white-space: normal; }
  .cq-ptabs > .ecom-ic:last-child { display: none; }
  .pacts .ecom-ic { min-width: 34px; height: 34px; }
  .crow-link { padding: 12px 6px 12px 10px; }
  .pform, .pthumbs, .plink, .plink-edit { padding-left: 12px; padding-right: 12px; }
  .psave { margin: 6px -12px 0; padding: 10px 12px; }
  .pphoto img { width: 200px; height: 200px; }
  .gs-acts { display: none; }
  .cq-danger { flex-direction: column; align-items: flex-start; }
}
