/* One choice of a switching menu (MenuChoiceComponent): a tile, the name, a tag, a check on the current one. The
   account menu's countries are neutral (a grey tile); the sidebar's agencies are brand (a navy tile, the current row
   tinted). */
/* The form adds no box: the row is the menu's item. */
.wi-menu-choice__form {
  display: contents;
}

/* A button that looks like the menu's other items: none of the browser's button chrome (its grey and its border). */
.wi-menu-choice {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  min-height: var(--size-control-md);
  padding-block: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: start;
}

.wi-menu-choice[data-selected] {
  font-weight: var(--font-weight-semibold);
}

.wi-menu-choice__tile {
  box-sizing: border-box;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: var(--size-avatar-md);
  height: var(--size-avatar-md);
  border-radius: var(--radius-md);
  background-color: var(--background-sunken);
  color: var(--text-secondary);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
}

.wi-menu-choice__name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.wi-menu-choice__check {
  flex: none;
  width: var(--size-icon-sm);
  height: var(--size-icon-sm);
  color: var(--text-primary);
}

.wi-menu-choice--brand[data-selected] {
  background-color: var(--background-accent-subtle);
}

.wi-menu-choice--brand .wi-menu-choice__tile {
  width: var(--size-avatar-sm);
  height: var(--size-avatar-sm);
  background-color: var(--brand-primary);
  color: var(--text-primary-inverse);
  font-weight: var(--font-weight-bold);
}

.wi-menu-choice--brand .wi-menu-choice__check {
  color: var(--brand-secondary-bg);
}
