@import 'typography';
@import 'CTAs';
@import 'elements';

@mixin intro {
  @include media-breakpoint-up(lg) {
    max-width: 730px;
  }
  @include media-breakpoint-only(md) {
    max-width: 570px;
  }
  @include media-breakpoint-up(md) {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }
}

@mixin price-block-badge($bg: $red) {
  padding: 0 10px;
  min-width: 140px;
  background: $bg;
  font-size: 1.428em;
}

@mixin badges {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  line-height: 1.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  text-align: center;
  color: $white;
}

@mixin badge($bg: $red) {
  padding: 3px 10px;
  min-width: 120px;
  background: $bg;
}

@mixin badge-clearance($bg: $yellow) {
  padding: 3px 10px;
  min-width: 120px;
  background: $bg;
  color: $black;
}

@mixin truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@mixin ti-step-state {
  padding-bottom: 15px;
  border-bottom: 1px solid $gray;
}

@mixin footer-link {
  text-decoration: none;
  font-size: .875rem;
  letter-spacing: .13px;
  text-transform: capitalize;
  color: $blue-dark;
}

@mixin explicit-img {
  width: 99.99%;
  height: 99.99%;
}

@mixin flex-centralize {
  display: flex;
  justify-content: center;
  align-items: center;
}

@mixin button-primary-default-color {
  background-color: $blue;
  border-color: $blue;
  color: $white;

  circle {
    stroke: $white !important;
  }

  path {
    fill: $white !important;
  }

  polygon {
    fill: $white !important;
  }
}

@mixin button-primary-hover-color {
  color: $blue;
  background-color: $white;
  border-color: $blue;

  circle {
    stroke: $blue !important;
  }

  path {
    fill: $blue !important;
  }

  polygon {
    fill: $blue !important;
  }
}

@mixin button-primary-active-color {
  color: $white;
  background-color: $blue-darker;
  border-color: $blue-darker;

  circle {
    stroke: $white !important;
  }

  path {
    fill: $white !important;
  }

  polygon {
    fill: $white !important;
  }
}

@mixin clamp-text($line-clamp) {
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  -webkit-line-clamp: $line-clamp;
}

@mixin font-size($font-size-px) {
  font-size: #{$font-size-px / 16}rem;
}

@mixin line-height($line-height-px) {
  line-height: #{$line-height-px / 16}rem;
}

@mixin multiline-ellipsis($line-count: 1) {
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  -webkit-line-clamp: $line-count;
}

@mixin icon-wrap($width: 24px, $height: 24px, $font-size-px: 16) {
  width: $width;
  height: $height;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: #{$font-size-px / 16}rem;
}
