/*
 * Compatibility styling for the existing ident_switch plugin.
 * The plugin continues to own account data and the actual switch action.
 */

html:not(.iframe) body:not(.task-login) .header-title.username.promtek-account-switch-ready {
  display: flex !important;
  align-items: center !important;
  min-width: 0;
  overflow: visible !important;
  color: var(--promtek-text) !important;
  visibility: visible !important;
}

html:not(.iframe) body:not(.task-login) .header-title.username.promtek-account-switch-ready .ident-switch-wrapper {
  position: relative;
  display: inline-flex !important;
  flex: 1 1 auto;
  align-self: stretch;
  align-items: center;
  width: 100%;
  min-width: 0;
  overflow: visible;
  color: var(--promtek-text) !important;
  line-height: normal;
  visibility: visible !important;
}

html:not(.iframe) body:not(.task-login) .header-title.username.promtek-account-switch-ready .ident-switch-wrapper::after {
  position: absolute;
  top: 50%;
  right: 3px;
  width: 0;
  height: 0;
  border-top: 5px solid var(--promtek-muted);
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  content: "";
  pointer-events: none;
  transform: translateY(-50%);
}

html:not(.iframe) body:not(.task-login) .header-title.username.promtek-account-switch-ready #plugin-ident_switch-account {
  display: block !important;
  align-self: center;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 32px;
  min-height: 32px;
  margin: 0;
  padding: 4px 18px 4px 0;
  overflow: hidden;
  color: var(--promtek-text) !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
  font: inherit;
  font-weight: 600;
  line-height: 24px;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
}

html:not(.iframe) body:not(.task-login) .header-title.username.promtek-account-switch-ready #plugin-ident_switch-account:focus-visible {
  color: var(--promtek-text) !important;
  outline: 2px solid var(--promtek-accent);
  outline-offset: 2px;
}

html:not(.iframe) body:not(.task-login) .header-title.username.promtek-account-switch-ready #plugin-ident_switch-account option {
  color: var(--promtek-text);
  background-color: var(--promtek-header);
}

html:not(.iframe) body:not(.task-login) .header-title.username.promtek-account-switch-ready .ident-switch-badge {
  color: var(--promtek-accent-ink) !important;
  background-color: var(--promtek-accent) !important;
}
