// 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;

.element-set {
  padding-bottom: deprecated.$s-16;
  margin: 0;
}

.element-title {
  margin: 0;
}

.title-spacing-export-viewer {
  margin: 0;
  color: var(--entry-foreground-color-hover);
  margin-inline-start: calc(-1 * deprecated.$s-8);
  width: calc(100% + deprecated.$s-8);
}

.add-export {
  @extend %button-tertiary;

  height: deprecated.$s-32;
  width: deprecated.$s-28;

  svg {
    @extend %button-icon;

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

.element-set-content {
  @include deprecated.flex-column;

  margin-bottom: deprecated.$s-4;
}

.multiple-exports {
  @include deprecated.flex-row;

  grid-column: 1 / span 9;
}

.label {
  @extend %mixed-bar;
}

.actions {
  @include deprecated.flex-row;
}

.element-group {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  column-gap: deprecated.$s-4;

  .action-btn {
    @extend %button-tertiary;

    height: deprecated.$s-32;
    width: deprecated.$s-28;

    svg {
      @extend %button-icon;
    }
  }
}

.input-wrapper {
  grid-column: span 8;
  display: grid;
  grid-template-columns: subgrid;
}

.format-select {
  grid-column: span 3;
  padding: 0;

  .dropdown-upwards {
    bottom: deprecated.$s-36;
    width: deprecated.$s-80;
    top: unset;
  }
}

.size-select {
  grid-column: span 2;
  padding: 0;

  .dropdown-upwards {
    bottom: deprecated.$s-36;
    top: unset;
    width: deprecated.$s-80;
  }
}

.suffix-input {
  @extend %input-element;
  @include deprecated.body-small-typography;

  grid-column: span 3;
}

.export-btn {
  @extend %button-secondary;
  @include deprecated.uppercase-title-typography;

  height: deprecated.$s-32;
  width: 100%;
}
