/**
 * ideaGeek Brand Menu
 */

.ig-brand-menu {
  position: fixed;
  z-index: 99999;

  box-sizing: border-box;
  width: max-content;
  max-width: calc(100vw - 16px);
  padding: 4px;

  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 6px;

  box-shadow: 0 4px 16px rgb(0 0 0 / 8%);

  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;

  animation: ig-brand-menu-enter 120ms ease-out;
}

.ig-brand-menu[hidden] {
  display: none !important;
}

/* Menu item */

.ig-brand-menu .ig-brand-menu-item {
  display: block;
  padding: 8px 14px;
  border-radius: 4px;

  color: #1a1a1a;
  background: transparent;
  text-decoration: none;

  transition:
    background-color 150ms ease,
    color 150ms ease;
}

.ig-brand-menu .ig-brand-menu-item:hover,
.ig-brand-menu .ig-brand-menu-item:focus-visible {
  background-color: #f7f7f7;
  color: #ff0033;
  text-decoration: none;
}

.ig-brand-menu .ig-brand-menu-item:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: -1px;
}

/* Entrance animation */

@keyframes ig-brand-menu-enter {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  .ig-brand-menu {
    animation: none;
  }

  .ig-brand-menu .ig-brand-menu-item {
    transition: none;
  }
}
