/* Larry's We Buy Cars - cash offer desk */
:root {
  --lw-brown: #972D07;
  --lw-brown-dk: #582707;
  --lw-brown-hover: #7c2405;
  --lw-ink: #262626;
  --lw-muted: #5c524c;
  --lw-line: #e3d9cf;
  --lw-bg: #fbf6f0;
  --lw-card: #fff;
  --lw-amber: #fdba45;
  --lw-orange: #f7892b;
  --lw-cream: #fff3e3;
  --lw-err: #b3261e;
  --lw-ok: #1d6e36;
  --lw-radius: 12px;
  --lw-slab: 'Roboto Slab', Georgia, serif;
  --lw-sans: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.lw-desk-page {
  margin: 0; min-height: 100vh; background: var(--lw-bg); color: var(--lw-ink);
  font: 16px/1.5 var(--lw-sans);
  background-image: linear-gradient(180deg, rgba(253, 186, 69, .22), rgba(247, 137, 43, 0) 260px);
}
body.lw-locked { overflow: hidden; }
button, input { font: inherit; color: inherit; }
a { color: var(--lw-brown); }
[hidden] { display: none !important; }
.lw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.lw-flow-head { display: flex; justify-content: center; padding: 14px 16px 6px; }
.lw-logo { display: inline-flex; min-height: 44px; align-items: center; }
.lw-logo img { display: block; height: 46px; width: auto; }

.lw-view { max-width: 1060px; margin: 0 auto; padding: 8px 16px 64px; }
.lw-boot { text-align: center; margin-top: 40px; }

/* ---------- question card */
.lw-step { max-width: 640px; margin: 0 auto; }
@media (min-width: 768px) {
  .lw-step { background: var(--lw-card); border: 1px solid var(--lw-line); border-radius: 18px; padding: 28px 36px 34px; box-shadow: 0 18px 40px -28px rgba(88, 39, 7, .45); margin-top: 18px; }
}
.lw-progress { height: 6px; border-radius: 99px; background: #efe5da; overflow: hidden; margin-bottom: 14px; }
.lw-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--lw-amber), var(--lw-orange)); border-radius: inherit; transition: width .3s ease; }
.lw-step-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.lw-back { background: none; border: 0; padding: 10px 6px 10px 0; min-height: 44px; color: var(--lw-brown); font-weight: 500; cursor: pointer; }
.lw-back:hover { text-decoration: underline; }
.lw-car { font-size: 14px; color: var(--lw-muted); text-align: right; }
.lw-q { font: 700 24px/1.25 var(--lw-slab); color: var(--lw-ink); margin: 6px 0 8px; outline: none; }
@media (min-width: 768px) { .lw-q { font-size: 28px; } }
.lw-help { color: var(--lw-muted); margin: 0 0 18px; }
.lw-info { background: #f3efe9; border-left: 4px solid #b9a898; border-radius: 6px; padding: 10px 14px; color: #3e3631; margin: 4px 0 14px; }
.lw-notice { background: var(--lw-cream); border: 1px solid #f2c48d; border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; }

/* ---------- answer rows */
.lw-opts { display: grid; gap: 10px; margin-bottom: 16px; }
.lw-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 58px;
  text-align: left; padding: 14px 16px; background: #fff; border: 2px solid var(--lw-line); border-radius: var(--lw-radius);
  cursor: pointer; font-size: 17px; font-weight: 500; transition: border-color .15s, background .15s, transform .1s;
}
.lw-opt:hover:not([aria-disabled]) { border-color: #c9a587; }
.lw-opt:active:not([aria-disabled]) { transform: scale(.995); }
.lw-opt[aria-checked="true"] { border-color: var(--lw-brown); background: var(--lw-cream); }
.lw-opt[aria-disabled] { cursor: not-allowed; color: #8a807a; background: #f7f3ef; border-style: dashed; }
.lw-opt-mark { flex: 0 0 22px; height: 22px; border-radius: 50%; border: 2px solid #c8bcb1; position: relative; }
.lw-opt[aria-checked="true"] .lw-opt-mark { border-color: var(--lw-brown); background: var(--lw-brown); }
.lw-opt[aria-checked="true"] .lw-opt-mark::after { content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.lw-opt-tag { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: #7a6f68; background: #efe8e1; border-radius: 99px; padding: 3px 9px; white-space: nowrap; }

/* ---------- problem areas (vehicle seen from above, driver on the left) */
.lw-spots { border: 0; padding: 0; margin: 4px 0 14px; }
.lw-spots legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
.lw-car-wrap { display: grid; gap: 6px; justify-items: center; background: #f6f0ea; border-radius: 16px; padding: 12px; }
.lw-car-end { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #6d625b; }
.lw-car-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 420px; }
.lw-spot { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 12px; background: #fff; border: 2px solid var(--lw-line); border-radius: 10px; cursor: pointer; font-size: 15px; font-weight: 500; }
.lw-spot input { width: 22px; height: 22px; accent-color: var(--lw-brown); flex: none; margin: 0; }
.lw-spot:has(input:checked) { border-color: var(--lw-brown); background: var(--lw-cream); }
.lw-spots.has-error .lw-car-wrap { outline: 2px solid var(--lw-err); }

/* ---------- fields */
.lw-field { margin-bottom: 14px; position: relative; }
.lw-field label, .lw-label-row label { display: block; font-weight: 500; margin-bottom: 6px; }
.lw-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.lw-input {
  display: block; width: 100%; min-height: 50px; padding: 12px 14px; font-size: 16px; background: #fff;
  border: 1.5px solid #cfc3b8; border-radius: 10px; transition: border-color .15s, box-shadow .15s;
}
.lw-input:focus { outline: none; border-color: var(--lw-brown); box-shadow: 0 0 0 3px rgba(151, 45, 7, .18); }
.lw-input:disabled { background: #f4efea; color: #8a807a; }
.lw-input[aria-invalid="true"], .has-error .lw-input { border-color: var(--lw-err); }
.lw-short { max-width: 240px; }
.lw-mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; }
.lw-msg { min-height: 0; margin: 6px 0 0; font-size: 14px; color: var(--lw-err); }
.lw-msg:empty { display: none; }
.lw-check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 4px 0 18px; cursor: pointer; }
.lw-check input { width: 22px; height: 22px; accent-color: var(--lw-brown); margin: 0; }
.lw-vin-box { position: relative; }
.lw-vin-box .lw-input { padding-right: 64px; }
.lw-count { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--lw-muted); }
.lw-found { margin: 0 0 12px; }
.lw-found p { margin: 0; background: #edf6ef; border-radius: 10px; padding: 10px 14px; color: var(--lw-ok); }
.lw-alt { margin-top: 14px; }

/* ---------- type-ahead list */
.lw-pick-box { position: relative; }
.lw-pick-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); max-height: 260px; overflow: auto; margin: 0; padding: 6px;
  list-style: none; background: #fff; border: 1px solid #d8ccc0; border-radius: 10px; box-shadow: 0 14px 30px -12px rgba(38, 38, 38, .35);
}
.lw-pick-opt { padding: 11px 12px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; min-height: 44px; align-items: center; }
.lw-pick-opt.is-active { background: var(--lw-cream); }
.lw-pick-opt.is-picked { font-weight: 700; }
.lw-pick-hint { color: var(--lw-muted); font-size: 13px; }
.lw-pick-none { padding: 11px 12px; color: var(--lw-muted); }

/* ---------- buttons */
.lw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0; min-height: 52px; white-space: pre-wrap; padding: 12px 26px;
  background: var(--lw-brown); color: #fff; border: 2px solid var(--lw-brown); border-radius: 10px; font-weight: 700; font-size: 17px;
  cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s;
}
.lw-btn:hover { background: var(--lw-brown-hover); border-color: var(--lw-brown-hover); color: #fff; }
.lw-btn:disabled { opacity: .75; cursor: progress; }
.lw-btn-ghost { background: #fff; color: var(--lw-brown); }
.lw-btn-ghost:hover { background: var(--lw-cream); color: var(--lw-brown); }
.lw-btn-wide { width: 100%; }
.lw-step .lw-btn { margin-top: 6px; }
@media (max-width: 767px) { .lw-step > .lw-btn, .lw-step-foot .lw-btn, .lw-veh-body > .lw-btn { width: 100%; } }
.lw-linkbtn { background: none; border: 0; padding: 4px 2px; min-height: 32px; color: var(--lw-brown); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lw-btn-spin { margin-right: 10px; width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: lw-spin .8s linear infinite; }
:focus-visible { outline: 3px solid #1b5fd1; outline-offset: 2px; }

/* ---------- segmented vehicle mode */
.lw-seg { display: inline-grid; grid-auto-flow: column; background: #f1e9e0; border-radius: 12px; padding: 4px; margin: 6px 0 18px; }
.lw-seg-btn { min-height: 44px; padding: 8px 18px; border: 0; background: none; border-radius: 9px; font-weight: 500; cursor: pointer; }
.lw-seg-btn[aria-checked="true"] { background: #fff; color: var(--lw-brown); box-shadow: 0 2px 6px rgba(0, 0, 0, .1); font-weight: 700; }

/* ---------- loading */
.lw-loading { text-align: center; }
.lw-spinner { width: 54px; height: 54px; margin: 18px auto 8px; border-radius: 50%; border: 5px solid #f1dfcc; border-top-color: var(--lw-orange); animation: lw-spin 1s linear infinite; }
.lw-ticks { list-style: none; padding: 0; margin: 18px auto 0; display: inline-grid; gap: 12px; text-align: left; }
.lw-tick { display: flex; align-items: center; gap: 12px; color: var(--lw-muted); }
.lw-tick-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #d6c8bb; display: inline-flex; align-items: center; justify-content: center; transition: all .25s; }
.lw-tick.is-done { color: var(--lw-ink); font-weight: 500; }
.lw-tick.is-done .lw-tick-dot { background: var(--lw-ok); border-color: var(--lw-ok); }
.lw-tick.is-done .lw-tick-dot::after { content: ''; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
@keyframes lw-spin { to { transform: rotate(360deg); } }

/* ---------- offer / accept page */
.lw-accept { display: grid; gap: 22px; }
@media (min-width: 960px) { .lw-accept { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 32px; margin-top: 14px; } }
.lw-accept-main { min-width: 0; }
.lw-accept-head { margin-bottom: 8px; }
.lw-eyebrow { margin: 0; font-size: 14px; font-weight: 500; letter-spacing: .02em; color: var(--lw-muted); }
.lw-amount-head { font: 700 26px/1.2 var(--lw-slab); margin: 4px 0 6px; outline: none; }
.lw-amt { color: var(--lw-brown); white-space: nowrap; }
@media (min-width: 768px) { .lw-amount-head { font-size: 34px; } }
.lw-sub { margin: 0 0 6px; color: var(--lw-muted); }
.lw-speed { margin: 8px 0 0; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--lw-ok); }
.lw-speed::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.lw-sec { background: var(--lw-card); border: 1px solid var(--lw-line); border-radius: 16px; padding: 20px 18px 8px; margin-top: 16px; outline: none; }
@media (min-width: 768px) { .lw-sec { padding: 24px 26px 12px; } }
.lw-sec h2 { font: 700 19px/1.3 var(--lw-slab); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; outline: none; }
.lw-grid2 { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .lw-grid2 { grid-template-columns: 1fr 1fr; } .lw-span2 { grid-column: 1 / -1; } }
.lw-summary { display: flex; align-items: flex-start; gap: 12px; background: #f5faf6; border: 1px solid #cfe5d5; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.lw-summary p { margin: 0; flex: 1; overflow-wrap: anywhere; }
.lw-summary-mark { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--lw-ok); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.lw-disclosure { font-size: 14px; color: #4a413c; background: #f7f2ec; border-radius: 10px; padding: 12px 14px; margin: 4px 0 14px; }
.lw-fine { font-size: 14px; color: var(--lw-muted); margin: 8px 0 14px; }
.lw-op-err { color: var(--lw-err); font-weight: 500; margin: 0 0 10px; }
.lw-op-err:empty { display: none; }
.lw-final { margin-top: 20px; }
.lw-btn-accept { font-size: 18px; min-height: 58px; }
.lw-cta-note { text-align: center; font-size: 14px; color: var(--lw-muted); margin: 10px 0 4px; }
.lw-sum:empty { display: none; }
.lw-sum p { margin: 0 0 12px; background: #fdecea; border: 1px solid #f3b9b4; color: #7d1b15; border-radius: 10px; padding: 11px 14px; }
.lw-sum .lw-linkbtn { color: #7d1b15; }

.lw-rail-card { background: var(--lw-card); border: 1px solid var(--lw-line); border-radius: 16px; padding: 18px 20px; }
.lw-rail-card + .lw-rail-card { margin-top: 14px; }
.lw-rail-label { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--lw-muted); }
.lw-rail-amt { margin: 2px 0; font: 700 38px/1.1 var(--lw-slab); color: var(--lw-brown); }
.lw-rail-car { margin: 0; color: var(--lw-muted); }
.lw-rail-steps h2 { font: 700 17px/1.3 var(--lw-slab); margin: 0 0 10px; }
.lw-rail-steps ol, .lw-done-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
@media (min-width: 960px) {
  .lw-rail { position: sticky; top: 20px; }
  .lw-rail-card:first-child { background: linear-gradient(160deg, #fff 55%, var(--lw-cream)); }
}
@media (max-width: 959px) { .lw-rail .lw-rail-card:first-child { display: none; } }

/* ---------- optional pickup time */
.lw-pickup .lw-opt-tag { text-transform: none; letter-spacing: 0; font-size: 13px; }
.lw-soon { margin-bottom: 6px; }
.lw-days-toggle { margin: 6px 0 10px; }
.lw-days { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 8px; margin-bottom: 8px; -webkit-overflow-scrolling: touch; }
.lw-day { flex: 0 0 auto; scroll-snap-align: start; min-width: 64px; min-height: 60px; display: grid; place-items: center; gap: 0; padding: 6px 8px; background: #fff; border: 2px solid var(--lw-line); border-radius: 10px; cursor: pointer; font-size: 13px; }
.lw-day strong { font-size: 15px; }
.lw-day.is-weekend { background: #f7f1ea; }
.lw-day[aria-pressed="true"] { border-color: var(--lw-brown); background: var(--lw-cream); }
.lw-days-nav { display: flex; align-items: center; gap: 6px; }
.lw-days-nav .lw-days { flex: 1; overflow: hidden; display: grid; grid-template-columns: repeat(7, 1fr); }
.lw-days-nav .lw-day { min-width: 0; }
.lw-pg { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1.5px solid var(--lw-line); background: #fff; font-size: 22px; cursor: pointer; }
.lw-pg:disabled { opacity: .35; cursor: default; }
.lw-wins { display: grid; gap: 8px; margin: 4px 0 8px; }
.lw-win { min-height: 50px; }
.lw-picked { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; background: #edf6ef; color: var(--lw-ok); font-weight: 500; border-radius: 10px; padding: 8px 12px; margin: 8px 0 14px; }
.lw-pick-loading { padding: 12px 0; }

/* ---------- dialogs: bottom sheet on phones, centered on larger screens */
.lw-scrim { position: fixed; inset: 0; z-index: 100; background: rgba(30, 20, 14, .5); display: flex; align-items: flex-end; justify-content: center; animation: lw-fade .18s ease; }
.lw-dlg { width: 100%; max-height: 90vh; overflow: auto; background: #fff; border-radius: 18px 18px 0 0; padding: 22px 20px 26px; animation: lw-rise .22s ease; }
@media (min-width: 768px) {
  .lw-scrim { align-items: center; padding: 24px; }
  .lw-dlg { max-width: 520px; border-radius: 18px; padding: 28px 30px; }
}
.lw-dlg-title { font: 700 22px/1.25 var(--lw-slab); margin: 0 0 10px; outline: none; }
.lw-dlg p { margin: 0 0 12px; }
.lw-dlg-actions { display: grid; gap: 8px; justify-items: center; margin-top: 16px; }
.lw-dlg-actions .lw-btn { width: 100%; }
.lw-vin-sample { display: grid; gap: 4px; background: #f7f2ec; border-radius: 10px; padding: 12px 14px; }
.lw-vin-sample code { font: 600 18px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; }
.lw-vin-sample span { font-size: 14px; color: var(--lw-muted); }
.lw-vin-where { display: grid; gap: 4px 20px; }
@media (min-width: 560px) { .lw-vin-where { grid-template-columns: 1fr 1fr; } }
.lw-vin-where h3 { font-size: 15px; margin: 8px 0 4px; }
.lw-vin-where ul { margin: 0; padding-left: 18px; }
.lw-change { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; background: var(--lw-cream); border-radius: 12px; padding: 14px 16px; margin: 6px 0 12px; }
.lw-change-label { display: block; font-size: 13px; color: var(--lw-muted); }
.lw-change-new { font: 700 34px/1.1 var(--lw-slab); color: var(--lw-brown); }
.lw-change-old { text-align: right; color: #7a706a; font-size: 15px; }
.lw-change-diff { font-weight: 700; color: var(--lw-ok); font-size: 18px; }

/* ---------- end screens */
.lw-end { text-align: center; }
.lw-end .lw-help { max-width: 480px; margin-left: auto; margin-right: auto; }
.lw-end .lw-btn { margin: 8px auto 6px; }
.lw-end .lw-linkbtn { display: block; margin: 8px auto 0; }
.lw-end-mark { width: 64px; height: 64px; margin: 12px auto 10px; border-radius: 50%; background: var(--lw-ok); color: #fff; font: 700 32px/64px var(--lw-sans); }
.lw-end-mark.is-info { background: #f1e3d4; color: var(--lw-brown); font-family: var(--lw-slab); }
.lw-done-steps { text-align: left; max-width: 440px; margin: 10px auto 18px !important; }

/* ---------- motion */
.lw-enter { transition: transform .22s ease, opacity .22s ease; }
.lw-from-right { transform: translateX(28px); opacity: 0; }
.lw-from-left { transform: translateX(-28px); opacity: 0; }
@keyframes lw-fade { from { opacity: 0; } }
@keyframes lw-rise { from { transform: translateY(24px); opacity: .6; } }
@media (prefers-reduced-motion: reduce) {
  .lw-enter, .lw-progress span { transition: opacity .15s ease; }
  .lw-from-right, .lw-from-left { transform: none; }
  .lw-dlg, .lw-scrim { animation: none; }
  .lw-spinner, .lw-btn-spin { animation-duration: 2.4s; }
}
