/* Поиск по сайту: кнопка в шапке, панель подсказок, страница /poisk/ (docs/search-spec.md) */
.br-sbtn { display: inline-flex; align-items: center; gap: 6px; margin: 0 14px 0 0; padding: 8px 12px; border: 1px solid #d5dbe5;
  border-radius: 8px; background: #fff; color: #333; font: inherit; font-size: 15px; line-height: 1; cursor: pointer; }
.br-sbtn:hover, .br-sbtn:focus-visible { border-color: #667eea; color: #667eea; }
.br-sbtn__icon { flex: none; }
.br-sbtn--mob { display: none; margin: 0 6px 0 auto; padding: 8px; border: 0; }
.br-sbtn--float { position: fixed; top: 12px; right: 12px; z-index: 1001; box-shadow: 0 4px 16px rgba(15, 23, 42, .15); }
@media (max-width: 768px) { .br-sbtn--mob { display: inline-flex; } }

html.br-sp-open { overflow: hidden; }
.br-sp { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1500; display: flex; justify-content: center; align-items: flex-start;
  padding: 64px 16px 16px; background: rgba(15, 23, 42, .45); }
.br-sp[hidden] { display: none; }
.br-sp__box { display: flex; flex-direction: column; width: 100%; max-width: 640px; max-height: calc(100vh - 96px); overflow: hidden;
  background: #fff; color: #1a2b3c; border-radius: 12px; box-shadow: 0 16px 48px rgba(15, 23, 42, .25); }
.br-sp__bar { display: flex; align-items: center; gap: 8px; padding: 10px 8px 10px 16px; border-bottom: 1px solid #e5e9f0; color: #5b6b7c; }
.br-sp__input { flex: 1; min-width: 0; padding: 6px 0; border: 0; outline: 0; background: transparent; color: #1a2b3c; font: inherit; font-size: 17px; }
.br-sp__close { flex: none; width: 40px; height: 40px; border: 0; background: transparent; color: #5b6b7c; font-size: 28px; line-height: 1; cursor: pointer; }
.br-sp__list { overflow-y: auto; padding: 6px 0; }
.br-sp__list:empty { display: none; }
.br-sp__group { padding: 10px 16px 4px; color: #5b6b7c; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.br-sp__opt { display: flex; align-items: center; gap: 12px; padding: 8px 16px; color: inherit; text-decoration: none; }
.br-sp__opt:hover, .br-sp__opt.is-active { background: #eef1fd; }
.br-sp__img { flex: none; width: 64px; height: 48px; border-radius: 6px; background: #e5e9f0; object-fit: cover; }
.br-sp__txt { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.br-sp__name { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.br-sp__meta { color: #5b6b7c; font-size: 13px; }
.br-sp__price { flex: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.br-sp__all { margin-top: 6px; border-top: 1px solid #e5e9f0; color: #4f5fd6; font-weight: 600; }
.br-sp__empty, .br-sp__msg { padding: 20px 16px; text-align: center; }
.br-sp__empty p { margin: 0 0 12px; }
.br-sp__lead { padding: 10px 20px; border: 0; border-radius: 8px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 768px) {
  .br-sp { padding: 0; }
  .br-sp__box { height: 100%; max-width: none; max-height: none; border-radius: 0; }
  .br-sp__price { display: none; }
}

.br-sp-page h1 { margin-bottom: 16px; }
.br-sp-form { display: flex; gap: 8px; margin-bottom: 16px; }
.br-sp-form__input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid #cfd8e3; border-radius: 8px; font: inherit; font-size: 16px; }
.br-sp-form .br-sp__lead { flex: none; }
.br-sp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.br-sp-chips:empty { display: none; }
.br-sp-chips .br-chip { text-decoration: none; }
.br-sp-chips .br-chip span { color: #5b6b7c; font-weight: 400; }
.br-sp-status { margin-bottom: 12px; color: #5b6b7c; }
.br-sp-status:empty { display: none; }

/* свой крестик в панели — родной у поля поиска не нужен (на странице /poisk/ он остаётся) */
.br-sp__input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }

/* справа налево: иврит и арабский */
html[dir="rtl"] .br-sbtn--float { right: auto; left: 12px; }
html[dir="rtl"] .br-sp, html[dir="rtl"] .br-sp input { direction: rtl; text-align: right; }
