/*---------------------------------------------------------------------------------------------
 * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
 * See LICENSE.md in the project root for license terms and full copyright notice.
 *--------------------------------------------------------------------------------------------*/
@import "~@itwin/core-react/lib/cjs/core-react/style/themecolors";

.nz-widget-overflow {
  width: 2em;
  position: relative;

  &.nz-hidden {
    display: none;
  }

  > .nz-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: pointer;
    user-select: none;

    > .nz-icon {
      background: $buic-background-2;
      width: 1em;
      height: 1em;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;

      &:after {
        content: "";
        display: block;
        border-color: $buic-foreground-disabled;
        border-style: solid;
        border-width: 0.15em 0.15em 0 0;
        width: 0.5em;
        height: 0.5em;
        margin-left: -0.15em;
        box-sizing: border-box;
        transform: rotate(45deg);
      }
    }

    &:hover {
      > .nz-icon {
        &:after {
          border-color: $buic-foreground-activehover;
        }
      }
    }

    &:focus {
      outline: none;
    }
  }
}
