/* === 17-cookie: уведомление для новых и давно не заходивших посетителей === */
.fmf2 .cookie-notice{
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:180;
  width:min(380px,calc(100vw - 48px));
  padding:22px;
  border-radius:20px;
  background:#fff;
  color:var(--c-ink);
  box-shadow:0 20px 35px -10px rgba(0,0,0,.2),0 0 0 1px rgba(0,0,0,.03);
  animation:cookie-notice-in .25s ease-out;
  transition:opacity .2s ease,transform .2s ease;
}
.fmf2 .cookie-notice.is-closing{opacity:0;transform:translateY(16px)}
.fmf2 .cookie-notice__consent{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-bottom:24px;
}
.fmf2 .cookie-notice__checkbox{
  flex:0 0 20px;
  width:20px;
  height:20px;
  margin-top:1px;
  accent-color:var(--c-accent);
  cursor:pointer;
}
.fmf2 .cookie-notice__text{
  color:var(--c-ink-2);
  font-size:14px;
  font-weight:400;
  line-height:1.4;
  cursor:pointer;
}
.fmf2 .cookie-notice__text a{
  color:var(--c-accent);
  font-weight:500;
  text-decoration:underline;
  text-underline-offset:2px;
}
.fmf2 .cookie-notice__button{
  display:flex;
  width:100%;
  min-height:44px;
  align-items:center;
  justify-content:center;
  padding:10px 20px;
  border-radius:var(--radius-pill);
  background:var(--c-accent-grad);
  color:#fff;
  font-size:14px;
  font-weight:600;
  line-height:1.2;
  transition:filter .18s ease,box-shadow .18s ease,opacity .18s ease;
}
.fmf2 .cookie-notice__button:hover:not(:disabled){filter:brightness(1.06);box-shadow:0 8px 24px rgba(102,87,194,.3)}
.fmf2 .cookie-notice__button:disabled{
  background:#e6e3f5;
  color:rgba(102,87,194,.5);
  cursor:not-allowed;
}
@keyframes cookie-notice-in{
  from{opacity:0;transform:translateY(16px)}
  to{opacity:1;transform:none}
}
@media (max-width:640px){
  .fmf2 .cookie-notice{
    right:12px;
    bottom:max(12px,env(safe-area-inset-bottom));
    width:calc(100vw - 24px);
    padding:18px;
    border-radius:16px;
  }
  .fmf2 .cookie-notice__consent{margin-bottom:18px}
}
@media (prefers-reduced-motion:reduce){
  .fmf2 .cookie-notice{animation:none;transition:none}
}
