// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//
// Copyright (c) KALEIDOS INC Sucursal en España SL

@use "refactor/common-refactor.scss" as deprecated;

.viewport-actions,
.viewport-actions-path {
  pointer-events: none;
  position: absolute;

  --actions-toolbar-position-y: #{deprecated.$s-28};
  --actions-toolbar-offset-y: #{deprecated.$s-6};

  top: calc(var(--actions-toolbar-position-y) + var(--actions-toolbar-offset-y));
  left: 50%;
  transform: translateX(-50%);
  z-index: deprecated.$z-index-20;
}

.viewport-actions-path {
  z-index: deprecated.$z-index-3;
}

.viewport-actions-container {
  @include deprecated.flex-row;

  background: var(--panel-background-color);
  border-radius: deprecated.$br-12;
  box-shadow: 0 0 deprecated.$s-12 0 var(--menu-shadow-color);
  gap: deprecated.$s-8;
  height: deprecated.$s-48;
  padding: deprecated.$s-8;
  cursor: initial;
  pointer-events: initial;
  min-width: deprecated.$s-400;
  border: deprecated.$s-2 solid var(--panel-border-color);
}

.viewport-actions-title {
  flex: 1;
  font-size: deprecated.$fs-12;
  color: var(--color-foreground-secondary);
  padding-left: deprecated.$s-8;
  width: max-content;
}

.done-btn {
  @extend %button-primary;

  text-transform: uppercase;
  padding: deprecated.$s-8 deprecated.$s-20;
  font-size: deprecated.$fs-11;
}

.viewport-actions-no-rulers {
  --actions-toolbar-position-y: 0px;
}
