/* MOT history on vehicle listings (includes/marketplace/listing-mot.php; mockup Plan/pt-listing-mot.html, 9 Oct 2026).
   Values are the mockup's, literal — no tokens re-declared. Amber for anything to ask about, never red. Square corners. */

.pt-mot-ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pt-mot .mono, .pt-mot-chip .mono, .pt-mot-spec .mono { font-family: var(--pt-mono, ui-monospace, "SF Mono", Menlo, monospace); }

/* 1 · chip under the price */
.pt-mot-chiprow { margin-top: 10px; }
.pt-mot-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; line-height: 1.4; color: #1A1A1A; border: 1px solid #E4E2DB; background: #fff; padding: 4px 10px; }
.pt-mot-chip .pt-mot-ic { width: 15px; height: 15px; color: #2E7D4F; }
.pt-mot-chip .mono { font-weight: 600; }
.pt-mot-chip.is-amber { color: #A86A00; background: #FBF6EC; border-color: #EBD9B8; }
.pt-mot-chip.is-amber .pt-mot-ic { color: #A86A00; }

/* 2 · Specifications checked against DVSA */
.pt-mot-spec { list-style: none; margin: 0; padding: 0; }
.pt-mot-spec__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #E4E2DB; font-size: 16px; margin: 0; }
.pt-mot-spec__row .k { color: #5C5A54; }
.pt-mot-spec__row .v { display: flex; align-items: center; gap: 10px; text-align: right; color: #1A1A1A; }
.pt-mot-spec__row.has-note { border-bottom: 0; }
.pt-mot-spec__note { font-size: 13px; color: #A86A00; padding: 0 0 12px; margin: -6px 0 0; border-bottom: 1px solid #E4E2DB; list-style: none; }
.pt-mot-ok, .pt-mot-warn { display: inline-flex; align-items: center; gap: 4px; font: 600 11px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; padding: 1px 6px; white-space: nowrap; }
.pt-mot-ok { color: #2E7D4F; border: 1px solid #BFD8C8; background: #EEF5F0; }
.pt-mot-ok .pt-mot-ic { width: 11px; height: 11px; }
.pt-mot-warn { color: #A86A00; border: 1px solid #EBD9B8; background: #FBF6EC; }
.pt-spec-section .pt-vrm.is-listing { margin-top: 14px; }

/* 3 · the panel */
.pt-mot { margin: 30px 0 0; background: #fff; border: 1px solid #E4E2DB; color: #1A1A1A; }
.pt-mot__h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 18px; border-bottom: 1px solid #E4E2DB; }
.pt-mot__h b { font-size: 19px; font-weight: 600; }
.pt-mot__h span { font-size: 12px; color: #888780; }
.pt-mot__h .hs { display: none; }
.pt-mot__cells { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid #E4E2DB; }
.pt-mot__cells > div { padding: 12px 18px; border-left: 1px solid #E4E2DB; min-width: 0; }
.pt-mot__cells > div:first-child { border-left: 0; }
.pt-mot__cells .k { font-size: 12px; color: #5C5A54; }
.pt-mot__cells .v { font-size: 17px; font-weight: 600; margin-top: 2px; }
.pt-mot__cells .v.pass { color: #2E7D4F; }
.pt-mot__cells .v.amber { color: #A86A00; }
.pt-mot__cells .s { font-size: 12px; color: #888780; }
.pt-mot__sec { padding: 14px 18px; border-bottom: 1px solid #E4E2DB; }
.pt-mot__sec:last-of-type { border-bottom: 0; }
.pt-mot__sec h4 { font-size: 14px; font-weight: 600; margin: 0 0 8px; display: flex; justify-content: space-between; gap: 12px; color: #1A1A1A; text-transform: none; letter-spacing: 0; }
.pt-mot__sec h4 span { font-weight: 400; font-size: 12px; color: #888780; }
.pt-mot-chart { display: block; width: 100%; height: 120px; }
.pt-mot__flag { display: flex; gap: 8px; align-items: flex-start; background: #FBF6EC; border: 1px solid #EBD9B8; color: #A86A00; font-size: 13px; padding: 8px 10px; margin-top: 8px; }
.pt-mot__flag .pt-mot-ic { margin-top: 1px; }
.pt-mot__up { font-size: 13px; color: #2E7D4F; display: flex; gap: 6px; align-items: center; margin-top: 4px; }
.pt-mot__rep > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 6px 0; border-top: 1px solid #E4E2DB; }
.pt-mot__rep > div:first-of-type { border-top: 0; }
.pt-mot__rep .mono { font-size: 12px; color: #5C5A54; white-space: nowrap; }
.pt-mot__test { border-top: 1px solid #E4E2DB; }
.pt-mot__tests h4 + .pt-mot__test { border-top: 0; }
.pt-mot__test[hidden] { display: none; }
/* a row: a <button> when it has items to open, a <div> when not */
.pt-mot .pt-mot__row { display: grid; grid-template-columns: 96px 46px 1fr auto; gap: 10px; align-items: baseline; width: 100%; padding: 8px 0; margin: 0; border: 0; border-radius: 0; background: transparent; color: #1A1A1A; font: inherit; font-size: 14px; text-align: left; line-height: 1.45; text-transform: none; letter-spacing: 0; }
.pt-mot button.pt-mot__row { cursor: pointer; }
.pt-mot button.pt-mot__row:hover, .pt-mot button.pt-mot__row:focus, .pt-mot button.pt-mot__row:active { background: #FBFAF7; color: #1A1A1A; }   /* rule 5a: GeneratePress paints button:hover #333 */
.pt-mot button.pt-mot__row:focus-visible { outline: 2px solid #1A1A1A; outline-offset: -2px; }
.pt-mot__row .d { font-size: 14px; }
.pt-mot__row .ds { display: none; }
.pt-mot__row .r { font-size: 12px; font-weight: 700; }
.pt-mot__row .r.p { color: #2E7D4F; }
.pt-mot__row .r.f { color: #A86A00; }
.pt-mot__row .a { font-size: 12px; color: #5C5A54; }
.pt-mot__row .m { font-size: 13px; text-align: right; }
.pt-mot button.pt-mot__row .a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 2px 6px; border-right: 1.5px solid #888780; border-bottom: 1.5px solid #888780; transform: rotate(45deg); }
.pt-mot button.pt-mot__row[aria-expanded="true"] .a::after { transform: rotate(-135deg); margin-bottom: -1px; }
.pt-mot__items { list-style: none; margin: 0 0 10px; padding: 8px 10px; background: #FBFAF7; border: 1px solid #E4E2DB; font-size: 13px; color: #1A1A1A; }
.pt-mot__items li { display: grid; grid-template-columns: 108px 1fr; gap: 8px; margin: 0; padding: 3px 0; }
.pt-mot__items .t { font-size: 12px; font-weight: 600; color: #5C5A54; padding-top: 1px; }
.pt-mot__items .t.is-amber { color: #A86A00; }
.pt-mot .pt-mot__more { display: block; margin: 8px 0 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: #185FA5; font: inherit; font-size: 14px; cursor: pointer; text-transform: none; letter-spacing: 0; }
.pt-mot .pt-mot__more:hover, .pt-mot .pt-mot__more:focus, .pt-mot .pt-mot__more:active { background: transparent; color: #0F4278; text-decoration: underline; }
.pt-mot__foot { padding: 12px 18px; font-size: 12px; color: #888780; background: #FBFAF7; border-top: 1px solid #E4E2DB; }

/* seller's own car, no plate */
.pt-mot-nudge { margin: 30px 0 0; background: #fff; border: 1px dashed #C9C7BF; padding: 14px 16px; font-size: 14px; color: #5C5A54; }
.pt-mot-nudge b { display: block; color: #1A1A1A; }
.pt-mot-nudge .pt-mot-nudge__btn { display: inline-block; margin-top: 10px; border: 1px solid #1A1A1A; padding: 8px 14px; font-weight: 600; color: #1A1A1A; font-size: 14px; text-decoration: none; background: #fff; }
.pt-mot-nudge .pt-mot-nudge__btn:hover, .pt-mot-nudge .pt-mot-nudge__btn:focus { background: #F2F1EC; color: #1A1A1A; }

/* phone (mockup 390) */
@media (max-width: 640px) {
	.pt-mot__h b { font-size: 17px; }
	.pt-mot__h .hl { display: none; }
	.pt-mot__h .hs { display: inline; }
	.pt-mot__cells { grid-template-columns: 1fr 1fr; }
	.pt-mot__cells > div { padding: 12px 14px; }
	.pt-mot__cells > div:nth-child(3) { grid-column: span 2; border-left: 0; border-top: 1px solid #E4E2DB; }
	.pt-mot__sec { padding: 14px; }
	.pt-mot .pt-mot__row { grid-template-columns: 78px 46px 1fr; }
	.pt-mot__row .dl { display: none; }
	.pt-mot__row .ds { display: inline; }
	.pt-mot__row .m { grid-column: 3; grid-row: 1; }
	.pt-mot__row .a { grid-column: 1 / -1; }
	.pt-mot-spec__row { font-size: 15px; }
	.pt-mot__items li { grid-template-columns: 1fr; gap: 0; }
}

/* Narrow listing page: the column is `display: contents` and every child is ordered by hand (single-listing.css, max-width 1024px).
   Without this the panel defaulted to order 0 and jumped above the gallery. It rides with the sidebar sections, after Specifications. */
@media (max-width: 1024px) {
	.pt-listing-wrapper .pt-mot,
	.pt-listing-wrapper .pt-mot-nudge { order: 2; margin: 0 0 14px; }
}
