/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
@use "sass:math";
@import "../../../../target";
@import "variables";

.nz-toolbar-item-expandable-group-backArrow {
  $border: solid $back-arrow-thickness currentColor;
  $size: math.sqrt($back-arrow-size-val * $back-arrow-size-val * 8) * 0.5 + px;

  width: 15px;
  height: 20px;

  @include nz-internal-targeted {
    cursor: pointer;

    &:after {
      color: $buic-foreground-primary;
    }
  }

  &:after {
    content: "";
    display: block;
    position: relative;
    left: 3px;
    top: 3px;
    color: $buic-foreground-body;
    width: $size;
    height: $size;
    border-top: $border;
    border-left: $border;
    margin-left: $back-arrow-thickness;
    margin-top: $back-arrow-thickness;
    box-sizing: border-box;
    transform: rotate(-45deg);
  }

  &:focus {
    outline: none;
  }
}
