/* A button that opens a menu of actions (ActionMenuComponent): the chevron after the label, and each item two lines, the
   action and what it does, under the browser's button chrome. The menu is as wide as its text asks, no narrower than its
   button. */
.wi-action-menu {
  display: inline-flex;
}

.wi-action-menu__chevron {
  width: var(--size-icon-sm);
  height: var(--size-icon-sm);
  margin-inline-start: var(--space-1);
  vertical-align: middle;
}

.wi-action-menu__popover {
  max-width: min(22rem, calc(100vw - var(--space-4) * 2));
}

.wi-action-menu__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-0-5);
  width: 100%;
  padding-block: var(--space-2);
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: start;
}

.wi-action-menu__label {
  font-weight: var(--font-weight-semibold);
}

.wi-action-menu__description {
  color: var(--text-secondary);
  font-size: var(--font-size-xs);
  line-height: var(--font-line-height-xs);
}
