/*!
 * copyright   Copyright (C) 2010-2021 Combodo SARL
 * license     http://opensource.org/licenses/AGPL-3.0
 */

$ibo-fieldset--sibling-spacing: 48px !default;

$ibo-fieldset--legend--width: 100% !default;
$ibo-fieldset--legend--margin-bottom: 16px !default;
$ibo-fieldset--legend--padding-bottom: 4px !default;
$ibo-fieldset--legend--border-bottom-size: 2px !default;
$ibo-fieldset--legend--border-bottom-color: $ibo-color-grey-500 !default;
$ibo-fieldset--legend--border-bottom-style: solid !default;

.ibo-fieldset {
  & ~ .ibo-fieldset:not(.ibo-column) {
    margin-top: $ibo-fieldset--sibling-spacing;
  }
}

.ibo-fieldset-legend {
  width: $ibo-fieldset--legend--width;
  margin-bottom: $ibo-fieldset--legend--margin-bottom;
  padding-bottom: $ibo-fieldset--legend--padding-bottom;
  border-bottom: $ibo-fieldset--legend--border-bottom-size $ibo-fieldset--legend--border-bottom-style $ibo-fieldset--legend--border-bottom-color;

  @extend %ibo-font-ral-med-250;
}
