/* TYUKS — кнопка «в избранное» на карточках и странице товара */

.tyuks-fav-card { position: relative; }

html body button.tyuks-fav {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #000 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
  min-height: 0;
  font-size: 0;
  cursor: pointer;
  line-height: 1;
  transition: transform .15s ease, background .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
html body button.tyuks-fav:hover { background: #f5f5f7 !important; color: #000 !important; transform: scale(1.06); }
html body button.tyuks-fav:focus-visible { outline: 2px solid #6c5ce7; outline-offset: 2px; }
html body button.tyuks-fav:disabled { opacity: .6; cursor: progress; }
html body button.tyuks-fav svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; transition: fill .2s, stroke .2s; }
html body button.tyuks-fav.is-active { color: #6c5ce7 !important; }
html body button.tyuks-fav.is-active svg { fill: #6c5ce7; stroke: #6c5ce7; }
html body button.tyuks-fav.is-active:hover { color: #5546d6 !important; }
html body button.tyuks-fav.is-active svg { animation: tyuks-fav-pop .3s ease; }

/* На карточке — в правом верхнем углу картинки */
html body button.tyuks-fav--card { position: absolute; top: 10px; right: 10px; z-index: 3; }

/* На странице товара — справа от названия */
.tyuks-fav-title { display: flex; align-items: flex-start; gap: 12px; }
.tyuks-fav-title > :first-child { flex: 1 1 auto; min-width: 0; }
html body button.tyuks-fav--product { flex: 0 0 48px; width: 48px; height: 48px; margin-top: 2px; background: #f5f5f7 !important; box-shadow: none; }
html body button.tyuks-fav--product:hover { background: #ececef !important; }
html body button.tyuks-fav--product svg { width: 22px; height: 22px; }

/* В кабинете (белые карточки на сером фоне) */
html body button.tyuks-fav--account { position: absolute; top: 10px; right: 10px; z-index: 2; }

.tyuks-fav-toast {
  position: fixed;
  z-index: 2147483001;
  left: 50%;
  bottom: 24px;
  max-width: calc(100vw - 32px);
  padding: 14px 20px;
  border-radius: 14px;
  background: #161616;
  color: #fff;
  font-size: 15px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity .2s, transform .2s;
}
.tyuks-fav-toast.is-shown { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.tyuks-fav-toast a { color: #b3a9ff; text-decoration: underline; text-underline-offset: 3px; }

@keyframes tyuks-fav-pop { 0% { transform: scale(.7); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }

@media (max-width: 640px) {
  html body button.tyuks-fav--card { top: 6px; right: 6px; width: 34px; height: 34px; }
  html body button.tyuks-fav--card svg { width: 17px; height: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .tyuks-fav, .tyuks-fav svg { transition: none; animation: none !important; }
}

/* «Сообщить о поступлении» на странице товара, которого нет в наличии */
html body button.tyuks-notify { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 6px; padding: 10px 18px !important; border: 1px solid #000 !important; border-radius: 14px !important; background: #000 !important; color: #fff !important; font: inherit; font-size: 15px !important; font-weight: 500; line-height: 1.3; text-transform: none; letter-spacing: normal; cursor: pointer; }
html body button.tyuks-notify:hover { background: #2a2a2a !important; }
html body button.tyuks-notify:disabled { border-color: #e4e4e8 !important; background: #f5f5f7 !important; color: #222 !important; cursor: default; }
