/* Центр согласий на cookie — lmsic.com (ТЗ-005). Палитра сайта: текст #2E4866, тёмный #0F2742, фон #FDFDFD. */
.lms-consent [hidden] { display: none !important; }
/* карточка — как у прежнего баннера сайта (.base-cookie): та же позиция, ширина, отступы, фон, тень, шрифт */
.lms-consent__banner {
  position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%);
  z-index: 9000; width: calc(100% - 32px); max-width: 720px;
  max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); overflow-y: auto; overscroll-behavior: contain;
  padding: 24px; background: #FDFDFD; border-radius: 4px;
  box-shadow: 0 24px 24px rgba(117, 128, 140, 0.12), 0 0 0 1px rgba(46, 72, 102, 0.08);
  color: #2E4866; font-size: 16px; line-height: 140%;
}
.lms-consent__title { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.lms-consent__text { margin: 0 0 16px; }
.lms-consent__text a, .lms-consent__meta a { color: #2E4866; text-decoration: underline; }
.lms-consent__actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* три равнозначные кнопки в стиле кнопки прежнего баннера (.base-button--dark): все одинаковые, «главной» нет */
.lms-consent__btn {
  flex: 1 1 200px; display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 12px 18px; margin: 0;
  border: 1px solid #0F2742; border-radius: 4px; background: #FFFFFF; color: #0F2742;
  font: inherit; font-size: 14px; line-height: 1.2; cursor: pointer; text-align: center;
  transition: background-color .15s, color .15s;
}
/* акцент по решению заказчика (07.09.2026): «Принять аналитику» и «Принять все» — залитые синие; остальные белые с синей рамкой.
   Размер, доступность и порядок кнопок одинаковы; вернуть равнозначный вид — удалить это правило */
.lms-consent__btn[data-lms-consent-action="accept"] { background: #0F2742; color: #FFFFFF; }
.lms-consent__btn:hover, .lms-consent__btn:focus-visible { background: #0F2742; color: #FFFFFF; outline: none; }
.lms-consent__btn[data-lms-consent-action="accept"]:hover, .lms-consent__btn[data-lms-consent-action="accept"]:focus-visible { background: #FFFFFF; color: #0F2742; }
.lms-consent__btn:focus-visible { box-shadow: 0 0 0 3px rgba(15, 39, 66, 0.25); }

/* панель настроек */
.lms-consent__overlay {
  position: fixed; inset: 0; z-index: 9001; background: rgba(15, 39, 66, 0.55);
  display: flex; align-items: center; justify-content: center; padding: 16px; overflow: auto;
}
html.lms-consent-open { overflow: hidden; }
.lms-consent__panel {
  position: relative; width: 100%; max-width: 680px; max-height: calc(100vh - 32px); overflow: auto;
  padding: 28px 28px 24px; background: #FDFDFD; border-radius: 4px; color: #2E4866;
  font-size: 15px; line-height: 1.45; box-shadow: 0 24px 48px rgba(15, 39, 66, 0.3);
}
.lms-consent__panel:focus { outline: none; }
.lms-consent__panel-title { margin: 0 0 8px; font-size: 20px; font-weight: 600; padding-right: 32px; }
.lms-consent__intro { margin: 0 0 20px; }
.lms-consent__cat { padding: 16px 0; border-top: 1px solid rgba(46, 72, 102, 0.15); }
.lms-consent__cat-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lms-consent__cat-title { font-weight: 600; font-size: 16px; }
.lms-consent__cat-state { font-size: 13px; color: #6B7A8C; }
.lms-consent__cat-text { margin: 10px 0 0; }
.lms-consent__cat-note { margin: 6px 0 0; font-size: 13px; color: #8A96A5; }
/* переключатель */
.lms-consent__switch { position: relative; margin-left: auto; display: inline-block; width: 46px; height: 26px; flex: none; }
.lms-consent__switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.lms-consent__switch-track { position: absolute; inset: 0; border-radius: 13px; background: #C5CDD8; transition: background .15s; }
.lms-consent__switch-track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform .15s;
}
.lms-consent__switch input:checked + .lms-consent__switch-track { background: #0F2742; }
.lms-consent__switch input:checked + .lms-consent__switch-track::after { transform: translateX(20px); }
.lms-consent__switch input:focus-visible + .lms-consent__switch-track { box-shadow: 0 0 0 3px rgba(15, 39, 66, 0.25); }
.lms-consent__switch--locked input { cursor: not-allowed; }
.lms-consent__switch--locked .lms-consent__switch-track { background: #8A96A5; }
.lms-consent__panel .lms-consent__actions { margin-top: 20px; }
.lms-consent__note { margin: 16px 0 0; font-size: 13px; color: #6B7A8C; }
.lms-consent__meta { margin: 8px 0 0; font-size: 12px; color: #8A96A5; }
.lms-consent__close {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; padding: 0;
  border: 0; background: transparent; color: #2E4866; font-size: 26px; line-height: 1; cursor: pointer; border-radius: 4px;
}
.lms-consent__close:hover, .lms-consent__close:focus-visible { background: rgba(46, 72, 102, 0.08); outline: none; }

@media (max-width: 640px) {
  /* как прежний баннер на телефоне: отступ снизу 32px, ширина calc(100% - 64px), padding 16px; плюс защита от переполнения экрана */
  .lms-consent__banner {
    bottom: 32px; width: calc(100% - 64px); padding: 16px; font-size: 14px; line-height: 1.4;
    max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); overflow-y: auto;
  }
  .lms-consent__title { font-size: 15px; margin-bottom: 6px; }
  .lms-consent__text { margin-bottom: 12px; }
  .lms-consent__actions { gap: 8px; }
  .lms-consent__btn { flex-basis: 100%; min-height: 40px; padding: 10px 14px; font-size: 14px; }
  .lms-consent__panel { padding: 20px 16px 16px; font-size: 14px; }
  .lms-consent__panel-title { font-size: 18px; }
}
@media (max-width: 380px) {
  .lms-consent__banner { width: calc(100% - 32px); padding: 14px; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .lms-consent__btn, .lms-consent__switch-track, .lms-consent__switch-track::after { transition: none; }
}

/* Сообщение о сохранении выбора; подписи трёх действий не меняются. */
.lms-consent__status { margin: 12px 0 0; color: #2E4866; font-size: 14px; line-height: 1.4; }
.lms-consent__status[data-error="true"] { color: #8b2020; }
.lms-consent__btn:disabled { cursor: wait; opacity: .65; }
