/* Согласие на обработку ПДн и баннер cookie (js/legal.js) */
.pd-consent {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px 8px;
  margin: 8px 0 10px;
  text-align: left;
  font-size: 12px;
  line-height: 1.4;
  color: #4a5568;
}
.pd-consent__cb {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  cursor: pointer;
  accent-color: #003663;
}
.pd-consent__label {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  font-weight: normal;
  cursor: pointer;
}
.pd-consent__label a { color: #003663; text-decoration: underline; }
.pd-consent__err {
  display: none;
  flex-basis: 100%;
  color: #d0021b;
}
.pd-consent--error .pd-consent__err { display: block; }
.pd-consent--error .pd-consent__cb { outline: 2px solid #d0021b; outline-offset: 1px; }

/* Баннер cookie — плавающая карточка внизу экрана */
.ms-cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 20px;
  z-index: 2147483000;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}
.ms-cookie__box {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 980px;
  padding: 16px 18px 16px 20px;
  background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #374151;
  border: 1px solid rgba(0, 54, 99, .08);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 30, 60, .18), 0 2px 6px rgba(0, 30, 60, .06);
  font-size: 13px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(calc(100% + 30px));
  transition: opacity .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
}
.ms-cookie--show .ms-cookie__box { opacity: 1; transform: none; pointer-events: auto; }
.ms-cookie__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #eef4fa;
  color: #003663;
}
.ms-cookie__body { flex: 1 1 auto; min-width: 0; }
.ms-cookie__title { margin-bottom: 2px; font-size: 15px; font-weight: 700; color: #003663; }
.ms-cookie__text a { color: #003663; text-decoration: underline; text-underline-offset: 2px; }
.ms-cookie__text a:hover { text-decoration: none; }
.ms-cookie__btns { flex: 0 0 auto; display: flex; gap: 8px; }
.ms-cookie__btn {
  padding: 10px 20px;
  border: 1px solid #c9d6e3;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  background: #fff;
  color: #003663;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.ms-cookie__btn:hover { border-color: #003663; }
.ms-cookie__btn--accept { background: #003663; border-color: #003663; color: #fff; }
.ms-cookie__btn--accept:hover { background: #004a87; box-shadow: 0 4px 12px rgba(0, 54, 99, .25); }
/* над нижней мобильной панелью .mobile_bottom_nav (видна до 1050px, высота 55px) */
@media (max-width: 1050px) {
  .ms-cookie { bottom: calc(65px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 760px) {
  .ms-cookie { padding: 0 10px; }
  .ms-cookie__box { flex-wrap: wrap; gap: 10px 12px; padding: 14px; font-size: 12px; line-height: 1.45; }
  .ms-cookie__title { font-size: 14px; }
  .ms-cookie__icon { width: 38px; height: 38px; }
  .ms-cookie__icon svg { width: 22px; height: 22px; }
  .ms-cookie__body { flex-basis: calc(100% - 50px); }
  .ms-cookie__btns { flex-basis: 100%; }
  .ms-cookie__btn { flex: 1 1 0; }
}
