@import '~@cainiaofe/cn-ui-theme-light/token.scss';

$cn-layout-setter-item: 'cn-layout-setter-item';
$biz-css-view-prefix: '.fd-layout-view-';

.#{$cn-layout-setter-item} {
  &-container {
    width: 286px;
  }

  &-title {
    font-size: $font-size-focus;
    line-height: 18px;
    font-weight: 600;
    color: $color-text;
    margin-bottom: $s-2;
  }

  &-block {
    height: 32px;
    display: flex;
    gap: 2px;
    min-width: 54px;
    align-items: center;
    padding: 4px;
    border: 1px solid #e8eaec;
    border-radius: 4px;
    cursor: pointer;
    margin: 0;

    &.active {
      border-color: #005be5;
      .cn-layout-setter-item-block-child {
        background: #005be5;
        border-color: #005be5;
      }
    }

    &:hover {
      background: #e9edf8;
    }

    &-child {
      border-radius: 2px;
      background: #e8eaec;
      height: 22px;
      border: 1px solid #b0b6bf;
    }
  }

  &-content {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 4px;
  }
}

#{$biz-css-view-prefix}block-add {
  position: relative;
  display: flex;
  justify-content: center;
  height: 4px;

  #{$biz-css-view-prefix}icon-add {
    position: absolute;
    bottom: 0;
    cursor: pointer;
    height: 12px;
    width: 12px;
    background: #005be5;
    border-radius: 50%;
    &::after {
      content: '';
    }

    &:hover,
    &-focus {
      height: 24px;
      width: 24px;

      &::after {
        content: '+';
        display: block;
        color: #fff;
        line-height: 24px;
        font-size: 20px;
        text-align: center;
        font-weight: 300;
      }
    }
  }
}
