/* cushion-block-20261117.css — отдельный блок «Подушка безопасности» */

.bf-cushion {
  margin: 16px 0;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, .35);
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
}
html.dark .bf-cushion { background: rgba(15, 23, 42, .78); border-color: rgba(148, 163, 184, .26); }

.bf-cushion__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bf-cushion__title { margin: 0; font-size: 16px; font-weight: 750; color: #0f172a; }
html.dark .bf-cushion__title { color: #f1f5f9; }
.bf-cushion__sub { margin: 2px 0 0; font-size: 13px; color: #64748b; }
html.dark .bf-cushion__sub { color: #94a3b8; }

.bf-cushion__actions { display: flex; gap: 8px; }
.bf-cushion__btn {
  border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 13px; font-weight: 650;
  border: 1px solid rgba(148, 163, 184, .5); background: rgba(148, 163, 184, .12); color: #334155; cursor: pointer;
}
html.dark .bf-cushion__btn { color: #e2e8f0; border-color: rgba(148, 163, 184, .3); }
.bf-cushion__btn--primary { border: 0; color: #fff; background: linear-gradient(135deg, #7c3aed, #4f46e5); }

.bf-cushion__bar {
  margin: 12px 0 8px; height: 8px; border-radius: 999px; background: rgba(148, 163, 184, .25); overflow: hidden;
}
.bf-cushion__bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #22c55e, #16a34a); }
.bf-cushion__hint { margin: 0; font-size: 12px; color: #64748b; }
html.dark .bf-cushion__hint { color: #94a3b8; }

.bf-cushion__advice { margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(148, 163, 184, .45); font-size: 13.5px; }
.bf-cushion__advice h3 { font-size: 14px; font-weight: 700; margin: 10px 0 6px; }
.bf-cushion__advice p { margin: 0 0 8px; line-height: 1.55; }
.bf-cushion__advice ul { margin: 4px 0 10px; padding-left: 18px; }
.bf-cushion__advice li { margin-bottom: 4px; }

/* Переключатель блока в диалоге «Персонализация» */
.bf-cushion-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 10px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, .35); background: rgba(148, 163, 184, .08);
}
.bf-cushion-toggle__text { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.bf-cushion-toggle__text span { color: #64748b; font-size: 11.5px; }
html.dark .bf-cushion-toggle__text span { color: #94a3b8; }
.bf-cushion-toggle__switch {
  width: 42px; height: 24px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(148, 163, 184, .5); position: relative; transition: background .18s ease;
}
.bf-cushion-toggle__switch span {
  position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; transition: transform .18s ease; box-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.bf-cushion-toggle__switch.is-on { background: #6366f1; }
.bf-cushion-toggle__switch.is-on span { transform: translateX(18px); }

/* Модальное окно «Подушка безопасности» */
.bf-cushion-modal {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(15, 23, 42, .55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  padding: 16px;
}
@media (min-width: 640px) { .bf-cushion-modal { align-items: center; } }
.bf-cushion-modal__box {
  width: 100%; max-width: 420px; max-height: 88vh; overflow: auto;
  background: #fff; border-radius: 18px; padding: 18px;
  box-shadow: 0 24px 60px rgba(2, 6, 23, .35);
}
html.dark .bf-cushion-modal__box { background: #0f172a; border: 1px solid rgba(148,163,184,.25); }
.bf-cushion-modal__title { margin: 0 0 12px; font-size: 17px; font-weight: 750; color: #0f172a; }
html.dark .bf-cushion-modal__title { color: #f1f5f9; }
.bf-cushion-modal__field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; font-size: 12.5px; color: #64748b; }
html.dark .bf-cushion-modal__field { color: #94a3b8; }
.bf-cushion-modal__input {
  width: 100%; box-sizing: border-box; border-radius: 10px; padding: 10px 12px; font: inherit;
  border: 1px solid rgba(148,163,184,.5); background: #fff; color: #0f172a;
}
html.dark .bf-cushion-modal__input { background: #0b1220; color: #e2e8f0; border-color: rgba(148,163,184,.3); }
.bf-cushion-modal__hint { margin: 0 0 10px; font-size: 12px; color: #64748b; }
html.dark .bf-cushion-modal__hint { color: #94a3b8; }
.bf-cushion-modal__chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.bf-cushion-modal__chip {
  border-radius: 999px; padding: 7px 11px; font: inherit; font-size: 12px; cursor: pointer;
  border: 1px solid rgba(99,102,241,.45); background: rgba(99,102,241,.1); color: #4338ca;
}
html.dark .bf-cushion-modal__chip { color: #c7d2fe; background: rgba(99,102,241,.18); }
.bf-cushion-modal__actions { display: flex; gap: 8px; justify-content: flex-end; }
