//  Hydrogen / Properties / Fonts / Font Weight

@mixin h2-prop-font-weight($mediaQueryMap, $fontWeightMap, $headingMap) {
  @each $mediaKey, $mediaValue in $mediaQueryMap {
    @media #{$mediaValue} {
      @each $weightKey, $weightValue in $fontWeightMap {

        [data-h2-font-weight*="#{$mediaKey}(#{$weightKey})"] {
          font-weight: $weightValue;
        }

        @each $heading in $headingMap {
          #{$heading}[data-h2-font-weight*="#{$mediaKey}(#{$weightKey})"] {
            font-weight: $weightValue;
          }
        }
        p[data-h2-font-weight*="#{$mediaKey}(#{$weightKey})"],
        span[data-h2-font-weight*="#{$mediaKey}(#{$weightKey})"] {
          font-weight: $weightValue;
        }

        [data-h2-form] [data-h2-form-item] [data-h2-input-title-wrapper] [data-h2-input-label-wrapper] [data-h2-input-label][data-h2-font-weight*="#{$mediaKey}(#{$weightKey})"] {
          font-weight: $weightValue;
        }

      }
    }
  }
}