@import './replenishment-order-cancellation';

$replenishment-order-allowlist: cx-replenishment-order-cancellation,
  cx-replenishment-order-cancellation-dialog !default;

$skipComponentStyles: () !default;

@each $selector in $replenishment-order-allowlist {
  #{$selector} {
    // skip selectors if they're added to the $skipComponentStyles list
    @if (index($skipComponentStyles, $selector) == null) {
      @extend %#{$selector} !optional;
    }
  }
}

// add body specific selectors
body {
  @each $selector in $replenishment-order-allowlist {
    @if (index($skipComponentStyles, $selector) == null) {
      @extend %#{$selector}__body !optional;
    }
  }
}
