/* Общая шкала скруглений TEST: только форма, без изменения размеров и отступов. */
:root {
  --ofsi-radius-block: 16px;
  --ofsi-radius-card: 12px;
  --ofsi-radius-control: 8px;
}
:root body :is(.main-sidebar > section, .bx-filter, .ofsi-cookie-notice,
  .ofsi-info-panel, .ofsi-order-panel, .ofsi-dialog, .fancybox-skin,
  .holiday-detail, .ofsi-ya-ratings) {
  border-radius: var(--ofsi-radius-block) !important;
}
:root body :is(.ofsi-product-card, .holiday-day__card, .ofsi-article-card,
  .news-card, [data-obk] .ob, #ofsi-banner-bank .ob) {
  border-radius: var(--ofsi-radius-card) !important;
}
/* Круглые элементы и отдельные варианты дизайна сохраняют свою форму. */
:root body :is(button, .btn, .button, .btn_add_basket, .btn_buy, .btn_blue, .btn_link_basket,
  input[type="submit"], input[type="button"], [role="button"],
  .holiday-day__read, [data-obk] .ob__cta):where(:not(.bx-input-group > button[name="s"]):not(.ofsi-snap-dot):not(.ofsi-snap-dots button):not(.owl-dot):not(.ob__gadd):not(.ofsi-joint2179 *)) {
  border-radius: var(--ofsi-radius-control) !important;
}
:root body :is(input[type="text"], input[type="search"], input[type="number"],
  input[type="email"], input[type="password"], input[type="tel"],
  input[type="url"], input[type="date"], input:not([type]), textarea, select):not(.ofsi-joint2179 *):not(#title-search-input) {
  border-radius: var(--ofsi-radius-control) !important;
}
/* Счётчики каталога и корзины: скруглены внешние углы, внутренние стыки прямые. */
:root body label:has(> input:is([name="qty"], [name^="QUANTITY_INPUT_"])) {
  border-radius: var(--ofsi-radius-control) !important;
}
:root body label:has(> input:is([name="qty"], [name^="QUANTITY_INPUT_"])) > .dec.btn {
  border-radius: 8px 0 0 8px !important;
}
:root body label:has(> input:is([name="qty"], [name^="QUANTITY_INPUT_"])) > .inc.btn {
  border-radius: 0 8px 8px 0 !important;
}
:root body label:has(> input:is([name="qty"], [name^="QUANTITY_INPUT_"])) > input:is([name="qty"], [name^="QUANTITY_INPUT_"]) {
  border-radius: 0 !important;
}

/* Крайние ячейки полосы каталога: меню остаётся открытым для выпадающих разделов. */
@media (min-width: 1024px) {
  :root body header > dl { border-radius: 12px !important; }
  :root body header > dl .shopnav > li:first-child { border-radius: 12px 0 0 12px !important; }
  :root body header > dl .shopnav > li:last-child { border-radius: 0 12px 12px 0 !important; }
}

/* Сохранённое состояние товара в корзине имеет отдельное старое правило. */
:root body .item.ofsi-product-card.inBasket a.item__link.btn_link_basket { border-radius: 8px !important; }

/* Мобильный поиск использует то же поле, но собственное правило формы. */
@media(max-width:1023px){:root body #ofsi-mobile-search-slot #title-search-input{border-radius:24px!important}}

/* Уточнение владельца2187: видимый контур всех углов и верх на уровне праздников. */
:root#page-index body #ofsi-banner-bank.ofsi-bank2168 .ob.ofsi-snap-slide {
  border: 1px solid #8fa7b3 !important;
  border-bottom: 3px solid #155a80 !important;
  border-radius: 12px !important;
  box-sizing: border-box !important;
}
@media (min-width: 1024px) {
  :root#page-index body #ofsi-banner-bank.ofsi-bank2168 { margin-top: -18px !important; }
}

/* Кнопка-стрелка стиляF была круглой и остаётся круглой. */
:root body :is(#ofsi-banner-bank.obs-f,#ofsi-banner-bank .obs-f) .ob__cta { border-radius: 50% !important; }

/* Товарный плюс: старые общие стили кнопок не должны превращать круг в овал. */
@media(min-width:1024px){:root#page-index body #ofsi-banner-bank.ofsi-bank2168 .ob.ofsi-snap-slide button.ob__gadd{width:34px!important;min-width:34px!important;max-width:34px!important;height:34px!important;min-height:34px!important;max-height:34px!important;padding:0!important;border-radius:50%!important;box-sizing:border-box!important}}
