/* BH_NOTICE_UX (17.11, Дима): понятные оповещения. Цвета — только палитра сайта: тёмно-фиолетовый #2B2118, золото рейтинга #ffc83d/#b07a00, кремовый #fff8e1/#f3dfa0. */
/* Стикер (ТЗ 17.11, ~/tz-sticker.md): поверх ПРАВОГО края тёмной плашки пользователя, по центру высоты, чуть наезжает на рамку.
   Плашку не двигаем и не расширяем — только position: absolute. Важное — золотой #ffc83d с числом всех непрочитанных; только обычные — кремовая точка #FFF1C9 (цвет плашки «товар готов»).
   Привязка: телефон (≤760) — общая тёмная плашка .w-userbar; шире — сама плашка .w-login (761–1023 в шапке, ≥1024 плавающая внизу). */
.w-login { position: relative; }
@media (max-width: 760px) { .w-top .w-userbar { position: relative; } .w-top .w-userbar .w-login { position: static; } }
.w-top .w-login > span.nx-stk, .w-login > span.nx-stk { position: absolute !important; top: 50% !important; right: -8px; left: auto !important; transform: translateY(-50%);
  box-sizing: border-box; display: block !important; flex: none !important; margin: 0 !important; max-width: none !important; overflow: visible !important; clip: auto !important;
  width: 16px !important; min-width: 16px !important; height: 16px !important; padding: 0 !important; border-radius: 999px; background: #FFF1C9; border: 2px solid #2B2118; color: transparent !important; font-size: 0;
  pointer-events: none; z-index: 2; box-shadow: 0 0 0 0 rgba(255,241,201,.8); animation: nx-wave-soft 1.8s ease-out 2; }
.w-top .w-login > span.nx-stk.is-hot, .w-login > span.nx-stk.is-hot { width: auto !important; min-width: 24px !important; height: 24px !important; padding: 0 5px !important; background: #ffc83d; color: #2B2118 !important;
  font: 800 12px/20px system-ui, sans-serif; text-align: center; white-space: nowrap; animation: nx-wave 1.6s ease-out 2; }
.w-top .w-login > span.nx-stk.nx-again, .w-login > span.nx-stk.nx-again { animation-iteration-count: 1; }
@keyframes nx-wave-soft { 0% { box-shadow: 0 0 0 0 rgba(255,241,201,.85); } 100% { box-shadow: 0 0 0 9px rgba(255,241,201,0); } }
@media (max-width: 760px) { .w-top .w-login > span.nx-stk, .w-login > span.nx-stk { right: -6px; pointer-events: auto; } }   /* на телефоне нажатие на стикер — «Почта Ени» */
@keyframes nx-wave { 0% { box-shadow: 0 0 0 0 rgba(255,200,61,.75); } 100% { box-shadow: 0 0 0 12px rgba(255,200,61,0); } }

.nx-bubble { position: fixed; z-index: 60; top: 84px; right: 16px; max-width: 380px; display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px;
  background: #fff8e1; color: #2B2118; border: 1px solid #f3dfa0; border-left: 4px solid #ffc83d; border-radius: 14px; box-shadow: 0 10px 28px rgba(46,26,71,.18);
  opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .3s; }
.nx-bubble[hidden] { display: none; }
.nx-bubble.is-on { opacity: 1; transform: none; }
.nx-bubble-ic { font-size: 22px; line-height: 1; }
.nx-bubble-txt { flex: 1; display: grid; gap: 2px; color: inherit !important; text-decoration: none; }
.nx-bubble-txt b { font-size: 15px; }
.nx-bubble-txt span { font-size: 13px; color: #5a4a00; }
.nx-bubble-x { flex: 0 0 auto; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: #2B2118; font-size: 16px; cursor: pointer; }
.nx-bubble-x:hover, .nx-bubble-x:focus-visible { background: #f3dfa0; }
@media (max-width: 600px) { .nx-bubble { left: 8px; right: 8px; top: auto; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: none; } }

.nx-banner { margin: 14px 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 16px; background: #fff8e1; color: #2B2118;
  border: 1px solid #f3dfa0; border-left: 6px solid #ffc83d; border-radius: 16px; animation: nx-down .3s ease-out both; }
@keyframes nx-down { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.nx-banner-pic { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: #fff; }
.nx-banner-ic { width: 64px; height: 64px; display: grid; place-items: center; font-size: 30px; background: #fff; border-radius: 12px; }
.nx-banner-txt { flex: 1 1 220px; display: grid; gap: 3px; }
.nx-banner-txt b { font-size: 18px; }
.nx-banner-txt span { font-size: 15px; color: #5a4a00; }
.nx-banner-go { animation: nx-bounce .6s ease-out .35s 1 both; }
@keyframes nx-bounce { 0%, 100% { transform: none; } 40% { transform: translateY(-6px); } 70% { transform: translateY(2px); } }
.nx-banner-hide { border: 0; background: none; color: #7A6A5A; font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; padding: 8px; }
/* правило Димы: одна кнопка в блоке — кнопка и всё рядом по центру (на всех ширинах) */
.nx-banner { justify-content: center; text-align: center; }
.nx-banner-txt { flex-basis: 100%; justify-items: center; }
@media (max-width: 600px) { .nx-banner-go { flex: 1 1 100%; justify-content: center; } }

.c-deal.nx-new { position: relative; border-color: #ffc83d; }
.c-deal.nx-pulse { animation: nx-card 1.2s ease-out 2; }
@keyframes nx-card { 0% { box-shadow: 0 0 0 0 rgba(255,200,61,.8); } 100% { box-shadow: 0 0 0 16px rgba(255,200,61,0); } }
.nx-tag { position: absolute; top: -10px; right: 14px; padding: 2px 10px; border-radius: 999px; background: #ffc83d; color: #2B2118; font-size: 12px; font-weight: 800; }
:target { scroll-margin-top: 110px; }

.nx-dot { display: inline-block; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; border-radius: 999px; background: #fff8e1; color: #2B2118; border: 1px solid #f3dfa0;
  font: 800 11px/16px system-ui, sans-serif; text-align: center; vertical-align: 1px; box-sizing: border-box; }
.nx-dot.is-hot { background: #ffc83d; border-color: #b07a00; }

.nx-att { background: #fff8e1; border: 1px solid #f3dfa0; border-left: 6px solid #ffc83d; }
.nx-att h2 { margin-top: 0; }
.nx-att-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.nx-att-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; background: #fff; border-radius: 12px; }
.nx-att-row.is-hot { box-shadow: inset 3px 0 0 #ffc83d; }
.nx-att-ic { font-size: 22px; }
.nx-att-txt { flex: 1 1 200px; display: grid; gap: 2px; }
.nx-att-txt span { font-size: 14px; color: #7A6A5A; }
.nx-att-more { text-align: center; margin: 10px 0 0; }
.nx-att-row { justify-content: center; text-align: center; } .nx-att-txt { flex-basis: 100%; }   /* одна кнопка — по центру */
.nx-att h2 { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .nx-stk, .nx-banner, .nx-banner-go, .c-deal.nx-pulse { animation: none !important; }
  .nx-bubble { transition: none; }
}

/* список при наведении (Дима 17.11): над плашкой пользователя */
.nx-pop { position: fixed; z-index: 70; width: 360px; max-width: calc(100vw - 32px); max-height: min(70vh, 520px); overflow: auto; padding: 12px; box-sizing: border-box;
  background: #fff8e1; color: #2B2118; border: 1px solid #f3dfa0; border-radius: 16px; box-shadow: 0 14px 34px rgba(46,26,71,.22);
  opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.nx-pop[hidden] { display: none; }
.nx-pop.is-on { opacity: 1; transform: none; }
.nx-pop.is-down { transform: translateY(-6px); }
.nx-pop.is-down.is-on { transform: none; }
.nx-pop-h { margin: 2px 4px 10px; font-weight: 800; text-align: center; }
.nx-pop-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.nx-pop-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; background: #fff; border-radius: 12px; color: inherit !important; text-decoration: none; }
.nx-pop-row.is-hot { box-shadow: inset 3px 0 0 #ffc83d; }
.nx-pop-row:hover, .nx-pop-row:focus-visible { background: #fffbea; outline: 2px solid #ffc83d; outline-offset: -2px; }
.nx-pop-ic { font-size: 20px; flex: 0 0 auto; }
.nx-pop-txt { display: grid; gap: 1px; min-width: 0; }
.nx-pop-txt b { font-size: 14px; }
.nx-pop-txt span { font-size: 13px; color: #7A6A5A; }
.nx-pop-all { display: block; margin-top: 10px; text-align: center; font-weight: 700; color: #2B2118 !important; }
@media (prefers-reduced-motion: reduce) { .nx-pop { transition: none; transform: none !important; } }
@media (max-width: 760px) { .w-login > span.nx-stk::after { content: ""; position: absolute; inset: -12px 0 -12px -10px; } }   /* палец попадает в маленькую точку */
