@layer atoms {
  .mobius-dropdown-menu {
    position: relative;
    max-width: var(--dropdown-menu-max-width);
    width: 100%;
  }

  .mobius-dropdown-menu__trigger {
    width: 100%;
    text-align: right;
    appearance: none;
    border: none;
    background-color: transparent;
    font-size: var(--font-size-regular);
    cursor: pointer;
    padding: var(--size-xs) 0;
    color: var(--color-primary);
  }

  .mobius-dropdown-menu__list {
    display: none;
    width: 100%;
    box-shadow: 0 0 var(--size-md) rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-1);
    margin-top: var(--size-sm);
    margin-bottom: 0;
    padding-left: 0;
    list-style-type: none;
    overflow: hidden;
    text-align: left;
    color: var(--color-text);

    &.--is-open {
      display: block;
      position: absolute;
      z-index: 2;
      background-color: var(--color-background);
    }
  }

  .mobius-dropdown-menu__item {
    display: block;
    cursor: pointer;
    padding: var(--size-sm);
    border-left: var(--size-xxs) solid transparent;

    &:hover {
      background-color: var(--color-background-highlight);
      color: var(--color-primary);
      border-color: var(--color-primary);
    }

    &:focus-visible {
      background-color: var(--color-background-highlight);
      color: var(--color-primary);
      border-color: var(--color-primary);
      outline: none;
    }

    &.--is-active {
      border-left-color: var(--color-primary);
    }
  }
}
