/**
 * Copyright IBM Corp. 2016, 2023
 *
 * This source code is licensed under the Apache-2.0 license found in the
 * LICENSE file in the root directory of this source tree.
 */

@use '@carbon/styles/scss/breakpoint' as *;
@use '@carbon/styles/scss/config' as *;
@use '@carbon/styles/scss/spacing' as *;
@use '../../globals/vars' as *;
@use '../../globals/imports' as *;
@use '../pictogram-item';

@mixin content-group-pictograms {
  :host(#{$c4d-prefix}-content-group-pictograms)
    ::slotted(#{$c4d-prefix}-content-group-copy),
  .#{$prefix}--content-group-pictograms .#{$prefix}--content-group__copy {
    margin-block-end: $spacing-05;
    margin-inline: $spacing-05;

    @include breakpoint(md) {
      margin-block-end: $spacing-07;
    }
  }

  div.#{$prefix}--content-group-pictograms {
    padding-inline: 0;

    .#{$prefix}--content-group__title {
      padding-inline: $spacing-05;
    }
  }

  .#{$prefix}--content-group-pictograms__item:last-child {
    .#{$prefix}--content-item {
      margin-block-end: 0;
    }
  }
}
