[data-sf-template] .bst { position: relative; min-width: 0; padding: var(--sf-space-lg) 0 var(--sf-space-sm); }
[data-sf-template] .bst-row { list-style: none; margin: 0; padding: 4px 2px; display: flex; gap: var(--sf-space-md);
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
[data-sf-template] .bst-row::-webkit-scrollbar { display: none; }
[data-sf-template] .bst-item { flex: none; scroll-snap-align: start; }
/* Обложка показывает готовый баннер ресторана. Просмотренные — без контура и в конце ряда. */
/* Поля ряда перебивало правило каркаса для списков — контур срезался сверху и снизу (проверка вёрстки 16.11). */
[data-sf-template] .bst ul.bst-row { margin: 0 -6px; padding: 6px; scroll-padding: 0 6px; }
[data-sf-template] .bst-cover { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; border-radius: var(--sf-radius-lg); }
[data-sf-template] .bst-ring { position: relative; display: block; width: 104px; height: 136px; overflow: hidden; border-radius: var(--sf-radius-lg);
  background: var(--sf-color-surface-sunken); outline: 2px solid var(--sf-color-brand-default); outline-offset: 2px; }
[data-sf-template] .bst-cover.is-seen .bst-ring { outline: 0; }
[data-sf-template] .bst-ring img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
[data-sf-template] .bst-turn { display: none; }
[data-sf-template] :is(.bst-turn, .bst-close):focus-visible { outline: 2px solid var(--sf-color-line-focus); outline-offset: 2px; }
@media (min-width: 900px) {
  [data-sf-template] .bst-row { gap: var(--sf-space-lg); }
  [data-sf-template] .bst-ring { width: 132px; height: 176px; }
  [data-sf-template] .bst-turn { position: absolute; z-index: 1; top: 50%; transform: translateY(-50%); display: grid; place-items: center;
    width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--sf-radius-pill); background: var(--sf-color-surface-raised);
    color: var(--sf-color-text-primary); box-shadow: var(--sf-shadow-sm); cursor: pointer; }
  [data-sf-template] .bst-turn.is-prev { left: -36px; }
  [data-sf-template] .bst-turn.is-next { right: -36px; }
  [data-sf-template] .bst-turn.is-prev svg { transform: rotate(180deg); }
  [data-sf-template] .bst-turn[aria-disabled="true"] { color: var(--sf-color-text-muted); cursor: default; }
}
@media (min-width: 900px) and (max-width: 1151px) {
  [data-sf-template] .bst-row { gap: var(--sf-space-md); }
  [data-sf-template] .bst-item { min-width: 0; flex-basis: min(132px, calc((100% - 3 * var(--sf-space-md)) / 4)); }
  [data-sf-template] .bst-cover { display: block; width: 100%; }
  [data-sf-template] .bst-ring { width: 100%; height: auto; aspect-ratio: 3 / 4; }
}
[data-sf-template] .bst-cover:focus-visible { outline: none; }
[data-sf-template] .bst-cover:focus-visible .bst-ring { outline: 3px solid var(--sf-color-line-focus); outline-offset: 2px; }

[data-sf-template] .bst-scrim { position: fixed; inset: 0; z-index: 1000; background: var(--sf-color-surface-scrim);
  display: flex; align-items: center; justify-content: center; }
[data-sf-template] .bst-view { position: relative; width: 100%; height: 100%; max-width: 440px; max-height: 860px;
  display: flex; flex-direction: column; background: var(--sf-color-surface-raised); color: var(--sf-color-text-primary);
  overflow: hidden; outline: none; }
@media (min-width: 600px) { [data-sf-template] .bst-view { height: calc(100% - 48px); border-radius: var(--sf-radius-lg); box-shadow: var(--sf-shadow-lg); } }
[data-sf-template] .bst-bars { position: absolute; z-index: 2; top: var(--sf-space-sm); left: var(--sf-space-sm); right: 56px; display: flex; gap: 4px; }
[data-sf-template] .bst-bar { flex: 1; height: 3px; border-radius: var(--sf-radius-pill); overflow: hidden;
  background: color-mix(in srgb, var(--sf-color-surface-raised) 55%, transparent); }
[data-sf-template] .bst-fill { display: block; height: 100%; width: 0; background: var(--sf-color-surface-raised); }
[data-sf-template] .bst-fill.is-done { width: 100%; }
[data-sf-template] .bst-fill.is-run { width: 100%; transition: width 5s linear; }
[data-sf-template] .bst-close { position: absolute; z-index: 3; top: 4px; right: var(--sf-space-sm); width: 44px; height: 44px;
  border: 0; border-radius: var(--sf-radius-pill); background: var(--sf-color-surface-overlay); color: var(--sf-color-text-primary);
  display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--sf-shadow-sm); }
[data-sf-template] .bst-stage { position: relative; flex: 1; min-height: 0; background: var(--sf-color-text-primary); touch-action: pan-y; user-select: none; }
[data-sf-template] .bst-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
[data-sf-template] .bst-tap { position: absolute; top: 0; bottom: 0; width: 40%; border: 0; padding: 0; background: transparent; cursor: pointer; }
[data-sf-template] .bst-tap.is-prev { left: 0; width: 30%; }
[data-sf-template] .bst-tap.is-next { right: 0; width: 70%; }
[data-sf-template] .bst-tap:focus-visible { outline: 2px solid var(--sf-color-line-focus); outline-offset: -4px; }
[data-sf-template] .bst-copy { padding: var(--sf-space-lg); display: flex; flex-direction: column; gap: var(--sf-space-sm); }
[data-sf-template] .bst-title { margin: 0; font-family: var(--sf-font-heading); font-size: 22px; line-height: 1.15; overflow-wrap: anywhere; }
[data-sf-template] .bst-text { margin: 0; color: var(--sf-color-text-secondary); overflow-wrap: anywhere; }
[data-sf-template] .bst-cta { margin-top: var(--sf-space-xs); display: block; text-align: center; text-decoration: none; padding: 14px;
  border-radius: var(--sf-radius-control); background: var(--sf-color-brand-default); color: var(--sf-color-text-inverse); font-weight: 700; }
[data-sf-template] .bst-cta:hover { background: var(--sf-color-brand-hover); }
[data-sf-template] .bst-count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
