@import 'typography';
@import 'CTAs';
@import 'store-locator-elements';
@import 'overrides';
@import 'print';
@import 'app';

// common
body {
  > img {
    display: none;
  }

  &.page-responsiveHomePage {
    .hybris-class {
      overflow: hidden;
    }
  }
}

.icon {
  display: inline-block;
  height: 24px;
  line-height: 24px;
  width: 24px;
  text-align: center;
}

.component {
  padding-top: 30px;
  padding-bottom: 40px;

  &_filled {
    background: $gray-light;

    .card__inner {
      border: 0;
    }
  }

  &__actions {
    margin-bottom: -10px;
    text-align: center;
  }
}

//text is visible only for screenreader
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

main {
  padding-top: 40px;
  padding-bottom: 40px;

  &.banner-inside {
    padding-top: 0;
  }
}

.content {
  @include make-col-ready;
  @include make-col(12);

  .full-width-content & {
    @include make-col(12);
  }
}

.tel-uri {
  color: inherit;
  text-decoration: none;
  cursor: default;
  white-space: nowrap;

  &:hover {
    color: inherit;
    text-decoration: none;
  }
}

.touch-device {
  .tel-uri {
    @include link-secondary;
    text-decoration: underline;
  }
}

.scroll-disable {
  position: fixed;
  width: 100%;
}

.map-container {
  margin: 0 0 40px;

  img {
    @include img-fluid;
  }
}

// sass-lint:disable no-important
.js-selectable {
  cursor: pointer;

  &_selected {
    border-color: $blue !important;
    cursor: default;
  }
}

.inactive-el {
  color: $warm-grey !important;
}

.red-border {
  border: 1px solid $red;
}

@include media-breakpoint-down(md) {
  .page-header {
    &__intro {
      margin-top: 10px;
    }
  }
}

@include media-breakpoint-down(sm) {
  // prevent content twitching on scroll appear/disappear after main menu open/close
  body {
    overflow-y: scroll;
  }

  main {
    padding-top: 30px;
  }

  .page-header {
    margin-bottom: 30px;
  }

  .js-down-sm-hidden {
    display: none;
  }
}

@include media-breakpoint-down(xs) {
  .map-container {
    margin-left: -15px;
    margin-right: -15px;
  }
}

@include media-breakpoint-only(md) {
  .content {
    .layout_right-aside & {
      @include make-col(8);
    }
  }
}

@include media-breakpoint-up(md) {
  .page-header {
    margin-bottom: 40px;

    &__back-link {
      position: absolute;
      top: 0;
      left: 15px;
    }
  }
}

@include media-breakpoint-up(lg) {
  .content {
    @include make-col(9);
  }

  .page-header {
    .layout_left-aside & {
      padding-bottom: 30px;

      &::before {
        content: '';
        background: $gray;
        position: absolute;
        height: 1px;
        bottom: 0;
        left: 15px;
        right: 15px;
      }
    }

    &__intro {
      margin-top: 20px;
    }
  }
}

.hidden-state {
  display: none;
}
