:root{
  --ths-ti-blue:#0d6efd;
  --ths-ti-blue2:#0b5ed7;
  --ths-ti-ink:#0f172a;
  --ths-ti-muted:#64748b;
  --ths-ti-border:#dbe7f5;
  --ths-ti-bg:#f5f8ff;
  --ths-ti-card:#ffffff;
  --ths-ti-green:#10b981;
  --ths-ti-yellow:#f59e0b;
  --ths-ti-orange:#f97316;
  --ths-ti-red:#ef4444;
}
body.ths-tradein-public-page{margin:0;background:linear-gradient(180deg,#eef6ff 0%,#f8fbff 50%,#ffffff 100%);color:var(--ths-ti-ink);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;}
.ths-tradein-app *{box-sizing:border-box}
.ths-tradein-app{min-height:100vh;color:var(--ths-ti-ink)}
.ths-ti-loading{min-height:60vh;display:flex;gap:14px;align-items:center;justify-content:center;color:#1e3a8a;font-weight:900}
.ths-ti-spinner{width:28px;height:28px;border-radius:999px;border:3px solid #bfdbfe;border-top-color:#0d6efd;animation:thsTiSpin .8s linear infinite}@keyframes thsTiSpin{to{transform:rotate(360deg)}}
.ths-ti-shell{max-width:1180px;margin:0 auto;padding:28px 18px 44px}
.ths-ti-hero{position:relative;overflow:hidden;border-radius:32px;background:radial-gradient(circle at 10% 20%,rgba(59,130,246,.28),transparent 34%),linear-gradient(135deg,#0b1220 0%,#0e3a8a 48%,#0d6efd 100%);color:#fff;padding:38px 34px;box-shadow:0 24px 70px rgba(15,23,42,.26)}
.ths-ti-hero:after{content:"";position:absolute;right:-110px;top:-120px;width:360px;height:360px;border-radius:999px;background:rgba(255,255,255,.13)}
.ths-ti-hero-inner{position:relative;z-index:1;display:grid;grid-template-columns:1.25fr .75fr;gap:28px;align-items:center}
.ths-ti-eyebrow{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);padding:8px 12px;border-radius:999px;font-size:12px;font-weight:950;letter-spacing:.08em;text-transform:uppercase;color:#dbeafe}
.ths-ti-hero h1{margin:16px 0 12px;color:#fff;font-size:48px;line-height:1.02;letter-spacing:-1.5px;font-weight:950;max-width:760px}
.ths-ti-hero p{margin:0;color:#dbeafe;font-size:17px;line-height:1.6;font-weight:700;max-width:680px}
.ths-ti-hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.ths-ti-btn{border:1px solid var(--ths-ti-border);background:#fff;color:var(--ths-ti-ink);border-radius:16px;padding:13px 18px;font-weight:950;cursor:pointer;transition:.16s ease;box-shadow:0 8px 18px rgba(15,23,42,.06);font-size:14px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:9px;line-height:1.1}
.ths-ti-btn:hover{transform:translateY(-1px);box-shadow:0 14px 24px rgba(15,23,42,.1)}
.ths-ti-btn-primary{background:#fff;color:#0d3b87;border-color:#fff}
.ths-ti-btn-blue{background:linear-gradient(135deg,#0d6efd,#0b5ed7);border-color:#0d6efd;color:#fff;box-shadow:0 12px 25px rgba(13,110,253,.24)}
.ths-ti-btn-ghost{background:rgba(255,255,255,.13);border-color:rgba(255,255,255,.28);color:#fff;box-shadow:none}
.ths-ti-btn-soft{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8;box-shadow:none}
.ths-ti-btn-danger{background:#fff1f2;border-color:#fecdd3;color:#be123c;box-shadow:none}
.ths-ti-btn:disabled{opacity:.58;cursor:not-allowed;transform:none;box-shadow:none}
.ths-ti-hero-card{background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.22);border-radius:28px;padding:22px;backdrop-filter:blur(12px);box-shadow:inset 0 1px 0 rgba(255,255,255,.12)}
.ths-ti-hero-card-title{font-weight:950;color:#fff;font-size:18px;margin-bottom:10px}.ths-ti-hero-card-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid rgba(255,255,255,.16);padding:12px 0;color:#dbeafe;font-weight:800}.ths-ti-hero-card-row strong{color:#fff}.ths-ti-progress-wrap{margin:22px 0 18px;background:#fff;border:1px solid #e5edf7;border-radius:22px;padding:16px 18px;box-shadow:0 10px 35px rgba(15,23,42,.08)}
.ths-ti-progress-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.ths-ti-progress-label{font-weight:950;color:#0f172a}.ths-ti-progress-count{font-weight:900;color:#64748b;font-size:13px}.ths-ti-progress{height:10px;border-radius:999px;background:#e8f1ff;overflow:hidden}.ths-ti-progress span{display:block;height:100%;width:0;background:linear-gradient(90deg,#0d6efd,#22c55e);border-radius:999px;transition:width .24s ease}
.ths-ti-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:18px;align-items:start}.ths-ti-card{background:#fff;border:1px solid #e5edf7;border-radius:28px;box-shadow:0 16px 45px rgba(15,23,42,.09);overflow:hidden}.ths-ti-main{min-height:540px}.ths-ti-step{display:none;padding:28px}.ths-ti-step.is-active{display:block;animation:thsTiSlide .22s ease}@keyframes thsTiSlide{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.ths-ti-step-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}.ths-ti-step-kicker{display:inline-flex;align-items:center;background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:950;text-transform:uppercase;letter-spacing:.08em}.ths-ti-step h2{font-size:30px;line-height:1.15;margin:12px 0 8px;color:#0f172a;letter-spacing:-.7px}.ths-ti-step p{margin:0;color:#64748b;line-height:1.55;font-weight:650}.ths-ti-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.ths-ti-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.ths-ti-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.ths-ti-option{position:relative;border:1.5px solid #dbe7f5;background:#fff;border-radius:22px;padding:18px;min-height:116px;text-align:left;cursor:pointer;transition:.16s ease;box-shadow:0 8px 20px rgba(15,23,42,.04);display:flex;flex-direction:column;gap:8px}.ths-ti-option:hover{border-color:#93c5fd;transform:translateY(-2px);box-shadow:0 16px 28px rgba(15,23,42,.08)}.ths-ti-option.is-selected{border-color:#0d6efd;background:linear-gradient(180deg,#eff6ff,#fff);box-shadow:0 0 0 4px rgba(13,110,253,.1)}.ths-ti-option-icon{font-size:30px;line-height:1}.ths-ti-option-title{font-size:16px;font-weight:950;color:#0f172a}.ths-ti-option-desc{font-size:12.5px;color:#64748b;font-weight:700;line-height:1.35}.ths-ti-option-dot{position:absolute;right:14px;top:14px;width:20px;height:20px;border-radius:999px;border:2px solid #cbd5e1;background:#fff}.ths-ti-option.is-selected .ths-ti-option-dot{background:#0d6efd;border-color:#0d6efd;box-shadow:inset 0 0 0 4px #fff}.ths-ti-color-green{color:var(--ths-ti-green)}.ths-ti-color-yellow{color:var(--ths-ti-yellow)}.ths-ti-color-orange{color:var(--ths-ti-orange)}.ths-ti-color-red{color:var(--ths-ti-red)}
.ths-ti-form-row{display:grid;grid-template-columns:1fr;gap:10px;margin:14px 0}.ths-ti-label{font-size:13px;font-weight:950;color:#334155}.ths-ti-input,.ths-ti-select{width:100%;height:50px;border:1.5px solid #dbe7f5;border-radius:16px;padding:0 15px;background:#fff;color:#0f172a;font-weight:850;outline:none;transition:.15s ease}.ths-ti-input:focus,.ths-ti-select:focus{border-color:#0d6efd;box-shadow:0 0 0 4px rgba(13,110,253,.1)}.ths-ti-search-wrap{position:relative}.ths-ti-suggestions{margin-top:10px;border:1px solid #e5edf7;border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 12px 35px rgba(15,23,42,.08);max-height:330px;overflow-y:auto}.ths-ti-suggestion{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;border:0;background:#fff;padding:13px 15px;text-align:left;cursor:pointer;border-bottom:1px solid #eef2f7}.ths-ti-suggestion:last-child{border-bottom:0}.ths-ti-suggestion:hover{background:#f8fbff}.ths-ti-suggestion strong{display:block;color:#0f172a;font-size:14px}.ths-ti-suggestion span{display:block;color:#64748b;font-size:12px;font-weight:800;margin-top:3px}.ths-ti-suggestion-price{font-weight:950;color:#0d6efd;white-space:nowrap}.ths-ti-chip-row{display:flex;gap:10px;flex-wrap:wrap}.ths-ti-chip{border:1.5px solid #dbe7f5;background:#fff;border-radius:999px;padding:12px 16px;font-weight:950;color:#0f172a;cursor:pointer;transition:.15s ease}.ths-ti-chip:hover{border-color:#93c5fd;background:#eff6ff}.ths-ti-chip.is-selected{background:#0d6efd;border-color:#0d6efd;color:#fff}.ths-ti-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:24px;padding-top:18px;border-top:1px solid #eef2f7}.ths-ti-nav-right{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.ths-ti-estimate-big{border-radius:26px;background:linear-gradient(135deg,#eff6ff,#ecfdf5);border:1px solid #bfdbfe;padding:26px;margin-top:14px;text-align:center}.ths-ti-estimate-big .label{font-size:13px;font-weight:950;color:#1d4ed8;letter-spacing:.08em;text-transform:uppercase}.ths-ti-estimate-big .value{font-size:52px;line-height:1.05;font-weight:1000;letter-spacing:-1.5px;color:#065f46;margin:12px 0}.ths-ti-estimate-big .sub{font-weight:800;color:#475569}.ths-ti-refine-cta{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:22px}.ths-ti-alert{border-radius:18px;padding:16px 18px;font-weight:850;line-height:1.45}.ths-ti-alert.warning{background:#fffbeb;border:1px solid #fde68a;color:#92400e}.ths-ti-alert.danger{background:#fff1f2;border:1px solid #fecdd3;color:#be123c}.ths-ti-alert.info{background:#eff6ff;border:1px solid #bfdbfe;color:#1d4ed8}.ths-ti-checklist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ths-ti-check{display:flex;gap:12px;align-items:flex-start;border:1.5px solid #dbe7f5;border-radius:18px;padding:14px;background:#fff;cursor:pointer;transition:.15s ease}.ths-ti-check:hover{border-color:#93c5fd;background:#f8fbff}.ths-ti-check input{width:20px;height:20px;accent-color:#0d6efd;margin-top:1px}.ths-ti-check strong{display:block;font-size:14px;color:#0f172a}.ths-ti-check span{display:block;font-size:12.5px;color:#64748b;font-weight:700;margin-top:3px;line-height:1.35}.ths-ti-check.is-selected{border-color:#0d6efd;background:#eff6ff}.ths-ti-live{position:sticky;top:18px}.ths-ti-live-head{background:linear-gradient(135deg,#0d6efd,#0b2a66);color:#fff;padding:22px;border-radius:28px 28px 0 0}.ths-ti-live-head .muted{font-size:12px;font-weight:950;letter-spacing:.08em;text-transform:uppercase;color:#bfdbfe}.ths-ti-live-head .price{font-size:38px;font-weight:1000;letter-spacing:-1px;line-height:1.1;margin-top:8px;color:#fff}.ths-ti-live-head .range{font-size:13px;font-weight:850;color:#dbeafe;margin-top:5px}.ths-ti-live-body{padding:18px}.ths-ti-summary-device{display:flex;gap:12px;align-items:center;border-bottom:1px solid #eef2f7;padding-bottom:14px;margin-bottom:14px}.ths-ti-device-avatar{width:46px;height:46px;border-radius:16px;background:#eff6ff;display:flex;align-items:center;justify-content:center;font-size:24px}.ths-ti-summary-device strong{display:block;color:#0f172a}.ths-ti-summary-device span{display:block;color:#64748b;font-size:12px;font-weight:800;margin-top:2px}.ths-ti-line{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:10px 0;border-bottom:1px dashed #e2e8f0}.ths-ti-line:last-child{border-bottom:0}.ths-ti-line .left{min-width:0}.ths-ti-line strong{display:block;font-size:13px;color:#0f172a}.ths-ti-line span{display:block;font-size:12px;color:#64748b;font-weight:700;margin-top:2px}.ths-ti-line .amount{font-weight:950;color:#be123c;white-space:nowrap}.ths-ti-line.good .amount{color:#059669}.ths-ti-disclaimer{font-size:12px;line-height:1.45;color:#64748b;background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:12px;margin-top:14px;font-weight:750}.ths-ti-contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.ths-ti-action-choice{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}.ths-ti-success{padding:30px;text-align:center}.ths-ti-success-icon{width:72px;height:72px;border-radius:24px;background:#dcfce7;color:#16a34a;display:flex;align-items:center;justify-content:center;font-size:36px;margin:0 auto 16px}.ths-ti-success h2{margin:0 0 8px;font-size:30px}.ths-ti-success p{margin:0;color:#64748b;font-weight:750;line-height:1.55}.ths-ti-lead-code{display:inline-flex;margin-top:16px;background:#eff6ff;border:1px solid #bfdbfe;border-radius:999px;padding:10px 14px;color:#1d4ed8;font-weight:950}.ths-ti-mobile-bottom{display:none}
@media(max-width:920px){.ths-ti-hero-inner{grid-template-columns:1fr}.ths-ti-hero h1{font-size:38px}.ths-ti-layout{grid-template-columns:1fr}.ths-ti-live{display:none}.ths-ti-mobile-bottom{position:fixed;left:10px;right:10px;bottom:10px;z-index:9998;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#0f172a;color:#fff;border-radius:20px;padding:12px 14px;box-shadow:0 18px 40px rgba(15,23,42,.3)}.ths-ti-mobile-bottom span{display:block;color:#bfdbfe;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.ths-ti-mobile-bottom strong{font-size:24px}.ths-ti-shell{padding-bottom:100px}.ths-ti-grid,.ths-ti-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}.ths-ti-action-choice{grid-template-columns:1fr}.ths-ti-contact-grid{grid-template-columns:1fr}}
@media(max-width:640px){.ths-ti-shell{padding:12px 10px 100px}.ths-ti-hero{border-radius:24px;padding:26px 20px}.ths-ti-hero h1{font-size:32px}.ths-ti-hero p{font-size:15px}.ths-ti-step{padding:20px}.ths-ti-step h2{font-size:25px}.ths-ti-step-head{display:block}.ths-ti-grid,.ths-ti-grid.two,.ths-ti-grid.four{grid-template-columns:1fr}.ths-ti-checklist{grid-template-columns:1fr}.ths-ti-estimate-big .value{font-size:39px}.ths-ti-nav{align-items:stretch;flex-direction:column}.ths-ti-nav-right{justify-content:stretch}.ths-ti-nav .ths-ti-btn{width:100%}}

/* -------------------------------------------------------------------------
 * PRO landing polish 2026-05-30
 * ------------------------------------------------------------------------- */
body.ths-tradein-public-page{
  background:
    radial-gradient(circle at 18% 0%, rgba(59,130,246,.15), transparent 30%),
    linear-gradient(180deg,#edf6ff 0%,#f8fbff 55%,#ffffff 100%);
}
.ths-ti-shell{max-width:1190px;padding-top:32px}
.ths-ti-hero{
  border-radius:34px;
  padding:42px 34px;
  background:
    radial-gradient(circle at 92% 0%, rgba(255,255,255,.22), transparent 25%),
    radial-gradient(circle at 12% 18%, rgba(96,165,250,.25), transparent 34%),
    linear-gradient(135deg,#10234f 0%,#0e3d91 48%,#0d6efd 100%);
  box-shadow:0 28px 80px rgba(15,23,42,.25), inset 0 1px 0 rgba(255,255,255,.12);
}
.ths-ti-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(2,6,23,.18),transparent 68%);pointer-events:none}
.ths-ti-hero:after{right:-95px;top:-130px;width:420px;height:420px;background:rgba(255,255,255,.12)}
.ths-ti-hero-inner{gap:38px;grid-template-columns:minmax(0,1.18fr) minmax(330px,.82fr)}
.ths-ti-eyebrow{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.3);box-shadow:inset 0 1px 0 rgba(255,255,255,.12)}
.ths-ti-hero h1{font-size:52px;letter-spacing:-2px;text-wrap:balance;text-shadow:0 2px 0 rgba(0,0,0,.05)}
.ths-ti-hero p{max-width:700px;color:#e0edff;font-size:17.5px}
.ths-ti-btn-primary{
  background:linear-gradient(135deg,#ff9f1c,#ff6b00);
  color:#fff;
  border-color:rgba(255,255,255,.22);
  box-shadow:0 16px 30px rgba(255,107,0,.28), inset 0 1px 0 rgba(255,255,255,.3);
}
.ths-ti-btn-primary:hover{box-shadow:0 20px 34px rgba(255,107,0,.35), inset 0 1px 0 rgba(255,255,255,.3)}
.ths-ti-btn-ghost{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.32)}
.ths-ti-hero-card{
  background:linear-gradient(180deg,rgba(255,255,255,.18),rgba(255,255,255,.10));
  border-color:rgba(255,255,255,.28);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 18px 40px rgba(2,6,23,.14);
}
.ths-ti-hero-card-title{font-size:20px;letter-spacing:-.3px}
.ths-ti-hero-card-row{padding:14px 0}
.ths-ti-welcome-info{margin-top:22px;padding:30px;border-radius:30px;box-shadow:0 22px 60px rgba(15,23,42,.10)}
.ths-ti-welcome-info .ths-ti-grid{gap:16px}
.ths-ti-welcome-info .ths-ti-option{min-height:126px;padding:22px;border-radius:22px;background:linear-gradient(180deg,#fff,#fbfdff)}
.ths-ti-welcome-info .ths-ti-option-icon{font-size:34px}
.ths-ti-welcome-info .ths-ti-option-title{font-size:17px}
.ths-ti-progress-wrap{scroll-margin-top:18px;border-radius:24px;margin-top:24px}
.ths-ti-layout{gap:22px;scroll-margin-top:18px}
.ths-ti-card{border-color:#dfeaf7;box-shadow:0 18px 52px rgba(15,23,42,.085)}
.ths-ti-step{padding:32px}.ths-ti-main{border-radius:30px}.ths-ti-live{border-radius:30px}.ths-ti-live-head{border-radius:30px 30px 0 0;background:linear-gradient(135deg,#0e47a1,#0d6efd 62%,#22c55e)}
.ths-ti-option{border-color:#d8e5f4}.ths-ti-option:hover{transform:translateY(-3px)}
.ths-ti-option.is-selected{box-shadow:0 0 0 4px rgba(13,110,253,.11),0 18px 34px rgba(15,23,42,.08)}
.ths-ti-estimate-big{box-shadow:inset 0 1px 0 rgba(255,255,255,.75),0 18px 38px rgba(16,185,129,.09)}
.ths-ti-estimate-big .value{background:linear-gradient(135deg,#047857,#16a34a);-webkit-background-clip:text;background-clip:text;color:transparent}
.ths-ti-suggestions{border-color:#dce8f6}.ths-ti-suggestion:hover{background:#eef6ff}.ths-ti-chip:hover{transform:translateY(-1px)}
.ths-ti-mobile-bottom{border:1px solid rgba(255,255,255,.16)}
@media(max-width:920px){
  .ths-ti-shell{padding-top:16px}
  .ths-ti-hero{padding:30px 24px;border-radius:28px}
  .ths-ti-hero-inner{grid-template-columns:1fr;gap:22px}
  .ths-ti-hero-card{order:2;max-width:none}
  .ths-ti-hero-actions{margin-top:20px}
  .ths-ti-welcome-info{padding:20px;border-radius:26px}
  .ths-ti-live-head .price{font-size:32px}
}
@media(max-width:640px){
  .ths-ti-shell{padding-top:10px}
  .ths-ti-hero{padding:26px 20px;border-radius:26px}
  .ths-ti-hero h1{font-size:34px;letter-spacing:-1.2px}
  .ths-ti-hero p{font-size:15.5px}
  .ths-ti-hero-actions{display:grid;grid-template-columns:1fr;gap:10px}
  .ths-ti-hero-actions .ths-ti-btn{width:100%}
  .ths-ti-hero-card{padding:18px;border-radius:22px}
  .ths-ti-hero-card-title{font-size:17px}
  .ths-ti-hero-card-row{font-size:13px;padding:11px 0}
  .ths-ti-welcome-info{padding:16px}
  .ths-ti-welcome-info .ths-ti-option{min-height:auto;padding:18px}
  .ths-ti-progress-wrap{margin-top:18px}
  .ths-ti-step{padding:22px}
}
/* Trade-in public search + anonymous history polish */
.ths-ti-model-search-line{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center}.ths-ti-search-btn{height:50px;border-radius:16px;padding:0 22px;white-space:nowrap}.ths-ti-results-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin:16px 0 10px}.ths-ti-results-head strong{font-size:14px;font-weight:950;color:#0f172a}.ths-ti-results-head span{font-size:12px;font-weight:850;color:#64748b;text-align:right}.ths-ti-results-list{max-height:360px}.ths-ti-model-result,.ths-ti-history-row{min-height:64px}.ths-ti-price-range{display:grid;gap:2px;text-align:right;white-space:nowrap}.ths-ti-price-range small{font-size:11px;font-weight:900;color:#64748b;text-transform:uppercase;letter-spacing:.02em}.ths-ti-price-range strong{font-size:16px!important;color:#0d6efd!important;font-weight:950!important}.ths-ti-history-row{background:linear-gradient(180deg,#fff,#fbfdff)}
@media(max-width:640px){.ths-ti-model-search-line{grid-template-columns:1fr}.ths-ti-search-btn{width:100%}.ths-ti-results-head{display:block}.ths-ti-results-head span{display:block;text-align:left;margin-top:4px}.ths-ti-suggestion{align-items:flex-start}.ths-ti-price-range{text-align:left}.ths-ti-price-range strong{font-size:14px!important}}

/* Trade-in search alignment + exact result polish */
.ths-ti-model-search-line{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  width:100%!important;
}
.ths-ti-model-search-line .ths-ti-input{
  flex:1 1 auto!important;
  min-width:0!important;
}
.ths-ti-model-search-line .ths-ti-search-btn{
  flex:0 0 auto!important;
  height:50px!important;
  min-width:108px!important;
  margin:0!important;
}
.ths-ti-results-head{
  gap:10px!important;
}
.ths-ti-results-head strong::after{
  content:"";
}
@media(max-width:640px){
  .ths-ti-model-search-line{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;}
  .ths-ti-model-search-line .ths-ti-search-btn{width:100%!important;min-width:0!important;}
}

/* Trade-in public UI: percentage-based cosmetic condition cards */
.ths-ti-condition-card{align-items:stretch;text-align:left;min-height:230px}
.ths-ti-condition-head{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%}
.ths-ti-condition-rate{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#eff6ff;color:#0d6efd;border:1px solid #bfdbfe;font-size:12px;font-weight:1000;padding:5px 9px;white-space:nowrap}
.ths-ti-condition-card .ths-ti-option-desc strong{display:block;color:#334155;font-size:12.5px;margin-bottom:7px}
.ths-ti-condition-card .ths-ti-option-desc ul{margin:0;padding-left:18px;display:grid;gap:4px}
.ths-ti-condition-card .ths-ti-option-desc li{font-size:12px;line-height:1.35;color:#64748b;font-weight:750}
.ths-ti-condition-card.is-selected .ths-ti-condition-rate{background:#0d6efd;color:#fff;border-color:#0d6efd}
@media(max-width:560px){.ths-ti-condition-card{min-height:0}.ths-ti-condition-head{align-items:flex-start}.ths-ti-condition-rate{font-size:11px;padding:4px 8px}}

/* Instant estimate screen: one clear path forward */
.ths-ti-instant-nav{
  margin-top:22px;
  align-items:center;
}
.ths-ti-instant-nav .ths-ti-nav-right{
  margin-top:0;
}
.ths-ti-instant-nav .ths-ti-btn-blue{
  min-width:150px;
}
@media (max-width: 760px){
  .ths-ti-instant-nav{
    gap:14px;
  }
  .ths-ti-instant-nav .ths-ti-nav-right{
    width:100%;
    justify-content:stretch;
  }
  .ths-ti-instant-nav .ths-ti-btn{
    width:100%;
  }
}

/* Trade-in additional issues: explicit no-issue choice */
.ths-ti-check-none {
  background: linear-gradient(180deg, #f7fff9 0%, #ffffff 100%);
  border-style: dashed;
}
.ths-ti-check-none.is-selected {
  border-color: #16a34a;
  background: #ecfdf5;
  box-shadow: 0 14px 34px rgba(22, 163, 74, 0.12);
}
.ths-ti-helper-note {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  background: #eff6ff;
  color: #31506f;
  font-size: 13px;
  font-weight: 700;
}

/* Trade-in previous repair rule polish */
.ths-ti-check.ths-ti-check-danger{
  border-color:#fecaca;
  background:#fff7f7;
}
.ths-ti-check.ths-ti-check-danger.is-selected{
  border-color:#ef4444;
  box-shadow:0 0 0 3px rgba(239,68,68,.12);
}
.ths-ti-check.ths-ti-check-danger strong{
  color:#991b1b;
}

/* Mail-In shipping address selector */
.ths-ti-mail-address-box{margin-top:16px;border:1px solid #dbeafe;background:#f8fbff;border-radius:18px;padding:16px;}
.ths-ti-mail-title{font-weight:800;color:#0f172a;margin-bottom:10px;}
.ths-ti-mail-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.ths-ti-mail-address{position:relative;text-align:left;border:1px solid #dbe4f0;background:#fff;border-radius:16px;padding:14px 14px 14px 42px;cursor:pointer;box-shadow:0 10px 20px rgba(15,23,42,.04);transition:.18s ease;}
.ths-ti-mail-address:hover{border-color:#93c5fd;transform:translateY(-1px);box-shadow:0 14px 30px rgba(37,99,235,.10);}
.ths-ti-mail-address.is-selected{border-color:#2563eb;background:#eff6ff;box-shadow:0 16px 34px rgba(37,99,235,.14);}
.ths-ti-mail-address .ths-ti-option-dot{position:absolute;left:14px;top:16px;}
.ths-ti-mail-address strong{display:block;color:#0f172a;font-size:14px;margin-bottom:4px;}
.ths-ti-mail-address span{display:block;color:#334155;font-size:13px;margin-bottom:4px;}
.ths-ti-mail-address em{display:block;color:#64748b;font-style:normal;font-size:13px;line-height:1.45;}
.ths-ti-mail-address small{display:block;color:#64748b;font-size:12px;margin-top:5px;line-height:1.35;}
@media (max-width:760px){.ths-ti-mail-list{grid-template-columns:1fr;}}

/* Fix: show selected radio dot for Mail-In shipping address cards (public trade-in page) */
.ths-ti-mail-address.is-selected .ths-ti-option-dot{
  background:#0d6efd;
  border-color:#0d6efd;
  box-shadow:inset 0 0 0 4px #fff;
}
.ths-ti-mail-address.is-selected:focus-visible{
  outline:3px solid rgba(13,110,253,.24);
  outline-offset:2px;
}

/* iPad/Safari stability patch for public Trade-in wizard.
   Keep this minimal. Do not force WordPress wrappers to overflow:visible and do
   not create a custom touchmove scroll guard; that was the cause of the iPad
   tiny-swipe refresh/reset behaviour. Let Safari own the page scroll. */
html,
body.ths-tradein-public-page{
  overflow-x:hidden;
}
.ths-tradein-app{
  touch-action:pan-y;
  -webkit-tap-highlight-color:transparent;
}
.ths-tradein-app button,
.ths-tradein-app input,
.ths-tradein-app select,
.ths-tradein-app textarea{
  touch-action:manipulation;
  font-size:16px;
}
@supports (-webkit-touch-callout:none){
  .ths-tradein-app .ths-ti-shell{
    padding-bottom:calc(96px + env(safe-area-inset-bottom));
  }
}

/* -------------------------------------------------------------------------
 * Public Trade-in professional load
 * ------------------------------------------------------------------------- */
.ths-ti-preload{padding-top:32px;}
.ths-ti-preload .ths-ti-hero{min-height:360px;display:flex;align-items:center;}
.ths-ti-preload .ths-ti-hero-actions .ths-ti-btn{opacity:.84;cursor:wait;}
.ths-ti-loading{
  min-height:auto;
  margin:32px auto;
  max-width:560px;
  padding:22px 24px;
  border:1px solid #dbe7f5;
  border-radius:24px;
  background:#fff;
  box-shadow:0 16px 45px rgba(15,23,42,.08);
}

/* -------------------------------------------------------------------------
 * Website header integration for /tradein (Option B)
 * The page now uses the active theme header/footer, so keep Trade-In content
 * as a normal website page rather than a standalone dead-end landing page.
 * ------------------------------------------------------------------------- */
body.ths-tradein-public-page .ths-ti-shell{
  padding-top:24px;
}
.ths-ti-breadcrumb{
  max-width:1190px;
  margin:0 auto 16px;
  display:flex;
  align-items:center;
  gap:8px;
  color:#64748b;
  font-size:13px;
  font-weight:800;
}
.ths-ti-breadcrumb a{
  color:#0d6efd;
  text-decoration:none;
}
.ths-ti-breadcrumb a:hover{
  text-decoration:underline;
}
.ths-ti-breadcrumb strong{
  color:#0f172a;
  font-weight:950;
}
body.ths-tradein-public-page .main-navigation a,
body.ths-tradein-public-page nav a,
body.ths-tradein-public-page .menu a,
body.ths-tradein-public-page .primary-menu a{
  white-space:nowrap;
}
@media(max-width:640px){
  body.ths-tradein-public-page .ths-ti-shell{padding-top:14px;}
  .ths-ti-breadcrumb{padding:0 6px;margin-bottom:12px;}
}
