src/components/ToolsOverlay/ToolsOverlay.scss
@import '../../constants/styles';
@import '../../constants/overlay';

.ToolsOverlayContainer {
  @include desktop {
    margin-inline-end: 12px;
  }

  @include tablet {
    margin-inline-end: 18px;
  }

  // @include mobile {
  //   position: fixed;
  //   top: 0;
  //   right: 0;
  //   height: 100vh;
  //   width: 100vw;
  //   z-index: 1;
  // }
}

.ToolsOverlay {
  @extend %overlay;
  box-shadow: none;
  padding: 0px;
  flex-wrap: nowrap;
  border: 0px;
  border-radius: 0px;
  background: transparent;
  position: relative;
  border-radius: 4px 4px 0 0;
  // Very important.
  // This makes it so the toolstylepopup goes below the presets.
  // It will overflow properly.
  height: 32px;
  align-items: center;
  width: 220px;

  @include mobile {
    width: 100%;
    // height: 52px;
    height: auto;
    display: flex;
    flex-direction: column;
    background: var(--mobile-presets-background);
    margin-top: -12px;
    // margin-top: 0px;
  }

  &.shadow {
    box-shadow: 0 0 5px 0 var(--box-shadow);

    @include tablet-and-desktop {
      .ToolStylePopup {
        box-shadow: 0 -20px 0 var(--preset-background), 0 0 5px 0 var(--box-shadow);
      }
    }
  }

  .no-presets {
    color: var(--no-presets-text);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .tools-container {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: var(--preset-background);
    height: 100%;
    width: 100%;

    @include mobile {
      background: var(--mobile-presets-background);
      height: 52px;

      &.is-styling-open {
        height: 78px;
      }
    }

    .tool-buttons-container {
      display: flex;
      align-items: center;
      height: 32px;
      padding-inline-start: 4px;

      @include mobile {
        width: 100%;
        justify-content: center;
      }
    }
  }

  .close-icon-container {
    @include button-reset;
    position: absolute;
    inset-inline-end: 18px;
    cursor: pointer;

    .close-icon {
      width: 24px;
      height: 24px;
    }
  }
}
