/* MOTwise v48 shared support UI: Reset & Start Over, Vehicle Tax snapshot, Harryp Help. */

/* Reset controls */
.mw-reset-start{
  appearance:none;border:1px solid var(--mt-line,#d8e3ee);background:var(--mt-surface,#fff);color:var(--mt-text,#081a33);
  min-height:38px;padding:0 12px;border-radius:9px;font:inherit;font-size:11px;font-weight:850;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap
}
.mw-reset-start:hover{background:var(--mt-surface-2,#f8fbff);border-color:var(--mt-line-strong,#c7d5e3)}
body.v2-body .v2-nav .mw-reset-start.v2-nav-item{width:100%;justify-content:flex-start;border:0;background:transparent;color:inherit;padding:0 12px}
body.v2-body .v2-nav .mw-reset-start.v2-nav-item:hover{background:rgba(255,255,255,.07)}
body.v2-body .v2-nav .mw-reset-start.v2-nav-item span{width:28px;text-align:center;font-size:17px}
body[data-feature] .mwf-top-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
body[data-feature] .mwf-top-actions .mw-reset-start{height:38px}

/* Vehicle Tax tile inside Vehicle Snapshot */
html body.v2-body #results.results:not(.hidden) .v2-vehicle-detail-grid.mw-has-tax{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
html body.v2-body #results.results:not(.hidden) .v2-vehicle-detail-grid .mw-tax-snapshot{
  --mw-tax-accent:var(--mt-muted-2,#7c8fa3);
  --mw-tax-bg:var(--mt-surface-2,#f8fbff);
  --mw-tax-border:var(--mt-line,#d8e3ee);
  position:relative!important;
  overflow:hidden!important;
  background:var(--mw-tax-bg)!important;
  border-color:var(--mw-tax-border)!important;
  color:var(--mt-text,#081a33)!important;
  transition:background-color .18s ease,border-color .18s ease,color .18s ease!important;
}
html body.v2-body #results.results:not(.hidden) .v2-vehicle-detail-grid .mw-tax-snapshot small{
  color:var(--mt-muted,#60758d)!important;
  white-space:nowrap!important;
}
html body.v2-body #results.results:not(.hidden) .v2-vehicle-detail-grid .mw-tax-snapshot strong{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  color:var(--mw-tax-accent)!important;
}
html body.v2-body #results.results:not(.hidden) .v2-vehicle-detail-grid .mw-tax-snapshot strong:before{
  content:"";width:6px;height:6px;border-radius:50%;background:var(--mw-tax-accent);flex:0 0 6px
}
html body.v2-body #results.results:not(.hidden) .v2-vehicle-detail-grid .mw-tax-snapshot em{
  display:block;margin:0;color:var(--mt-text-2,#314b65)!important;font-size:6.7px;line-height:1.15;font-weight:700;font-style:normal;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
html body.v2-body #results.results:not(.hidden) .mw-tax-snapshot.is-taxed{
  --mw-tax-accent:var(--mt-green,#078f47);
  --mw-tax-bg:var(--mt-green-bg,#eaf7ef);
  --mw-tax-border:color-mix(in srgb,var(--mt-green,#078f47) 44%,var(--mt-line,#d8e3ee));
}
html body.v2-body #results.results:not(.hidden) .mw-tax-snapshot.is-sorn{
  --mw-tax-accent:var(--mt-amber,#a86700);
  --mw-tax-bg:var(--mt-amber-bg,#fff5df);
  --mw-tax-border:color-mix(in srgb,var(--mt-amber,#a86700) 46%,var(--mt-line,#d8e3ee));
}
html body.v2-body #results.results:not(.hidden) .mw-tax-snapshot.is-untaxed{
  --mw-tax-accent:var(--mt-red,#b83b36);
  --mw-tax-bg:var(--mt-red-bg,#ffe9e7);
  --mw-tax-border:color-mix(in srgb,var(--mt-red,#b83b36) 46%,var(--mt-line,#d8e3ee));
}
html body.v2-body #results.results:not(.hidden) .mw-tax-snapshot.is-unknown{
  --mw-tax-accent:var(--mt-muted-2,#7c8fa3);
  --mw-tax-bg:var(--mt-surface-2,#f8fbff);
  --mw-tax-border:var(--mt-line,#d8e3ee);
}

/* Authoritative Snapshot cascade override: match the legacy high-specificity detail-card contract. */
html body.v2-body #results.results:not(.hidden) .v2-snapshot-grid .v2-vehicle-card .v2-vehicle-detail-grid.mw-has-tax{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
html body.v2-body #results.results:not(.hidden) .v2-snapshot-grid .v2-vehicle-card .v2-vehicle-detail-grid.mw-has-tax>.mw-tax-snapshot{
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  background:var(--mw-tax-bg)!important;
  border-color:var(--mw-tax-border)!important;
  color:var(--mt-text,#081a33)!important;
}
html body.v2-body #results.results:not(.hidden) .v2-snapshot-grid .v2-vehicle-card .v2-vehicle-detail-grid.mw-has-tax>.mw-tax-snapshot small,
html body.v2-body #results.results:not(.hidden) .v2-snapshot-grid .v2-vehicle-card .v2-vehicle-detail-grid.mw-has-tax>.mw-tax-snapshot strong,
html body.v2-body #results.results:not(.hidden) .v2-snapshot-grid .v2-vehicle-card .v2-vehicle-detail-grid.mw-has-tax>.mw-tax-snapshot em{
  width:100%!important;
  text-align:center!important;
}
html body.v2-body #results.results:not(.hidden) .v2-snapshot-grid .v2-vehicle-card .v2-vehicle-detail-grid.mw-has-tax>.mw-tax-snapshot strong{
  justify-content:center!important;
  color:var(--mw-tax-accent)!important;
}
html body.v2-body #results.results:not(.hidden) .v2-snapshot-grid .v2-vehicle-card .v2-vehicle-detail-grid.mw-has-tax>.mw-tax-snapshot small{
  color:var(--mt-muted,#60758d)!important;
}
html body.v2-body #results.results:not(.hidden) .v2-snapshot-grid .v2-vehicle-card .v2-vehicle-detail-grid.mw-has-tax>.mw-tax-snapshot em{
  color:var(--mt-text-2,#314b65)!important;
}
html body.v2-body #results.results:not(.hidden) .v2-snapshot-grid .v2-vehicle-card .v2-vehicle-detail-grid.mw-has-tax>.mw-tax-snapshot.is-taxed{
  --mw-tax-accent:var(--mt-green,#078f47);
  --mw-tax-bg:var(--mt-green-bg,#eaf7ef);
  --mw-tax-border:color-mix(in srgb,var(--mt-green,#078f47) 44%,var(--mt-line,#d8e3ee));
}
html body.v2-body #results.results:not(.hidden) .v2-snapshot-grid .v2-vehicle-card .v2-vehicle-detail-grid.mw-has-tax>.mw-tax-snapshot.is-sorn{
  --mw-tax-accent:var(--mt-amber,#a86700);
  --mw-tax-bg:var(--mt-amber-bg,#fff5df);
  --mw-tax-border:color-mix(in srgb,var(--mt-amber,#a86700) 46%,var(--mt-line,#d8e3ee));
}
html body.v2-body #results.results:not(.hidden) .v2-snapshot-grid .v2-vehicle-card .v2-vehicle-detail-grid.mw-has-tax>.mw-tax-snapshot.is-untaxed{
  --mw-tax-accent:var(--mt-red,#b83b36);
  --mw-tax-bg:var(--mt-red-bg,#ffe9e7);
  --mw-tax-border:color-mix(in srgb,var(--mt-red,#b83b36) 46%,var(--mt-line,#d8e3ee));
}
html body.v2-body #results.results:not(.hidden) .v2-snapshot-grid .v2-vehicle-card .v2-vehicle-detail-grid.mw-has-tax>.mw-tax-snapshot.is-unknown{
  --mw-tax-accent:var(--mt-muted-2,#7c8fa3);
  --mw-tax-bg:var(--mt-surface-2,#f8fbff);
  --mw-tax-border:var(--mt-line,#d8e3ee);
}

/* Harryp support assistant */
#harrypHelpRoot{position:fixed;left:16px;bottom:16px;z-index:2147482000;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--mt-text,#081a33)}
#harrypHelpRoot *{box-sizing:border-box}
.harryp-launcher{height:48px;min-width:48px;padding:0 14px;border:1px solid rgba(255,255,255,.16);border-radius:14px;background:linear-gradient(135deg,#0b315b,#0d68c8);color:#fff;box-shadow:0 14px 32px rgba(3,24,52,.28);display:flex;align-items:center;gap:10px;cursor:pointer;font:inherit}
.harryp-avatar{width:30px;height:30px;border-radius:9px;background:linear-gradient(135deg,#54e1d0,#62a9ff);color:#062143;display:grid;place-items:center;font-size:14px;font-weight:950;flex:0 0 30px}
.harryp-launcher-copy{display:grid;text-align:left;line-height:1.05}.harryp-launcher-copy strong{font-size:12px;color:#fff}.harryp-launcher-copy small{margin-top:3px;font-size:8.5px;color:#d6e6f5}
.harryp-panel{position:absolute;left:0;bottom:58px;width:min(352px,calc(100vw - 24px));height:min(470px,calc(100vh - 98px));display:none;grid-template-rows:auto minmax(0,1fr) auto;background:var(--mt-surface,#fff);color:var(--mt-text,#081a33);border:1px solid var(--mt-line,#d8e3ee);border-radius:16px;box-shadow:0 24px 70px rgba(3,20,45,.32);overflow:hidden}
#harrypHelpRoot.is-open .harryp-panel{display:grid}
.harryp-head{min-height:64px;padding:11px 12px;display:flex;align-items:center;gap:10px;background:linear-gradient(135deg,#071f3d,#0b3f76);color:#fff;border-bottom:1px solid rgba(255,255,255,.08)}
.harryp-head .harryp-avatar{width:34px;height:34px;flex-basis:34px}.harryp-head-copy{min-width:0;display:grid}.harryp-head-copy strong{font-size:13px;color:#fff}.harryp-head-copy small{margin-top:3px;color:#cfe0ef;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.harryp-close{margin-left:auto;width:32px;height:32px;border:1px solid rgba(255,255,255,.16);border-radius:9px;background:rgba(255,255,255,.08);color:#fff;font-size:19px;cursor:pointer}
.harryp-body{overflow:auto;padding:12px;background:var(--mt-page,#f4f7fb)}
.harryp-message{max-width:88%;margin-bottom:9px;padding:9px 10px;border-radius:11px;font-size:11px;line-height:1.45}
.harryp-message.bot{background:var(--mt-surface,#fff);color:var(--mt-text-2,#314b65);border:1px solid var(--mt-line,#d8e3ee);border-top-left-radius:4px}
.harryp-message.user{margin-left:auto;background:#0d64c4;color:#fff;border-bottom-right-radius:4px}
.harryp-message strong{color:inherit}.harryp-message .harryp-tax{display:block;margin-top:6px;padding:7px 8px;border-radius:8px;background:var(--mt-surface-2,#f8fbff);color:var(--mt-text,#081a33);border:1px solid var(--mt-line,#d8e3ee)}
.harryp-quick{display:flex;gap:6px;flex-wrap:wrap;margin:4px 0 10px}.harryp-quick button{border:1px solid var(--mt-line,#d8e3ee);background:var(--mt-surface,#fff);color:var(--mt-text-2,#314b65);border-radius:999px;padding:6px 8px;font:inherit;font-size:9px;font-weight:800;cursor:pointer}.harryp-quick button:hover{border-color:#0d64c4;color:#0d64c4}
.harryp-form{padding:10px;border-top:1px solid var(--mt-line,#d8e3ee);background:var(--mt-surface,#fff);display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}.harryp-form input{height:40px;min-width:0;border:1px solid var(--mt-line-strong,#c7d5e3);border-radius:9px;background:var(--mt-field,#fff);color:var(--mt-text,#081a33);padding:0 10px;font:inherit;font-size:11px}.harryp-form input:focus{outline:3px solid rgba(13,100,196,.14);border-color:#0d64c4}.harryp-form button{height:40px;padding:0 12px;border:0;border-radius:9px;background:#0d64c4;color:#fff;font:inherit;font-size:10px;font-weight:900;cursor:pointer}
body.v2-body .v2-sidebar-bottom{padding-bottom:66px}
body[data-feature] .mwf-sidebar{padding-bottom:78px!important}
.v2-shell[data-sidebar="collapsed"]~#harrypHelpRoot .harryp-launcher-copy{display:none}
html[data-theme="dark"] .harryp-message .harryp-tax,html[data-mw-theme="dark"] .harryp-message .harryp-tax{background:var(--mt-surface-2,#102943)}

/* Shared typography, keyboard and motion authority. */
:root{--mw-font-sans:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
html{font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
body.v2-body,body[data-feature],body.v2-body button,body.v2-body input,body.v2-body select,body.v2-body textarea,body[data-feature] button,body[data-feature] input,body[data-feature] select,body[data-feature] textarea{font-family:var(--mw-font-sans)!important}
body.v2-body :where(button,input,select,textarea),body[data-feature] :where(button,input,select,textarea){font:inherit}
body.v2-body :where(a,button,input,select,textarea,[tabindex]):focus-visible,body[data-feature] :where(a,button,input,select,textarea,[tabindex]):focus-visible{outline:3px solid #f5c400!important;outline-offset:2px!important}
body.v2-body :where(button,input,select,textarea):disabled,body[data-feature] :where(button,input,select,textarea):disabled{cursor:not-allowed;opacity:.65}

@media(max-width:760px){
  html body.v2-body #results.results:not(.hidden) .v2-snapshot-grid .v2-vehicle-card .v2-vehicle-detail-grid.mw-has-tax{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #harrypHelpRoot{left:10px;bottom:10px}.harryp-panel{bottom:56px;width:calc(100vw - 20px);height:min(460px,calc(100vh - 82px))}.harryp-launcher-copy{display:none}.harryp-launcher{padding:0 9px}
  body[data-feature] .mwf-top-actions{width:100%;justify-content:flex-end;flex-wrap:wrap}
}
@media(max-width:420px){
  html body.v2-body #results.results:not(.hidden) .v2-snapshot-grid .v2-vehicle-card .v2-vehicle-detail-grid.mw-has-tax{grid-template-columns:1fr!important}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto!important}
  body.v2-body *,body[data-feature] *{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
