/* BESTCHANGE — язычок справа (как Маркет / Агрегатор) */

.site-bestchange-root {
  position: fixed;
  z-index: 10969;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.site-bestchange-root .site-bestchange-stack {
  pointer-events: auto;
}

.site-bestchange-stack {
  position: fixed;
  z-index: 10969;
  right: max(10px, env(safe-area-inset-right, 0px) + 10px);
  top: calc(var(--site-header-sticky-offset, 96px) + 52px);
  width: 44px;
  max-width: min(360px, calc(100vw - 20px));
  overflow: visible;
}

@media (min-width: 1080px) {
  .site-bestchange-stack {
    top: calc(var(--site-header-sticky-offset, 96px) + 10px);
    right: max(16px, env(safe-area-inset-right, 0px) + 16px);
  }
}

.site-bestchange-fab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 40px;
  padding: 0;
  border: var(--nb-border-w, 2px) solid var(--border, #111);
  border-radius: var(--nb-radius, 4px);
  background: #facc15;
  color: #0a0a0a;
  font-family: var(--nb-font, "Space Grotesk", sans-serif);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 3px 3px 0 0 var(--border, #111);
  overflow: hidden;
}

.site-bestchange-fab:hover,
.site-bestchange-fab:focus-visible {
  color: #0a0a0a;
  background: #fde047;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 0 var(--border, #111);
}

.site-bestchange-fab-text {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
}

.site-bestchange-fab-glyph {
  flex-shrink: 0;
  font-size: 12px;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #111;
}

.site-bestchange-fab,
.site-bestchange-fab:hover,
.site-bestchange-fab:focus-visible,
.site-bestchange-fab-text,
.site-bestchange-fab-glyph {
  color: #111 !important;
}

/* Подпись только в title — не раздуваем язычок текстом */
.site-bestchange-fab-words {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

body.site-fab-dock-active .site-bestchange-stack {
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}
