/*
 * Backpack - Skyscanner's Design System
 *
 * Copyright 2016-2021 Skyscanner Ltd
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@import '~bpk-mixins/index';

.bpk-barchart-bar {
  @include bpk-themeable-property(
    fill,
    --bpk-barchart-bar-background-color,
    $bpk-color-sky-blue-tint-01
  );

  &--interactive:not(.bpk-barchart-bar--selected) {
    cursor: pointer;

    @include bpk-hover {
      @include bpk-themeable-property(
        fill,
        --bpk-barchart-bar-hover-background-color,
        $bpk-color-sky-blue
      );
    }

    &:active {
      @include bpk-themeable-property(
        fill,
        --bpk-barchart-bar-active-background-color,
        $bpk-color-sky-blue-shade-01
      );
    }
  }

  &--selected {
    @include bpk-themeable-property(
      fill,
      --bpk-barchart-bar-selected-background-color,
      $bpk-color-sky-blue-shade-01
    );
  }

  &__rect {
    fill: inherit;
    shape-rendering: auto;

    &--outlier {
      mask: url(#bpk-barchart__def-mask);
    }
  }

  &__tappable-area {
    fill: transparent;
  }
}
