.menu-button {
  margin-bottom: 0rem;
  width: 3rem;
  height: 3rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-medium-gray);
  background-color: var(--color-white);
  color: var(--color-nearly-black);
}

.menu-button:where([aria-expanded=true]) .in-aria-expanded\:hidden {
  display: none;
}

.menu-button:where([aria-expanded=true]) .in-aria-expanded\:inline {
  display: inline;
}

/* The menu is positioned with anchor positioning using a polyfill. These styles
are applied in a style tag on the menu element and its button trigger. */
.menu {
  width: 100%;
  background-color: var(--color-light-tan);
  box-shadow: 0px 10px 11px 0px rgba(0, 0, 0, 0.25);
  border: none;
  padding: 0;
}

.menu[popover] {
  position: absolute;
}

.menu .item {
  display: block;
  padding: var(--space-sm) 2.5rem;
}

.menu .divider {
  margin: var(--space-sm) 2.5rem;
}

.menu .item[data-theme="white"] {
  width: 100%;
  background-color: var(--color-white);
  cursor: pointer;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  color: var(--color-nearly-black);
}

.menu .item.search {
  cursor: pointer;
  margin-right: 0;
  width: auto;
}

.menu .search__input {
  color: var(--color-dark-gray-text);
}

@media screen and (max-width: 600px) {

  /* Overide the anchor positioning on small screens only so that the menu fills
  the entire viewport width */
  .menu {
    right: 0 !important;
  }
}

@media screen and (min-width: 600px) {
  .menu {
    width: 27.25rem;
  }
}

@media screen and (min-width: 1000px) {
  .menu .non-logged-in-links {
    display: none;
  }
}
