//minified common styles start
@import 'typography';
@import 'CTAs';
@import 'elements';
@import 'overrides';
@import 'print';
@import 'app';
@import 'rewards-counter';
@import 'vat-toggle';

// 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;
  }
}

// hr
hr {
  border-bottom: 1px solid $gray;
  border-top: 0;
  margin: 0;
}

//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;
  }
}

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

  .page-header {
    &::before {
      display: block;
    }
  }
}

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

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

.page-header {
  &_border-all {
    border-bottom: 1px solid $gray;
    padding-bottom: 30px;
  }

  &__title {
    margin-bottom: 0;
  }

  &__intro {
    @include primary-text;
    @include intro;
    margin-bottom: 0;
  }

  &__back-link {
    @include link-primary;
    @include heading-5;
    display: inline-block;
    margin-bottom: 30px;
  }
}

.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;
  }
}

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

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

@include media-breakpoint-down(md) {
  .left-aside {
    // TODO: fix bottom margin in scope of left nav refactoring
    .layout_left-aside & {
      margin-bottom: 75px;
      order: -1;
    }
  }

  .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-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) {
  .left-aside {
    @include make-col(3);
  }

  .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;
    }
  }
}

.scroll-disable {
  position: fixed;
  inset: 0;
  width: 100%;
  overflow: hidden;
}
//minified common styles end
