.positionWrapper {
  z-index: var(--z-index-overlay);
}

.wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  /* stylelint-disable-next-line csstools/value-no-unknown-custom-properties */
  width: calc(var(--width) * 1px);
  background: var(--color-background-static-default);
  @extend .pos-3dp;
  border-radius: var(--radii-medium);

  &.wrapperEnter {
    transform: translateY(10%);
    opacity: 0;
  }

  &.wrapperEnterActive {
    transform: translateY(0);
    opacity: 1;

    transition: var(--transition-fast);
    transition-property: transform, opacity;
  }

  &.wrapperExit {
    transform: translateX(0);
    opacity: 1;
    pointer-events: none;
  }

  &.wrapperExitActive {
    transform: translateY(10%);
    opacity: 0;

    transition: var(--transition-fast);
    transition-property: transform, opacity;
    pointer-events: none;
  }
}

.divider {
  padding: 0 8px;

  &::after {
    display: block;
    content: "";
    width: 100%;
    height: 2px;
    background: var(--color-border-default);
    border-radius: var(--radii-rounded);
  }
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-index-overlay-backdrop);
}
