/* Shopper tools: compare + favorites, header counters, sold cars, extra filters, WhatsApp button */

/* ------------------------------------------------------------------
   Header counters (compare, favorites)
   ------------------------------------------------------------------ */
.zk-header__right { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; flex-wrap: nowrap; }
.zk-header__right .zk-header__cta { order: 0; margin-left: 0; }
@media (max-width: 1079px) { .zk-header__right { order: 2; margin-left: auto; } }
.zk-tools { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.zk-tool {
  position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  color: #fff !important; text-decoration: none !important; border: 1px solid rgba(255, 255, 255, .22);
  transition: border-color .2s, color .2s, background .2s;
}
.zk-tool:hover { border-color: var(--zk-amber); color: var(--zk-amber) !important; }
.zk-tool svg { width: 19px; height: 19px; }
.zk-tool__n {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--zk-sunrise); color: var(--zk-tarmac); font: 700 .7rem/18px var(--zk-display); text-align: center;
}
.zk-tool__n[hidden] { display: none; }
@media (max-width: 560px) { .zk-tools { display: none; } }

/* ------------------------------------------------------------------
   Heart + compare buttons on cars
   ------------------------------------------------------------------ */
.zk-card__tools { position: absolute; right: 10px; top: 10px; z-index: 3; display: flex; gap: 8px; }
.zk-tool-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0; cursor: pointer;
  border: 0; font: inherit; color: var(--zk-ink); background: rgba(255, 255, 255, .94);
  transition: background .2s, color .2s, transform .2s var(--zk-ease), box-shadow .2s;
}
.zk-card__tools .zk-tool-btn { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 6px 16px -8px rgba(15, 14, 13, .6); }
.zk-tool-btn:hover { transform: translateY(-1px); }
.zk-tool-btn.is-on { background: var(--zk-orange); color: #fff; }
.zk-tool-btn--fav.is-on svg { fill: currentColor; }
.zk-card__tools .zk-tool-btn:hover:not(.is-on) { color: var(--zk-ember); }

.zk-car__tools { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--zk-line); }
.zk-car__tools .zk-tool-btn {
  min-height: 46px; padding: 0 12px; border-radius: 6px; border: 1.5px solid var(--zk-line); background: #fff;
  font-family: var(--zk-display); font-weight: 600; font-size: .95rem;
}
.zk-car__tools .zk-tool-btn:hover { border-color: var(--zk-orange); }
.zk-car__tools .zk-tool-btn.is-on { background: var(--zk-orange); border-color: var(--zk-orange); color: #fff; }

/* ------------------------------------------------------------------
   Compare bar
   ------------------------------------------------------------------ */
.zk-cbar {
  position: fixed; left: 16px; bottom: 16px; z-index: 70; max-width: min(760px, calc(100vw - 112px));
  display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding: 10px 14px;
  background: var(--zk-tarmac); color: #fff; border-radius: 12px; border-bottom: 3px solid var(--zk-orange);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .7); font-family: var(--zk-text);
}
.zk-cbar[hidden] { display: none; }
.zk-cbar__items { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.zk-cbar__item { display: flex; align-items: center; gap: 8px; max-width: 190px; padding: 4px 4px 4px 4px; border-radius: 8px; background: rgba(255, 255, 255, .08); }
.zk-cbar__item img { width: 44px; height: 33px; object-fit: cover; border-radius: 5px; flex: 0 0 auto; }
.zk-cbar__item span { font-size: .78rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.zk-cbar__item button { flex: 0 0 auto; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.zk-cbar__item button:hover { background: rgba(255, 255, 255, .18); }
.zk-cbar__count { font-size: .8rem; color: #a39d93; white-space: nowrap; }
.zk-cbar__side { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-left: auto; }
.zk-cbar__msg { margin: 0; font-size: .8rem; color: var(--zk-amber); }
.zk-cbar__msg:empty { display: none; }
.zk-cbar__btns { display: flex; align-items: center; gap: 12px; }
.zk-cbar .zk-cbar__go {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 1.1rem; border-radius: 6px; background: var(--zk-sunrise);
  color: var(--zk-tarmac) !important; font-family: var(--zk-display); font-weight: 700; text-decoration: none !important;
}
.zk-cbar .zk-cbar__go.is-disabled { opacity: .55; }
.zk-cbar__clear { border: 0; background: transparent; color: #d9d4cb; font: inherit; font-size: .85rem; text-decoration: underline; cursor: pointer; padding: 6px; }
.zk-cbar__clear:hover { color: var(--zk-amber); }
@media (max-width: 700px) {
  .zk-cbar { left: 10px; right: 84px; bottom: 10px; max-width: none; padding: 8px 10px; }
  .zk-cbar__item { max-width: 120px; }
  .zk-cbar__item span { display: none; }
  .zk-cbar__side { margin-left: 0; width: 100%; justify-content: space-between; }
}

/* ------------------------------------------------------------------
   Compare and Favorites pages
   ------------------------------------------------------------------ */
.zk-cmp .zk-inv__wrap { padding-top: clamp(24px, 4vw, 48px); }
.zk-cmp .zk-inv__lead { color: var(--zk-stone); margin: 0 0 1.5rem; }
.zk-cmp__loading { color: var(--zk-stone); }
.zk-cmp__only { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-weight: 600; font-size: .95rem; cursor: pointer; }
.zk-cmp__only input { width: 18px; height: 18px; accent-color: var(--zk-orange); }
.zk-cmp__scroll { overflow-x: auto; border: 1px solid var(--zk-line); border-radius: 14px; background: #fff; }
.zk-cmp__table { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0; font-size: .95rem; }
.zk-cmp__table th, .zk-cmp__table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--zk-line); }
.zk-cmp__table thead th, .zk-cmp__table thead td { background: var(--zk-paper); }
.zk-cmp__table tbody th { position: sticky; left: 0; z-index: 1; width: 150px; min-width: 120px; background: #fff; font-family: var(--zk-display); font-weight: 600; color: var(--zk-stone); }
.zk-cmp__table .zk-cmp__corner { position: sticky; left: 0; z-index: 2; width: 150px; min-width: 120px; }
.zk-cmp__table td { min-width: 200px; font-weight: 600; }
.zk-cmp__table tr:last-child th, .zk-cmp__table tr:last-child td { border-bottom: 0; }
.zk-cmp__table tr.is-diff td { background: #fff7ee; }
.zk-cmp__table tr.is-diff th { box-shadow: inset 3px 0 0 var(--zk-orange); color: var(--zk-ink); }
.zk-cmp--diff tbody tr:not(.is-diff):not(.zk-cmp__act) { display: none; }
.zk-cmp__none { color: var(--zk-stone); font-weight: 400; }
.zk-cmp__car { display: flex; flex-direction: column; gap: 10px; }
.zk-cmp__img { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--zk-paper); }
.zk-cmp__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.zk-cmp__img span { display: grid; place-items: center; height: 100%; color: var(--zk-stone); font-size: .85rem; }
body .zk-cmp a.zk-cmp__name { font-family: var(--zk-display); font-weight: 700; font-size: 1.05rem; line-height: 1.25; color: var(--zk-ink) !important; text-decoration: none !important; }
body .zk-cmp a.zk-cmp__name:hover { color: var(--zk-ember) !important; }
body .zk-cmp button.zk-cmp__remove { align-self: flex-start; width: auto; min-height: 0; margin: 0; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; color: var(--zk-ember) !important; font: inherit; font-size: .88rem; font-weight: 600; letter-spacing: 0; text-transform: none; text-decoration: underline; cursor: pointer; }
body .zk-cmp button.zk-cmp__remove:hover, body .zk-cmp button.zk-cmp__remove:focus { background: transparent !important; color: var(--zk-orange) !important; }
body .zk-cmp a.zk-cmp__view { display: inline-flex; align-items: center; min-height: 42px; padding: 0 1.1rem; border-radius: 6px; background: var(--zk-sunrise); color: var(--zk-tarmac) !important; font-family: var(--zk-display); font-weight: 700; text-decoration: none !important; }
.zk-cmp__table tr.zk-cmp__act td, .zk-cmp__table tr.zk-cmp__act th { background: #fff; }

/* ------------------------------------------------------------------
   Inventory extras: more filters, sold cars, WhatsApp
   ------------------------------------------------------------------ */
.zk-inv__filters details.zk-inv__more { margin: 14px 20px 0; border-top: 1px solid var(--zk-line); }
.zk-inv__filters details.zk-inv__more > summary { padding: 14px 0; font-size: .95rem; }
.zk-inv__filters details.zk-inv__more .zk-inv__fgrid { padding: 0 0 6px; }

.zk-card--sold .zk-card__media img { filter: grayscale(.9) brightness(.82); }
.zk-card--sold:hover .zk-card__media img { transform: none; }
.zk-card--sold .zk-card__badge, .zk-car--sold .zk-card__badge { background: var(--zk-tarmac); color: #fff; }
body .zk-inv .zk-card--sold .zk-card__title a { color: var(--zk-stone) !important; }
.zk-card__price--sold, .zk-car__price--sold { color: var(--zk-stone); }
.zk-car__soldnote { margin: 0 0 1rem; color: var(--zk-stone); line-height: 1.6; }
.zk-inv--sold .zk-inv__wrap { padding-top: clamp(16px, 3vw, 32px); }

body .zk-car a.zk-car__wa {
  display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 10px; padding: 0 1rem; border-radius: 6px;
  border: 1.5px solid var(--zk-ink); background: transparent; color: var(--zk-ink) !important; text-decoration: none !important;
  font-family: var(--zk-display); font-weight: 600; font-size: 1rem; transition: background .2s, color .2s;
}
body .zk-car a.zk-car__wa:hover { background: var(--zk-ink); color: #fff !important; }

/* ------------------------------------------------------------------
   Elementor pages paint every button orange. Keep that off our own controls.
   ------------------------------------------------------------------ */
html body button.zk-tool-btn { padding: 0; border: 0 !important; background: rgba(255, 255, 255, .94) !important; color: var(--zk-ink) !important; text-transform: none; letter-spacing: 0; line-height: 1; }
html body button.zk-tool-btn:hover, html body button.zk-tool-btn:focus { background: rgba(255, 255, 255, .94) !important; color: var(--zk-ember) !important; }
html body button.zk-tool-btn.is-on, html body button.zk-tool-btn.is-on:hover, html body button.zk-tool-btn.is-on:focus { background: var(--zk-orange) !important; color: #fff !important; }
html body .zk-car__tools button.zk-tool-btn { border: 1.5px solid var(--zk-line) !important; background: #fff !important; color: var(--zk-ink) !important; }
html body .zk-car__tools button.zk-tool-btn:hover, html body .zk-car__tools button.zk-tool-btn:focus { border-color: var(--zk-orange) !important; background: #fff !important; color: var(--zk-ink) !important; }
html body .zk-car__tools button.zk-tool-btn.is-on, html body .zk-car__tools button.zk-tool-btn.is-on:hover { border-color: var(--zk-orange) !important; background: var(--zk-orange) !important; color: #fff !important; }
html body .zk-cbar button.zk-cbar__clear { padding: 6px !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; color: #d9d4cb !important; font-weight: 400; text-transform: none; letter-spacing: 0; }
html body .zk-cbar button.zk-cbar__clear:hover, html body .zk-cbar button.zk-cbar__clear:focus { background: transparent !important; color: var(--zk-amber) !important; }
html body .zk-cbar .zk-cbar__item button { padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: transparent !important; color: #fff !important; }
html body .zk-cbar .zk-cbar__item button:hover, html body .zk-cbar .zk-cbar__item button:focus { background: rgba(255, 255, 255, .18) !important; }

/* The Compare page has no heading of its own, so it gets one that matches the Sold page */
.zk-cmp__title { margin: 0 0 1rem; text-align: center; font-family: var(--zk-display); font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.125rem); line-height: 1.26; letter-spacing: -.015em; color: var(--zk-ink); }
.zk-cmp[data-zk-view="compare"] .zk-inv__lead { text-align: center; margin-left: auto; margin-right: auto; }

/* Inventory, car and Favorites pages line up with the heading band on wide screens */
.zk-inventory-page .zk-inv__wrap { max-width: calc(var(--zk-max) + 2 * var(--zk-pad)); }
