// 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 "ds/_sizes.scss" as *;
@use "ds/_borders.scss" as *;
@use "ds/typography.scss" as t;
@use "refactor/common-refactor.scss" as deprecated;
@use "../../../sidebar/common/sidebar.scss" as sidebar;

.fill-section {
  @include sidebar.option-grid-structure;
}

.fill-title {
  grid-column: span 8;
}

.fill-title-bar {
  padding-inline-start: var(--sp-xxs);
}

.fill-content {
  grid-column: span 8;
  display: flex;
  flex-direction: column;
  gap: var(--sp-m);
  margin: var(--sp-xs) 0 var(--sp-s) 0;
}

.fill-multiple {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}

.fill-multiple-label {
  @include t.use-typography("body-small");

  display: flex;
  align-items: center;
  flex-grow: 1;
  border-radius: $br-8;
  block-size: $sz-32;
  padding: var(--sp-s);
  background-color: var(--color-background-tertiary);
  color: var(--color-foreground-primary);
}

.fill-checkbox {
  // TODO create a checkbox component in the DS
  @extend %input-checkbox;

  padding-inline-start: var(--sp-s);

  span.checked {
    background-color: var(--color-accent-primary);

    svg {
      @extend %button-icon-small;

      stroke: var(--color-background-primary);
    }
  }
}
