/* The original site and vehicle marks stay intact; presentation is consistent. */
.site-menu { border: 0; border-radius: 16px; padding: 16px; width: min(380px, calc(100% - 32px)); max-height: calc(100dvh - 50px); color: #23364f; box-shadow: 0 20px 80px #15263b33; }
.site-menu:not([open]) { display: none; }
.site-menu::backdrop { background: #0f1e35a6; }
.site-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 12px; border-bottom: 1px solid #e3e8f0; }
.site-menu-head button { border: 0; border-radius: 9px; width: 44px; height: 44px; background: #eef2f7; color: #243750; font-size: 25px; }
.site-menu nav { display: grid; padding-top: 8px; }
.site-menu nav a { min-height: 48px; display: flex; align-items: center; padding: 8px 12px; color: #23364f; border-radius: 8px; font-weight: 600; }
.site-menu nav a:hover { background: #f3f6fa; }
.site-menu-open { overflow: hidden; }
.storefront-flash { padding: 12px 16px; background: #eef6ff; border-radius: 10px; margin-block: 12px; }
.storefront-home .home-hero { padding-block: 38px 30px; }
.storefront-home .home-hero-copy { max-width: 760px; width: 100%; }
.storefront-home .home-hero p { margin-bottom: 20px; }
.home-vehicle-choice { margin-top: 18px; text-align: start; }
.home-vehicle-choice summary { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 13px 16px; cursor: pointer; list-style: none; color: #243750; font-weight: 700; }
.home-vehicle-choice summary::-webkit-details-marker { display: none; }
.home-choice-plus { margin-inline-start: auto; font-size: 24px; font-weight: 400; }
.home-vehicle-choice[open] .home-choice-plus { transform: rotate(45deg); }
.home-vehicle-choice .vehicle-picker-label { display: none; }
/* Sizing only: the picker's colours are set once, with the rest of the
   picker, in storefront-modern.css. */
.vehicle-picker-status, .vehicle-picker-hint { flex-basis: 100%; width: 100%; margin: 0; font-size: 13px; line-height: 1.6; }
.vehicle-picker[aria-busy=true] { opacity: .8; }
.vehicle-picker [hidden] { display: none !important; }
.vehicle-picker-status:empty { display: none; }
.brand-filter { display: flex; align-items: center; gap: 10px; border: 1px solid #dce3ec; border-radius: 10px; background: #fff; padding: 0 14px; max-width: 400px; margin: 16px 0 20px; color: #65768a; }
.brand-filter input { width: 100%; min-width: 0; min-height: 46px; border: 0; background: transparent; font-size: 16px; outline-offset: 0; color: #1c3049; }
.brand-filter:focus-within { outline: 2px solid #2378b7; outline-offset: 2px; }
.storefront-home .brand-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.storefront-home .catalog-brand-card { min-height: 122px; padding: 18px 10px 14px; gap: 10px; border-radius: 12px; box-shadow: none; border: 1px solid #dde4ed; background: #fff; }
.storefront-home .catalog-brand-card:hover { border-color: #8799af; background: #fbfcfe; transform: translateY(-2px); }
.brand-mark, .store-brands .store-category-thumb { display: flex; align-items: center; justify-content: center; width: 88px; height: 58px; flex-shrink: 0; background: transparent; }
.brand-mark img, .store-brands .store-category-thumb img { width: 72px; height: 52px; max-width: 100%; object-fit: contain; padding: 2px; filter: none; mix-blend-mode: normal; }
.brand-monogram { color: #30445c; font-size: 23px; font-weight: 700; }
.storefront-home .catalog-brand-name { font-size: 14px; font-weight: 700; color: #20334d; line-height: 1.5; overflow-wrap: anywhere; }
.brand-empty { padding: 20px 0; color: #526176; }
.brand-grid [hidden], .brand-filter[hidden], .brand-mark [hidden], .brand-empty[hidden] { display: none !important; }
.home-vehicle-choice summary:focus-visible { outline: 3px solid #2378b7; outline-offset: 3px; }
@media (max-width: 991px) {
    .storefront-home .brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .storefront-home .home-hero { padding-block: 24px; }
    .storefront-home .home-hero h1 { font-size: clamp(23px, 6.8vw, 29px); line-height: 1.45; }
    .storefront-home .home-hero p { font-size: 14px; line-height: 1.8; }
    .home-vehicle-choice { margin-top: 14px; }
    .home-vehicle-choice summary { font-size: 14px; min-height: 52px; }
    .storefront-home .catalog-section { padding-top: 24px; padding-bottom: 30px; }
    .storefront-home .section-heading { align-items: center; gap: 14px; }
    .storefront-home .section-heading h2 { font-size: 20px; }
    .storefront-home .catalog-section-hint { font-size: 13px; }
    .home-directory-link { min-height: 44px; display: inline-flex; align-items: center; font-size: 12px; white-space: nowrap; }
    .brand-filter { max-width: none; margin: 12px 0 16px; }
    .storefront-home .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .storefront-home .catalog-brand-card { min-height: 108px; padding: 12px 6px; gap: 6px; border-radius: 10px; }
    .brand-mark { width: 70px; height: 50px; }
    .brand-mark img { width: 62px; height: 46px; }
    .storefront-home .catalog-brand-name { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .storefront-home .catalog-brand-card:hover { transform: none; } }

/* ---------------------------------------------------------------------
   Choosing a car: manufacturer, model, year — three dropdowns.

   These were once drawn over as a grid of logos and rows of chips, on the
   reasoning that a picture is recognised faster than a word. At the scale
   the shop actually reached that reversed: Hyundai alone put fifty models
   on screen with nothing to scan them by, and the logo grid asked someone
   to find a manufacturer by picture when they could simply have read the
   name. A native control is a dropdown on a desktop and the system's own
   picker on a phone, so it suits both without being two things.
   --------------------------------------------------------------------- */

.vp { display: grid; gap: 10px; }
.vp:empty { display: none; }

/* Three dropdowns, side by side where there is room and stacked where
   there is not. The logo grid and chip rows that used to be painted over
   these are gone: fifty Hyundai models as chips filled the screen with
   no order to scan them in, and a grid of pictures made someone hunt for
   a manufacturer whose name they already knew. */
.vehicle-fields { display: grid; gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    width: 100%; flex: 1 1 100%; }
.vehicle-fields label { min-width: 0; }

/* The car this person chose last time. Most people come back for another
   part for the same car. */
.vp-saved-row { display: flex; align-items: center; gap: 8px; }
.vp-saved { display: flex; align-items: center; gap: 10px; flex: 1;
    min-height: 48px; padding: 8px 14px; border: 1px solid #bfdbfe;
    border-radius: 10px; background: #eff6ff; cursor: pointer;
    font-size: 14px; color: #1e3a8a; text-align: start; }
.vp-saved:hover, .vp-saved:focus-visible { border-color: #1d4ed8; outline: none; }
.vp-forget { min-height: 44px; padding: 6px 12px; border: 0; background: none;
    font-size: 13px; color: #64748b; cursor: pointer; text-decoration: underline; }

@media (max-width: 480px) {
    /* One field at a time: three dropdowns side by side on a narrow phone
       leaves each too short to read its own label. */
    .vehicle-fields { grid-template-columns: 1fr; }
}

/* The freelance licence mark beside its number, in the footer. The image
   is optional — brand_assets() resolves it to nothing when the file is
   absent, so the number stands alone rather than next to a broken icon. */
.sps-footer__licence { display: flex; align-items: center; gap: 10px; }
.sps-footer__licence img {
    width: 40px; height: 40px; object-fit: contain; flex: none;
    background: #fff; border-radius: 6px; padding: 2px;
}
