// 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/_borders.scss" as *;
@use "ds/spacing.scss" as *;

.wrapper {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: fit-content;
  border-radius: $br-8;
  background-color: var(--color-background-tertiary);
  gap: var(--sp-xs);

  &.extended {
    width: 100%;
    display: flex;
  }

  &.disabled {
    outline: $b-1 solid var(--color-background-quaternary);
    background-color: transparent;
  }
}

.label {
  &.extended {
    display: flex;
    flex: 1 1 0;
  }
}

.button {
  &.extended {
    flex-grow: 1;
  }
}

.input {
  display: none;
}
