/* Milford Photo price-first sell widget (redesign prototype). Self-contained: does not
 * load or change the live widget's styles.css. */

:root {
  --mp-red: #d52127;
  --mp-red-dark: #ad161b;
  --ink: #171719;
  --ink-soft: #30333a;
  --muted: #676c76;
  --line: #dde1e8;
  --soft: #f5f7fa;
  --surface: #ffffff;
  --green: #147a50;
  --green-soft: #e8f5ee;
  --amber: #a35b00;
  --amber-soft: #fff6e6;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(18, 24, 34, 0.08);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--surface); }
body.modal-open { overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
img { max-width: 100%; }

.sx-app { padding: 20px 16px 28px; }
.shell { max-width: 1120px; margin: 0 auto; }

/* ---------- Header and progress ---------- */
.sx-eyebrow { margin: 0 0 6px; color: var(--mp-red); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.sx-head h1 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 36px); line-height: 1.1; letter-spacing: -0.02em; }
.sx-intro { margin: 0 0 18px; max-width: 680px; color: var(--ink-soft); font-size: 16px; line-height: 1.5; }
.sx-progress { display: flex; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.sx-progress li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 600; }
.sx-progress li span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--soft); font-size: 12px; font-weight: 800; }
.sx-progress li b { font-weight: inherit; }
.sx-progress li.is-active { border-color: var(--ink); color: var(--ink); }
.sx-progress li.is-active span { background: var(--ink); color: #fff; }
.sx-progress li.is-done { color: var(--green); }
.sx-progress li.is-done span { background: var(--green); color: #fff; }

/* ---------- Layout ---------- */
.sx-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.sx-main { display: grid; gap: 16px; min-width: 0; }
.sx-bag { position: sticky; top: 16px; }

.sx-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.sx-h2 { margin: 0 0 12px; font-size: 20px; }
.sx-fine { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.sx-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--amber-soft); color: #5c3600; font-size: 14px; line-height: 1.4; }
.sx-note.is-error { background: #fdecec; color: #8a1116; }

/* ---------- Buttons ---------- */
.sx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border: 1px solid transparent; border-radius: 8px; font-weight: 700; text-decoration: none; cursor: pointer; }
.sx-btn-primary { background: var(--mp-red); color: #fff; }
.sx-btn-primary:hover:not(:disabled) { background: var(--mp-red-dark); }
.sx-btn-dark { background: var(--ink); color: #fff; }
.sx-btn-quiet { border-color: var(--line); background: var(--surface); color: var(--ink); }
.sx-btn:disabled, .sx-btn.is-disabled { opacity: 0.55; cursor: not-allowed; }
.sx-btn-block { width: 100%; margin-top: 14px; }
.sx-link { padding: 0; border: 0; background: none; color: var(--mp-red-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.sx-link:hover { color: var(--mp-red); }
:focus-visible { outline: 3px solid rgba(213, 33, 39, 0.35); outline-offset: 2px; }

/* ---------- Search ---------- */
.sx-label { display: block; margin-bottom: 10px; font-size: 20px; font-weight: 800; }
.sx-search { position: relative; }
.sx-search input { width: 100%; height: 58px; padding: 0 18px 0 48px; border: 2px solid var(--ink); border-radius: 10px; font-size: 18px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%23676c76' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='9.5' cy='9.5' r='6.5'/%3E%3Cpath d='m15 15 5 5'/%3E%3C/svg%3E") no-repeat 16px center; }
.sx-search input:focus { outline: none; border-color: var(--mp-red); box-shadow: 0 0 0 4px rgba(213, 33, 39, 0.12); }
.sx-hint { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.sx-results { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; max-height: 420px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 18px 40px rgba(18, 24, 34, 0.16); }
.sx-result { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--soft); background: none; text-align: left; cursor: pointer; }
.sx-result:hover, .sx-result.is-active { background: var(--soft); }
.sx-result span { display: grid; gap: 2px; }
.sx-result small { color: var(--muted); }
.sx-result-thumb { flex: none; width: 48px; height: 48px; border-radius: 6px; object-fit: contain; background: #fff; }
.sx-result-manual { color: var(--mp-red-dark); }
.sx-empty { display: grid; gap: 6px; justify-items: start; padding: 16px; font-size: 15px; }
.sx-empty span { color: var(--muted); }

/* Brand-logo fallback when a product photo is missing (markup from the shared core). */
.is-brand-logo { object-fit: contain; padding: 8px; background: var(--soft); }
.is-text-logo { display: grid; place-items: center; color: var(--muted); font-weight: 800; }
.is-placeholder { display: block; background: var(--soft); }

/* ---------- Selected gear ---------- */
.sx-pick-head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.sx-pick-head h2 { margin: 0 0 4px; font-size: 22px; line-height: 1.2; }
.sx-pick-image { flex: none; width: 120px; height: 120px; border: 1px solid var(--line); border-radius: 10px; object-fit: contain; background: #fff; }
.sx-cond-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 6px 0 10px; }
.sx-cond-head h3 { margin: 0; font-size: 16px; }
.sx-conds { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.sx-cond { display: grid; align-content: start; gap: 4px; min-height: 92px; padding: 12px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); text-align: left; cursor: pointer; }
.sx-cond:hover:not(:disabled) { border-color: var(--ink-soft); }
.sx-cond.is-selected { border-color: var(--mp-red); background: #fff5f5; box-shadow: 0 0 0 3px rgba(213, 33, 39, 0.12); }
.sx-cond:disabled { opacity: 0.55; cursor: not-allowed; }
.sx-cond-name { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.sx-cond-price { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.sx-cond-price.is-loading { color: var(--muted); }
.sx-cond-price.is-text { font-size: 14px; font-weight: 700; color: var(--amber); }
.sx-cond-credit { color: var(--green); font-size: 12px; font-weight: 600; }
.sx-conds.is-compact .sx-cond { min-height: 0; padding: 12px 10px; }
.sx-mount { max-width: 360px; margin-bottom: 12px; }

.sx-kit { display: grid; gap: 8px; margin-top: 16px; padding: 12px 14px; border-radius: 8px; background: var(--soft); font-size: 14px; line-height: 1.4; }
.sx-kit strong { font-weight: 600; }
.sx-kit small { color: var(--muted); }
.sx-check { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.sx-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--mp-red); }
.sx-pick-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.sx-glass { display: grid; gap: 10px; margin: 4px 0 18px; padding: 14px; border-radius: 8px; background: var(--soft); }
.sx-glass h3 { margin: 0; font-size: 16px; }
.sx-glass p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.45; }
.sx-glass-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sx-glass-choices .sx-cond { min-height: 0; padding: 12px; }
.sx-glass-choices .sx-cond-name { font-size: 14px; }
.sx-glass-issues { display: grid; gap: 8px; font-size: 14px; }
.sx-glass-issues small { color: var(--muted); }

/* ---------- Manual entry and forms ---------- */
.sx-manual-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.sx-manual-head h2 { margin: 0 0 4px; font-size: 20px; }
.sx-manual-head p { margin: 0; color: var(--muted); font-size: 14px; }
.sx-grid-2, .sx-grid-3 { display: grid; gap: 12px; }
.sx-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sx-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sx-field { display: grid; gap: 6px; margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.sx-field input, .sx-field select, .sx-input { width: 100%; height: 46px; padding: 0 12px; border: 1px solid #c9ced8; border-radius: 8px; background: var(--surface); font-size: 16px; font-weight: 400; color: var(--ink); }
.sx-field input:focus, .sx-field select:focus, .sx-input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23, 23, 25, 0.08); }
.sx-confirm { margin: 6px 0 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); font-size: 14px; line-height: 1.4; }
.sx-form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }

/* ---------- Payout and delivery choices ---------- */
.sx-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sx-choice { position: relative; display: grid; align-content: start; gap: 6px; padding: 16px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); text-align: left; cursor: pointer; }
.sx-choice:hover { border-color: var(--ink-soft); }
.sx-choice.is-selected { border-color: var(--mp-red); background: #fff5f5; box-shadow: 0 0 0 3px rgba(213, 33, 39, 0.12); }
.sx-choice-title { font-size: 16px; font-weight: 800; }
.sx-choice strong { font-size: 26px; letter-spacing: -0.02em; }
.sx-choice.is-credit strong { color: var(--green); }
.sx-choice small { color: var(--muted); font-size: 14px; line-height: 1.4; }
.sx-badge { position: absolute; top: 12px; right: 12px; padding: 3px 8px; border-radius: 999px; background: var(--green); color: #fff; font-size: 12px; font-weight: 800; }

/* ---------- List ("bag") ---------- */
.sx-bag-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.sx-bag-card h2 { margin: 0; font-size: 18px; }
.sx-bag-card.is-empty p { margin: 8px 0 12px; color: var(--muted); font-size: 14px; }
.sx-perks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.sx-perks li { padding-left: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23147a50' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 8.5 3.2 3L13 4.5'/%3E%3C/svg%3E") no-repeat 0 2px; }
.sx-bag-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.sx-bag-head span { color: var(--muted); font-size: 14px; }
.sx-bag-list { display: grid; margin: 0; padding: 0; list-style: none; }
.sx-bag-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--soft); }
.sx-thumb { width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 8px; object-fit: contain; background: #fff; }
.sx-bag-copy { display: grid; gap: 2px; min-width: 0; font-size: 14px; }
.sx-bag-copy strong { overflow-wrap: anywhere; }
.sx-bag-copy small { color: var(--muted); }
.sx-bag-note { color: var(--amber) !important; }
.sx-bag-side { display: grid; justify-items: end; gap: 4px; }
.sx-bag-price { font-weight: 800; white-space: nowrap; }
.sx-bag-tools { display: flex; gap: 10px; font-size: 13px; }
.sx-totals { display: grid; gap: 6px; margin-top: 8px; padding-top: 12px; border-top: 2px solid var(--ink); }
.sx-totals small { color: var(--muted); font-size: 13px; }
.sx-total-row { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 8px; margin: 0 -8px; border-radius: 6px; font-size: 15px; }
.sx-total-row strong { font-size: 22px; letter-spacing: -0.01em; }
.sx-total-row.is-credit strong { color: var(--green); }
.sx-total-row em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--green); }
.sx-total-row.is-chosen { background: #fff5f5; outline: 1.5px solid var(--mp-red); }
.sx-total-loading { margin: 6px 0; color: var(--muted); }
.sx-ship { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--soft); font-size: 14px; line-height: 1.4; }
.sx-ship p { margin: 0 0 8px; }
.sx-ship.is-free { background: var(--green-soft); color: #0d5236; }
.sx-meter { height: 6px; border-radius: 999px; background: #e3e7ee; overflow: hidden; }
.sx-meter span { display: block; height: 100%; background: var(--green); }
.sx-bag-foot { margin: 10px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.sx-bag-card > .sx-link { display: block; margin-top: 12px; }

/* ---------- Done ---------- */
.sx-done h2 { margin: 0 0 6px; font-size: 26px; }
.sx-done > p { margin: 0; color: var(--ink-soft); }
.sx-done-ref { display: inline-block; margin: 0 0 10px !important; padding: 4px 10px; border-radius: 999px; background: var(--soft); font-weight: 800; letter-spacing: 0.02em; }
.sx-roadmap { display: grid; gap: 0; margin: 20px 0 8px; padding: 0; list-style: none; }
.sx-roadmap li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 0 0 18px; position: relative; }
.sx-roadmap li:not(:last-child)::before { content: ""; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: var(--line); }
.sx-roadmap li > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--soft); color: var(--muted); font-weight: 800; }
.sx-roadmap li.is-done > span { background: var(--green); color: #fff; }
.sx-roadmap li.is-current > span { background: var(--mp-red); color: #fff; }
.sx-roadmap h3 { margin: 6px 0 4px; font-size: 17px; }
.sx-roadmap p { margin: 0; color: var(--ink-soft); line-height: 1.5; }
.sx-done-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* ---------- Status and modal ---------- */
.sx-status { position: fixed; z-index: 50; left: 50%; bottom: 20px; transform: translateX(-50%); max-width: min(520px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 15px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2); }
.sx-status.is-error { background: #8a1116; }
.sx-status.is-success { background: var(--green); }
.sx-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: start center; padding: 40px 16px; background: rgba(15, 17, 21, 0.5); overflow-y: auto; }
.sx-modal-card { position: relative; width: min(560px, 100%); padding: 24px; border-radius: 12px; background: var(--surface); }
.sx-modal-card h2 { margin: 0 0 8px; }
.sx-modal-card > p { margin: 0 0 12px; color: var(--ink-soft); }
.sx-modal-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--soft); font-size: 22px; cursor: pointer; }
.sx-guide-list { margin: 0; }
.sx-guide-list dt { margin-top: 12px; font-weight: 800; }
.sx-guide-list dd { margin: 2px 0 0; color: var(--ink-soft); line-height: 1.45; }

/* ---------- Phone and tablet ---------- */
@media (max-width: 900px) {
  .sx-layout { grid-template-columns: 1fr; }
  .sx-bag { position: static; }
  .sx-conds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .sx-app { padding: 16px 12px 24px; }
  .sx-progress { gap: 4px; }
  .sx-progress li { padding: 6px; font-size: 13px; white-space: nowrap; }
  .sx-progress li:not(.is-active) b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sx-progress li.is-active { padding-right: 12px; }
  .sx-card { padding: 16px; }
  .sx-pick-head { align-items: flex-start; }
  .sx-pick-image { width: 84px; height: 84px; }
  .sx-pick-head h2 { font-size: 19px; }
  .sx-conds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-conds .sx-cond:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .sx-choices, .sx-grid-2 { grid-template-columns: 1fr; }
  .sx-grid-3 { grid-template-columns: 1fr 80px 110px; }
  .sx-manual .sx-grid-3 { grid-template-columns: 1fr; }
  .sx-cond-head { flex-direction: column; gap: 4px; }
  .sx-pick-actions .sx-btn, .sx-form-actions .sx-btn-primary { flex: 1; }
  .sx-search input { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

/* Embedded on milfordphoto.com/sell: the page supplies the headline and intro, so the
 * widget shows only its step indicator. Opened directly, the widget keeps its own header. */
.is-embedded .sx-head .sx-eyebrow,
.is-embedded .sx-head h1,
.is-embedded .sx-head .sx-intro { display: none; }
.is-embedded .sx-app { padding-top: 8px; }

/* No total yet: every item is priced by email. */
.sx-total-row strong.is-text { font-size: 15px; color: var(--amber); }
.sx-choice-pending { color: var(--amber); font-size: 15px; font-weight: 700; }

/* Embedded: transparent so it sits on the page's own background, full width so its edges
 * line up with "Start your quote" and the sections below. */
html.is-embedded, html.is-embedded body { background: transparent; }
.is-embedded .sx-app { padding: 4px 0 8px; }
.is-embedded .shell { max-width: none; }
.sx-list-card { padding: 18px 20px; }
.sx-list-card .sx-bag-item { grid-template-columns: 56px minmax(0, 1fr) auto; }
.sx-list-card .sx-thumb { width: 56px; height: 56px; }
/* Inside the page's white box: flat inner cards (thin borders, no shadows). */
.is-embedded .sx-card, .is-embedded .sx-bag-card { box-shadow: none; }
/* In the page frame the bottom edge moves with the content; show messages at the top instead. */
.is-embedded .sx-status { top: 12px; bottom: auto; }
.sx-list-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 2px solid var(--ink); font-size: 15px; }
.sx-list-foot b { color: var(--green); }
/* Empty slots (nothing picked yet, empty list) take no space. */
.sx-main > div:empty { display: none; }
/* Empty state: search box and list box share one height. */
.sx-layout.is-even { align-items: stretch; }
.sx-layout.is-even .sx-search-card,
.sx-layout.is-even .sx-bag-card { box-sizing: border-box; height: 100%; }

/* "What are you selling?" matches the page's section headings ("How selling works"). */
.sx-label { margin-bottom: 14px; color: #24303a; font-size: 31px; font-weight: 870; letter-spacing: -0.025em; line-height: 1.12; }
@media (max-width: 560px) { .sx-label { font-size: 26px; } }

/* Same type as the page's section headings ("How selling works"): font, weight, size, spacing, color. */
.sx-label,
.sx-bag-card.is-empty h2 {
  color: #24303a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 31px;
  font-weight: 870;
  letter-spacing: -0.025em;
  line-height: 1.12;
}
.sx-bag-card.is-empty h2 { margin: 0 0 8px; }
@media (max-width: 560px) { .sx-label, .sx-bag-card.is-empty h2 { font-size: 26px; } }

/* Product photos sit directly on the card, no outline box. */
.sx-thumb, .sx-pick-image, .sx-result-thumb { border: 0; }

/* Empty state: the selling points in the page's dark blue box ("Large and estate collections"). */
.sx-perks-card { display: flex; align-items: center; padding: 28px 30px; border: 0; background: linear-gradient(112deg, #101419 0%, #172331 58%, #24384a 100%); color: #ffffff; }
.sx-perks-card .sx-perks { gap: 16px; font-size: 18px; font-weight: 650; line-height: 1.35; }
.sx-perks-card .sx-perks li { padding-left: 34px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%235fd39a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 11.5 4.5 4.5L18 6.5'/%3E%3C/svg%3E") no-repeat 0 1px; }
@media (max-width: 560px) { .sx-perks-card .sx-perks { font-size: 16px; } }
/* Each selling point: a bold headline that stands out, with a short line under it. */
.sx-perks-card .sx-perks { gap: 18px; }
.sx-perks-card .sx-perks li { background-position: 0 2px; }
.sx-perks-card .sx-perks b { display: block; font-size: 19px; font-weight: 870; letter-spacing: 0.04em; line-height: 1.2; text-transform: uppercase; }
.sx-perks-card .sx-perks span { display: block; margin-top: 3px; color: #c9d6e2; font-size: 15px; font-weight: 500; line-height: 1.4; }
@media (max-width: 560px) { .sx-perks-card .sx-perks b { font-size: 17px; } .sx-perks-card .sx-perks span { font-size: 14px; } }
/* Empty state: two faded sample rows under the search, removed once real gear is added. */
.sx-ghost { margin-top: 18px; opacity: .5; pointer-events: none; user-select: none; }
.sx-ghost-label { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sx-ghost .sx-bag-item { grid-template-columns: 56px minmax(0, 1fr) auto; }
.sx-ghost .sx-thumb { width: 56px; height: 56px; }
.sx-ghost-price { display: block; width: 64px; height: 14px; border-radius: 7px; background: #cfd4dc; }
/* Guide: the section the customer should do next gets a red outline (one at a time, moves as they go). */
.sx-card, .sx-bag-card { transition: border-color .25s ease, box-shadow .25s ease; }
.sx-card.is-next, .sx-bag-card.is-next { border-color: var(--mp-red); box-shadow: 0 0 0 1px var(--mp-red); }
.is-embedded .sx-card.is-next, .is-embedded .sx-bag-card.is-next { box-shadow: 0 0 0 1px var(--mp-red); }
@media (prefers-reduced-motion: reduce) { .sx-card, .sx-bag-card { transition: none; } }
/* Order-minimum popup */
.sx-min-card { width: min(440px, 100%); }
.sx-min-actions { display: flex; justify-content: flex-end; margin-top: 4px; }
.sx-glass-choices.sx-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .sx-glass-choices.sx-three { grid-template-columns: 1fr; } }

/* Search field red; the search card outlined in dark blue and joined to the dark selling-points panel
   while nothing has been picked yet (Michael 2026-10-09). */
.sx-search input { border-color: var(--mp-red); }
.sx-search-card,
.sx-search-card.is-next { border: 2px solid #172331; box-shadow: var(--shadow); }
@media (min-width: 901px) {
  .sx-layout.is-even { gap: 0; }
  .sx-layout.is-even .sx-search-card { border-right: 0; border-radius: var(--radius) 0 0 var(--radius); }
  .sx-layout.is-even .sx-perks-card { border-radius: 0 var(--radius) var(--radius) 0; }
}
@media (max-width: 900px) {
  .sx-layout.is-even { gap: 0; }
  .sx-layout.is-even .sx-search-card { border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; }
  .sx-layout.is-even .sx-perks-card { border-radius: 0 0 var(--radius) var(--radius); }
}
/* Example gear list fades out toward the bottom (Michael 2026-10-10) */
.sx-ghost .sx-bag-list {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 35%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 35%, transparent 100%);
}
/* Embedded on milfordphoto.com/sell: no red ring or shadow around the dark-blue search card */
.is-embedded .sx-search-card,
.is-embedded .sx-search-card.is-next { box-shadow: none; }
/* List + offer polish (Michael 2026-10-10) */
.sx-label { font-weight: 760; }
.sx-bag-credit { margin-left: 6px; color: var(--green); font-weight: 800; }
.sx-bag-card .sx-total-row { font-size: 17px; font-weight: 650; }
.sx-bag-card .sx-total-row strong { font-size: 30px; font-weight: 900; }
/* Your gear: Cash / Credit columns (plain weight), gray plus/minus icons (Michael 2026-10-10) */
.sx-bag-amounts { display: grid; grid-template-columns: 72px 72px; gap: 8px; text-align: right; }
.sx-bag-amounts .sx-bag-price { font-weight: 500; }
.sx-bag-amounts .sx-bag-credit { margin-left: 0; color: var(--green); font-weight: 500; }
.sx-list-colhead { display: flex; justify-content: flex-end; gap: 8px; padding: 0 0 6px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.sx-list-colhead span { width: 72px; text-align: right; }
.sx-bag-tools { gap: 6px; }
.sx-icon-btn { display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--muted); font: inherit; font-size: 16px; font-weight: 600; line-height: 1; cursor: pointer; }
.sx-icon-btn:hover { border-color: var(--muted); color: var(--ink-soft); }
/* + / − sit to the left of the amounts on the same line; the cash number is bold and larger */
.sx-list-card .sx-bag-side,
.sx-bag-card .sx-bag-side { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.sx-bag-amounts .sx-bag-price { font-size: 17px; font-weight: 800; }
.sx-bag-amounts { align-items: baseline; }
.sx-ghost { opacity: .3; }  /* fainter example list (Michael 2026-10-10) */
.sx-search-card { scroll-margin-top: 12px; }
.sx-total-row em { font-size: 15px; }  /* bigger "+10%" (Michael 2026-10-10) */
/* Quantity stepper: − 2 + (identical items share one row) */
.sx-qty { align-items: center; gap: 6px; }
.sx-qty-count { min-width: 18px; color: var(--ink-soft); font-size: 15px; font-weight: 700; text-align: center; }
.sx-bag-qty { color: var(--muted); font-weight: 700; }
/* "We'll price it" / "Not eligible" span both amount columns so the − N + steppers line up on every row */
.sx-bag-amounts.is-wide .sx-bag-price { grid-column: 1 / -1; font-size: 15px; font-weight: 700; white-space: nowrap; }
