/* Vehicle make/model navigation. Native details are opened by click, tap or keyboard. */
body.cekikapagi-brand .ck-vehicle-menu {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  color: #05283d;
  background: #fff;
  font-family: var(--ck-font, "Ceki Kapagi Sans", Arial, sans-serif);
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
}

body.cekikapagi-brand .ck-vehicle-menu [hidden] { display: none !important; }

body.cekikapagi-brand .ck-vehicle-menu-search {
  flex: 0 0 auto;
  margin: 0;
  padding: 12px;
  border-bottom: 1px solid #e4ebf0;
  background: #fff;
}

body.cekikapagi-brand .ck-vehicle-menu-search label {
  display: block;
  margin: 0 0 6px;
  color: #526574;
  font-size: 12px;
  font-weight: 400;
}

body.cekikapagi-brand .ck-vehicle-menu-search input,
body.cekikapagi-brand input.ck-vehicle-menu-search {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-width: 0;
  height: 42px;
  min-height: 42px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid #c4d1da;
  border-radius: 7px;
  color: #05283d;
  background: #f4f7fa;
  font: 400 14px/1.4 var(--ck-font, "Ceki Kapagi Sans", Arial, sans-serif);
  box-shadow: none;
  appearance: auto;
}

body.cekikapagi-brand .ck-vehicle-menu-search input::placeholder { color: #637684; opacity: 1; }

/* The runtime uses a directly labelled input; retain padding without adding wrapper markup. */
body.cekikapagi-brand .ck-vehicle-menu > input.ck-vehicle-menu-search {
  flex: 0 0 42px;
  width: calc(100% - 24px);
  margin: 12px;
  padding: 9px 12px;
}

body.cekikapagi-brand .ck-vehicle-makes {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 4px 6px 8px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: #b6c6d1 #f4f7fa;
  scrollbar-gutter: stable;
}

body.cekikapagi-brand .ck-vehicle-make {
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #edf1f5;
}

body.cekikapagi-brand .ck-vehicle-make:last-of-type { border-bottom: 0; }

body.cekikapagi-brand .ck-vehicle-make > summary {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 12px;
  align-items: center;
  gap: 10px;
  min-height: 47px;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  color: #05283d;
  background: #fff;
  list-style: none;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

body.cekikapagi-brand .ck-vehicle-make > summary::-webkit-details-marker { display: none; }
body.cekikapagi-brand .ck-vehicle-make > summary::marker { content: ""; }
body.cekikapagi-brand .ck-vehicle-make > summary:hover,
body.cekikapagi-brand .ck-vehicle-make[open] > summary { background: #f4f7fa; }

body.cekikapagi-brand .ck-vehicle-make > summary .ck-brand-logo {
  display: block;
  width: 34px;
  height: 26px;
  max-width: 34px;
  object-fit: contain;
  object-position: center;
}

body.cekikapagi-brand .ck-vehicle-name { min-width: 0; overflow-wrap: anywhere; }
body.cekikapagi-brand .ck-vehicle-make > summary > .ck-vehicle-name { grid-column: 2; }

body.cekikapagi-brand .ck-vehicle-count {
  box-sizing: border-box;
  display: inline-block;
  flex: 0 0 auto;
  width: auto;
  min-width: 26px;
  padding: 2px 5px;
  border-radius: 4px;
  color: #526574;
  background: #edf2f6;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  overflow-wrap: normal;
  vertical-align: middle;
}

body.cekikapagi-brand .ck-vehicle-make > summary > .ck-vehicle-count { grid-column: 3; }

body.cekikapagi-brand .ck-vehicle-chevron {
  display: block;
  grid-column: 4;
  justify-self: center;
  width: 7px;
  height: 7px;
  border: solid #526574;
  border-width: 0 1.5px 1.5px 0;
  color: transparent;
  font-size: 0;
  line-height: 0;
  transform: rotate(45deg);
  transition: transform 120ms ease;
}

body.cekikapagi-brand .ck-vehicle-chevron > * { display: none; }
body.cekikapagi-brand .ck-vehicle-make[open] > summary .ck-vehicle-chevron { transform: rotate(225deg); }

body.cekikapagi-brand .ck-vehicle-models {
  margin: 0 7px 9px 27px;
  padding: 2px 0 2px 15px;
  border-left: 2px solid #f47617;
}

body.cekikapagi-brand .ck-vehicle-models a,
body.cekikapagi-brand .ck-vehicle-menu > a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin: 0;
  padding: 8px 9px;
  border-radius: 5px;
  color: #05283d;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 400;
  white-space: normal;
  overflow-wrap: anywhere;
  text-decoration: none;
}

body.cekikapagi-brand .ck-vehicle-models a > .ck-vehicle-name { flex: 1 1 auto; }

body.cekikapagi-brand .ck-vehicle-menu > a { flex: 0 0 auto; min-height: 44px; margin-inline: 12px; font-weight: 700; }
body.cekikapagi-brand .ck-vehicle-models a:hover { background: #f4f7fa; text-decoration: underline; text-underline-offset: 3px; }
body.cekikapagi-brand .ck-vehicle-models a[aria-current="page"] { background: #f4f7fa; font-weight: 700; }

body.cekikapagi-brand .ck-vehicle-model-status,
body.cekikapagi-brand .ck-vehicle-empty {
  margin: 6px 9px 10px;
  color: #526574;
  font-size: 13px;
  line-height: 1.5;
}

body.cekikapagi-brand .ck-vehicle-retry {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin: 0 9px 8px;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  color: #05283d;
  background: transparent;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  box-shadow: none;
}

body.cekikapagi-brand .ck-vehicle-menu :is(summary, a, input, button):focus-visible {
  outline: 2px solid #f47617;
  outline-offset: -2px;
}

body.cekikapagi-brand .site-header .dropdown-cats .dropdown-menu.ck-vehicle-menu-panel {
  padding: 0;
  overflow: hidden;
}

body.cekikapagi-brand .site-header .ck-vehicle-menu {
  height: min(70vh, 620px);
  max-height: none;
}

@media (min-width: 1120px) {
  body.cekikapagi-brand.home .site-header:not(.sticky-header) .dropdown-menu.ck-vehicle-aligned {
    box-sizing: border-box;
    height: var(--ck-vehicle-panel-height) !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
  }

  body.cekikapagi-brand.home .site-header:not(.sticky-header) .dropdown-menu.ck-vehicle-aligned > nav,
  body.cekikapagi-brand.home .site-header:not(.sticky-header) .dropdown-menu.ck-vehicle-aligned .ck-vehicle-menu {
    height: 100%;
    min-height: 0;
    max-height: none;
  }
}

/* Let the existing drawer provide mobile scrolling rather than nesting another scroll trap. */
body.cekikapagi-brand .site-drawer .ck-vehicle-menu { height: auto; max-height: none; }
body.cekikapagi-brand .site-drawer .ck-vehicle-makes { flex: 0 0 auto; overflow: visible; scrollbar-gutter: auto; }
body.cekikapagi-brand .site-drawer .ck-vehicle-menu-search:not(input) { padding-inline: 0; }
body.cekikapagi-brand .site-drawer .ck-vehicle-menu-search input,
body.cekikapagi-brand .site-drawer input.ck-vehicle-menu-search { font-size: 16px; }
body.cekikapagi-brand .site-drawer .ck-vehicle-make > summary { min-height: 48px; padding-inline: 6px; }
body.cekikapagi-brand .site-drawer .ck-vehicle-models a { min-height: 44px; font-size: 14px; }

/* Verified make artwork uses a consistent slot; missing artwork is an honest initial tile. */
body.cekikapagi-brand .ck-vehicle-directory .ck-brand-grid > .ck-brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  min-height: 106px;
  padding: 18px 12px;
  border-right: 1px solid #dce4ea;
  border-bottom: 1px solid #dce4ea;
  color: #05283d;
  background: #fff;
  text-align: center;
  text-decoration: none;
}

body.cekikapagi-brand .ck-vehicle-directory .ck-brand-card .ck-brand-logo {
  display: block;
  flex: 0 0 auto;
  width: 48px;
  height: 32px;
  max-width: 48px;
  object-fit: contain;
  object-position: center;
}

body.cekikapagi-brand .ck-vehicle-directory .ck-brand-card > span:not(.ck-brand-logo) {
  color: #05283d;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  overflow-wrap: anywhere;
}

body.cekikapagi-brand .ck-vehicle-directory .ck-brand-card > span .ck-vehicle-count { margin-inline-start: 4px; }

@media (max-width: 480px) {
  body.cekikapagi-brand .ck-vehicle-make > summary { gap: 6px; padding-inline: 6px; }
  body.cekikapagi-brand .ck-vehicle-models { margin-inline-start: 17px; padding-inline-start: 10px; }
}

body.cekikapagi-brand .ck-vehicle-directory .ck-brand-card:hover { background: #f4f7fa; }
body.cekikapagi-brand .ck-vehicle-directory .ck-brand-card:focus-visible { outline: 2px solid #f47617; outline-offset: -2px; }

body.cekikapagi-brand .ck-vehicle-directory .ck-brand-card .ck-brand-logo-fallback,
body.cekikapagi-brand .ck-vehicle-make > summary .ck-brand-logo-fallback {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  max-width: 32px;
  border: 1px solid #dce4ea;
  border-radius: 5px;
  color: #526574;
  background: #f4f7fa;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.cekikapagi-brand .ck-vehicle-make > summary .ck-brand-logo-fallback { justify-self: center; width: 28px; height: 28px; max-width: 28px; }

body.cekikapagi-brand .ck-vehicle-directory-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 22px;
  padding: 11px 20px;
  border: 1px solid #05283d;
  border-radius: 7px;
  color: #05283d;
  background: #fff;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

body.cekikapagi-brand .ck-vehicle-directory-all:hover { color: #05283d; background: #f4f7fa; }
body.cekikapagi-brand .ck-vehicle-directory-all:focus-visible { outline: 3px solid #f47617; outline-offset: 3px; }

body.cekikapagi-brand .ck-vehicle-credit {
  margin: 16px 0 0;
  color: #637684;
  font-size: 12px;
  line-height: 1.6;
}

body.cekikapagi-brand .ck-vehicle-credit a { color: #526574; text-decoration: underline; text-underline-offset: 3px; }
body.cekikapagi-brand .ck-vehicle-catalog > p:not(.ck-vehicle-credit) { margin: 0 0 18px; color: #526574; line-height: 1.6; }

body.cekikapagi-brand .ck-vehicle-catalog .ck-vehicle-menu {
  height: min(650px, 75vh);
  max-height: 650px;
  overflow: hidden;
  border: 1px solid #dce4ea;
  border-radius: 10px;
}

body.cekikapagi-brand .ck-vehicle-category-selector {
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 1px solid #dce4ea;
  border-radius: 8px;
  background: #f4f7fa;
}

body.cekikapagi-brand .ck-vehicle-category-selector > label {
  display: block;
  margin: 0 0 8px;
  color: #05283d;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
}

body.cekikapagi-brand .ck-vehicle-model-select {
  display: block;
  width: 100%;
  max-width: 440px;
  min-height: 46px;
  height: auto;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #b9c8d2;
  border-radius: 6px;
  color: #05283d;
  background: #fff;
  font-size: 16px;
  line-height: 1.4;
  appearance: auto;
}

body.cekikapagi-brand .ck-vehicle-model-select:focus-visible { outline: 3px solid #f47617; outline-offset: 3px; }
body.cekikapagi-brand .ck-vehicle-category-selector noscript a { color: #05283d; text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  body.cekikapagi-brand .ck-vehicle-chevron { transition: none; }
}
