/* Vehicle history check (update 20; band redesigned in update 41): the band on adverts (right after the free health report),
   the pointer inside the health report / Motorit Intelligence, and the private report page.
   Uses the vehicle page tokens (--mv-*). Pale blue for the offer; green only for clear results (same semantic green as the MOT history). */
.motorit-vehicle-v3 { --hc-ok-bg: rgb(232, 246, 239); --hc-ok-ink: rgb(18, 98, 56); --hc-ok-line: rgb(176, 220, 196); --hc-alert-ink: rgb(180, 35, 24); --hc-alert-bg: rgb(253, 236, 234); --hc-alert-line: rgb(240, 190, 184);
  --hc-blue-bg: #eef7fd; --hc-blue-line: #cfe2f3; --hc-blue-soft: #f7fbfe; }

/* ---- The band ---- */
.motorit-vehicle-v3 .motorit-hcw { margin-top: var(--mv-gap); padding: 24px; border-color: var(--hc-blue-line); background: var(--hc-blue-bg); }
.motorit-vehicle-v3 .motorit-vehicle__insights > .motorit-hcw { margin-top: 0; }
.motorit-hcw { scroll-margin-top: 16px; }
.motorit-hcw__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 28px; align-items: start; }
.motorit-hcw__title { display: flex; align-items: center; gap: 12px; }
.motorit-hc__icon { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #fff; border: 1px solid var(--hc-blue-line); }
.motorit-hc__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--mv-brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.motorit-vehicle-v3 .motorit-hcw h2 { margin: 0; }
.motorit-hc__lede { margin: 10px 0 0; color: #4b6275; font-size: 15px; font-weight: 700; line-height: 1.5; }
.motorit-hc__lede b, .motorit-hc__lede span { color: var(--mv-ink); }
.motorit-hc__lede span { white-space: nowrap; }
.motorit-hc__joke { margin: 12px 0 0; color: var(--mv-ink); font-size: 14px; font-weight: 750; line-height: 1.45; }

.motorit-hcw__buy { padding: 18px; border: 1px solid var(--hc-blue-line); border-radius: 14px; background: #fff; }
.motorit-hc__price { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.motorit-hc__amount { color: var(--mv-ink); font-size: 30px; font-weight: 900; line-height: 1; letter-spacing: -0.01em; }
.motorit-hc__amount small { display: block; margin-top: 6px; color: var(--mv-muted); font-size: 12.5px; font-weight: 700; letter-spacing: 0; }
.motorit-hc__tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border: 1px solid var(--hc-blue-line); border-radius: 999px; background: #e9f3fc; color: var(--mv-brand-dark); font-size: 10.5px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.motorit-hc__compare { margin: 10px 0 0; color: var(--mv-muted); font-size: 12.5px; font-weight: 700; line-height: 1.45; }
.motorit-vehicle-v3 .motorit-hcw .motorit-vehicle-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 14px; }
.motorit-vehicle-v3 .motorit-hcw .motorit-vehicle-button svg { flex: 0 0 auto; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.motorit-vehicle-v3 .motorit-hcw .motorit-vehicle-button[aria-disabled="true"] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.motorit-hc__soon { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--hc-blue-line); border-radius: 12px; background: var(--hc-blue-soft); color: var(--mv-ink); font-size: 12.5px; font-weight: 700; line-height: 1.45; }
.motorit-hc__soon b { display: block; color: var(--mv-brand-dark); font-size: 12px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.motorit-hc__score { display: flex; flex-wrap: wrap; gap: 8px; }
.motorit-hc__score span { display: inline-flex; align-items: baseline; gap: 5px; min-height: 30px; padding: 4px 11px; border: 1px solid var(--hc-ok-line); border-radius: 999px; background: var(--hc-ok-bg); color: var(--hc-ok-ink); font-size: 13px; font-weight: 800; }
.motorit-hc__score span b { font-size: 16px; font-weight: 900; }
.motorit-hc__score span.is-alert { border-color: var(--hc-alert-line); background: var(--hc-alert-bg); color: var(--hc-alert-ink); }
.motorit-hc__score span:nth-child(2):not(.is-alert), .motorit-hc__score span:nth-child(n+3) { border-color: var(--hc-blue-line); background: var(--hc-blue-soft); color: var(--mv-brand-dark); }
.motorit-hc__device p { margin: 0; color: #4b6275; font-size: 13px; font-weight: 700; line-height: 1.45; }
.motorit-hc__device p b { display: block; color: var(--mv-ink); font-size: 15px; font-weight: 900; }
.motorit-hcw[data-hc-device-done] .motorit-hcw__buy > :not([data-hc-device]) { display: none; }

/* What's included: 3 x 3 on desktop and tablet, 1 column on phones. Each check carries a padlock until it is bought. */
.motorit-hc__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.motorit-hc__list li { display: grid; grid-template-columns: 36px minmax(0, 1fr) 28px; align-items: center; gap: 12px; min-height: 66px; padding: 11px 12px; border: 1px solid #dbe9f4; border-radius: 14px; background: #fff; }
.motorit-hc__ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--hc-blue-bg); }
.motorit-hc__list svg { width: 19px; height: 19px; fill: none; stroke: var(--mv-brand); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.motorit-hc__what { min-width: 0; }
.motorit-hc__list strong { display: block; color: var(--mv-ink); font-size: 14px; font-weight: 850; line-height: 1.3; }
.motorit-hc__list small { display: block; margin-top: 2px; color: var(--mv-muted); font-size: 12.5px; font-weight: 650; line-height: 1.4; }
.motorit-hc__state { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--hc-blue-bg); color: var(--mv-brand-dark); font-size: 14px; font-weight: 900; }
.motorit-hc__state svg { width: 15px; height: 15px; stroke: #5f8aa6; }
.motorit-hc__list li.is-ok .motorit-hc__state { background: var(--hc-ok-ink); color: #fff; }
.motorit-hc__list li.is-ok small { color: var(--hc-ok-ink); font-weight: 750; }
.motorit-hc__list li.is-alert { border-color: var(--hc-alert-line); }
.motorit-hc__list li.is-alert .motorit-hc__state { background: var(--hc-alert-ink); color: #fff; }
.motorit-hc__list li.is-alert small { color: var(--hc-alert-ink); font-weight: 750; }

/* Bottom strip: MOT is free (so not included) + small print */
.motorit-hcw__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #d6e6f2; }
.motorit-hc__free { display: inline-flex; gap: 10px; align-items: center; margin: 0; padding: 9px 12px; border: 1px dashed #b9d5ea; border-radius: 12px; background: #fff; color: var(--mv-ink); font-size: 13px; font-weight: 750; line-height: 1.45; }
.motorit-hc__free svg { flex: 0 0 auto; width: 18px; height: 18px; fill: none; stroke: var(--mv-brand); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.motorit-hc__free a { color: var(--mv-brand); font-weight: 900; text-decoration: underline; text-underline-offset: 2px; }
.motorit-hc__small { margin: 0; color: var(--mv-muted); font-size: 11.5px; font-weight: 650; line-height: 1.5; }

/* Wide screens: intro and the checks on the left, the price panel beside them (no empty gap under the intro). */
@media (min-width: 1101px) {
  .motorit-vehicle-v3 .motorit-hcw { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); column-gap: 28px; align-items: start; }
  .motorit-hcw__top { display: contents; }
  .motorit-hcw__intro { grid-column: 1; grid-row: 1; }
  .motorit-hcw__buy { grid-column: 2; grid-row: 1 / span 2; }
  .motorit-hc__list { grid-column: 1; grid-row: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; }
  .motorit-hcw__foot { grid-column: 1 / -1; grid-row: 3; }
}
@media (max-width: 1100px) {
  .motorit-hc__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
  .motorit-hcw__top { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .motorit-hcw__foot { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .motorit-vehicle-v3 .motorit-hcw { padding: 18px; }
  .motorit-hc__list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .motorit-hc__list li { min-height: 0; padding: 9px 12px; }
  .motorit-hcw[data-hc-state="locked"] .motorit-hc__list small { display: none; }
  .motorit-hcw[data-hc-state="locked"] .motorit-hc__ico { width: 32px; height: 32px; }
  .motorit-hcw[data-hc-state="locked"] .motorit-hc__list li { grid-template-columns: 32px minmax(0, 1fr) 26px; }
}

/* ---- Update 42: the one-line pointer in the health report (the full band follows right after it) ---- */
.motorit-hc-line { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 0; color: #4b6275; font-size: 14px; font-weight: 700; line-height: 1.5; }
.motorit-hc-line__icon { flex: 0 0 auto; display: grid; place-items: center; width: 24px; height: 24px; margin-top: -1px; border-radius: 50%; background: var(--hc-blue-bg, #eef7fd); border: 1px solid var(--hc-blue-line, #cfe2f3); }
.motorit-hc-line__icon svg { width: 13px; height: 13px; fill: none; stroke: var(--mv-brand, #067b9d); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.motorit-hc-line__text { min-width: 0; }
.motorit-vehicle-v3 a.motorit-hc-line__cta, .motorit-vehicle-v3 a.motorit-hc-line__cta:visited { display: inline-flex; align-items: center; gap: 4px; color: var(--mv-brand, #067b9d); font-weight: 850; text-decoration: underline; text-decoration-color: rgba(6, 123, 157, .35); text-underline-offset: 3px; white-space: nowrap; }
.motorit-vehicle-v3 a.motorit-hc-line__cta:hover, .motorit-vehicle-v3 a.motorit-hc-line__cta:focus-visible { color: var(--mv-brand-dark, #04607b); text-decoration-color: currentColor; outline: none; }
.motorit-vehicle-v3 a.motorit-hc-line__cta:focus-visible { box-shadow: 0 0 0 3px rgba(6, 123, 157, .25); border-radius: 4px; }
.motorit-hc-line__cta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---- The pointer inside the health report and Motorit Intelligence (update 41) ---- */
.motorit-hc-teaser { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 18px; align-items: center; margin-top: 18px; padding: 16px 18px; border: 1px solid var(--hc-blue-line, #cfe2f3); border-radius: 14px; background: var(--hc-blue-bg, #eef7fd); }
.motorit-hc-teaser__text strong { display: block; color: var(--mv-ink, #102b42); font-size: 15px; font-weight: 900; line-height: 1.3; }
.motorit-hc-teaser__text span { display: block; margin-top: 3px; color: #4b6275; font-size: 13.5px; font-weight: 700; line-height: 1.45; }
.motorit-hc-teaser__chips { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.motorit-hc-teaser__chips li { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 3px 10px 3px 8px; border: 1px solid #d6e6f2; border-radius: 999px; background: #fff; color: var(--mv-ink, #102b42); font-size: 12.5px; font-weight: 800; line-height: 1.2; }
.motorit-hc-teaser__chips svg { width: 13px; height: 13px; fill: none; stroke: #5f8aa6; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.motorit-hc-teaser__chips i { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--mv-brand, #067b9d); color: #fff; font-size: 10px; font-style: normal; font-weight: 900; }
.motorit-hc-teaser__chips li.is-ok i { background: var(--hc-ok-ink, rgb(18, 98, 56)); }
.motorit-hc-teaser__chips li.is-alert { border-color: var(--hc-alert-line, rgb(240, 190, 184)); color: var(--hc-alert-ink, rgb(180, 35, 24)); }
.motorit-hc-teaser__chips li.is-alert i { background: var(--hc-alert-ink, rgb(180, 35, 24)); }
.motorit-vehicle-v3 a.motorit-hc-teaser__cta, .motorit-vehicle-v3 a.motorit-hc-teaser__cta:visited { color: #fff; }
.motorit-hc-teaser__cta { grid-column: 2; grid-row: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 10px; background: var(--mv-brand, #067b9d); color: #fff; font-size: 14px; font-weight: 850; text-decoration: none; white-space: nowrap; }
.motorit-vehicle-v3 a.motorit-hc-teaser__cta:hover, .motorit-vehicle-v3 a.motorit-hc-teaser__cta:focus-visible { background: var(--mv-brand-dark, #04607b); color: #fff; outline: none; box-shadow: 0 0 0 3px rgba(6, 123, 157, .25); }
.motorit-hc-teaser__cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.motorit-vehicle-intelligence-v1 .motorit-hc-teaser { margin-top: 0; }
@media (max-width: 640px) {
  .motorit-hc-teaser { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .motorit-hc-teaser__chips { grid-row: auto; }
  .motorit-hc-teaser__cta { grid-column: auto; grid-row: auto; width: 100%; }
}

/* ---- The report page (/history-check/{token}/) ---- */
.motorit-hcr { display: grid; gap: var(--mv-gap); margin-top: 6px; }
.motorit-hcr__top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: start; }
.motorit-hcr__plate { display: inline-flex; align-items: stretch; height: 46px; border: 2px solid #102b42; border-radius: 8px; overflow: hidden; background: #f7d117; }
.motorit-hcr__plate span { display: grid; place-items: center; width: 30px; background: #1d4fa3; color: #fff; font-size: 9px; font-weight: 900; }
.motorit-hcr__plate strong { display: grid; place-items: center; padding: 0 14px; color: #111; font-size: 24px; font-weight: 900; letter-spacing: .08em; }
.motorit-hcr__vehicle { margin: 12px 0 0; color: var(--mv-ink); font-size: 16px; font-weight: 850; }
.motorit-hcr__stamp { margin: 6px 0 0; color: var(--mv-muted); font-size: 13px; font-weight: 700; line-height: 1.5; }
.motorit-hcr__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.motorit-hcr__actions .motorit-vehicle-button svg { width: 17px; height: 17px; margin-right: 8px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.motorit-hcr__summary { margin: 18px 0 0; color: var(--mv-ink); font-size: 15px; font-weight: 750; line-height: 1.5; }
.motorit-hcr__badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.motorit-hcr__badge { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--hc-ok-line); border-radius: 14px; background: var(--hc-ok-bg); }
.motorit-hcr__badge i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--hc-ok-ink); color: #fff; font-style: normal; font-size: 17px; font-weight: 900; }
.motorit-hcr__badge strong { display: block; color: var(--hc-ok-ink); font-size: 14.5px; font-weight: 900; line-height: 1.25; }
.motorit-hcr__badge small { display: block; margin-top: 2px; color: #34464e; font-size: 12px; font-weight: 700; }
.motorit-hcr__badge.is-info { border-color: #cfe2f3; background: #f1f8fd; }
.motorit-hcr__badge.is-info i { background: var(--mv-brand); }
.motorit-hcr__badge.is-info strong { color: var(--mv-brand-dark); }
.motorit-hcr__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--mv-gap); }
.motorit-hcr__rows { margin: 14px 0 0; padding: 0; list-style: none; }
.motorit-hcr__rows li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid #e3ecf3; color: var(--mv-ink); font-size: 14px; font-weight: 750; }
.motorit-hcr__rows li span { color: var(--mv-muted); font-weight: 700; }
.motorit-hcr__rows li b { text-align: right; font-weight: 850; }
.motorit-hcr__rows li b.is-clear { color: var(--hc-ok-ink); }
.motorit-hcr__adv { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.motorit-hcr__adv li { padding: 10px 12px; border-left: 4px solid var(--mv-brand); border-radius: 8px; background: #f3f9fd; color: #34464e; font-size: 13.5px; font-weight: 700; line-height: 1.45; }
.motorit-hcr__note { margin: 12px 0 0; color: var(--mv-muted); font-size: 12.5px; font-weight: 650; line-height: 1.5; }
@media (max-width: 880px) {
  .motorit-hcr__top { grid-template-columns: minmax(0, 1fr); }
  .motorit-hcr__actions { justify-content: flex-start; }
  .motorit-hcr__badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .motorit-hcr__grid { grid-template-columns: minmax(0, 1fr); }
  .motorit-hcr__wide { grid-column: auto; }
}
@media (max-width: 520px) {
  .motorit-hcr__badges { grid-template-columns: minmax(0, 1fr); }
  .motorit-hcr__actions .motorit-vehicle-button { flex: 1 1 100%; }
}

.motorit-hcr__wide { grid-column: 1 / -1; }

/* Live states */
.motorit-hc__secure { margin: 10px 0 0; color: var(--mv-muted); font-size: 12.5px; font-weight: 700; line-height: 1.45; }
.motorit-hc__error { margin: 10px 0 0; color: rgb(180, 35, 24); font-size: 13px; font-weight: 800; line-height: 1.45; }
.motorit-vehicle-v3 .motorit-hcw button.motorit-vehicle-button { cursor: pointer; font-family: inherit; }
.motorit-vehicle-v3 .motorit-hcw button.motorit-vehicle-button[aria-busy="true"] { opacity: .7; cursor: progress; }

/* Report: things to look at, and checks that could not be done today */
.motorit-hcr__badge.is-alert { border-color: rgb(240, 190, 184); background: rgb(253, 236, 234); }
.motorit-hcr__badge.is-alert i { background: rgb(180, 35, 24); }
.motorit-hcr__badge.is-alert strong { color: rgb(180, 35, 24); }
.motorit-hcr__rows li b.is-alert { color: rgb(180, 35, 24); }
.motorit-hcr__rows li b.is-na { color: var(--mv-brand-dark); }
.motorit-hcr__adv li.is-alert { border-left-color: rgb(180, 35, 24); background: rgb(253, 244, 243); }
.motorit-hcr__state { display: grid; justify-items: start; gap: 12px; }
.motorit-hcr__state p { margin: 0; color: var(--mv-ink); font-size: 15px; font-weight: 700; line-height: 1.55; max-width: 720px; }
.motorit-hcr__spinner { width: 34px; height: 34px; border: 4px solid #dde8f1; border-top-color: var(--mv-brand); border-radius: 50%; animation: motorit-hcr-spin 1s linear infinite; }
@keyframes motorit-hcr-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .motorit-hcr__spinner { animation: none; } }

@media print {
  .motorit-shell-top, .motorit-shell__top, .motorit-shell__sidebar, header, footer, .motorit-hcr__actions, [class*="float-pill"], [class*="motorit-ask"] { display: none !important; }
  .motorit-vehicle-v3 .motorit-vehicle-card { box-shadow: none; break-inside: avoid; }
}

/* Update 44: "none" = answered, nothing on file (e.g. no mileage records). Neutral grey dash on pale blue; never green. */
.motorit-hc__list li.is-none .motorit-hc__state { color: var(--mv-muted); }
.motorit-hc-teaser__chips li.is-none i { background: var(--mv-muted, #5f7183); }
.motorit-hcr__badge.is-none { border-color: var(--hc-blue-line); background: var(--hc-blue-soft); }
.motorit-hcr__badge.is-none i { background: var(--mv-muted); }
.motorit-hcr__badge.is-none strong { color: var(--mv-ink); }
.motorit-hcr__rows li b.is-none { color: var(--mv-muted); }
