/* ============================================================
   ESHOP LISTING — Universal listing styles
   Tokens: --esh-* (overrideable per template via body.tpl-*)
   ============================================================ */

:root {
  --esh-bg:            #ffffff;
  --esh-card-bg:       #ffffff;
  --esh-card-bg-alt:   #f9fafb;
  --esh-text:          #1a1a2e;
  --esh-text-2:        #64748b;
  --esh-text-3:        #94a3b8;
  --esh-accent:        var(--bsc-primary, #2563eb);
  --esh-accent-hover:  var(--bsc-primary-dark, #1d4ed8);
  --esh-line:          #e5e7eb;
  --esh-line-2:        #d1d5db;
  --esh-radius:        14px;
  --esh-radius-sm:     8px;
  --esh-font:          system-ui, -apple-system, sans-serif;
  --esh-font-display:  system-ui, -apple-system, sans-serif;
  --esh-badge-sale:    #dc2626;
  --esh-badge-out-bg:  #374151;
  --esh-badge-out-fg:  #9ca3af;
  --esh-card-shadow-hover: 0 14px 36px rgba(0,0,0,0.12);
}

.esh-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  max-width: 1340px;
  margin: 0 auto;
  padding: 48px 32px 80px;
  align-items: start;
  background: var(--esh-bg);
  color: var(--esh-text);
  font-family: var(--esh-font);
}

.esh-main { min-width: 0; }

.esh-sidebar {
  position: static;
  top: auto;
  max-height: none;
  overflow: visible;
  background: var(--esh-card-bg);
  border: 1px solid var(--esh-line);
  border-radius: var(--esh-radius);
  padding: 20px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.esh-sb-mobile-head {
  display: none;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: calc(16px * var(--bsc-text-scale, 1));
  font-weight: 700;
  color: var(--esh-text);
}
.esh-sb-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--esh-text-2);
  display: flex;
  align-items: center;
}
.esh-sb-section {
  padding: 14px 0;
  border-bottom: 1px solid var(--esh-line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.esh-sb-section:last-of-type { border-bottom: none; }
.esh-sb-title {
  font-size: calc(10px * var(--bsc-text-scale, 1));
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--esh-text-3);
  margin-bottom: 4px;
}
.esh-sb-desc {
  font-size: calc(11px * var(--bsc-text-scale, 1));
  color: var(--esh-text-3);
  margin-top: -2px;
  margin-bottom: 4px;
  line-height: 1.5;
}
.esh-filter-row {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: calc(13px * var(--bsc-text-scale, 1));
  color: var(--esh-text-2);
  padding: 2px 0;
  transition: color 0.15s;
  user-select: none;
}
.esh-filter-row:hover { color: var(--esh-text); }
.esh-native-input {
  accent-color: var(--esh-accent);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  cursor: pointer;
}
.esh-cat-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: calc(13px * var(--bsc-text-scale, 1));
  color: var(--esh-text-2);
  text-decoration: none;
  padding: 3px 0;
  transition: color 0.15s;
}
.esh-cat-nav-link:hover { color: var(--esh-accent); }
.esh-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.esh-price-sep { color: var(--esh-text-3); font-size: calc(13px * var(--bsc-text-scale, 1)); }
.esh-price-input {
  width: 76px;
  background: var(--esh-card-bg-alt);
  border: 1px solid var(--esh-line-2);
  border-radius: var(--esh-radius-sm);
  color: var(--esh-text);
  font-size: calc(13px * var(--bsc-text-scale, 1));
  padding: 6px 9px;
  font-family: inherit;
  -moz-appearance: textfield;
}
.esh-price-input::-webkit-outer-spin-button,
.esh-price-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.esh-price-input:focus { outline: none; border-color: var(--esh-accent); }
.esh-reset-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 9px 14px;
  background: none;
  border: 1px solid var(--esh-line-2);
  border-radius: var(--esh-radius-sm);
  color: var(--esh-text-3);
  font-size: calc(11px * var(--bsc-text-scale, 1));
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.esh-reset-btn:hover { border-color: var(--esh-text-3); color: var(--esh-text); }

.esh-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  min-height: 36px;
}
.esh-count { font-size: calc(13px * var(--bsc-text-scale, 1)); color: var(--esh-text-3); }
.esh-filter-toggle {
  display: none;
  align-items: center;
  gap: 7px;
  background: var(--esh-card-bg);
  border: 1px solid var(--esh-line-2);
  border-radius: var(--esh-radius-sm);
  color: var(--esh-text);
  font-size: calc(13px * var(--bsc-text-scale, 1));
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  font-family: inherit;
}

.esh-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.esh-card {
  background: var(--esh-card-bg);
  border: 1px solid var(--esh-line);
  border-radius: var(--esh-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.22s, transform 0.22s, box-shadow 0.22s;
  font-family: var(--esh-font);
}
.esh-card:hover {
  border-color: var(--esh-accent);
  transform: translateY(-3px);
  box-shadow: var(--esh-card-shadow-hover);
}
.esh-card.esh-hidden { display: none; }

.esh-card-img-wrap {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--esh-card-bg-alt);
  overflow: hidden;
  text-decoration: none;
}
.esh-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.esh-card:hover .esh-card-img-wrap img { transform: scale(1.05); }
.esh-card-noimg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--esh-text-3);
}
.esh-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: calc(10px * var(--bsc-text-scale, 1));
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.esh-badge-sale { background: var(--esh-badge-sale); color: #fff; }
.esh-badge-feat { background: var(--esh-accent); color: var(--esh-bg); }
.esh-badge-out  { background: var(--esh-badge-out-bg); color: var(--esh-badge-out-fg); top: auto; bottom: 10px; }

.esh-card-body {
  padding: 12px 14px 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.esh-card-cat {
  font-size: calc(10px * var(--bsc-text-scale, 1));
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--esh-accent);
}
.esh-card-name {
  font-size: calc(14px * var(--bsc-text-scale, 1));
  font-weight: 600;
  color: var(--esh-text);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--esh-font-display);
}
.esh-card-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: auto;
  padding-top: 8px;
}
.esh-card-price strong { font-size: calc(17px * var(--bsc-text-scale, 1)); font-weight: 800; color: var(--esh-text); font-family: var(--esh-font-display); }
.esh-card-old { font-size: calc(12px * var(--bsc-text-scale, 1)); color: var(--esh-text-3); text-decoration: line-through; }

.esh-card-footer {
  padding: 8px 12px 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.esh-detail-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 1.5px solid var(--esh-line-2);
  border-radius: var(--esh-radius-sm);
  color: var(--esh-text-2);
  font-size: calc(11px * var(--bsc-text-scale, 1));
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: border-color 0.15s, color 0.15s;
  font-family: inherit;
}
.esh-card:hover .esh-detail-btn {
  border-color: var(--esh-accent);
  color: var(--esh-accent);
}
.esh-cart-icon-btn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1.5px solid var(--esh-line-2);
  border-radius: var(--esh-radius-sm);
  background: transparent;
  color: var(--esh-text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s;
}
.esh-cart-icon-btn:hover { border-color: var(--esh-accent); color: var(--esh-accent); }

.esh-cat-heading {
  font-size: calc(28px * var(--bsc-text-scale, 1));
  font-weight: 800;
  color: var(--esh-text);
  text-align: center;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
  font-family: var(--esh-font-display);
}

.esh-empty-global,
.esh-empty-filter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 80px 20px;
  color: var(--esh-text-3);
  text-align: center;
}
.esh-empty-global p,
.esh-empty-filter p { font-size: calc(15px * var(--bsc-text-scale, 1)); margin: 0; }

.esh-sb-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 199;
}
.esh-sb-backdrop.open { display: block; }

@media (max-width: 1100px) {
  .esh-wrap { grid-template-columns: 240px 1fr; gap: 24px; }
  .esh-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Potvrdzovacie tlacidlo s poctom plati na vsetkych sirkach — na mobile,
   tablete aj desktope. Predtym bolo cele schovane a zapinalo sa az
   v @media (max-width: 768px), takze na desktope filtre nemali cim
   potvrdit, hoci to boli tie iste filtre. Na mobile si dole nechava
   lepivy pas cez celu sirku zasuvky; na desktope je to bezne tlacidlo
   pod filtrami. */
.esh-apply-bar { display: block; margin-top: 14px; }
.esh-apply-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--esh-radius-sm);
  background: var(--esh-accent);
  color: #fff;
  font-size: calc(15px * var(--bsc-text-scale, 1));
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.esh-apply-btn:hover { filter: brightness(1.06); }
@media (max-width: 768px) {
  .esh-wrap { grid-template-columns: 1fr; padding: 24px 16px 60px; gap: 0; }
  .esh-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 300px;
    max-width: 90vw;
    z-index: 200;
    border-radius: 0 16px 16px 0;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding-bottom: 0;
  }
  .esh-sidebar.open { transform: translateX(0); }
  .esh-sb-mobile-head { display: flex; }
  .esh-filter-toggle  { display: flex; }
  .esh-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  /* V zasuvke sa tlacidlo drzi dole a roztiahne sa cez cely jej okraj. */
  .esh-apply-bar {
    position: sticky;
    bottom: 0;
    margin: 8px -16px 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--esh-card-bg);
    border-top: 1px solid var(--esh-line);
  }
  body:has(.rmb) .esh-apply-bar {
    bottom: calc(57px + env(safe-area-inset-bottom, 0px));
    padding-bottom: 12px;
  }
}
@media (max-width: 480px) {
  .esh-grid { grid-template-columns: 1fr; }
  body:not(.tpl-remeselnik) .esh-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

.esh-sb-images {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.esh-sb-image-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.esh-sb-image-caption {
  margin: 0;
  font-size: calc(12px * var(--bsc-text-scale, 1));
  color: var(--esh-text-3);
  line-height: 1.4;
  text-align: center;
}

.esh-pricing-thumb {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  padding: 0;
  background: var(--esh-card-bg-alt);
  border: 1px solid var(--esh-line);
  border-radius: var(--esh-radius-sm);
  cursor: zoom-in;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}
.esh-pricing-thumb:hover {
  border-color: var(--esh-accent);
}
.esh-pricing-thumb img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.esh-pricing-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.esh-pricing-lightbox[hidden] { display: none; }

.esh-pricing-lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.esh-pricing-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.esh-pricing-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}

@media (max-width: 640px) {
  .esh-pricing-lightbox { padding: 12px; }
  .esh-pricing-lightbox-img { max-width: 95vw; max-height: 85vh; }
  .esh-pricing-lightbox-close { top: 12px; right: 12px; width: 36px; height: 36px; }
}

/* Karta na mobile: dve tlacidla vedla seba sa do 174 px nezmestia,
   ikona kosika pretrcala cez okraj. Pod sebou, obe na plnu sirku. */
.esh-detail-btn { min-width: 0; }
@media (max-width: 600px) {
  .esh-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .esh-cart-icon-btn {
    width: 100%;
    height: 34px;
  }
  .esh-detail-btn {
    padding: 8px 6px;
    letter-spacing: 0.02em;
  }
}

/* Panel filtrov drzi pri rolovani. Nizsie (pod 768px) je zasuvka,
   tam sticky nema zmysel a pravidlo sa neuplatni. */
@media (min-width: 769px) {
  .esh-wrap { align-items: start; }
  .esh-sidebar {
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* Schema commerce (predvolena) necha vypis na vlastnej neutralnej palete.
   Pri commerce_scheme = inherit prevezme role tenanta. Tretia uroven textu,
   alternativna karta a silnejsia linka sa odvodzuju cez color-mix, aby sa
   paleta nezostihla na menej odtienov, nez ma dnes. */
body[class].bsc-commerce-inherit {
  --esh-bg: var(--bsc-surface, #f5f5f5);
  --esh-card-bg: var(--bsc-bg, #ffffff);
  --esh-card-bg-alt: color-mix(in srgb, var(--bsc-bg, #ffffff) 50%, var(--bsc-surface, #f5f5f5));
  --esh-text: var(--bsc-text, #1a1a1a);
  --esh-text-2: var(--bsc-text-muted, #525252);
  --esh-text-3: color-mix(in srgb, var(--bsc-text-muted, #a3a3a3) 55%, var(--bsc-bg, #ffffff));
  --esh-line: var(--bsc-line, #e5e5e5);
  --esh-line-2: color-mix(in srgb, var(--bsc-line, #e5e5e5) 90%, var(--bsc-text, #1a1a1a));
}

/* ===================================================================
   Sprievodca filtrami — jedna skupina naraz, rovnako na vsetkych sirkach

   Vsetky farby, zaoblenia a pisma su z tokenov --esh-*, ktore uz maju
   svetlu aj tmavu vetvu, takze sprievodca sadne na kazdu sablonu bez
   natvrdo napisanych hodnot.

   Brxa (managed_mode = custom) tieto triedy vobec nedostane — jej
   sablona renderuje povodny panel, nie sprievodcu.
   =================================================================== */

.esh-wiz {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Ukazovatel krokov: kroky vedla seba, kazdy klikatelny. Rolovanie do
   strany tu bolo predtym a bola to chyba — posledny krok ostal odrezany
   pravym okrajom a nic nenaznacovalo, ze sa da posunut. Zalamovanie do
   dalsieho riadku ukaze vzdy vsetky kroky cele. */
.esh-wiz-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  min-width: 0;
}
.esh-wiz-step-li { max-width: 100%; }
.esh-wiz-step-li { flex: 0 0 auto; }
.esh-wiz-step {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--esh-line);
  border-radius: var(--esh-radius-sm);
  background: var(--esh-card-bg);
  color: var(--esh-text-2);
  font-family: inherit;
  font-size: calc(13px * var(--bsc-text-scale, 1));
  font-weight: 600;
  line-height: 1.1;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.esh-wiz-step-nazov { min-width: 0; overflow-wrap: anywhere; }
.esh-wiz-step:hover { border-color: var(--esh-line-2); color: var(--esh-text); }
.esh-wiz-step-cislo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--esh-card-bg-alt);
  color: var(--esh-text-2);
  font-size: calc(11px * var(--bsc-text-scale, 1));
  font-weight: 700;
}
.esh-wiz-step--current {
  border-color: var(--esh-accent);
  color: var(--esh-text);
  background: var(--esh-card-bg);
}
.esh-wiz-step--current .esh-wiz-step-cislo { background: var(--esh-accent); color: #fff; }
.esh-wiz-step--vybrany { color: var(--esh-text); }
.esh-wiz-step-znacka { color: var(--esh-accent); font-weight: 700; }
.esh-wiz-step-znacka:empty { display: none; }

.esh-wiz-panely { min-height: 0; overflow-y: visible; padding-bottom: 12px; }
.esh-wiz-panel[hidden] { display: none; }
.esh-wiz-panel-hd {
  font-size: calc(13px * var(--bsc-text-scale, 1));
  font-weight: 700;
  color: var(--esh-text);
  margin-bottom: 8px;
}

/* Hodnota je cely klikatelny riadok, nie tenky prouzok s malym polickom. */
.esh-wiz .esh-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 8px;
  border-radius: var(--esh-radius-sm);
  color: var(--esh-text);
  font-size: calc(14px * var(--bsc-text-scale, 1));
  cursor: pointer;
}
.esh-wiz .esh-filter-row:hover { background: var(--esh-card-bg-alt); }
.esh-wiz .esh-filter-row > span:first-of-type { flex: 1 1 auto; min-width: 0; }
.esh-wiz .esh-native-input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--esh-accent); }
.esh-wiz .esh-val-count { flex: 0 0 auto; color: var(--esh-text-3); font-size: calc(12px * var(--bsc-text-scale, 1)); }

/* Riadok bez produktov ostava vidiet, ale neda sa zvolit. */
.esh-wiz .esh-filter-row--prazdny { opacity: .45; cursor: not-allowed; }
.esh-wiz .esh-filter-row--prazdny:hover { background: none; }

/* Lista s tlacidlami drzi dole, obsah kroku sa roluje pod nou. */
.esh-wiz .esh-apply-bar {
  position: sticky;
  bottom: 0;
  margin-top: 12px;
  padding-top: 12px;
  background: var(--esh-card-bg);
  border-top: 1px solid var(--esh-line);
}
/* Mriezka, nie flex: hlavne tlacidlo dostane presne zvysok sirky a nikdy
   nepodleze pod "Dalej". Text sa v nom smie zalomit — pri "Zobrazit 371
   produktov" v uzkom bocnom panely to bol jediny sposob, ako sa zmesti
   bez orezania. */
.esh-wiz-akcie {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}
.esh-wiz .esh-apply-btn {
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.2;
  text-align: center;
}
.esh-wiz .esh-apply-btn:disabled { opacity: .5; cursor: not-allowed; }
.esh-wiz-next {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--esh-line-2);
  border-radius: var(--esh-radius-sm);
  background: var(--esh-card-bg);
  color: var(--esh-text);
  font-family: inherit;
  font-size: calc(14px * var(--bsc-text-scale, 1));
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.esh-wiz-next:hover { border-color: var(--esh-accent); color: var(--esh-accent); }
.esh-wiz-next[hidden] { display: none; }

/* Spresnenie v poslednom kroku: cena a dostupnost su dva male ovladace,
   nie kroky. Oddelene ciarou, aby nesplyvali so zoradenim. */
.esh-wiz-spresnenie {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--esh-line);
}
.esh-wiz-spresnenie-hd {
  font-size: calc(12px * var(--bsc-text-scale, 1));
  font-weight: 700;
  color: var(--esh-text-3);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.esh-wiz-spresnenie .esh-price-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.esh-wiz-spresnenie .esh-price-input { flex: 1 1 0; min-width: 0; }

/* V zasuvke na mobile ma sprievodca plnu vysku, aby lista ostala dole. */
@media (max-width: 768px) {
  .esh-wiz { height: 100%; }
  .esh-wiz .esh-apply-bar {
    margin: 12px -16px 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  }
}

/* Odkaz na vykresy: samostatny prvok filtra, nie krok sprievodcu.
   Zostavy maju vlastnu vizualnu cestu — vo filtri by z nich bol len
   zoznam katalogovych cisel. Zobrazi sa len tenantovi, ktory zostavy ma. */
.esh-wiz-odkaz {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  margin-top: 12px;
  padding: 0 14px;
  border: 1.5px solid var(--esh-line-2);
  border-radius: var(--esh-radius-sm);
  background: var(--esh-card-bg-alt);
  color: var(--esh-text);
  font-size: calc(14px * var(--bsc-text-scale, 1));
  font-weight: 600;
  text-decoration: none;
}
.esh-wiz-odkaz > span { min-width: 0; }
.esh-wiz-odkaz svg { flex: 0 0 auto; }
.esh-wiz-odkaz:hover { border-color: var(--esh-accent); color: var(--esh-accent); }

.esh-wiz-telo { min-height: 0; overflow-y: auto; scrollbar-gutter: stable; }
.esh-wiz-telo.esh-wiz-telo--viac { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent 100%); mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent 100%); }
.esh-wiz-obrazky { margin-top: 12px; }
.esh-wiz-video { margin-top: 12px; }
