/**
 * @file
 * Breakpoints
 *
 * With these breakpoints we will define how the page layout works.
 * For reference, below are the grid default breakpoints and max-widths defined by Bootstrap 4.
 * https://getbootstrap.com/docs/4.4/layout/grid/#grid-tiers
 *
 * $grid-breakpoints: (
 *   xs: 0,
 *   sm: 576px,
 *   md: 768px,
 *   lg: 992px,
 *   xl: 1200px
 * );
 *
 * $container-max-widths: (
 *   sm: 540px,
 *   md: 720px,
 *   lg: 960px,
 *   xl: 1140px
 * );
 *
 */

/*
 * Usage:
 * @include breakpoint(md){
 *   background: blue;
 * }
 */

/*
example for $data argument
each breakpoint has a pair of corresponding values
$breakpoints-data: (
  breakpoints: (365px + 20px, 767px, 1023px, 1199px, 1440px - 20px, 1440px + 20px, 1600px),
  values: ((190px, 190px), (400px, 190px), (261px, 194px), (230px, 243px), (266px, 266px), (266px, 266px), (300px, 300px))
);
*/

/*
 * Usage:
 * @include breakpoint(md, 700px){
 *   background: blue;
 * }
 */

/**
* @file
* Colors
*
* Colors variables for the whole project.
*/

/**
* @file
* Common variables
*
* Common variables for the whole project
*/

/**
* @file
* Mixins
*
*/

/*
  example:
  .root-class {
    .element {
      .theme_cat & {
        ...
      }
    }
  }
  will result into
  .theme_cat .root-class .element

  .root-class {
    .element {
      @include insert-into-selector-as-last-but-one(".theme_cat") {
        ...
      }
    }
  }
  will result into
  .root-class .theme_cat .element
*/

/*
  example:
  repeat-last-part-of-selector(".root-class .element", 3);
  returns
  ".root-class .element.element.element"
*/

/*
A simple little SCSS mixin for creating scrim gradients
Inspired by Andreas Larson - https://github.com/larsenwork
https://css-tricks.com/easing-linear-gradients/
https://toward.studio/latest/making-css-gradients-smooth
*/

/*
a W3C Specs compliant way to override legacy CSS while explicitly highlighting the pieces of CSS code where refactoring is needed

example of usage:

.page {
  .container {
    &__item {
      @include increase-specificity-by-repeating(3) {
        ...
      }
    }
  }
}

will be built into

.page .container__item.container__item.container__item {
  ...
}

this method of increasing specificity is allowed by CSS Specifications
quote from https://www.w3.org/TR/selectors-3/#specificity:
> Note: Repeated occurrences of the same simple selector are allowed and do increase specificity.
*/

.nppe2-ingredients {
  max-width: 1110px;
  margin: 0 auto;
  padding: 0 15px;
  /*---INGREDIENT---*/
  /*-------------------------
    MODAL STYLES
  -------------------------*/
  /*
  .ingredients-purina-modal__close-btn {        
    declared in .modal class at docroot/themes/custom/trim_the_tail_th/new_src/sass/layout/modal/_index.scss
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1;
    width: 48px;
    height: 48px;
    background: url("../../../images/icons/icon-red-close.svg") center center / 100% no-repeat;
    cursor: pointer;    
  }
  */
  /*---BENEFITS---*/
  /* Presence Classes */
}

.nppe2-ingredients .search-input__wrapper {
  position: relative;
}

.nppe2-ingredients .search-input__wrapper:after {
  position: absolute;
  content: "";
  top: 50%;
  right: 20px;
  width: 27px;
  height: 27px;
  z-index: 0;
  background-image: url("../../../images/icons/icon-red-search.svg");
  background-position: center center;
  background-size: contain;
  background-repeat: no-repeat;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
}

.nppe2-ingredients .search-input__wrapper .search {
  width: 100%;
  min-width: 100%;
  padding: 15px;
  box-sizing: border-box;
  max-width: 940px;
  margin: 65px auto 80px;
  display: block;
  box-shadow: -4px 3px 7px rgba(34, 21, 21, 0.12), 4px 0px 7px rgba(34, 21, 21, 0.12);
  outline: none;
  border: none;
}

.nppe2-ingredients .group-block__title {
  font-family: "antenna-purina", Helvetica, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.875rem;
  line-height: 2.25rem;
  margin-bottom: 10px;
}

.nppe2-ingredients .group-block__desc {
  font-family: "antenna-purina", Helvetica, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.25rem;
  line-height: 1.625rem;
  margin-bottom: 30px;
}

.nppe2-ingredients .ingredient-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 50px;
}

.nppe2-ingredients .ingredient-group__show-more-btn__wrapper {
  width: 100%;
  display: flex;
}

.nppe2-ingredients .ingredient-group__show-more-btn {
  margin: 0 auto;
  outline: none;
}

.nppe2-ingredients .purina-ingredient {
  margin-right: 4px;
  margin-bottom: 30px;
  text-align: center;
  outline: none;
}

.nppe2-ingredients .purina-ingredient.hidden {
  display: none;
  opacity: 0;
}

.nppe2-ingredients .purina-ingredient .img-ingredient {
  height: auto;
  width: 100%;
  max-width: 192px;
  max-height: 192px;
  border-width: 0px;
  border-style: solid;
  border-color: #e91c24;
  border-radius: 1000px;
  background: #ffffff;
  transition: border-width 0.1s ease-in, box-shadow 0.25s, -webkit-transform 0.2s;
  transition: border-width 0.1s ease-in, transform 0.2s, box-shadow 0.25s;
  transition: border-width 0.1s ease-in, transform 0.2s, box-shadow 0.25s, -webkit-transform 0.2s;
  box-shadow: 5px 4px 8px rgba(88, 79, 76, 0.22);
}

.nppe2-ingredients .purina-ingredient .img-ingredient:active {
  outline: none;
}

.nppe2-ingredients .purina-ingredient .ingredient-title {
  position: relative;
  margin: 30px auto 0 auto;
  padding-bottom: 3px;
  font-family: "antenna-purina", Helvetica, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 0.875rem;
  line-height: 1.375rem;
  text-transform: capitalize;
  overflow: hidden;
  text-align: center;
}

.nppe2-ingredients .p-modal__wrapper {
  background-color: #ffffff;
  border: 2px solid #e91c24;
}

.nppe2-ingredients .ingredients-purina-modal__contents {
  width: 100%;
  padding: 30px 15px 70px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.25rem;
  line-height: 1.375rem;
}

.nppe2-ingredients .ingredients-purina-modal__title {
  margin: 0 auto 15px;
  text-align: center;
  font-family: "antenna-purina", Helvetica, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.125rem;
  line-height: 1.5rem;
}

.nppe2-ingredients .ingredients-purina-modal__desc {
  width: 100%;
  font-size: 1rem;
  line-height: 1.375rem;
  text-align: center;
}

.nppe2-ingredients .ingredients-purina-modal__read-more {
  font-size: 0.875rem;
  line-height: 1.375rem;
}

.nppe2-ingredients .ingredients-purina-modal .benefits {
  width: auto;
  margin-top: 50px;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
}

.nppe2-ingredients .ingredients-purina-modal .benefit {
  margin: 0 15px 30px;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
}

.nppe2-ingredients .ingredients-purina-modal .benefit__title {
  text-align: center;
  font-size: 1.1875rem;
  line-height: 1.375rem;
}

.nppe2-ingredients .ingredients-purina-modal .benefit__image {
  height: 50px;
  width: 50px;
}

.nppe2-ingredients .showing {
  display: block;
}

@media (min-width: 1140px) {
  .nppe2-ingredients .search-input__wrapper:after {
    right: 0;
    left: 128px;
  }

  .nppe2-ingredients .search-input__wrapper .search {
    min-width: 0;
    max-width: 865px;
    padding: 25px 30px 25px 65px;
  }

  .nppe2-ingredients .group-block__title {
    font-size: 2.5rem;
    line-height: 3.25rem;
  }

  .nppe2-ingredients .ingredient-group__show-more-btn {
    outline: none;
  }

  .nppe2-ingredients .purina-ingredient .img-ingredient:hover {
    cursor: pointer;
    border-width: 4px;
    -webkit-transform: translateY(-8px);
            transform: translateY(-8px);
    box-shadow: 7px 5px 10px rgba(0, 0, 0, 0.18);
  }

  .nppe2-ingredients .p-modal__wrapper {
    max-width: 940px;
    max-height: calc(100vh - 200px);
    height: auto;
    margin-top: 50px;
    box-shadow: 6px 6px 8px rgba(88, 79, 76, 0.4);
    top: 47%;
  }

  .nppe2-ingredients .ingredients-purina-modal__contents {
    padding-bottom: 30px;
  }
}