/* The agency an advisor works in: its tile (AgencyTileComponent), the name, a selector. The button is
   borderless on the canvas; hovered it takes the canvas's edge colour, open it turns white with a soft shadow. Its menu's rows are
   MenuChoice's (brand). */
.wi-agency-switcher__trigger,
.wi-agency-switcher--static {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  min-height: var(--size-control-lg);
  padding: var(--space-1) var(--space-2) var(--space-1) var(--wi-agency-switcher-inset, var(--space-1));
  border: 0;
  border-radius: var(--radius-md);
  background-color: transparent;
  color: var(--text-primary);
  font-family: var(--font-family-sans);
  text-align: start;
}

.wi-agency-switcher__trigger {
  cursor: pointer;
  transition: background-color 120ms ease, box-shadow 120ms ease;
}

.wi-agency-switcher__trigger[data-hovered] {
  background-color: var(--wi-app-canvas-edge, var(--gray-100));
}

.wi-agency-switcher__trigger[data-open] {
  background-color: var(--background-surface);
  box-shadow: var(--shadow-sm);
}

/* The focus ring is a shadow, which forced colours drop: a transparent outline becomes the ring there. */
.wi-agency-switcher__trigger[data-focus-visible] {
  outline: var(--border-2) solid transparent;
  outline-offset: var(--border-2);
  box-shadow: var(--focus-ring);
}

/* The agency's name is never cut short on its first line ("Esch-sur-Alzette" in a narrow sidebar): it wraps, up to two
   lines, at its hyphens too. */
.wi-agency-switcher__name {
  display: -webkit-box;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: var(--font-size-sm);
  line-height: var(--font-line-height-sm);
  font-weight: var(--font-weight-semibold);
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.wi-agency-switcher__chevron {
  flex: none;
  width: var(--size-icon-sm);
  height: var(--size-icon-sm);
  color: var(--text-tertiary);
}

@media (prefers-reduced-motion: reduce) {
  .wi-agency-switcher__trigger {
    transition: none;
  }
}
