#events-menu-slot {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: max-content !important;
  overflow: visible !important;
}

.events-header-menu {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  min-width: max-content !important;
}

#events-menu-button {
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: max-content !important;
  height: auto !important;
  min-height: 2rem !important;
  margin: 0 !important;
  padding: .45rem .7rem !important;
  border: 1px solid #c9cdd2 !important;
  border-radius: .35rem !important;
  background: #fff !important;
  color: #202124 !important;
  font: inherit !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-indent: 0 !important;
  cursor: pointer !important;
}

#events-menu-button::before,
#events-menu-button::after {
  content: none !important;
}

#events-menu-button:focus-visible,
#events-menu-content a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

#events-menu-content {
  position: absolute !important;
  z-index: 1000 !important;
  top: 100% !important;
  right: 0 !important;
  min-width: 16rem !important;
  padding: .35rem !important;
  background: #fff !important;
  color: #202124 !important;
  border: 1px solid #c9cdd2 !important;
  border-radius: .25rem !important;
  box-shadow: 0 .35rem 1rem rgba(0,0,0,.18) !important;
}

#events-menu-content[hidden] {
  display: none !important;
}

#events-menu-content a {
  display: block !important;
  padding: .55rem .7rem !important;
  color: #202124 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

#events-menu-content a:hover {
  background: #f1f3f4 !important;
}

.events-menu-count {
  display: inline-flex;
  min-width: 1.2rem;
  height: 1.2rem;
  align-items: center;
  justify-content: center;
  margin-left: .25rem;
  padding: 0 .25rem;
  border-radius: 999px;
  font-size: .75em;
  background: currentColor;
  color: #fff;
}

.events-menu-count[hidden] {
  display: none !important;
}

@media (max-width: 768px) {
  #events-menu-content {
    right: auto !important;
    left: 0 !important;
    max-width: min(92vw, 22rem) !important;
  }
}

/* The generic link rule uses !important; therefore hidden menu entries need an
   equally strong rule. Otherwise the static Eventverwaltung link can become
   visible before or despite the permission response. */
#events-menu-content a[hidden] {
  display: none !important;
}
