.lk-prefs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4000;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.lk-prefs[hidden] {
  display: none !important;
}

.lk-prefs__panel {
  pointer-events: auto;
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 22px;
  border-radius: 4px;
  border: 1px solid #e3e6ea;
  background: #fff;
  box-shadow: 0 8px 32px rgba(20, 40, 70, 0.16);
  text-align: left;
}

.lk-prefs__title {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  color: #222;
}

.lk-prefs__text {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.55;
  color: #5c6770;
}

.lk-prefs__text strong {
  color: #222;
  font-weight: 700;
}

.lk-prefs__link,
.lk-pd-consent a,
.lk-footer-legal a {
  color: #0b6aa2;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lk-prefs__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.lk-prefs__actions--settings {
  margin-top: 4px;
}

.lk-prefs__btn {
  flex: 1 1 auto;
  min-width: min(100%, 140px);
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
}

.lk-prefs__btn--primary {
  background: #0b6aa2;
  color: #fff;
  border: 1px solid #0b6aa2;
}

.lk-prefs__btn--secondary {
  background: #fff;
  color: #222;
  border: 1px solid #d5d8de;
}

.lk-prefs__btn--ghost {
  background: #f4f6f8;
  color: #5c6770;
  border: 1px solid #e3e6ea;
}

.lk-prefs__settings {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.lk-prefs__settings[hidden],
.lk-prefs__actions[hidden] {
  display: none !important;
}

.lk-prefs__category {
  display: block;
  margin: 0;
  padding: 12px 14px;
  border-radius: 4px;
  border: 1px solid #e3e6ea;
  background: #f7f9fb;
  cursor: pointer;
}

.lk-prefs__category--locked {
  cursor: default;
}

.lk-prefs__category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.lk-prefs__category-name {
  font-size: 14px;
  font-weight: 700;
  color: #222;
}

.lk-prefs__category-desc,
.lk-prefs__version,
.lk-pd-consent__error {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #5c6770;
}

.lk-prefs__badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8b949e;
  white-space: nowrap;
}

/* Стили кабинета прячут все checkbox (opacity: 0) и рисуют соседний .checkbox.
   В баннере нужен сам флажок. */
.lk-prefs input.lk-prefs__toggle[type="checkbox"] {
  position: static;
  opacity: 1;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #0b6aa2;
  cursor: pointer;
  appearance: auto;
  -webkit-appearance: auto;
}

.lk-prefs__version {
  margin: 12px 0 0;
  font-size: 11px;
  color: #8b949e;
}

.lk-prefs-settings {
  margin-left: 14px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  color: #0b6aa2;
  cursor: pointer;
  text-decoration: underline;
}

.lk-pd-consent {
  align-items: flex-start;
}

.lk-pd-consent span {
  font-size: 13px;
  line-height: 1.4;
}

.lk-pd-consent__error {
  color: #b42318;
  margin-top: 6px;
}

.lk-footer-legal {
  margin-top: 8px;
}

.lk-footer-legal a,
.lk-footer-legal button {
  display: inline-block;
  margin: 0 12px 6px 0;
}
