/* Фильтр каталога: явно перекрывает прежнее временное скрытие. */
html body #rbCategoryFilterToggle { display: inline-block !important; }
html body #rbCategoryFilterPanel,
html body #rbCategoryFilterPanel.open { display: none !important; }
html body #rbCategoryFilterPanel.rb-filter-open { display: block !important; }
#rbCategoryFilterPanel { padding: 20px; border: 1px solid #d6e3ed; border-radius: 16px; background: #fff; margin: 16px 0 22px; }
#rbCategoryFilterPanel [hidden] { display: none !important; }
#rbCategoryFilterPanel .rb-f-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
#rbCategoryFilterPanel fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
#rbCategoryFilterPanel legend, #rbCategoryFilterPanel .rb-f-field > span { display: block; margin-bottom: 6px; font: 600 14px Inter, Arial, sans-serif; }
#rbCategoryFilterPanel .rb-f-hint { display: block; min-height: 19px; margin-bottom: 6px; font-size: 12px; color: #666; }
#rbCategoryFilterPanel select, #rbCategoryFilterPanel summary { box-sizing: border-box; width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #cadae6; border-radius: 10px; background: #f6fbff; color: #1a1a1a; font: 14px Inter, Arial, sans-serif; }
#rbCategoryFilterPanel summary { cursor: pointer; }
#rbCategoryFilterPanel .rb-f-list { max-height: 220px; overflow-y: auto; padding: 6px 10px; border: 1px solid #cadae6; border-radius: 10px; background: white; }
#rbCategoryFilterPanel .rb-f-choice { display: flex; align-items: baseline; gap: 8px; padding: 6px 2px; font-size: 14px; cursor: pointer; }
#rbCategoryFilterPanel .rb-f-choice input { accent-color: #2673ad; }
#rbCategoryFilterPanel .rb-f-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
#rbCategoryFilterPanel .rb-f-actions button { min-height: 42px; padding: 9px 20px; border-radius: 22px; font-weight: 600; cursor: pointer; }
#rbCfApply { border: 1px solid #1a1a1a; background: #bbe0ff; color: #1a1a1a; }
#rbCfApply:disabled { opacity: .5; cursor: default; }
#rbCfReset { border: 1px solid #cadae6; background: #fff; color: #1a1a1a; }
#rbCategoryFilterPanel .rb-f-applied { margin: 16px 0 0; font-size: 14px; font-weight: 600; }
#rbCategoryFilterPanel .rb-f-status { margin: 8px 0 0; font-size: 13px; color: #43576b; }
#rbCfResult { margin: 10px 0 18px; font-size: 15px; font-weight: 600; color: #384c5f; }
#rbCfResult:empty { display: none; }
html body #rbCategoryFilterToggle.rb-cf-has-selection { border-color: #2076af !important; box-shadow: 0 0 0 2px #bbe0ff; }
@media (max-width: 768px) {
  #rbCategoryFilterPanel .rb-f-grid { grid-template-columns: 1fr; }
  #rbCategoryFilterPanel { padding: 15px; }
  #rbCategoryFilterPanel .rb-f-hint { min-height: 0; }
}

/* Ровные строки фильтра на широком экране. */
#rbCategoryFilterPanel .rb-f-grid { align-items: start; }
#rbCategoryFilterPanel details { position: relative; }
#rbCategoryFilterPanel details[open] { z-index: 20; }
#rbCategoryFilterPanel .rb-f-list {
    position: absolute; z-index: 20; top: calc(100% + 4px);
    left: 0; right: 0; box-sizing: border-box;
    box-shadow: 0 10px 22px rgba(26,26,26,.13);
}
