/* Contact options (brandbook "Inputs and selection controls"): the
   suggestions under a recipient e-mail field. The module's
   contacts-autocomplete.js renders core's jQuery UI autocomplete menu as
   ul.mm-contact-options, one a.mm-contact-option per contact: the name in
   bold, then " — " and the e-mail, muted (the e-mail alone when the contact
   has no name). A global component: the fields sit on the note wizard and
   the transfer form, which load no contacts area CSS.

   jQuery UI's own theme paints the menu (.ui-widget-content) and its active
   item (.ui-state-active); these rules are one class stronger. The menu is
   as wide as its field (js/contact-options.js) and a row wraps, a long
   e-mail breaking anywhere, so no row is cut and the page never widens. */
.mm-contact-options.ui-menu {
  z-index: 50;
  max-height: 320px;
  overflow-y: auto;
  margin: var(--mm-space-1) 0 0;
  padding: var(--mm-space-1);
  list-style: none;
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-radius-card);
  background: var(--mm-surface);
  color: var(--mm-text);
  box-shadow: var(--mm-shadow-overlay);
  font: 400 16px/1.3 var(--mm-sans);
}

.mm-contact-options .ui-menu-item {
  margin: 0;
  padding: 0;
}

.mm-contact-options .mm-contact-option {
  display: block;
  min-height: 44px;
  margin: 0;
  padding: var(--mm-space-3);
  border: 0;
  border-radius: var(--mm-radius-field);
  color: var(--mm-text);
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.mm-contact-options .mm-contact-option.ui-state-active,
.mm-contact-options .mm-contact-option.ui-state-focus,
.mm-contact-options .mm-contact-option:hover {
  margin: 0;
  border: 0;
  background: var(--mm-primary-surface);
  color: var(--mm-text);
}

.mm-contact-option__name {
  font-weight: 600;
}

.mm-contact-option__sep,
.mm-contact-option__email {
  color: var(--mm-muted);
}
