/*
  STRONG CONTAINERS — CRM QUOTE WIDGET
  Brand: strongcontainers.com
  Light theme · Oswald headings · Inter body · Green (pricing) + Indigo (order) primary
*/

:root {
  --bg:          #F1F5F9;
  --surface:     #FFFFFF;
  --surface-2:   #F8FAFC;
  --border:      #E2E8F0;
  --accent:      #059669;
  --accent-dark: #047857;
  --accent-tint: rgba(5,150,105,0.10);
  --accent-2:      #4F46E5;
  --accent-2-dark: #4338CA;
  --accent-2-tint: rgba(79,70,229,0.10);
  --accent-2-border: rgba(79,70,229,0.35);
  --ink:         #0F172A;
  --muted:       #64748B;
  --ok:          #059669;
  --ok-tint:     rgba(5,150,105,0.10);
  --ok-border:   rgba(5,150,105,0.30);
  --warn:        #DC2626;
  --warn-tint:   rgba(220,38,38,0.08);
  --gold:        #B45309;
  --gold-tint:   rgba(180,83,9,0.10);
  --blue:        #2563EB;
  --blue-tint:   rgba(37,99,235,0.10);
  --orange:      #E07530;

  --font-head: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 13px; line-height: 1.5;
}

.qw { max-width: 1440px; margin: 0 auto; padding: 14px 16px 28px; }

/* MAIN — two panels side by side on wide screens, stacked on narrow ones */
.qw-main { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 920px) {
  .qw-main { grid-template-columns: 1fr; }
}
.qw-panel {
  min-width: 0; background: var(--surface); border-radius: 14px;
  border: 1.5px solid var(--border); padding: 20px;
}
.qw-panel-left { border-color: var(--ok-border); }
.qw-panel-right { position: sticky; top: 14px; border-color: var(--accent-2-border); }
@media (max-width: 920px) {
  .qw-panel-right { position: static; }
}
/* .qw-confirm-card already supplies its own card chrome elsewhere (e.g. the
   search overlay) — inside the right panel it would double up, so flatten it */
.qw-panel-right .qw-confirm-card { background: none; border: none; padding: 0; border-radius: 0; }

.qw-panel-head { margin-bottom: 14px; }
.qw-panel-head h2 {
  margin: 0 0 4px; font-family: var(--font-head); font-size: 18px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.qw-panel-sub { margin: 0; font-size: 11.5px; color: var(--muted); }

.qw-panel-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px; flex: none; font-size: 13px;
  background: var(--accent-2); color: #fff;
}
.qw-panel-icon--accent { background: var(--accent); border-radius: 7px; }
.qw-confirm-label--flush { margin: 0; }

.qw-badge {
  display: inline-block; font-family: var(--font-body); font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; background: var(--ok-tint); color: var(--ok);
  border: 1px solid var(--ok-border); padding: 2px 8px; border-radius: 20px;
}
/* HEADER */
.qw-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.qw-mark { width: 26px; height: 26px; flex: none; color: var(--accent); }
.qw-head h1 {
  margin: 0; font-family: var(--font-head); font-size: 17px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink);
}
.qw-sub { margin: 1px 0 0; font-size: 11px; color: var(--muted); }

/* BANNER */
.qw-note {
  background: var(--warn-tint); border: 1px solid var(--warn);
  color: var(--warn); border-radius: 6px; padding: 8px 12px;
  font-size: 12px; margin: 0 0 12px;
}

/* FIELDS */
.qw-field { margin-bottom: 12px; }
.qw-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.qw-field-row .qw-field { margin-bottom: 0; }
.qw-field-row--addr { grid-template-columns: 2fr 1fr 1fr; }

.qw-field label {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted); margin-bottom: 5px;
}
.qw-field input, .qw-field textarea {
  width: 100%; padding: 8px 10px; font-size: 13px;
  font-family: var(--font-body); color: var(--ink);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; transition: border-color 0.15s;
}
.qw-field textarea { resize: vertical; min-height: 60px; }
.qw-field input:focus, .qw-field textarea:focus {
  border-color: var(--accent); outline: 2px solid var(--accent-tint);
}
.qw-field input[readonly] { background: var(--bg); color: var(--muted); cursor: default; }
.qw-field input[readonly]:focus { border-color: var(--border); outline: none; }

.qw-field--error input, .qw-field--error textarea { border-color: var(--warn); }
.qw-field--error input:focus, .qw-field--error textarea:focus {
  border-color: var(--warn); outline: 2px solid var(--warn-tint);
}

.qw-hint { margin: 4px 2px 0; font-size: 11px; color: var(--muted); min-height: 14px; }
.qw-hint.qw-ok   { color: var(--ok); }
.qw-hint.qw-warn { color: var(--warn); }

.qw-optional { text-transform: none; font-weight: 400; letter-spacing: normal; }
.qw-required  { color: var(--accent); font-weight: 700; }
.qw-recommend { color: var(--warn); text-transform: none; font-weight: 600; letter-spacing: normal; }
.qw-admin-badge {
  font-size: 9px; font-weight: 700; letter-spacing: 0.06em;
  background: var(--accent); color: #fff;
  padding: 1px 5px; border-radius: 3px; text-transform: uppercase;
}

/* TOGGLE ROWS */
.qw-toggle-row {
  display: flex; align-items: center;
  border-radius: 8px; padding: 10px 12px; margin-bottom: 12px;
}
.qw-same-as-row { background: transparent; border: none; margin: 0 0 8px; padding: 6px 0; }

.qw-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; width: 100%; }
.qw-toggle input[type="checkbox"] { display: none; }
.qw-toggle-track {
  width: 36px; height: 20px; border-radius: 10px;
  background: var(--border); flex: none; position: relative; transition: background 0.2s;
}
.qw-toggle-track::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--muted); transition: left 0.2s, background 0.2s;
}
.qw-toggle input:checked ~ .qw-toggle-track { background: var(--accent); }
.qw-toggle input:checked ~ .qw-toggle-track::after { left: 19px; background: #fff; }
.qw-toggle-label { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.qw-toggle-sub { display: block; font-size: 10.5px; font-weight: 400; color: var(--muted); margin-top: 1px; }
.qw-discount-badge {
  display: inline-block; margin-left: 6px; font-size: 9px; font-weight: 700;
  background: var(--surface-2); color: var(--muted); padding: 1px 6px; border-radius: 10px; vertical-align: middle;
}

/* PRICE TABLE */
.qw-table {
  width: 100%; border-collapse: collapse;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; margin-bottom: 6px;
}
.qw-table th {
  text-align: left; font-size: 9px; font-weight: 700;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); padding: 8px 10px;
  border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.qw-table th:nth-child(2),
.qw-table th:nth-child(4),
.qw-table th:nth-child(5) { text-align: right; }
.qw-table th:last-child { width: 72px; }
.qw-table td {
  padding: 8px 10px; border-bottom: 1px solid var(--border);
  font-size: 12.5px; vertical-align: middle; color: var(--ink);
}
.qw-table tbody tr:last-child td { border-bottom: none; }
.qw-table tbody tr:hover { background: var(--surface-2); }
.qw-table td.qw-price, .qw-table td.qw-total-cell {
  text-align: right;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: nowrap;
}
.qw-table td.qw-total-cell { font-weight: 700; color: var(--accent); }
.qw-table td.qw-from       { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.qw-table td.qw-unavail    { color: var(--muted); font-style: italic; text-align: right; }
.qw-table td.qw-action     { text-align: right; }
.qw-price-inner { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.qw-price-orig  { font-size: 10px; color: var(--muted); text-decoration: line-through; }
.qw-fine-print  { font-size: 10.5px; color: var(--muted); margin: 2px 0 12px; font-style: italic; }

/* SEARCH ROW + AUTO LOCATION BADGE */
.qw-search-row-wrap { grid-template-columns: 1fr auto; align-items: end; }
.qw-autoloc {
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
  background: var(--ok-tint); border: 1px solid var(--ok-border); color: var(--ok);
  border-radius: 6px; padding: 8px 12px; font-size: 11.5px; height: fit-content;
}
.qw-autoloc-dot { font-weight: 700; }
.qw-autoloc strong { color: var(--ink); }
@media (max-width: 560px) {
  .qw-search-row-wrap { grid-template-columns: 1fr; }
}

/* BEST-BOTH BANNER */
.qw-bestboth-banner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--ok-tint); border: 1px solid var(--ok-border);
  border-radius: 8px; padding: 10px 12px; margin-bottom: 12px;
}
.qw-bestboth-icon { color: var(--ok); font-size: 14px; flex: none; }
.qw-bestboth-text { font-size: 12px; color: var(--ink); flex: 1; min-width: 160px; }
.qw-bestboth-chip {
  background: var(--ok); color: #fff; font-size: 10.5px; font-weight: 700;
  padding: 4px 10px; border-radius: 20px; white-space: nowrap;
}

/* DEPOT COMPARISON */
.qw-depot-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
@media (max-width: 560px) {
  .qw-depot-compare { grid-template-columns: 1fr; }
}
.qw-depot-card {
  border-radius: 8px; padding: 12px; border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.qw-depot-card:hover { border-color: var(--ok-border); }
.qw-depot-card--alt:hover { border-color: var(--accent-2-border); }
/* "active" = currently driving the price grid — independent of which card is
   economically primary/alt, since clicking either can make it active. The
   alternate card uses the secondary (indigo) accent when it's the active
   one, so it reads as a distinct choice rather than looking "primary". */
.qw-depot-card--active { border-color: var(--ok-border); background: var(--ok-tint); }
.qw-depot-card--alt.qw-depot-card--active { border-color: var(--accent-2-border); background: var(--accent-2-tint); }
.qw-depot-card-tag {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 8px; flex-wrap: wrap;
}
.qw-depot-card--primary .qw-depot-card-tag { color: var(--ok); }
.qw-depot-card--alt .qw-depot-card-tag { color: var(--muted); }
.qw-depot-card-active-pill {
  background: var(--ok); color: #fff; padding: 1px 7px; border-radius: 10px; font-size: 9px;
}
.qw-depot-card--alt.qw-depot-card--active .qw-depot-card-active-pill { background: var(--accent-2); }
.qw-depot-card-note {
  font-size: 11px; color: var(--muted); background: var(--surface-2); border-radius: 6px;
  padding: 7px 9px; margin-bottom: 10px; line-height: 1.5;
}
.qw-depot-card--active .qw-depot-card-note { background: rgba(5,150,105,0.08); color: var(--ink); }
.qw-depot-card--alt.qw-depot-card--active .qw-depot-card-note { background: var(--accent-2-tint); }
.qw-depot-card-name {
  display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px;
  color: var(--ink); margin-bottom: 2px;
}
.qw-depot-card-pin {
  width: 24px; height: 24px; border-radius: 6px; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 12px;
  background: var(--surface-2); color: var(--muted);
}
.qw-depot-card--active .qw-depot-card-pin { background: var(--ok); color: #fff; }
.qw-depot-card--alt.qw-depot-card--active .qw-depot-card-pin { background: var(--accent-2); }
.qw-depot-card-miles { font-size: 11px; color: var(--muted); margin: 0 0 10px 32px; }
.qw-depot-card-miles strong { font-size: 15px; font-weight: 800; color: var(--ink); }
.qw-depot-card--active .qw-depot-card-miles strong { color: var(--ok); }
.qw-depot-card--alt.qw-depot-card--active .qw-depot-card-miles strong { color: var(--accent-2); }
.qw-depot-card-slots-label {
  font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); margin-bottom: 6px;
}
.qw-slot-chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.qw-slot-chip {
  font-size: 10.5px; color: var(--ink); background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 6px; padding: 5px 8px; white-space: nowrap;
}
.qw-depot-card--active .qw-slot-chip { background: var(--surface); border-color: var(--ok-border); }
.qw-depot-card--alt.qw-depot-card--active .qw-slot-chip { border-color: var(--accent-2-border); }
.qw-depot-card-foot {
  display: flex; justify-content: space-between; gap: 8px; font-size: 10.5px; color: var(--muted);
  border-top: 1px dashed var(--border); padding-top: 8px; flex-wrap: wrap;
}

/* PRICE GRID */
.qw-price-grid-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  flex-wrap: wrap; margin: 14px 0 8px; border-top: 1px solid var(--border); padding-top: 12px;
}
.qw-section-title--flush { margin: 0; border-top: none; padding-top: 0; }
.qw-dispatch-note { font-size: 10.5px; color: var(--accent); font-weight: 600; white-space: nowrap; }

.qw-price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 6px; }
@media (max-width: 920px) { .qw-price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .qw-price-grid { grid-template-columns: 1fr; } }

.qw-price-card {
  text-align: left; cursor: pointer; width: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px; font-family: var(--font-body); transition: border-color 0.15s, background 0.15s;
}
.qw-price-card:hover { border-color: var(--accent); }
.qw-price-card--picked { border-color: var(--ok); background: var(--ok-tint); }
.qw-price-card-top {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; gap: 6px;
}
.qw-price-card-opt { font-size: 10px; font-weight: 700; color: var(--muted); }
.qw-price-card-tag {
  font-size: 9.5px; font-weight: 700; padding: 1px 7px; border-radius: 20px;
  background: var(--accent-tint); color: var(--accent); white-space: nowrap;
}
.qw-price-card--picked .qw-price-card-tag { background: var(--ok); color: #fff; }
.qw-price-card-label { font-weight: 700; font-size: 13px; color: var(--ink); margin: 0 0 1px; }
.qw-price-card-sub { font-size: 10px; color: var(--muted); margin: 0 0 10px; line-height: 1.4; min-height: 26px; }
.qw-price-card-rate-label {
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted);
}
.qw-price-card-rate {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 19px; font-weight: 700; color: var(--ok); margin: 2px 0 6px;
}
.qw-price-card-foot { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); }

/* SELECTED ORDER SUMMARY (right panel) — also the hover/click trigger that
   reveals the quote-options toggle group (see .qw-order-options below) */
.qw-order-options { margin-bottom: 14px; }
.qw-selected-summary {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 34px 12px 12px; margin: 0; flex-wrap: wrap; position: relative;
  cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.qw-selected-summary:hover { border-color: var(--accent-2-border); background: var(--accent-2-tint); }
.qw-eyebrow {
  margin: 0 0 2px; font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted);
}
.qw-selected-label { margin: 0; font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--ink); }
.qw-selected-sub { margin: 2px 0 0; font-size: 10.5px; color: var(--muted); }
.qw-selected-total { text-align: right; }
.qw-selected-price { margin: 0; font-size: 22px; font-weight: 700; color: var(--ok); }
.qw-empty-state {
  font-size: 12px; color: var(--muted); border: 1px dashed var(--border); border-radius: 8px;
  padding: 14px 34px 14px 14px; text-align: center; margin: 0; position: relative;
  cursor: pointer; transition: border-color 0.15s, color 0.15s;
}
.qw-empty-state:hover { border-color: var(--accent-2-border); color: var(--ink); }

.qw-order-options-chevron {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 20px; transition: transform 0.15s, color 0.15s;
}
.qw-order-options--expanded .qw-order-options-chevron { transform: translateY(-50%) rotate(180deg); color: var(--accent-2); }

/* Toggle group — Customer Pickup, Veteran, Price match, Tax exempt,
   Additional discount, and the breakdown rows — hidden until the
   summary/empty-state trigger above is clicked. One flat white list: every
   direct child is a full-width row separated by a hairline divider, no
   per-row backgrounds and no gaps between them. */
.qw-toggle-group {
  display: none; flex-direction: column;
  border: 1px solid var(--accent-2-border); background: var(--surface);
  border-radius: 8px; margin-top: 8px; overflow: hidden;
}
.qw-order-options--expanded .qw-toggle-group { display: flex; }
.qw-toggle-group > * {
  margin: 0; padding: 10px 12px; border-bottom: 1px solid var(--border);
}
.qw-toggle-group > *:last-child { border-bottom: none; }
.qw-toggle-group .qw-toggle-row { border-radius: 0; }
/* The breakdown rows keep their own internal dividers between Container
   price / Delivery fee / Total — drop the outer box styling so it reads as
   a continuation of the same list instead of a nested card. */
.qw-toggle-group .qw-confirm-rows { border: none; border-radius: 0; overflow: visible; padding: 0; }

/* LOCKED / AUTO-FILLED FIELD TAGS */
.qw-locked-tag, .qw-autofilled-tag {
  text-transform: none; font-weight: 400; letter-spacing: normal; color: var(--blue);
}

/* DELIVERY SLOT SELECTION (right panel) */
.qw-slot-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.qw-slot-helptext { font-size: 11px; color: var(--muted); margin: 2px 0 8px; }
.qw-slot-option {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: 7px;
  padding: 10px 12px; margin-bottom: 8px; cursor: pointer; text-align: left;
  font-family: var(--font-body); transition: border-color 0.15s, background 0.15s;
}
.qw-slot-option:hover { border-color: var(--accent); }
.qw-slot-option--selected { border-color: var(--accent-2); background: var(--accent-2-tint); }
.qw-slot-option input[type="radio"] { flex: none; accent-color: var(--accent-2); width: 15px; height: 15px; }
.qw-slot-option-label { flex: 1; font-size: 12px; color: var(--ink); font-weight: 600; }
.qw-slot-option-tag {
  font-size: 9.5px; font-weight: 700; padding: 2px 8px; border-radius: 20px; white-space: nowrap;
  background: var(--ok-tint); color: var(--ok); border: 1px solid var(--ok-border);
}
.qw-slot-option-tag--later { background: var(--surface-2); color: var(--muted); border-color: var(--border); }

/* SELECT / SEARCH BUTTONS */
.qw-btn-select {
  background: transparent; color: var(--accent); border: 1px solid var(--accent);
  border-radius: 5px; padding: 4px 10px; font-size: 11.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap; font-family: var(--font-body); transition: background 0.15s;
}
.qw-btn-select:hover:not(:disabled) { background: var(--accent-tint); }
.qw-btn-select:disabled { opacity: 0.3; cursor: not-allowed; }
.qw-btn-select--order { color: var(--ink); border-color: var(--border); }
.qw-btn-select--order:hover:not(:disabled) { background: var(--surface-2); }

/* CONFIRM CARD */
.qw-confirm-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px;
}
.qw-confirm-header {
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
  margin-bottom: 14px; flex-wrap: wrap;
}
.qw-confirm-label {
  font-size: 9px; font-weight: 700; font-family: var(--font-head);
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 3px;
}
.qw-confirm-header .qw-confirm-label {
  font-size: 15px; letter-spacing: 0.02em; color: var(--ink); flex: 1;
}
.qw-confirm-product {
  font-family: var(--font-head); font-size: 16px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 14px; color: var(--ink);
}

/* DISCOUNT INPUT PREFIX — label and input share one line */
.qw-field--inline-label {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.qw-field--inline-label label { margin-bottom: 0; }
.qw-prefix-wrap { position: relative; }
.qw-prefix {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 13px; pointer-events: none;
}
.qw-prefix-wrap input { padding-left: 22px; max-width: 120px; }

/* BREAKDOWN ROWS */
.qw-confirm-rows { border: 1px solid var(--border); border-radius: 7px; overflow: hidden; margin-bottom: 10px; }
.qw-cr {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 9px 12px; border-bottom: 1px solid var(--border);
  font-size: 12.5px; gap: 12px;
}
.qw-cr:last-child { border-bottom: none; }
.qw-cr-label { color: var(--muted); }
.qw-cr-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 600; white-space: nowrap; color: var(--ink);
}
.qw-cr--total { background: var(--surface-2); }
.qw-cr--total .qw-cr-label { font-weight: 700; color: var(--ink); font-size: 13px; }
.qw-cr--total .qw-cr-value { font-size: 16px; color: var(--accent); font-weight: 700; }
.qw-cr--discount .qw-cr-value { color: var(--gold); }
.qw-cr--tax .qw-cr-value { color: var(--muted); }
.qw-cr--pickup .qw-cr-value { color: var(--ok); }

.qw-depot-capture {
  font-size: 11px; color: var(--muted); border: 1px dashed var(--border);
  border-radius: 5px; padding: 6px 10px; margin-bottom: 14px;
}
.qw-depot-capture strong { color: var(--accent); }

/* SECTION TITLES */
.qw-section-title {
  font-size: 9px; font-weight: 700; font-family: var(--font-head);
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted);
  margin: 14px 0 8px; border-top: 1px solid var(--border); padding-top: 12px;
}
.qw-billing-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.qw-billing-header .qw-section-title { flex: 1; margin-bottom: 0; }
.qw-same-as-row .qw-toggle-label { font-size: 11.5px; color: var(--muted); font-weight: 500; }

/* Shared label above a field-row (e.g. Customer name over First/Last) */
.qw-group-label-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 5px; flex-wrap: wrap;
}
.qw-group-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted);
}
.qw-find-existing-link {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.03em; color: var(--orange); text-decoration: none;
}
.qw-find-existing-link:hover { text-decoration: underline; }

/* Two-option segmented choice (Customer readiness) and the wrapping
   multi/single-select grids used in the delivery readiness modal. */
.qw-choice-pair { display: flex; gap: 8px; }
.qw-choice-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.qw-choice-btn {
  flex: 1; padding: 10px 12px; border-radius: 7px; border: 1px solid var(--border);
  background: var(--surface); color: var(--ink); font-family: var(--font-body);
  font-size: 12px; font-weight: 600; text-align: center; cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.qw-choice-grid .qw-choice-btn { flex: 0 1 auto; }
.qw-choice-btn:hover { border-color: var(--accent-2-border); }
.qw-choice-btn--active {
  background: var(--accent-2); border-color: var(--accent-2); color: #fff;
}
.qw-choice-btn--active.qw-choice-btn--ok { background: var(--accent); border-color: var(--accent); }
.qw-choice-check { display: none; margin-left: 3px; }
.qw-choice-btn--active .qw-choice-check { display: inline; }

/* ACTION BUTTONS */
.qw-action-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.qw-action-btn {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 11px 12px; margin-bottom: 8px;
  cursor: pointer; text-align: left; font-family: var(--font-body);
  transition: border-color 0.15s, background 0.15s;
}
.qw-action-btn:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-tint); }
.qw-action-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.qw-action-btn strong  { display: block; font-size: 13px; color: var(--ink); margin-bottom: 1px; }
.qw-action-sub         { font-size: 11px; color: var(--muted); }
.qw-action-icon        { font-size: 18px; flex: none; }
.qw-action-btn--half {
  margin-bottom: 0; flex-direction: column; align-items: center;
  text-align: center; gap: 5px; padding: 12px 8px;
}
.qw-action-btn--half strong    { font-size: 12px; }
.qw-action-btn--half .qw-action-sub { font-size: 10px; }
.qw-action-btn--primary { background: var(--accent); border-color: var(--accent); }
.qw-action-btn--primary:hover:not(:disabled) { background: var(--accent-dark); border-color: var(--accent-dark); }
.qw-action-btn--primary strong       { color: #fff; }
.qw-action-btn--primary .qw-action-sub { color: rgba(255,255,255,.7); }

/* GENERIC BUTTONS */
.qw-btn {
  display: block; width: 100%; padding: 8px 16px; border-radius: 6px;
  font-size: 12.5px; font-family: var(--font-body); font-weight: 600;
  cursor: pointer; border: none; margin-top: 6px;
}
.qw-btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); padding: 8px; }
.qw-btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.qw-btn-primary {
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  text-align: center; text-decoration: none;
}
.qw-btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* SEARCH */
.qw-search-row { display: flex; gap: 10px; margin-bottom: 12px; }
.qw-search-row input {
  flex: 1; padding: 8px 10px; font-size: 13px; font-family: var(--font-body);
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px; color: var(--ink);
}
.qw-search-row input:focus { border-color: var(--accent); outline: 2px solid var(--accent-tint); }
.qw-btn-search { padding: 8px 14px; flex: none; }

.qw-result-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 7px; padding: 10px 12px; margin-bottom: 8px;
  transition: border-color 0.15s;
}
.qw-result-card:hover { border-color: var(--accent); }
.qw-result-card--clickable {
  display: block; width: 100%; text-align: left; cursor: pointer;
  font-family: var(--font-body);
}
.qw-result-info    { margin-bottom: 0; }
.qw-result-info strong { display: block; font-size: 13px; color: var(--ink); }
.qw-result-meta    { font-size: 11px; color: var(--muted); margin-top: 1px; }
.qw-result-actions { display: flex; gap: 6px; }
.qw-result-type {
  display: inline-block; font-size: 9px; font-weight: 700;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--accent-tint); color: var(--accent);
  padding: 1px 6px; border-radius: 3px; margin-right: 5px;
}

/* LOADING */
.qw-loading-card {
  text-align: center; padding: 48px 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
}
.qw-spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--accent);
  margin: 0 auto 16px; animation: qw-spin 0.75s linear infinite;
}
@keyframes qw-spin { to { transform: rotate(360deg); } }
.qw-loading-title {
  font-family: var(--font-head); font-size: 16px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); margin: 0 0 6px;
}
.qw-loading-sub { font-size: 12px; color: var(--muted); margin: 0; }

/* SUCCESS */
.qw-success-card {
  background: var(--ok-tint); border: 1px solid var(--ok-border);
  border-radius: 10px; padding: 20px 16px; text-align: center;
}
.qw-success-icon {
  width: 40px; height: 40px; border-radius: 50%; background: var(--ok); color: #fff;
  font-size: 20px; line-height: 40px; margin: 0 auto 10px;
}
.qw-success-title {
  font-family: var(--font-head); font-size: 16px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 12px; color: var(--ok);
}
.qw-success-detail {
  background: var(--surface); border: 1px solid var(--ok-border);
  border-radius: 7px; padding: 10px 14px; margin-bottom: 14px;
  text-align: left; font-size: 12px; line-height: 1.9; color: var(--muted);
}
.qw-success-detail strong { color: var(--ink); }

/* EXISTING CONTACT MODAL */
.qw-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; z-index: 1000;
}
/* [hidden] beats the class's own "display: flex" above (author-stylesheet
   rules override the browser's default [hidden]{display:none} regardless of
   specificity), so it has to be restated explicitly here. */
.qw-modal-overlay[hidden] { display: none; }
.qw-modal {
  width: 100%; max-width: 380px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; padding: 18px 18px 8px;
}
.qw-modal--wide { max-width: 520px; max-height: 85vh; overflow-y: auto; }
.qw-modal-title {
  font-family: var(--font-head); font-size: 15px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); margin: 0 0 10px;
}
.qw-modal-title--error { color: var(--warn); }
.qw-modal-body { font-size: 13px; line-height: 1.6; color: var(--ink); margin: 0 0 6px; }
.qw-modal-actions { margin-top: 10px; }
.qw-modal-actions .qw-action-btn { margin-bottom: 8px; }

/* TABLE FILTER TOGGLE */
.qw-filter-row {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
  margin-bottom: 10px;
}
.qw-filter-btn {
  flex: 1; padding: 7px 12px;
  font-size: 11.5px; font-weight: 600; font-family: var(--font-body);
  background: var(--surface); color: var(--muted);
  border: none; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.qw-filter-btn + .qw-filter-btn { border-left: 1px solid var(--border); }
.qw-filter-btn--active { background: var(--accent); color: #fff; }
.qw-filter-btn:not(.qw-filter-btn--active):hover { background: var(--surface-2); color: var(--ink); }

/* CONTAINER TYPE FILTER PILLS */
.qw-cpill-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.qw-cpill {
  padding: 4px 11px; font-size: 11px; font-weight: 600;
  font-family: var(--font-body);
  background: var(--surface); color: var(--muted);
  border: 1px solid var(--border); border-radius: 20px;
  cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.qw-cpill:hover { background: var(--surface-2); color: var(--ink); border-color: var(--muted); }
.qw-cpill--active { background: var(--accent); color: #fff; border-color: var(--accent); }
