/* Тост о тестовом вещании в п. Сернур. Снимается флагом MER_NOTICE_SERNUR в app/notice-sernur.php. */
.mer-toast-s{
  position:fixed;
  right:max(20px, env(safe-area-inset-right, 0px));
  /* запас без JS: высота зимней кнопки 48px + зазор 14px над --winter-b */
  bottom:var(--mer-toast-s-bottom, calc(var(--winter-b, 16px) + 62px + env(safe-area-inset-bottom, 0px)));
  z-index:58;
  box-sizing:border-box;
  display:flex;
  align-items:flex-start;
  gap:8px;
  width:min(360px, calc(100vw - 32px));
  padding:12px 10px 12px 16px;
  border-radius:18px;
  background:#8b1524;
  color:#fff;
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 16px 36px -18px rgba(80,10,20,.55);
  pointer-events:auto;
  animation:mer-toast-s-in .4s ease-out;
}
.notoast-s .mer-toast-s{display:none}
.mer-toast-s-t{margin:0;flex:1;min-width:0;font-size:14px;font-weight:400;line-height:1.4}
.mer-toast-s-x{flex:none;width:32px;height:32px;margin-top:-2px;border:0;border-radius:50%;background:rgba(255,255,255,.16);display:grid;place-items:center;cursor:pointer;color:#fff}
.mer-toast-s-x:hover{background:rgba(255,255,255,.28)}
.mer-toast-s-x:focus-visible{outline:2px solid #fff;outline-offset:2px}
.mer-toast-s-x svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
@keyframes mer-toast-s-in{
  from{opacity:0;transform:translateY(12px)}
  to{opacity:1;transform:translateY(0)}
}
@keyframes mer-toast-s-in-top{
  from{opacity:0;transform:translateY(-10px)}
  to{opacity:1;transform:translateY(0)}
}
@media (prefers-reduced-motion:reduce){
  .mer-toast-s{animation:none}
}
/* Мобильная раскладка: сразу под липкой шапкой, поверх фото, не закрывая шапку и баннер приложения. */
@media (max-width:760px){
  .mer-toast-s{
    top:var(--mer-toast-s-top, 0px);
    right:max(14px, env(safe-area-inset-right, 0px));
    left:max(14px, env(safe-area-inset-left, 0px));
    bottom:auto;
    width:auto;
    z-index:45;
    padding:10px 8px 10px 12px;
    border-radius:16px;
    opacity:0;
    pointer-events:none;
    animation:none;
  }
  .mer-toast-s.mer-toast-s-ready{
    opacity:1;
    pointer-events:auto;
    animation:mer-toast-s-in-top .4s ease-out;
  }
  .mer-toast-s-t{font-size:13px;line-height:1.35}
  .mer-toast-s-x{width:30px;height:30px}
  body:has(#mini:not([hidden])) .mer-toast-s,
  body:has(#cc:not([hidden])) .mer-toast-s,
  body:has(#mini:not([hidden])):has(#cc:not([hidden])) .mer-toast-s{
    top:var(--mer-toast-s-top, 0px);
    bottom:auto;
  }
}
@media (max-width:760px) and (prefers-reduced-motion:reduce){
  .mer-toast-s.mer-toast-s-ready{animation:none}
}
html.a11y .mer-toast-s{background:#000;color:#fff;border:3px solid #fff;box-shadow:none;animation:none}
html.a11y .mer-toast-s-x{background:#fff;color:#000}
@media (max-width:760px){
  html.a11y .mer-toast-s{animation:none}
  html.a11y .mer-toast-s.mer-toast-s-ready{opacity:1;pointer-events:auto}
}
