html.has-promo-bar {
  --promo-bar-h: 2.5rem;
}

html.has-promo-bar.is-promo-collapsed {
  --promo-bar-h: 0px;
}

.site-promo-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 75;
  height: 2.5rem;
  display: flex;
  align-items: center;
  background: var(--promo-bg, #2ba6fe);
  color: var(--promo-fg, #fff);
  font-family: 'Estedad', Tahoma, Arial, sans-serif;
  transition: transform 0.25s ease;
}

body.has-impersonation-banner .site-promo-bar {
  top: var(--impersonate-banner-h, 3.5rem);
}

body.mp-chat-shell.has-impersonation-banner .site-promo-bar {
  top: 3.25rem;
}

html.has-promo-bar.is-promo-collapsed .site-promo-bar {
  transform: translateY(-120%);
  pointer-events: none;
}

.site-promo-bar__inner {
  width: min(76rem, calc(100% - 1.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.site-promo-bar__link,
.site-promo-bar__text {
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.site-promo-bar__link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.site-promo-bar__text {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
}

.site-promo-bar p.site-promo-bar__text {
  flex: 1;
}

.site-promo-bar__label {
  flex-shrink: 0;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 800;
}

.site-promo-bar__close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.site-promo-bar__close:hover {
  background: color-mix(in srgb, currentColor 14%, transparent);
}
