@import 'typography';
@import 'CTAs';
@import 'homepage-elements';
@import 'print';
@import 'app';
@import 'rewards-counter';
@import 'vat-toggle';

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

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

  .layout_left-aside &,
  .layout_right-aside & {
    @include make-col-ready;
    @include make-col(12);
  }

  .layout_right-aside & {
    padding-bottom: 30px;

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

  &__title {
    margin-bottom: 0;
  }

  &__intro {
    @include primary-text;
    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;
  }
}

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

  .card-content {
    &__inner-wrap {
      display: block;
      width: 100%;
    }
  }
}

@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-up(md) {
  .page-header {
    margin-bottom: 40px;

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

  .card-content {
    &__outer-wrap,
    &__inner-wrap {
      display: flex;
      flex-basis: 100%;
    }
  }
}

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

/* Common Styles */
.swiper-pagination-custom {
  bottom: 10px;
  left: 0;
  width: 100%;
}
