/* ==========================================================================
   Owadan Express — общий слой дизайна.
   Подключается ПОСЛЕДНИМ в inc/head.html и поверх Bootstrap/style.min.css
   задаёт шрифт, цвета, карточки товаров, нижнее меню и т.д.
   Цвета бренда — из логотипа: фиолетовый #481173 -> пурпурный #cb11ab.
   ========================================================================== */

:root {
  --ow-violet: #481173;
  --ow-magenta: #cb11ab;
  --ow-grad: linear-gradient(90deg, #cb11ab, #481173);
  --ow-text: #1f1a24;
  --ow-muted: #6b6475;
  --ow-bg: #f7f5fa;
  --ow-surface: #ffffff;
  --ow-border: #ece7f1;
  --ow-radius: 14px;
  --ow-radius-sm: 10px;
  --ow-shadow: 0 1px 2px rgba(31, 26, 36, .06), 0 2px 8px rgba(31, 26, 36, .04);
  --ow-shadow-hover: 0 6px 20px rgba(72, 17, 115, .12);
  --ow-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ow-bottom-nav-h: 62px;
}

/* ---------- База: чёткий шрифт и контрастный текст ---------- */
html, body {
  font-family: var(--ow-font);
}
body {
  color: var(--ow-text);
  background: var(--ow-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 { color: var(--ow-text); font-weight: 700; }
a { color: var(--ow-violet); }
a:hover { color: var(--ow-magenta); text-decoration: none; }
img { max-width: 100%; }
::selection { background: rgba(203, 17, 171, .18); }

/* На телефоне место под нижнее меню, чтобы оно не закрывало контент */
@media (max-width: 991.98px) {
  body { padding-bottom: calc(var(--ow-bottom-nav-h) + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Кнопки и поля ---------- */
.btn { border-radius: var(--ow-radius-sm); font-weight: 600; }
.btn:focus, .btn.focus { box-shadow: 0 0 0 3px rgba(203, 17, 171, .2); }
.ow-btn-primary,
.ow-btn-primary:visited {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .6rem 1.6rem; border: 0; border-radius: 999px;
  background: var(--ow-grad); color: #fff !important; font-weight: 600;
  box-shadow: 0 4px 14px rgba(203, 17, 171, .25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.ow-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(203, 17, 171, .32); }

.form-control, .custom-select {
  border-radius: var(--ow-radius-sm);
  border-color: var(--ow-border);
  color: var(--ow-text);
}
.form-control:focus, .custom-select:focus {
  border-color: var(--ow-magenta);
  box-shadow: 0 0 0 3px rgba(203, 17, 171, .15);
}

/* ---------- Заголовки секций ---------- */
.section-title {
  font-size: 1.15rem;
  letter-spacing: .02em;
  margin-bottom: 1rem !important;
}
.section-title::after { display: none !important; }
.section-title span {
  position: relative;
  display: inline-block;
  background: transparent !important;
  padding-bottom: .45rem;
  color: var(--ow-text);
}
.section-title span::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 42px; height: 3px; border-radius: 3px;
  background: var(--ow-grad);
}
.section-title i { font-style: normal; }

/* ---------- Шапка (компьютер) ---------- */
.ow-logo { width: 120px; height: auto; }
.ow-search .form-control {
  height: 44px; border-radius: 999px 0 0 999px; padding-left: 1.1rem;
  background: var(--ow-surface);
}
.ow-search .input-group-text {
  border-radius: 0 999px 999px 0; border-color: var(--ow-border);
  padding: 0 1.1rem; color: var(--ow-violet) !important;
}
.ow-search .form-control:focus + .input-group-append .input-group-text { border-color: var(--ow-magenta); }

/* Полоса категорий/меню с градиентом */
.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, .92);
  font-weight: 500;
  padding: .85rem .9rem;
  white-space: nowrap;
}
@media (min-width: 992px) {
  .navbar-dark .navbar-nav { flex-wrap: wrap; }
  .navbar-dark .navbar-nav .nav-link:first-child { padding-left: 0; }
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.ow-mobile-search .form-control { height: 40px; border: 0; border-radius: 999px !important; }

/* ---------- Сообщения (всплывающие) ---------- */
.ow-toasts {
  position: fixed; z-index: 1080;
  top: 12px; left: 50%; transform: translateX(-50%);
  width: min(92vw, 460px);
  display: flex; flex-direction: column; gap: 8px;
}
.ow-toasts .alert {
  margin: 0; border: 0; border-radius: var(--ow-radius-sm);
  box-shadow: 0 8px 24px rgba(31, 26, 36, .16);
  font-weight: 500;
}

/* ---------- Ряды "кружков": категории, бренды ---------- */
.ow-chip-row {
  display: flex; gap: 14px;
  overflow-x: auto; scroll-snap-type: x proximity;
  padding: 4px 2px 10px;
  scrollbar-width: thin;
}
.ow-chip-row.ow-wrap { flex-wrap: wrap; overflow: visible; }
.ow-chip {
  flex: 0 0 auto; width: 84px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  scroll-snap-align: start;
  color: var(--ow-text) !important; text-align: center;
}
.ow-chip img {
  width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover; background: var(--ow-surface);
  border: 2px solid var(--ow-surface);
  box-shadow: 0 0 0 1px var(--ow-border), var(--ow-shadow);
  transition: box-shadow .15s ease, transform .15s ease;
}
.ow-chip:hover img { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--ow-magenta), var(--ow-shadow-hover); }
.ow-chip span {
  font-size: 12px; font-weight: 600; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- Карточка товара ---------- */
.ow-col { padding: 0 6px 12px; }
@media (max-width: 575.98px) { .ow-col { padding: 0 4px 8px; } }

.ow-card {
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  background: var(--ow-surface);
  border: 1px solid var(--ow-border);
  border-radius: var(--ow-radius);
  overflow: hidden;
  box-shadow: var(--ow-shadow);
  transition: box-shadow .2s ease, transform .2s ease;
}
.ow-card:hover { box-shadow: var(--ow-shadow-hover); transform: translateY(-2px); }

/* Рамка фото всегда одного размера (квадрат), независимо от формы фото:
   фото лежит "поверх" рамки (position: absolute) и не может её растянуть,
   а object-fit: cover заполняет квадрат целиком, обрезая лишние края.
   Вертикальные фото (модель в полный рост) выравниваются по верху. */
.ow-card-img {
  position: relative; display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f3f1f6;
}
.ow-card-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 20%;
  transition: transform .3s ease;
}
.ow-card:hover .ow-card-img img { transform: scale(1.04); }

.ow-badge-sale {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  padding: 3px 8px; border-radius: 999px;
  background: var(--ow-grad); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1.3;
}
.ow-fav {
  position: absolute; top: 6px; right: 6px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 4px rgba(31, 26, 36, .15);
}
.ow-fav img { width: 18px; height: 18px; }

.ow-card-body {
  flex: 1; display: flex; flex-direction: column;
  padding: 8px 10px 10px;
}
.ow-card-title {
  margin: 0 0 4px;
  font-size: 13.5px; font-weight: 600; line-height: 1.3;
  color: var(--ow-text) !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.6em;
}
.ow-card-cat {
  margin-bottom: 6px;
  font-size: 11.5px; color: var(--ow-muted) !important;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ow-card-foot {
  margin-top: auto;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 6px;
}
.ow-price { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.ow-price b { font-size: 15px; color: var(--ow-violet); white-space: nowrap; }
.ow-price del { font-size: 12px; color: #9a93a3; white-space: nowrap; }
.ow-out { font-size: 13px; font-weight: 600; color: #d6336c; }
.ow-cart-btn {
  flex: 0 0 auto;
  width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ow-grad);
  box-shadow: 0 3px 10px rgba(203, 17, 171, .3);
}
.ow-cart-btn img { width: 18px; height: 18px; }

@media (max-width: 380px) {
  .ow-card-title { font-size: 12.5px; }
  .ow-price b { font-size: 14px; }
  .ow-cart-btn { width: 34px; height: 34px; }
}

/* Окно выбора цвета/размера */
.modal-content { border: 0; border-radius: var(--ow-radius); box-shadow: 0 20px 50px rgba(31, 26, 36, .25); }
.ow-option-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: .75rem; }
.ow-option { position: relative; }
.ow-option input { position: absolute; left: 50%; bottom: 0; opacity: 0; pointer-events: none; }
.ow-option label {
  margin: 0; padding: 6px 14px; cursor: pointer;
  border: 1px solid var(--ow-border); border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--ow-text);
  transition: border-color .15s ease, background .15s ease;
}
.ow-option-price { display: block; font-size: 11.5px; line-height: 1.2; margin-top: 2px; }
.ow-option-price b { color: var(--ow-violet); }
.ow-option-price del { color: #9a93a3; }
.ow-option label:has(.ow-option-price) { border-radius: var(--ow-radius-sm); text-align: center; }
.ow-option input:checked + label {
  border-color: var(--ow-magenta);
  background: rgba(203, 17, 171, .08);
  color: var(--ow-violet); font-weight: 700;
}
.ow-option input:focus-visible + label { box-shadow: 0 0 0 3px rgba(203, 17, 171, .2); }

/* ---------- Нижнее меню (телефон) ---------- */
.ow-bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
  display: flex;
  height: calc(var(--ow-bottom-nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--ow-border);
  box-shadow: 0 -4px 16px rgba(31, 26, 36, .06);
}
.ow-bn-item {
  position: relative; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: #8a8392 !important;
  font-size: 11px; font-weight: 600;
}
.ow-bn-item i { font-size: 19px; }
.ow-bn-item.active { color: var(--ow-magenta) !important; }
.ow-bn-item.active::before {
  content: ""; position: absolute; top: 0; left: 30%; right: 30%;
  height: 3px; border-radius: 0 0 3px 3px; background: var(--ow-grad);
}
.ow-bn-badge {
  position: absolute; top: 6px; left: calc(50% + 6px);
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--ow-magenta); color: #fff;
  font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center;
}
@media (max-width: 340px) { .ow-bn-item span.ow-bn-label { display: none; } }

/* ---------- Плавающие кнопки (почта, звонок, наверх) ---------- */
.fixed-icon, .fixed-icon_call {
  width: 46px; height: 46px; padding: 0 !important;
  display: flex !important; align-items: center; justify-content: center;
  border-radius: 50% !important; border: 1px solid var(--ow-border);
  background: #fff !important;
  box-shadow: 0 4px 14px rgba(31, 26, 36, .14);
  right: 16px !important;
}
.fixed-icon .badge { position: absolute; top: -4px; right: -4px; }
.back-to-top {
  animation: none !important;
  width: 46px !important; height: 46px; border-radius: 50% !important;
  left: 16px !important; bottom: 24px !important;
  padding: 0 !important; line-height: 46px; text-align: center;
  box-shadow: 0 4px 14px rgba(203, 17, 171, .3);
}
/* на телефоне — выше нижнего меню (с учётом системной полоски жестов) */
@media (max-width: 991.98px) {
  .fixed-icon { bottom: calc(var(--ow-bottom-nav-h) + 96px + env(safe-area-inset-bottom, 0px)) !important; }
  .fixed-icon_call { bottom: calc(var(--ow-bottom-nav-h) + 36px + env(safe-area-inset-bottom, 0px)) !important; }
  .back-to-top { bottom: calc(var(--ow-bottom-nav-h) + 36px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* ---------- Подвал ---------- */
.ow-footer a { color: rgba(255, 255, 255, .85) !important; transition: color .15s ease; }
.ow-footer a:hover { color: #fff !important; }
.ow-footer h5, .ow-footer h6, .ow-footer p { color: #fff !important; }

/* ---------- Баннеры ---------- */
.carousel-inner { border-radius: var(--ow-radius); }

/* ---------- Таблицы (корзина) и пагинация ---------- */
.table { color: var(--ow-text); background: var(--ow-surface); }
.page-link { color: var(--ow-violet); border-color: var(--ow-border); }
.page-item.active .page-link { background: var(--ow-grad); border-color: transparent; }

/* ==========================================================================
   Управление товарами (Мой аккаунт -> Товары; templates/manage/)
   ========================================================================== */
.ow-manage { max-width: 980px; margin: 0 auto; padding: 16px 16px 40px; }
.ow-manage-bar {
  display: flex; align-items: center; gap: 12px;
  margin: 0 -16px 16px; padding: 14px 16px;
  background: var(--ow-grad); color: #fff;
}
@media (min-width: 992px) { .ow-manage-bar { margin: 0 0 16px; border-radius: var(--ow-radius); } }
.ow-manage-bar h1 { flex: 1; margin: 0; font-size: 1.35rem; color: #fff; }
.ow-manage-back { color: #fff !important; font-size: 1.2rem; padding: 2px 6px; }
.ow-manage-link { color: #fff !important; font-weight: 600; opacity: .9; }
.ow-manage-bar .ow-btn-primary { background: #fff; color: var(--ow-violet) !important; box-shadow: none; }

.ow-manage-search {
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px; height: 50px;
  background: var(--ow-surface); border: 1px solid var(--ow-border); border-radius: var(--ow-radius);
}
.ow-manage-search:focus-within { border-color: var(--ow-magenta); box-shadow: 0 0 0 3px rgba(203, 17, 171, .12); }
.ow-manage-search i { color: var(--ow-muted); }
.ow-manage-search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 15px; color: var(--ow-text); }
.ow-manage-filter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 2px; }
.ow-manage-found { color: var(--ow-muted); font-size: 14px; }
.ow-chip-link {
  padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--ow-border); background: var(--ow-surface); color: var(--ow-text) !important;
}
.ow-chip-link.active { border-color: var(--ow-magenta); background: rgba(203, 17, 171, .08); color: var(--ow-violet) !important; }

.ow-manage-list { display: flex; flex-direction: column; gap: 10px; }
.ow-manage-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px; background: var(--ow-surface);
  border: 1px solid var(--ow-border); border-radius: var(--ow-radius);
  box-shadow: var(--ow-shadow);
}
.ow-manage-thumb {
  flex: 0 0 auto; width: 76px; height: 76px; border-radius: 12px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #f3f1f6; color: #b9b2c2; font-size: 24px;
}
.ow-manage-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ow-manage-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; color: var(--ow-text) !important; }
.ow-manage-title {
  font-weight: 700; font-size: 15px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ow-manage-meta { font-size: 12.5px; color: var(--ow-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ow-manage-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 13px; color: var(--ow-muted); }
.ow-manage-price b { font-size: 16px; color: var(--ow-magenta); }
.ow-manage-disc { font-size: 12px; }
.ow-manage-side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ow-manage-qty { font-size: 13px; color: var(--ow-muted); }
.ow-manage-actions { display: flex; gap: 4px; }
.ow-manage-actions form { margin: 0; }
.ow-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #f1eef5; color: var(--ow-muted); }
.ow-tag-ok { background: #e7f6ec; color: #1e7e3e; }
.ow-tag-muted { background: #f1eef5; color: #6b6475; }
.ow-manage-empty { text-align: center; padding: 48px 16px; color: var(--ow-muted); }
.ow-manage-empty i { font-size: 40px; margin-bottom: 10px; }
.ow-manage-fab {
  position: fixed; right: 16px; z-index: 1031;
  bottom: calc(var(--ow-bottom-nav-h) + 16px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 18px;
  background: var(--ow-violet); color: #fff !important; font-weight: 700;
  box-shadow: 0 8px 22px rgba(72, 17, 115, .35);
}
@media (max-width: 575.98px) {
  .ow-manage-row { gap: 10px; padding: 10px; align-items: flex-start; }
  .ow-manage-thumb { width: 64px; height: 64px; }
  .ow-manage-title { font-size: 14px; }
}
/* на странице управления плавающие почта/звонок только мешают */
.ow-manage ~ .fixed-icon, .ow-manage ~ .fixed-icon_call { display: none !important; }

/* --- форма товара --- */
.ow-manage-form { max-width: 760px; padding-bottom: 110px; }
.ow-manage-h2 { font-size: 1.05rem; margin: 22px 0 10px; }
.ow-manage-label { font-size: 14px; color: var(--ow-muted); margin: 14px 0 8px; }
.ow-manage-errors { border-radius: var(--ow-radius-sm); }
.ow-field { position: relative; margin-bottom: 12px; }
.ow-field label { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--ow-muted); }
.ow-field .form-control, .ow-field .custom-select { height: 48px; border-radius: 12px; font-size: 15px; }
.ow-field textarea.form-control { height: auto; }
.ow-counter { position: absolute; right: 4px; top: 0; font-size: 12px; color: var(--ow-muted); }
.ow-hint { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ow-muted); }
.ow-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 400px) { .ow-grid-2 { grid-template-columns: 1fr; } }

.ow-photo-main {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: 16 / 9; max-height: 360px; margin: 0; cursor: pointer; overflow: hidden;
  border: 2px dashed rgba(203, 17, 171, .45); border-radius: 18px; background: #fbf7fd;
}
.ow-photo-main.has-photo { border-style: solid; border-color: var(--ow-border); background: #fff; }
.ow-photo-main img { width: 100%; height: 100%; object-fit: contain; }
.ow-photo-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--ow-magenta); font-weight: 600; }
.ow-photo-empty i { font-size: 44px; }
.ow-photo-change {
  position: absolute; right: 10px; bottom: 10px; padding: 6px 12px; border-radius: 999px;
  background: rgba(31, 26, 36, .7); color: #fff; font-size: 13px; font-weight: 600;
}
.ow-photo-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.ow-photo-tile, .ow-photo-add {
  position: relative; width: 104px; height: 104px; margin: 0;
  border-radius: 14px; overflow: hidden;
}
.ow-photo-tile { border: 1px solid var(--ow-border); background: #fff; }
.ow-photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.ow-photo-tile input { display: none; }
.ow-photo-remove {
  position: absolute; top: 4px; right: 4px; margin: 0; cursor: pointer;
  width: 26px; height: 26px; border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(31, 26, 36, .7); color: #fff; font-size: 13px;
}
.ow-photo-removed { display: none; }
.ow-photo-tile input:checked ~ .ow-photo-removed {
  display: flex; position: absolute; inset: 0; align-items: center; justify-content: center; text-align: center;
  background: rgba(255, 255, 255, .8); color: #d6336c; font-size: 12px; font-weight: 700; pointer-events: none;
}
.ow-photo-tile input:checked ~ .ow-photo-remove { background: #d6336c; z-index: 1; }
.ow-photo-add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  border: 2px solid var(--ow-magenta); color: var(--ow-magenta); font-size: 12.5px; font-weight: 600; text-align: center;
}
.ow-photo-add i { font-size: 26px; }

.ow-picker {
  position: relative; display: flex; align-items: center; gap: 10px;
  width: 100%; min-height: 56px; margin: 8px 0 12px; padding: 18px 16px 10px; text-align: left;
  background: var(--ow-surface); border: 1px solid var(--ow-border); border-radius: 12px;
}
.ow-picker:hover { border-color: var(--ow-magenta); }
.ow-picker-label { position: absolute; top: -9px; left: 12px; padding: 0 6px; background: var(--ow-bg); font-size: 12.5px; color: var(--ow-muted); }
.ow-picker-value { flex: 1; font-size: 15px; color: var(--ow-text); }
.ow-picker-value.is-empty { color: var(--ow-muted); }
.ow-picker i { color: var(--ow-muted); }
.ow-size-prices { margin: -4px 0 14px; padding: 12px; border-radius: 12px; background: var(--ow-surface); border: 1px solid var(--ow-border); }
.ow-size-price-row { display: grid; grid-template-columns: minmax(70px, 1fr) 1fr 1fr; gap: 8px; align-items: center; margin-bottom: 6px; }
.ow-size-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-dialog-scrollable .ow-option-row { max-height: 46vh; overflow-y: auto; }

.ow-switch {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 0; padding: 14px 2px; cursor: pointer; border-bottom: 1px solid var(--ow-border);
}
.ow-switch span { display: flex; flex-direction: column; gap: 2px; }
.ow-switch b { font-size: 16px; font-weight: 600; }
.ow-switch small { font-size: 13px; color: var(--ow-muted); }
.ow-switch input { position: absolute; opacity: 0; }
.ow-switch i {
  position: relative; flex: 0 0 auto; width: 52px; height: 30px; border-radius: 999px;
  background: #d9d4df; transition: background .2s ease;
}
.ow-switch i::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s ease;
}
.ow-switch input:checked + i { background: var(--ow-magenta); }
.ow-switch input:checked + i::after { transform: translateX(22px); }
.ow-switch input:focus-visible + i { box-shadow: 0 0 0 3px rgba(203, 17, 171, .25); }

.ow-save-bar {
  position: fixed; left: 0; right: 0; z-index: 1031;
  bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex; gap: 10px; justify-content: center;
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--ow-border);
  box-shadow: 0 -4px 16px rgba(31, 26, 36, .06);
}
.ow-save-bar .ow-save-btn { flex: 1; max-width: 728px; padding: 14px; font-size: 16px; border-radius: 14px; }
.ow-save-bar .btn-light { width: 52px; border-radius: 14px; }
@media (max-width: 991.98px) {
  .ow-save-bar { bottom: calc(var(--ow-bottom-nav-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: 12px; }
}

/* Уважение к настройке "уменьшить анимацию" */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
