/**
 * 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.
 */

@mixin themed-items {
  background: $background;
  color: $text-primary;

  &.#{$prefix}--content-block-media--with-border
    .#{$prefix}--content-block-media__divider {
    border-block-end-color: $toggle-off;
  }
}

@mixin content-block-media {
  .#{$prefix}--content-block-media {
    @include themed-items;

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

  .#{$prefix}--content-block-media--g100 {
    @include theme(
      $g100,
      feature-flag-enabled('enable-css-custom-properties')
    ) {
      @include themed-items;
    }
  }
}
