:root {
  --ink: #1b1715;
  --muted: #6f6762;
  --line: #e7e1da;
  --soft: #f7f3ee;
  --burg: #380e0e;
  --burg-soft: #f4eceb;
  --ok: #2f6b3f;
  --warn: #8a5a14;
  --radius: 4px;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); color: var(--ink); background: #fff; font-size: 14px; line-height: 1.5; padding-bottom: 90px; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }

.top { position: relative; text-align: center; padding: 28px 20px 8px; }
.back-shop { position: absolute; left: 24px; top: 24px; font-size: 13px; text-decoration: none; color: var(--muted); }
.back-shop:hover { color: var(--ink); }
.logo img { width: 230px; max-width: 60vw; height: auto; }
.demo-banner { max-width: 640px; margin: 8px auto 0; background: var(--soft); border: 1px dashed #cdbfb2; font-size: 12px; text-align: center; padding: 6px 10px; color: var(--muted); }

main { max-width: 1040px; margin: 0 auto; padding: 24px 20px 40px; }
.narrow { max-width: 460px; margin: 0 auto; }
.page-title { font-size: 30px; text-align: center; margin: 18px 0 6px; }
.sub { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.sub svg { vertical-align: -2px; margin-right: 4px; }

.card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 24px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=search], textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; font: inherit; background: #fff; }
input:focus, textarea:focus { outline: none; border-color: var(--ink); }
textarea { min-height: 84px; resize: vertical; }
.error { color: #9b1c1c; font-size: 13px; margin: 8px 0 0; }
.policy-points { margin: 20px 0 0; padding: 16px 18px; background: var(--soft); border-radius: var(--radius); font-size: 13px; color: var(--muted); }
.policy-points li { margin: 3px 0; }
.policy-points ul { margin: 0; padding-left: 18px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--ink); background: var(--ink); color: #fff;
  padding: 13px 22px; border-radius: 0; cursor: pointer; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.btn:hover { background: var(--burg); border-color: var(--burg); }
.btn[disabled] { background: #efece9; border-color: #efece9; color: #a39c96; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--soft); border-color: var(--soft); color: var(--ink); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--soft); border-color: var(--ink); }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; font-size: 12px; color: var(--muted); }
.link-btn:hover { color: var(--ink); }
.spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* items list */
.items { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.item { display: flex; gap: 14px; align-items: flex-start; text-align: left; width: 100%; border: 1px solid var(--line); background: #fff; padding: 12px; border-radius: var(--radius); cursor: pointer; position: relative; }
.item:hover { border-color: #bfb3a8; }
.item.selected { border: 1px solid var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.item.off { cursor: default; background: #fcfbfa; }
.item.off .thumb, .item.off .meta { opacity: .55; }
.item.off:hover { border-color: var(--line); }
.thumb { width: 64px; height: 80px; flex: none; object-fit: cover; background: var(--soft); border-radius: 2px; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 26px; color: #b9a99a; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.meta { flex: 1; min-width: 0; font-size: 13px; }
.meta .t { font-weight: 500; margin-bottom: 2px; padding-right: 54px; }
.meta .v, .meta .p { color: var(--muted); }
.meta .chosen { margin-top: 6px; font-size: 12px; }
.meta .chosen b { font-weight: 600; }
.pill { display: inline-block; margin-top: 6px; font-size: 11px; padding: 2px 8px; border-radius: 20px; background: #f1ede9; color: var(--muted); }
.pill.req { background: #e9f2ec; color: var(--ok); }
.item .remove { position: absolute; right: 12px; top: 10px; }
.banner { max-width: 520px; margin: 0 auto 14px; padding: 12px 14px; border-radius: var(--radius); background: #fbf3e6; color: var(--warn); font-size: 13px; }

.bar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--ink); color: #fff; display: flex; justify-content: center; align-items: center; gap: 28px; padding: 14px 20px; z-index: 20; }
.bar .btn { padding: 9px 18px; }
.bar[hidden] { display: none; }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(27, 23, 21, .45); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 30; }
.modal[hidden] { display: none; }
.modal-card { position: relative; background: #fff; width: 820px; max-width: 100%; max-height: calc(100vh - 40px); display: grid; grid-template-columns: 300px 1fr; border-radius: var(--radius); overflow: hidden; }
.m-left { padding: 48px 20px 20px 24px; border-right: 1px solid var(--line); overflow: auto; }
.m-left .hero { width: 100%; aspect-ratio: 4/5; background: var(--soft); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 64px; color: #c9bcaf; }
.m-left .hero img { width: 100%; height: 100%; object-fit: cover; }
.m-left .cap { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; margin-top: 10px; }
.m-left .cap .v { color: var(--muted); }
.m-right { padding: 48px 28px 24px; display: flex; flex-direction: column; min-height: 460px; max-height: calc(100vh - 40px); overflow: auto; }
.m-right h2 { font-size: 22px; line-height: 1.25; }
.m-right .hint { color: var(--muted); font-size: 12.5px; margin: 6px 0 16px; }
.m-right .grow { flex: 1; }
.m-right .actions { padding-top: 16px; }
.icon-btn { position: absolute; top: 12px; width: 30px; height: 30px; border: 1px solid var(--line); background: #fff; border-radius: 2px; cursor: pointer; font-size: 16px; line-height: 1; z-index: 2; }
.icon-btn:hover { border-color: var(--ink); }
.m-close { right: 12px; }
.m-back { left: 12px; }

.opts { display: flex; flex-direction: column; gap: 8px; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; padding: 12px 14px; cursor: pointer; border-radius: 2px; font-size: 13px; }
.opt:hover { border-color: var(--ink); }
.opt.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fff; }
.opt .chev { color: var(--muted); }
.opt-q { font-family: var(--serif); font-size: 16px; margin: 16px 0 8px; }

.choice { position: relative; border: 1px solid var(--line); padding: 14px 16px; cursor: pointer; text-align: left; background: #fff; width: 100%; border-radius: 2px; }
.choice:hover { border-color: var(--ink); }
.choice .h { display: flex; justify-content: space-between; align-items: center; font-weight: 500; }
.choice .d { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.choice .tag { position: absolute; top: -9px; left: 10px; background: #fff; padding: 0 6px; font-size: 11px; color: var(--burg); letter-spacing: .03em; }
.choice.feature { border-color: var(--burg); }

.drop { border: 1px dashed #cbbfb3; border-radius: 2px; padding: 18px; text-align: center; color: var(--muted); font-size: 13px; cursor: pointer; background: #fcfbfa; }
.drop:hover { border-color: var(--ink); color: var(--ink); }
.shots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.shot { position: relative; width: 70px; height: 70px; border-radius: 2px; overflow: hidden; background: var(--soft); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot button { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: 12px; line-height: 20px; padding: 0; }
.req-badge { font-size: 11px; color: var(--burg); margin-left: 6px; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 12px; }
.cat { border: 1px solid var(--line); background: #fff; text-align: left; padding: 8px; cursor: pointer; border-radius: 2px; font-size: 12px; }
.cat:hover { border-color: var(--ink); }
.cat.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.cat .ci { aspect-ratio: 4/5; background: var(--soft); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 32px; color: #c9bcaf; margin-bottom: 6px; overflow: hidden; }
.cat .ci img { width: 100%; height: 100%; object-fit: cover; }
.cat .ct { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 32px; }
.cat .cp { color: var(--muted); margin-top: 2px; }
.mini-sum { margin-top: 12px; padding: 12px; background: var(--soft); font-size: 12.5px; border-radius: 2px; }
.mini-sum .row { display: flex; justify-content: space-between; }

/* review */
.review { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.review h1 { font-size: 28px; margin-bottom: 18px; }
.review .card + .card { margin-top: 16px; }
.review h3 { font-size: 18px; margin-bottom: 12px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 12px 34px; font-size: 13px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--ink); font-size: 11px; display: flex; align-items: center; justify-content: center; }
.steps li b { display: block; font-weight: 600; }
.steps li span { color: var(--muted); }
.tiles { display: flex; gap: 12px; flex-wrap: wrap; }
.tile { width: 140px; font-size: 12px; }
.tile .ti { aspect-ratio: 4/5; background: var(--soft); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 32px; color: #c9bcaf; overflow: hidden; margin-bottom: 6px; }
.tile .ti img { width: 100%; height: 100%; object-fit: cover; }
.tile .tt { font-weight: 500; }
.tile .tv { color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; margin: 8px 0; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--ink); }
.side { position: sticky; top: 20px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 3px 0; }
.sum-row.muted { color: var(--muted); }
.sum-row.neg span:last-child { color: var(--burg); }
.sum-item { display: flex; gap: 10px; font-size: 12px; padding: 6px 0; }
.sum-item .thumb { width: 40px; height: 50px; font-size: 16px; }
.sum-item .grow { flex: 1; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.sum-total b { font-family: var(--serif); font-size: 24px; font-weight: 400; }
.fine { color: var(--muted); font-size: 12px; margin: 8px 0 0; }
.credit-opt { display: flex; gap: 10px; border: 1px solid var(--ink); padding: 12px; margin-top: 8px; font-size: 13px; }
.credit-opt .d { color: var(--muted); font-size: 12px; }
.divider-h { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 16px 0 6px; }

/* done */
.done { text-align: center; }
.done .tick { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 24px; margin: 10px 0 14px; }
.done .ref { font-family: var(--serif); font-size: 20px; margin: 6px 0 18px; }
.done .card { text-align: left; }
.notice { margin-top: 14px; padding: 12px 14px; background: var(--burg-soft); color: var(--burg); font-size: 13px; border-radius: 2px; }

.help { text-align: center; font-size: 12px; color: var(--muted); padding: 10px 20px 30px; }
.help p { margin: 2px 0; }
.help .help-title { color: var(--ink); font-weight: 600; }

.loading { text-align: center; padding: 60px 0; color: var(--muted); }
.loading .spin { display: inline-block; margin-bottom: 10px; }

@media (max-width: 860px) {
  .review { grid-template-columns: 1fr; }
  .side { position: static; }
  .modal { padding: 0; align-items: stretch; }
  .modal-card { grid-template-columns: 1fr; max-height: 100vh; height: 100vh; border-radius: 0; overflow: auto; }
  .m-left { border-right: 0; border-bottom: 1px solid var(--line); padding: 52px 20px 14px; display: flex; gap: 12px; align-items: center; }
  .m-left .hero { width: 64px; flex: none; font-size: 24px; }
  .m-left .cap { margin: 0; flex-direction: column; }
  .m-right { padding: 18px 20px 24px; max-height: none; min-height: 0; }
  .back-shop { position: static; display: block; text-align: left; margin-bottom: 12px; }
  .bar { gap: 14px; }
}

/* product photos: show the whole piece on white (CE photos are shot on white backgrounds) */
.thumb img, .m-left .hero img, .cat .ci img, .tile .ti img { object-fit: contain; background: #fff; }
.thumb:has(img), .m-left .hero:has(img), .cat .ci:has(img), .tile .ti:has(img) { background: #fff; border: 1px solid var(--line); }

.human { margin: 4px 0 14px; min-height: 65px; }

/* loading skeletons (Loop/Alo style), in CE's warm greys */
.sk { display: block; border-radius: 2px; background: linear-gradient(90deg, #e0d9d1 0%, #eee9e3 45%, #e0d9d1 90%);
  background-size: 250% 100%; animation: sk-shimmer 1.4s ease-in-out infinite; }
@keyframes sk-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.sk-item, .sk-cat { cursor: default; }
.sk-item:hover, .sk-cat:hover { border-color: var(--line); }
.sk-item .meta .sk { max-width: 100%; }
.slow-note { text-align: center; color: var(--muted); font-size: 13px; margin: 14px 0 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* product photos: shimmer in the frame until the photo arrives, then fade in */
.thumb img, .m-left .hero img, .cat .ci img, .tile .ti img { opacity: 0; transition: opacity .3s; }
.thumb img.in, .m-left .hero img.in, .cat .ci img.in, .tile .ti img.in { opacity: 1; }
.thumb:has(img:not(.in)), .m-left .hero:has(img:not(.in)), .cat .ci:has(img:not(.in)), .tile .ti:has(img:not(.in)) {
  background: linear-gradient(90deg, #e0d9d1 0%, #eee9e3 45%, #e0d9d1 90%); background-size: 250% 100%; animation: sk-shimmer 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .sk, .thumb:has(img:not(.in)), .m-left .hero:has(img:not(.in)), .cat .ci:has(img:not(.in)), .tile .ti:has(img:not(.in)) { animation: none; }
}

/* resolve step: exchange highlighted (Alo "Best match"), store credit as a plain row at the bottom */
.choice.feature { border-width: 1.5px; padding-top: 18px; }
.choice.feature .tag { font-weight: 600; }
.choice.plain { margin-top: 12px; }
.peek { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 8px; align-items: center; margin-top: 12px; background: var(--soft); padding: 10px; }
.peek .ci { aspect-ratio: 4/5; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.peek .ci img { width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .3s; }
.peek .ci img.in { opacity: 1; }
.peek-more { font-size: 12px; color: var(--burg); white-space: nowrap; padding-left: 4px; }
/* placeholder for a future instant-refund partner (Reshop) */
.credit-opt.soon { opacity: .6; margin-top: 8px; border-color: var(--line); }
.soon-tag { display: inline-block; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; background: var(--soft); border: 1px solid var(--line); padding: 1px 6px; margin-left: 6px; vertical-align: 1px; }

/* final page (Alo/Loop "Your return has been submitted") */
.done-page h1 { font-size: 30px; }
.status-card h3 { margin: 6px 0 8px; }
.status-card p { margin: 0; font-size: 13.5px; }
.done-page .side .card + .card { margin-top: 16px; }
.survey { background: var(--soft); text-align: center; }
.survey h4 { font-family: var(--serif); font-weight: 400; font-size: 18px; margin: 4px 0 12px; }
.scale { display: flex; justify-content: center; gap: 10px; }
.scale button { width: 36px; height: 36px; border: 1px solid #cdbfb2; background: #fff; cursor: pointer; font-size: 13px; }
.scale button:hover { border-color: var(--ink); }
.scale button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.scale-ends { display: flex; justify-content: space-between; max-width: 220px; margin: 6px auto 18px; font-size: 11px; color: var(--muted); }
.survey textarea { margin-bottom: 12px; background: #fff; }

/* customer information (return label ships from) */
.card-head { display: flex; justify-content: space-between; align-items: baseline; }
.card-head h3 { margin-bottom: 10px; }
.info-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.small-cap { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.addr { font-size: 13.5px; line-height: 1.55; }
.sf-grid .field { margin-bottom: 10px; }
.sf-row { display: grid; grid-template-columns: 1.4fr 1fr .9fr; gap: 10px; }
.sf-grid select { width: 100%; height: 46px; border: 1px solid var(--line); background: #fff; padding: 0 10px; font: inherit; border-radius: var(--radius); }
@media (max-width: 560px) { .sf-row { grid-template-columns: 1fr 1fr; } .sf-row .field:first-child { grid-column: 1 / -1; } }
.banner.info { background: var(--soft); color: inherit; display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* status page stage pill */
.stage { display: inline-block; margin: 10px 0 10px; padding: 5px 10px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; background: #fbf3e6; color: var(--warn); border-radius: 2px; }
.stage.ok { background: #e8f2ea; color: #2f6b3a; }
.stage.no { background: var(--burg-soft); color: var(--burg); }
.status-card .btn { text-decoration: none; display: inline-block; }

/* "← Look up another order" / "← Back to your items" at the top of a step */
.step-back { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 6px 0; margin: 8px 0 0;
  font: 13px var(--sans); color: var(--muted); cursor: pointer; text-align: left; }
.step-back:hover, .step-back:focus-visible { color: var(--ink); text-decoration: underline; }
.step-back.center { display: flex; width: 100%; max-width: 520px; margin-left: auto; margin-right: auto; }
