:root{
  --cookie-offset: 0px; /* сколько поднять виджет */
}
  .frt-mw {
    right: calc(24px + env(safe-area-inset-right, 0px));
    bottom: calc(24px + env(safe-area-inset-bottom, 0px) + var(--cookie-offset));
	position: fixed; /* ВАЖНО: чтобы right/bottom работали и виджет был поверх страницы */
    z-index: 900;                 /* ниже баннера */
    transition: bottom .2s ease;  /* плавный сдвиг */
    font-family: -apple-system, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
  }

  .frt-mw__trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 0;
    cursor: pointer;
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1D4ED8, #1E40AF);
    color: #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,.22);
    user-select: none;
  }

  .frt-mw__ticon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255,255,255,.10);
    flex: 0 0 auto;
  }

  .frt-mw__ticon svg { width: 22px; height: 22px; }

  .frt-mw__text { display: flex; flex-direction: column; line-height: 1.1; }
  .frt-mw__title { font-weight: 900; font-size: 16px; }
  .frt-mw__sub { font-size: 14px; opacity: .7; margin-top: 3px; white-space: nowrap; }

  .frt-mw__chev {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255,255,255,.10);
    margin-left: 2px;
    transition: transform .18s ease;
  }
  .frt-mw[data-open="1"] .frt-mw__chev { transform: rotate(180deg); }

  .frt-mw__panel {
    margin-top: 10px;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    min-width: 280px;
  }

  .frt-mw__ptitle {
    padding: 12px 14px;
    font-weight: 700;
    font-size: 13px;
    background: #f6f7f9;
    color: #111;
    border-bottom: 1px solid rgba(0,0,0,.06);
  }

  .frt-mw__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    text-decoration: none;
    color: #111;
    background: #fff;
    transition: background .15s ease;
  }
  .frt-mw__item:hover { background: #f6f7f9; }

  .frt-mw__icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    flex: 0 0 auto;
  }

  .frt-mw__item--tg .frt-mw__icon { background: #229ED9; }
  .frt-mw__item--max .frt-mw__icon { background: #111; }

  .frt-mw__icon svg { width: 20px; height: 20px; }

  .frt-mw__meta { display: flex; flex-direction: column; }
  .frt-mw__label { font-weight: 700; font-size: 14px; }
  .frt-mw__muted { font-size: 12px; opacity: .7; margin-top: 2px; }

  .frt-mw__panel[hidden] { display: none; }

#frt-mw,
#frt-mw *{
  font-style: normal !important;
}

  @media (max-width: 420px) {
    .frt-mw__sub { display: none; }
  }