// 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;
@use "../../../sidebar/common/sidebar.scss" as sidebar;

.align-options {
  @include sidebar.option-grid-structure;

  height: deprecated.$s-32;
}

.align-group-horizontal,
.align-group-vertical {
  display: grid;
  grid-template-columns: subgrid;
  place-items: center center;
}

.align-group-horizontal {
  grid-column: 1 / span 4;
}

.align-group-vertical {
  grid-column: 5 / span 4;
}

.align-button {
  @extend %button-tertiary;

  height: deprecated.$s-32;
  width: deprecated.$s-32;
  padding: 0;
  border-radius: deprecated.$br-8;

  svg {
    @extend %button-icon;

    stroke: var(--icon-foreground);
  }

  &.disabled {
    cursor: default;

    svg {
      stroke: var(--button-foreground-color-disabled);
    }

    &:hover {
      background-color: var(--panel-background-color);

      svg {
        stroke: var(--button-foreground-color-disabled);
      }
    }
  }
}
