/* Website shop tools - 30 Oct 2026
   State notices, free-shipping bar, trust notes, stars, quick order (/quick-order),
   saved lists (/lists), reorder buttons, notify-me, save-to-list, reviews and the
   WhatsApp button. Loaded by cart, checkout, product, quick order, lists and
   orders pages; the WhatsApp button styles are inline in footer.php. */

:root {
  --vst-brand: #ad0101;
  --vst-brand-dark: #7d0000;
  --vst-ink: #0f172a;
  --vst-text: #334155;
  --vst-muted: #64748b;
  --vst-line: #e5e7eb;
  --vst-soft: #f8fafc;
  --vst-good: #15803d;
  --vst-good-bg: #dcfce7;
  --vst-bad: #b91c1c;
  --vst-bad-bg: #fee2e2;
  --vst-warn: #92400e;
  --vst-warn-bg: #fef3c7;
}

/* State shipping notice (cart, checkout) */
.vsr { display: flex; flex-direction: column; gap: 4px; margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; border: 1px solid; font-size: 14px; line-height: 1.45; }
.vsr strong { font-weight: 700; }
.vsr--warn { background: var(--vst-warn-bg); border-color: #fcd34d; color: var(--vst-warn); }
.vsr--block { background: var(--vst-bad-bg); border-color: #fca5a5; color: var(--vst-bad); }

/* Free shipping progress (cart) */
.vfs { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; background: var(--vst-soft); border: 1px solid var(--vst-line); font-size: 14px; color: var(--vst-text); }
.vfs__msg { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vfs__msg svg { color: var(--vst-good); flex: none; }
.vfs__sub { color: var(--vst-muted); font-size: 13px; }
.vfs__bar { height: 6px; margin-top: 10px; border-radius: 999px; background: var(--vst-line); overflow: hidden; }
.vfs__bar span { display: block; height: 100%; border-radius: inherit; background: var(--vst-good); transition: width .3s; }

/* Trust notes (product page) */
.vtrust { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; color: var(--vst-text); }
.vtrust li { position: relative; padding-left: 22px; }
.vtrust li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 12px; height: 7px; border-left: 2px solid var(--vst-good); border-bottom: 2px solid var(--vst-good); transform: rotate(-45deg); }

/* Stars */
.vstars { position: relative; display: inline-block; color: #d1d5db; letter-spacing: 1px; line-height: 1; font-size: 15px; white-space: nowrap; vertical-align: -1px; }
.vstars__on { position: absolute; left: 0; top: 0; overflow: hidden; color: #f59e0b; }

/* Shared buttons (quick order) */
.vst { padding: 24px 0 64px; color: var(--vst-text); }
.vst-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.vst-head h1 { margin: 0 0 4px; font-size: 28px; color: var(--vst-ink); }
.vst-head p { margin: 0; color: var(--vst-muted); }
.vst-head__links { display: flex; gap: 8px; flex-wrap: wrap; }
.vst-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--vst-line); background: #fff; color: var(--vst-ink) !important; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; }
.vst-btn:hover { border-color: var(--vst-ink); }
.vst-btn--primary { background: var(--vst-brand); border-color: var(--vst-brand); color: #fff !important; }
.vst-btn--primary:hover { background: var(--vst-brand-dark); border-color: var(--vst-brand-dark); }
.vst-btn--ghost { background: var(--vst-soft); }
.vst-card { padding: 20px; border-radius: 16px; border: 1px solid var(--vst-line); background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .05); }

/* Quick order */
.vqo-row { display: grid; grid-template-columns: minmax(130px, 1.1fr) minmax(0, 2fr) 90px 90px 100px 34px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--vst-line); }
.vqo-row--head { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--vst-muted); padding-top: 0; }
.vqo-row .num { text-align: right; font-variant-numeric: tabular-nums; }
.vqo-row input { height: 38px; width: 100%; padding: 0 10px; border-radius: 8px; border: 1px solid var(--vst-line); font-size: 14px; background: #fff; }
.vqo-row input:focus { outline: 2px solid rgba(173, 1, 1, .25); border-color: var(--vst-brand); }
.vqo-qty { text-align: right; }
.vqo-row.is-good .vqo-code { border-color: #86efac; }
.vqo-row.is-bad .vqo-code { border-color: #fca5a5; background: #fff7f7; }
.vqo-item { min-width: 0; font-size: 14px; }
.vqo-item a { color: var(--vst-ink); font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vqo-stock { display: block; color: var(--vst-good); font-size: 12px; }
.vqo-muted { color: var(--vst-muted); }
.vqo-bad { color: var(--vst-bad); font-size: 13px; display: block; }
.vqo-del { width: 34px; height: 34px; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--vst-muted); font-size: 20px; line-height: 1; cursor: pointer; }
.vqo-del:hover { border-color: var(--vst-line); color: var(--vst-bad); }
.vqo-actions, .vqo-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.vqo-total { font-size: 15px; }
.vqo-total strong { font-size: 20px; color: var(--vst-ink); margin-left: 6px; }
.vqo-paste { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--vst-soft); border: 1px dashed var(--vst-line); }
.vqo-paste summary { cursor: pointer; font-weight: 600; color: var(--vst-ink); }
.vqo-paste p { margin: 8px 0; font-size: 13px; color: var(--vst-muted); }
.vqo-paste textarea { width: 100%; padding: 10px; border-radius: 8px; border: 1px solid var(--vst-line); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.vqo-note { margin: 0; font-size: 13px; color: var(--vst-muted); }
@media (max-width: 767px) {
  .vqo-row--head { display: none; }
  .vqo-row { grid-template-columns: 1fr 80px 34px; grid-template-areas: "code qty del" "item item item" "price line line"; row-gap: 4px; }
  .vqo-code { grid-area: code; }
  .vqo-qty { grid-area: qty; }
  .vqo-del { grid-area: del; }
  .vqo-item { grid-area: item; }
  .vqo-row [data-vqo-price] { grid-area: price; text-align: left; font-size: 13px; color: var(--vst-muted); }
  .vqo-row [data-vqo-line] { grid-area: line; font-weight: 600; }
  .vqo-foot .vst-btn--primary { width: 100%; }
}

/* Saved lists (account page) */
.vls-new { display: flex; gap: 8px; flex-wrap: wrap; }
.vls-new input { height: 32px; min-width: 240px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--vst-line); font-size: 13px; }
.vls-name { min-width: 0; flex: 1; }
.vls-name input { width: 100%; max-width: 380px; height: 36px; padding: 0 10px; border: 1px solid transparent; border-radius: 8px; font-size: 18px; font-weight: 700; color: var(--vst-ink); background: transparent; }
.vls-name input:hover, .vls-name input:focus { border-color: var(--vst-line); background: #fff; }
.vls-name p { margin: 2px 0 0 10px; font-size: 13px; color: var(--vst-muted); }
.vls-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.vls-del { color: var(--vst-bad) !important; }
.vls-qty { width: 80px; height: 32px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--vst-line); text-align: right; }
.vls-x { width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; font-size: 18px; color: var(--vst-muted); cursor: pointer; }
.vls-x:hover { color: var(--vst-bad); background: var(--vst-bad-bg); }
.vls tr.is-out td { color: var(--vst-muted); }
@media (max-width: 575px) { .vls-new input { min-width: 0; flex: 1; } }

/* Buy again / save as list on My orders */
.vcd-actions { white-space: nowrap; }
.vcd-actions > * { margin-left: 6px; }
.vcd-inline { display: inline; margin: 0; }

/* Product page additions */
.vpp-rating { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14px; color: var(--vst-muted); text-decoration: none; }
.vpp-rating:hover { color: var(--vst-ink); }
.vpp-chips { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; justify-content: flex-end; }
.vpp-chips button { height: 26px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--vst-line); background: #fff; font-size: 12px; font-weight: 600; color: var(--vst-text); cursor: pointer; }
.vpp-chips button:hover { border-color: var(--vst-ink); color: var(--vst-ink); }
.vpp-notify { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--vst-line); background: #fff; font-size: 13px; font-weight: 600; color: var(--vst-ink); cursor: pointer; white-space: nowrap; }
.vpp-notify:hover { border-color: var(--vst-ink); }
.vpp-notify.is-done { border-color: #86efac; background: var(--vst-good-bg); color: var(--vst-good); cursor: default; }
.vpp-notify svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.vpp-savelist { margin-top: 12px; }
.vpp-linkbtn { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font-size: 14px; font-weight: 600; color: var(--vst-text); cursor: pointer; }
.vpp-linkbtn:hover { color: var(--vst-brand); }
.vpp-linkbtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.vpp-savelist__box { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.vpp-savelist__box[hidden] { display: none; }
.vpp-savelist__box select, .vpp-savelist__box input { height: 38px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--vst-line); font-size: 14px; background: #fff; }
.vpp-savelist__box input { flex: 1; min-width: 160px; }
.vpp-savelist__msg { flex-basis: 100%; font-size: 13px; color: var(--vst-muted); }
.vpp-savelist__msg.is-good { color: var(--vst-good); }
.vpp-savelist__msg.is-bad { color: var(--vst-bad); }
.vpp-savelist__msg a { color: inherit; text-decoration: underline; }

/* Reviews */
.vrv-score { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--vst-muted); }
.vrv-score strong { color: var(--vst-ink); }
.vrv-list { list-style: none; margin: 16px 0 0; padding: 0; }
.vrv-list li { padding: 14px 0; border-top: 1px solid var(--vst-line); }
.vrv-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--vst-ink); }
.vrv-list p { margin: 6px 0 4px; }
.vrv-by { font-size: 12px; color: var(--vst-muted); }
.vrv-note { margin-top: 14px !important; font-size: 14px; color: var(--vst-muted); }
.vrv-note a { color: var(--vst-brand); text-decoration: underline; }
.vrv-form { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--vst-line); display: grid; gap: 10px; max-width: 620px; }
.vrv-form h3 { margin: 0; font-size: 16px; color: var(--vst-ink); }
.vrv-form input[type="text"], .vrv-form textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--vst-line); font-size: 14px; }
.vrv-form .vpp-btn { justify-self: start; }
.vrv-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; margin: 0; padding: 0; border: 0; }
.vrv-stars legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.vrv-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vrv-stars label { font-size: 28px; line-height: 1; color: #d1d5db; cursor: pointer; padding: 0 2px; }
.vrv-stars input:checked ~ label, .vrv-stars label:hover, .vrv-stars label:hover ~ label { color: #f59e0b; }
.vrv-stars input:focus-visible + label { outline: 2px solid var(--vst-brand); border-radius: 4px; }

/* Messages after Buy again, quick order, lists and reviews (head1.php) */
.vflash { padding: 12px 0; font-size: 14px; border-bottom: 1px solid; }
.vflash--good { background: var(--vst-good-bg); border-color: #86efac; color: var(--vst-good); }
.vflash--bad { background: var(--vst-warn-bg); border-color: #fcd34d; color: var(--vst-warn); }
.vflash small { display: block; margin-top: 2px; opacity: .85; }
