@import './cost-center/index';
@import './payment-type/index';

$checkoutB2B-components-allowlist: cx-payment-type, cx-cost-center !default;

$skipComponentStyles: () !default;

@each $selector in $checkoutB2B-components-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 $checkoutB2B-components-allowlist {
    @if (index($skipComponentStyles, $selector) == null) {
      @extend %#{$selector}__body !optional;
    }
  }
}
