/* More Overflow Menu */
.more-overflow__container {
  position: absolute;
  z-index: var(--z-dropdown-menu, 9999);
  min-width: 180px;
  display: none;
}

/* Toolbar/mobile overflow trigger. Reset native button styling so the
   ellipsis never renders as a white default browser button in the dark bar. */
.more-overflow__button {
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-tertiary, currentColor);
  border-radius: var(--radius-md, 6px);
  font: inherit;
  cursor: pointer;
}

.more-overflow__button:hover,
.more-overflow__button:focus-visible {
  color: var(--text-primary, currentColor);
  background: var(--bg-hover, rgba(148, 163, 184, 0.12));
  outline: none;
}

.more-overflow__container[data-open="true"] {
  display: block;
}

/* Expanded menu — JS toggles this BEM modifier class alongside data-open.
   Defined here for full BEM consistency (Block__Element--Modifier). */
.more-overflow__menu--expanded {
  display: block;
}

.more-overflow__item {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  white-space: nowrap;
}

.more-overflow__item + .more-overflow__item {
  border-top: 1px solid;
}

/* Show on mobile only */
@media (min-width: 768px) {
  .more-overflow__container,
  .more-overflow__button {
    display: none;
  }
}

@media (max-width: 767px) {
  .more-overflow__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
