.ds-account-disclosure {
  align-items: center;
  background: none;
  color: var(--ds-color-london-5);
  cursor: pointer;
  display: inline-flex;
  font-family: var(--ds-type-system-sans-lining);
  font-size: var(--ds-type-scale-1);
  font-weight: 400;
  line-height: var(--ds-type-leading-lower);
  text-decoration: none;
  transition: color var(--ds-interactions-transition);
  will-change: color;
  .path-foreground {
    transition: fill var(--ds-interactions-transition);
  }
  &.is-selected {
    z-index: 98;
  }
}

.ds-account-disclosure--inverse {
  color: var(--ds-color-london-100);
  .path-foreground {
    fill: var(--ds-color-london-100);
  }
}

.ds-account-disclosure__arrow {
  height: 1.5rem;
  margin: 0 0 0 0.125rem;
  transition: transform var(--ds-interactions-transition);
  width: 1.5rem;
  &.is-selected {
    transform: scaleY(-1);
  }
}

.ds-account-disclosure__avatar {
  height: 1.5rem;
  width: 1.5rem;
}

.ds-account-disclosure__avatar-initials {
  align-items: center;
  background-color: var(--ds-color-chicago-30);
  border-radius: 50%;
  color: var(--ds-color-london-100);
  font-size: var(--ds-type-scale--2);
  font-weight: 400;
  height: 1.5rem;
  justify-content: center;
  text-transform: uppercase;
  transition: color var(--ds-interactions-transition);
  width: 1.5rem;
  will-change: color;
  .avatar-foreground {
    transition: fill var(--ds-interactions-transition);
  }
}

.ds-account-disclosure__avatar-initials--inverse {
  background-color: var(--ds-color-london-100);
  color: var(--ds-color-london-20);
  .avatar-foreground {
    fill: var(--ds-color-london-20);
  }
}

.ds-account-disclosure__overlay {
  height: 100vh;
  left: 0;
  position: fixed;
  top: 0;
  width: 100vw;
  z-index: 97;
}

@media (--ds-viewport-max-medium) {
  .ds-account-disclosure__avatar-initials {
    display: flex;
  }
  .ds-account-disclosure__avatar-text {
    display: none;
  }
  .ds-account-disclosure {
    border: 0.0625rem solid var(--ds-color-london-85);
    border-radius: 1rem;
    padding: 0.1875rem;
    .path-foreground {
      fill: var(--ds-color-london-35);
    }
    &:hover {
      border: 0.0625rem solid var(--ds-color-chicago-20);
      .ds-account-disclosure__avatar-initials {
        background-color: var(--ds-color-chicago-20);
      }
    }
    &:focus {
      border-color: transparent;
      box-shadow: 0 0 0 0.125rem var(--ds-color-hong-kong-55);
      outline: solid transparent;
    }
    &:active {
      border-color: transparent;
      box-shadow: 0 0 0 0.125rem var(--ds-color-hong-kong-55);
      outline: solid transparent;
      .ds-account-disclosure__avatar-initials {
        background-color: var(--ds-color-chicago-20);
      }
    }
  }
  .ds-account-disclosure--inverse {
    border: 0.0625rem solid var(--ds-color-london-100);
    .path-foreground {
      fill: var(--ds-color-london-100);
    }
    &:hover {
      border: 0.0625rem solid var(--ds-color-london-85);
      .ds-account-disclosure__avatar-initials {
        background-color: var(--ds-color-london-85);
      }
      .path-foreground {
        fill: var(--ds-color-london-85);
      }
    }
    &:focus {
      border-color: transparent;
      box-shadow: 0 0 0 0.125rem var(--ds-color-hong-kong-55);
      outline: solid transparent;
    }
    &:active {
      border-color: transparent;
      box-shadow: 0 0 0 0.125rem var(--ds-color-hong-kong-55);
      outline: solid transparent;
      .ds-account-disclosure__avatar-initials {
        background-color: var(--ds-color-london-85);
      }
      .path-foreground {
        fill: var(--ds-color-london-85);
      }
    }
  }
}

@media (--ds-viewport-min-medium) {
  .ds-account-disclosure__avatar-initials {
    display: none;
  }
  .ds-account-disclosure__avatar-text {
    display: flex;
  }
  .ds-account-disclosure {
    border: none;
    padding: 0;
    &:hover {
      color: var(--ds-color-chicago-30);
      .path-foreground {
        fill: var(--ds-color-chicago-30);
      }
    }
    &:focus {
      border-color: transparent;
      box-shadow: 0 0 0 0.125rem var(--ds-color-hong-kong-55);
      outline: solid transparent;
    }
    &:active {
      box-shadow: none;
      color: var(--ds-color-chicago-45);
      .path-foreground {
        fill: var(--ds-color-chicago-45);
      }
    }
  }
  .ds-account-disclosure--inverse {
    &:hover {
      color: var(--ds-color-london-85);
      .path-foreground {
        fill: var(--ds-color-london-85);
      }
    }
    &:active {
      color: var(--ds-color-london-70);
      .path-foreground {
        fill: var(--ds-color-london-70);
      }
    }
  }
}
