/* Kabdalis cart indicator — header cart icon + count. Tokens fall back to
   literals so it renders on any page even before the theme tokens load. */
.kab-cart-indicator {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--ink, #1f2328);
  text-decoration: none;
  border-radius: 50%;
  transition: background .15s ease, color .15s ease;
}
.kab-cart-indicator:hover,
.kab-cart-indicator:focus-visible {
  color: var(--accent, #c2410c);
  background: color-mix(in srgb, var(--accent, #c2410c) 9%, transparent);
}
.kab-cart-indicator__count {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  box-sizing: border-box;
  border-radius: 9px;
  background: var(--accent, #c2410c);
  color: var(--on-accent, #fff);
  font: 700 11px/18px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-align: center;
}

/* Fallback when the theme header (.hd__right) isn't present on a page. */
.kab-cart-indicator--floating {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  background: var(--surface, #ffffff);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .18);
}

/* Pinned just to the left of the GTranslate widget (top/right set inline by JS).
   A subtle pill so it reads as a control sitting beside the language flags. */
.kab-cart-indicator--by-gt {
  position: fixed;
  z-index: 100000;            /* above the GTranslate widget */
  width: 44px;
  height: 44px;
  background: var(--surface, #ffffff);
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .16);
}

/* ── Mobile sticky bottom checkout bar ──────────────────────────────────────
   Desktop uses the small header icon; ≤759px the bar takes over so the cramped
   header/flags area is left alone. Only present when the cart has items. */
.kab-cart-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  display: none;                 /* shown only on mobile (media query below) */
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--surface, #ffffff);
  border-top: 1px solid var(--line, #e5e1d8);
  box-shadow: 0 -2px 16px rgba(0, 0, 0, .14);
  color: var(--ink, #1f2328);
  text-decoration: none;
}
.kab-cart-bar__info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
}
.kab-cart-bar__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--accent, #c2410c);
  color: var(--on-accent, #ffffff);
  font: 700 12px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.kab-cart-bar__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--accent, #c2410c);
  color: var(--on-accent, #ffffff);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}
@media (max-width: 759px) {
  .kab-cart-bar { display: flex; }
  .kab-cart-indicator { display: none !important; }   /* free up the crowded header */
  body.kab-has-cart { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
}
