/* Окно адреса и самовывоза — вид только из темы (--sf-*). Телефон: лист снизу; ПК: окно по центру. */
[data-sf-template] .br-veil { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; background: var(--sf-color-surface-scrim); }
[data-sf-template] .br-sheet { position: relative; width: 100%; max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column; box-sizing: border-box; background: var(--sf-color-surface-default);
  color: var(--sf-color-text-primary); border-radius: var(--sf-radius-lg) var(--sf-radius-lg) 0 0; box-shadow: var(--sf-shadow-lg); outline: none; font-family: var(--sf-font-body); }
[data-sf-template] .br-grab { align-self: center; flex: none; width: 40px; height: 5px; margin-top: 8px; border-radius: var(--sf-radius-pill); background: var(--sf-color-line-default); }
[data-sf-template] .br-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 16px 0; }
[data-sf-template] .br-head h2 { flex: 1; min-width: 0; margin: 0; font-family: var(--sf-font-heading); font-size: 22px; line-height: 1.2; font-weight: 700; }
[data-sf-template] .br-close { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--sf-color-surface-sunken); color: var(--sf-color-text-primary);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
[data-sf-template] .br-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px 16px; }
[data-sf-template] .br-body form { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; }
[data-sf-template] .br-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Доставка / Самовывоз */
[data-sf-template] .br-seg { display: flex; padding: 4px; border-radius: var(--sf-radius-pill); background: var(--sf-color-surface-sunken); }
[data-sf-template] .br-seg button { flex: 1; min-width: 0; height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--sf-radius-pill);
  background: transparent; color: var(--sf-color-text-muted); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
[data-sf-template] .br-seg button[aria-pressed="true"] { background: var(--sf-color-surface-raised); color: var(--sf-color-text-primary); box-shadow: var(--sf-shadow-sm); }

/* Город строкой */
[data-sf-template] .br-city { position: relative; display: flex; align-items: center; gap: 6px; padding: 0 4px; min-height: 32px; font-size: 14px; color: var(--sf-color-text-muted); }
[data-sf-template] .br-city-pin { display: inline-flex; color: var(--sf-color-brand-default); }
[data-sf-template] .br-city-name { display: inline-flex; align-items: center; gap: 2px; color: var(--sf-color-text-primary); font-weight: 600; }
[data-sf-template] .br-city-select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font-size: 16px; }

/* Поиск адреса и подсказки */
[data-sf-template] .br-field { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 10px 0 14px; box-sizing: border-box; border-radius: var(--sf-radius-md);
  background: var(--sf-color-surface-raised); border: 2px solid var(--sf-color-line-default); cursor: text; }
[data-sf-template] .br-field.is-focus { border-color: var(--sf-color-brand-default); }
[data-sf-template] .br-field-icon { display: inline-flex; color: var(--sf-color-text-muted); }
[data-sf-template] .br-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; color: var(--sf-color-text-primary); font: inherit; font-size: 16px; }
[data-sf-template] .br-field input::placeholder { color: var(--sf-color-text-muted); }
[data-sf-template] .br-clear { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--sf-color-surface-sunken); color: var(--sf-color-text-muted);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
[data-sf-template] .br-suggest { list-style: none; margin: 6px 0 0; padding: 0; }
[data-sf-template] .br-suggest li { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 4px; box-sizing: border-box; border-bottom: 1px solid var(--sf-color-line-default); cursor: pointer; }
[data-sf-template] .br-suggest li[aria-selected="true"] { background: var(--sf-color-surface-sunken); }
@media (hover: hover) and (pointer: fine) { [data-sf-template] .br-suggest li:hover  { background: var(--sf-color-surface-sunken); } }
[data-sf-template] .br-suggest-pin { flex: none; display: inline-flex; color: var(--sf-color-text-muted); }
[data-sf-template] .br-suggest-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
[data-sf-template] .br-suggest-text b { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
[data-sf-template] .br-suggest-text small { font-size: 13px; color: var(--sf-color-text-muted); }

/* «Где я» */
[data-sf-template] .br-pills { display: flex; gap: 8px; }
[data-sf-template] .br-pill { flex: 1; min-width: 0; height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--sf-color-line-default);
  border-radius: var(--sf-radius-pill); background: var(--sf-color-surface-raised); color: var(--sf-color-text-primary); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
[data-sf-template] .br-pill svg, [data-sf-template] .br-link svg { color: var(--sf-color-brand-default); }
[data-sf-template] .br-pill:disabled { opacity: .55; cursor: default; }
[data-sf-template] .br-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; border: 0; background: transparent;
  color: var(--sf-color-brand-default); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }

/* Мои адреса */
[data-sf-template] .br-recent { display: flex; flex-direction: column; }
[data-sf-template] .br-caption { margin: 4px 4px 2px; font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--sf-color-text-muted); }
[data-sf-template] .br-row { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 4px; border: 0; border-bottom: 1px solid var(--sf-color-line-default);
  background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
[data-sf-template] .br-row-icon { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--sf-color-surface-sunken); color: var(--sf-color-text-muted); display: inline-flex; align-items: center; justify-content: center; }
[data-sf-template] .br-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
[data-sf-template] .br-row-text b { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
[data-sf-template] .br-row-text small { font-size: 13px; color: var(--sf-color-text-muted); }
[data-sf-template] .br-row-chev { color: var(--sf-color-text-muted); display: inline-flex; }

/* Подъезд · этаж · квартира · домофон */
[data-sf-template] .br-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
[data-sf-template] .br-detail { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 13px; color: var(--sf-color-text-muted); }
[data-sf-template] .br-detail input { height: 48px; box-sizing: border-box; padding: 0 14px; border-radius: var(--sf-radius-md); border: 1px solid var(--sf-color-line-default);
  background: var(--sf-color-surface-raised); color: var(--sf-color-text-primary); font: inherit; font-size: 16px; min-width: 0; }
[data-sf-template] .br-detail input:focus { outline: none; border-color: var(--sf-color-brand-default); }

/* Самовывоз */
[data-sf-template] .br-map { height: 168px; border-radius: var(--sf-radius-lg); overflow: hidden; background: var(--sf-color-surface-sunken); }
[data-sf-template] .br-map > * { width: 100%; height: 100%; }
[data-sf-template] .br-venues { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
[data-sf-template] .br-venue { position: relative; display: flex; gap: 12px; padding: 14px 14px 14px 16px; border-radius: var(--sf-radius-lg); background: var(--sf-color-surface-raised);
  border: 2px solid var(--sf-color-line-default); cursor: pointer; }
[data-sf-template] .br-venue.is-on { border-color: var(--sf-color-brand-default); }
[data-sf-template] .br-venue.is-off { cursor: default; opacity: .6; }
[data-sf-template] .br-venue input { position: absolute; opacity: 0; pointer-events: none; }
[data-sf-template] .br-radio { flex: none; width: 22px; height: 22px; margin-top: 1px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--sf-color-line-strong); }
[data-sf-template] .br-venue.is-on .br-radio { border: 7px solid var(--sf-color-brand-default); }
[data-sf-template] .br-venue input:focus-visible + .br-radio { outline: 2px solid var(--sf-color-line-focus); outline-offset: 2px; }
[data-sf-template] .br-venue-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
[data-sf-template] .br-venue-text b { font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
[data-sf-template] .br-venue-text span { font-size: 14px; color: var(--sf-color-text-muted); }
[data-sf-template] .br-venue-text small { font-size: 13px; font-weight: 600; color: var(--sf-color-text-muted); }
[data-sf-template] .br-venue-text small.is-shut { color: var(--sf-color-signal-danger); }

/* Условия, ошибки, подвал */
[data-sf-template] .br-note, [data-sf-template] .br-cond { margin: 0; padding: 0 4px; font-size: 14px; line-height: 1.4; color: var(--sf-color-text-muted); }
[data-sf-template] .br-cond.is-ok { padding: 12px 14px; border-radius: var(--sf-radius-md); background: var(--sf-color-surface-sunken); color: var(--sf-color-signal-success); font-weight: 600; }
[data-sf-template] .br-foot { flex: none; display: flex; flex-direction: column; gap: 8px; padding: 12px 16px 20px; border-top: 1px solid var(--sf-color-line-default); background: var(--sf-color-surface-default); }
[data-sf-template] .br-error { margin: 0; display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--sf-color-signal-danger); }
/* Белый на голубом Wolt — 3,0: проходит только крупный жирный текст (от 18,66px), поэтому 19px и без мелкой подстроки. */
[data-sf-template] .br-go { min-height: 54px; display: flex; align-items: center; justify-content: center; padding: 6px 20px; border: 0;
  border-radius: var(--sf-radius-pill); background: var(--sf-color-brand-default); color: var(--sf-color-text-inverse); font: inherit; font-size: 19px; font-weight: 700; cursor: pointer; }
[data-sf-template] .br-where { margin: 0; display: flex; align-items: center; gap: 6px; padding: 0 4px; font-size: 14px; color: var(--sf-color-text-secondary); }
[data-sf-template] .br-where svg { flex: none; color: var(--sf-color-brand-default); }
[data-sf-template] .br-where span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-sf-template] .br-field-note { display: block; margin-top: 8px; padding: 0 4px; font-size: 14px; line-height: 1.4; color: var(--sf-color-text-muted); }
@media (hover: hover) and (pointer: fine) { [data-sf-template] .br-go:hover { background: var(--sf-color-brand-hover); } }
[data-sf-template] .br-go:disabled { background: var(--sf-color-brand-disabled); cursor: default; }
[data-sf-template] .br-hint { font-size: 13px; color: var(--sf-color-text-muted); text-align: center; }
[data-sf-template] .br-sheet button:focus-visible, [data-sf-template] .br-city-select:focus-visible + * { outline: 2px solid var(--sf-color-line-focus); outline-offset: 2px; }

@media (min-width: 900px) {
  [data-sf-template] .br-veil { align-items: center; }
  [data-sf-template] .br-sheet { width: 480px; max-height: 86vh; max-height: 86dvh; border-radius: var(--sf-radius-lg); }
  [data-sf-template] .br-grab { display: none; }
  [data-sf-template] .br-head { padding: 20px 20px 0 24px; }
  [data-sf-template] .br-body { padding: 0 24px 16px; }
  [data-sf-template] .br-foot { padding: 12px 24px 24px; border-radius: 0 0 var(--sf-radius-lg) var(--sf-radius-lg); }
}

/* Телефон (навык mobile-native, 16.11.2026): отклик на нажатие, подпись кнопки не выделяется долгим нажатием. */
[data-sf-template] :is(.br-go, .br-pill) { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
[data-sf-template] :is(.br-go, .br-pill):active:not(:disabled) { transform: scale(.97); }
@media (prefers-reduced-motion: no-preference) {
  [data-sf-template] :is(.br-go, .br-pill) { transition: transform 120ms cubic-bezier(.23, 1, .32, 1); }
}
[data-sf-template] :is(button, a, label):is(.br-row):active:not(:disabled) { background: var(--sf-color-surface-sunken); }
/* Нажатие, проход 2 (16.11): отклик у всего, что нажимается; при prefers-reduced-motion переходов нет. */
[data-sf-template] :is(.br-clear, .br-close):active:not(:disabled) { transform: scale(.97); }
[data-sf-template] :is(.br-link):active { opacity: .7; }
@media (prefers-reduced-motion: no-preference) {
  [data-sf-template] :is(.br-clear, .br-close) { transition: transform 120ms cubic-bezier(.23, 1, .32, 1); }
  [data-sf-template] :is(.br-link) { transition: opacity 120ms cubic-bezier(.23, 1, .32, 1); }
}

/* The receiving dialog owns the active mobile controls while it is open. */
[data-sf-template]:has(.br-veil) .bs2-ck { visibility: hidden; }
