/* ==========================================================================
   Buy-back ("Sell your phone") customer pages – inside the online-store layout.
   Uses the store's own design tokens (shop.css: --sh-*, --t-*), so light + dark mode follow the store.
   Every class is prefixed sell- ; nothing here touches other store pages.
   v126: BeUnik colours only – mango + ink (no orange). Chosen / focused = ink (mango in dark mode) on a mango wash.
         The answer tiles live in sell-tiles.css (shared with the staff valuer and the partner panel).
   ========================================================================== */
.sell { --sell-sel: var(--sh-ink); }
[data-bs-theme=dark] .sell { --sell-sel: var(--sh-mango); }
.sell { padding-top: 14px; padding-bottom: 48px; }
.sell h1 { font-size: clamp(1.45rem, 3.4vw, 2rem); font-weight: 800; margin: 6px 0 12px; letter-spacing: -.01em; }
.sell h2 { font-size: 1.3rem; font-weight: 800; margin: 0 0 10px; }
.sell h3 { font-size: 1rem; font-weight: 700; margin: 0 0 6px; }
.sell-h2s { font-size: 1.1rem !important; }
.sell a { color: var(--sh-mango-ink); }
.sell-muted { color: var(--sh-muted); }
.sell-small { font-size: .82rem; }
.sell-center { text-align: center; }
.sell-narrow { max-width: 460px; margin: 24px auto; }

/* top strip: breadcrumbs + own links */
.sell-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px; margin-bottom: 10px; font-size: .84rem; }
.sell-crumbs { color: var(--sh-muted); min-width: 0; }
.sell-crumbs a { color: var(--sh-muted); text-decoration: none; }
.sell-crumbs a:hover { color: var(--sh-text); text-decoration: underline; }
.sell-bar-links { display: flex; gap: 14px; margin-left: auto; }
.sell-bar-links a { text-decoration: none; font-weight: 700; color: var(--sh-text-2); white-space: nowrap; }
.sell-bar-links a:hover { color: var(--sh-mango-ink); }

.sell-flash { border-radius: 12px; padding: 10px 14px; margin: 0 0 12px; font-weight: 600; border: 1px solid var(--t-ok-bd); background: var(--t-ok-bg); color: var(--t-ok-fg); }
.sell-flash.error { border-color: var(--t-bad-bd); background: var(--t-bad-bg); color: var(--t-bad-fg); }
.sell-note { border-radius: 12px; padding: 10px 14px; margin: 10px 0; border: 1px solid var(--t-warn-bd); background: var(--t-warn-bg); color: var(--t-warn-fg); font-weight: 600; }
.sell-note.ok { border-color: var(--t-ok-bd); background: var(--t-ok-bg); color: var(--t-ok-fg); }

.sell-card { background: var(--sh-card); border: 1px solid var(--sh-line); border-radius: 18px; padding: 18px; box-shadow: var(--sh-shadow); }
.sell-card > :last-child { margin-bottom: 0; }

/* buttons */
.sell-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border-radius: 12px; border: 1px solid transparent; background: var(--sh-mango); color: #111827 !important;
  font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background .15s, transform .1s; }
.sell-btn:hover { background: var(--sh-mango-400); }
.sell-btn:active { transform: translateY(1px); }
.sell-btn:focus-visible, .sell-pick:focus-within, .sell-chip:focus-visible, .sell-tile:focus-visible { outline: 3px solid var(--sell-sel); outline-offset: 2px; }
.sell-btn[disabled] { opacity: .5; cursor: not-allowed; }
.sell-btn.ghost { background: transparent; border-color: var(--sh-line-2); color: var(--sh-text) !important; }
.sell-btn.ghost:hover { background: var(--sh-soft); }
.sell-btn.dark { background: var(--sh-ink); color: #fff !important; }
[data-bs-theme=dark] .sell-btn.dark { background: var(--sh-soft); border-color: var(--sh-line-2); }
.sell-btn.sm { min-height: 36px; padding: 6px 14px; font-size: .88rem; border-radius: 10px; }
.sell-btn.block { display: flex; width: 100%; }
.sell-linkbtn { background: none; border: 0; padding: 0; color: var(--t-bad-fg); font-weight: 700; cursor: pointer; text-decoration: underline; }
.sell-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* hero */
.sell-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: center; background: linear-gradient(135deg, var(--sh-ink-2), var(--sh-ink-3)); color: #F9FAFB; border-radius: 22px; padding: 28px; margin-bottom: 26px; }
.sell-hero h1 { color: #fff; margin-top: 0; }
.sell-hero .sell-lead { color: #D1D5DB; font-size: 1.02rem; }
.sell-hero .sell-card { color: var(--sh-text); }
.sell-ticks { list-style: none; padding: 0; margin: 12px 0 16px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 700; font-size: .9rem; }
.sell-ticks li::before { content: "✓"; color: var(--sh-mango); margin-right: 6px; font-weight: 900; }
.sell-section { margin-bottom: 26px; }
.sell-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* search */
.sell-search { position: relative; max-width: 520px; }
.sell-search > i { position: absolute; left: 14px; top: 15px; color: #6B7280; }
.sell-search input { width: 100%; min-height: 46px; padding: 10px 14px 10px 40px; border-radius: 12px; border: 1px solid var(--sh-line-2); background: #fff; color: #111827; font-size: 1rem; }
.sell > .sell-search, .sell-prose .sell-search { margin-bottom: 14px; }
.sell-suggest { display: none; position: absolute; z-index: 20; left: 0; right: 0; top: 50px; background: var(--sh-card); border: 1px solid var(--sh-line-2); border-radius: 12px; box-shadow: var(--sh-shadow-lg); overflow: hidden; }
.sell-suggest a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; text-decoration: none; color: var(--sh-text); }
.sell-suggest a:hover { background: var(--sh-soft); }
.sell-suggest span { color: var(--sh-muted); font-size: .85rem; white-space: nowrap; }

/* tiles + chips */
.sell-grid { display: grid; gap: 12px; }
.sell-g-brands { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.sell-g-models { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.sell-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 16px 10px; background: var(--sh-card); border: 1px solid var(--sh-line); border-radius: 16px; text-decoration: none; color: var(--sh-text) !important; transition: border-color .15s, transform .15s, box-shadow .15s; }
.sell-tile:hover { border-color: var(--sh-mango); transform: translateY(-2px); box-shadow: var(--sh-shadow-lg); }
.sell-tile small { color: var(--sh-muted); font-size: .8rem; }
.sell-brandmark { width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--sh-mango-50); color: var(--sh-mango-ink); font-weight: 900; font-size: 1.2rem; }
.sell-devimg { border-radius: 12px; object-fit: contain; max-width: 100%; height: auto; }
.sell-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.sell-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--sh-line-2); background: var(--sh-card); color: var(--sh-text) !important; text-decoration: none; font-weight: 700; font-size: .9rem; }
.sell-chip:hover { border-color: var(--sh-mango); }
.sell-chip.on { background: var(--sh-mango); border-color: var(--sh-mango); color: #111827 !important; }

/* device page */
.sell-device { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: start; }
.sell-pic { display: flex; justify-content: center; }
.sell-price-big { font-family: Outfit, Inter, system-ui, sans-serif; font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 900; line-height: 1.1; color: var(--t-ok-fg); margin: 2px 0 8px; }
.sell-masked { letter-spacing: .06em; user-select: none; white-space: nowrap; }
.sell-masked i { color: var(--sh-mango-ink); font-size: .85em; }
.sell-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.sell-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 800; background: var(--t-slate-bg); color: var(--t-slate-fg); border: 1px solid var(--t-slate-bd); }
.sell-badge.ok { background: var(--t-ok-bg); color: var(--t-ok-fg); border-color: var(--t-ok-bd); }
.sell-badge.err { background: var(--t-bad-bg); color: var(--t-bad-fg); border-color: var(--t-bad-bd); }

/* questionnaire */
.sell-calc, .sell-two { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.sell-progress { height: 8px; border-radius: 999px; background: var(--sh-soft); overflow: hidden; margin-bottom: 8px; }
.sell-progress i { display: block; height: 100%; background: var(--sh-mango); border-radius: 999px; transition: width .3s; }
.sell-qblock { border: 0; border-top: 1px solid var(--sh-line); margin: 14px 0 0; padding: 14px 0 0; min-width: 0; }
.sell-qblock:first-of-type { border-top: 0; padding-top: 4px; margin-top: 6px; }
.sell-qblock h3 { display: flex; align-items: center; gap: 10px; }
.sell-qic { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--sh-mango-50); color: var(--sh-mango-ink); font-size: 1rem; }
.sell-side h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--sh-muted); margin: 14px 0 4px; }
.sell-side ul { margin: 0; padding-left: 18px; font-size: .9rem; }
.sell-sidehead { display: flex; align-items: center; gap: 12px; }

/* forms */
.sell-field { margin-bottom: 12px; }
.sell-field label, .sell-label { display: block; font-weight: 700; font-size: .86rem; margin-bottom: 4px; }
.sell-field input[type=text], .sell-field input[type=tel], .sell-field input[type=search], .sell-field input[type=email], .sell-field select, .sell-field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--sh-line-2); background: var(--sh-card); color: var(--sh-text); font-size: 1rem; }
.sell-field input:focus, .sell-field select:focus, .sell-search input:focus { outline: 3px solid var(--sell-sel); outline-offset: 1px; border-color: var(--sell-sel); }
.sell-otp { letter-spacing: .5em; text-align: center; font-size: 1.4rem !important; font-weight: 800; }
.sell-check { display: flex; align-items: flex-start; gap: 8px; font-weight: 500 !important; font-size: .9rem; }
.sell-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--sell-sel); flex: 0 0 auto; }
.sell-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.sell-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 12px; }

/* pick lists (address, day, slot, payout) */
.sell-pick { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--sh-line-2); border-radius: 12px; margin-bottom: 8px; cursor: pointer; background: var(--sh-card); }
.sell-pick:has(input:checked) { border-color: var(--sell-sel); box-shadow: inset 0 0 0 1px var(--sell-sel); background: var(--sh-mango-50); }
.sell-pick input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--sell-sel); flex: 0 0 auto; }
.sell-pick > span { flex: 1; min-width: 0; }
.sell-pick b { display: block; }
.sell-pick em { float: right; font-style: normal; font-weight: 900; color: var(--t-ok-fg); margin-left: 10px; }
.sell-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-bottom: 14px; }
.sell-days .sell-pick { flex-direction: column; align-items: center; text-align: center; margin: 0; padding: 10px 6px; font-size: .82rem; }
.sell-days .sell-pick input { position: absolute; opacity: 0; }
.sell-days .sell-pick strong { display: block; font-size: 1.3rem; line-height: 1.1; }
.sell-stepper { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 14px; flex-wrap: wrap; }
.sell-stepper li { padding: 6px 14px; border-radius: 999px; background: var(--sh-soft); color: var(--sh-muted); font-weight: 700; font-size: .86rem; }
.sell-stepper li.on { background: var(--sh-ink); color: #fff; }
[data-bs-theme=dark] .sell-stepper li.on { background: var(--sh-mango); color: #111827; }
.sell-stepper li.done a { color: var(--t-ok-fg); text-decoration: none; }

/* rows, price table, timeline, FAQ */
.sell-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--sh-line); }
.sell-row:first-child { border-top: 0; padding-top: 0; }
.sell-sum { color: var(--sh-text); --bs-table-bg: transparent; }
.sell-sum td { padding: 7px 0; border-color: var(--sh-line); background: transparent; color: inherit; }
.sell-sum .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sell-sum .sell-total td { font-weight: 900; font-size: 1.1rem; border-bottom: 0; border-top: 2px solid var(--sh-text); }
.sell-timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--sh-line-2); }
.sell-timeline li { position: relative; padding: 0 0 14px 6px; }
.sell-timeline li::before { content: ""; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--sh-mango); border: 2px solid var(--sh-card); }
.sell-timeline li.cancelled::before { background: var(--t-bad-solid); }
.sell-timeline li.paid::before, .sell-timeline li.picked_up::before { background: var(--t-ok-solid); }
.sell-faq { background: var(--sh-card); border: 1px solid var(--sh-line); border-radius: 12px; padding: 0 14px; margin-bottom: 8px; }
.sell-faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
.sell-faq p { color: var(--sh-text-2); margin: 0 0 12px; }
.sell-prose { max-width: 820px; }
.sell-prose h2 { margin-top: 20px; }

/* v126: step icons, final price + code on the order page, payout detail boxes, partner call-out */
.sell-stepic { width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--sh-mango-50); color: var(--sh-mango-ink); font-size: 1.15rem; margin-bottom: 10px; }
.sell-stepic.ok { background: var(--t-ok-bg); color: var(--t-ok-fg); }
.sell-final { border: 2px solid var(--sell-sel); }
.sell-code { font-family: Outfit, Inter, system-ui, sans-serif; font-size: clamp(1.8rem, 8vw, 2.6rem); font-weight: 900; letter-spacing: .12em; padding: 10px 16px; margin: 4px 0 10px; border-radius: 14px; background: var(--sh-mango-50); border: 1px dashed var(--sh-mango); color: var(--sh-text); display: inline-block; font-variant-numeric: tabular-nums; }
.sell-paybox { border: 1px solid var(--sh-line); border-radius: 14px; padding: 14px 14px 2px; margin: 6px 0 12px; background: var(--sh-soft); }
.sell-paybox[hidden] { display: none; }
.sell-partnercta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.sell-partnercta h2 i { color: var(--sh-mango-ink); margin-right: 6px; }

@media (max-width: 860px) {
  .sell-hero, .sell-calc, .sell-two, .sell-steps { grid-template-columns: 1fr; }
  .sell-hero { padding: 20px; }
  .sell-device { grid-template-columns: 1fr; }
  .sell-row3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .sell-row2, .sell-row3 { grid-template-columns: 1fr; }
  .sell-actions .sell-btn { flex: 1 1 100%; }
  .sell-card { padding: 14px; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) { .sell-tile, .sell-btn, .sell-progress i { transition: none; } }

/* v129: city for the prices */
.sell-city { margin: 0 0 12px; border: 1px solid var(--sh-line, #e7e5e4); border-radius: 12px; background: var(--sh-card, #fff); padding: 8px 12px; font-size: .9rem; }
.sell-city > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sell-city > summary::-webkit-details-marker { display: none; }
.sell-city > summary .fa-location-dot { color: var(--sh-mango-ink, #8a5a00); }
.sell-city-change { margin-left: auto; font-weight: 700; color: var(--sh-mango-ink, #8a5a00); text-decoration: underline; }
.sell-city[open] .sell-city-change { display: none; }
.sell-city-form { margin-top: 10px; display: grid; gap: 8px; }
.sell-city-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sell-city-row input, .sell-city-row select { min-height: 38px; border: 1px solid var(--sh-line, #d6d3d1); border-radius: 10px; padding: 6px 10px; font: inherit; background: var(--sh-card, #fff); color: inherit; }
.sell-city-row input { width: 9.5rem; }
.sell-city-row select { min-width: 12rem; flex: 1 1 12rem; max-width: 22rem; }
