/* breakpoints */
/* taille min - max */
/*****************
    Appeler la fonction sur une div qui entoure la balise input/textarea et label,
    <div> // Appeler la fonction
        <input> ou <textarea></textarea>
        <label placeholder=""></label>
    </div>
****************/
/* --------------------------------

Primary style

-------------------------------- */
*,
*::after,
*::before {
  box-sizing: border-box;
}
/* -------------------------------- 

Main Components 

-------------------------------- */
.cd-products-comparison-table {
  max-width: 1160px !important;
  padding: 50px 10px;
}

.cd-products-comparison-table *,
.cd-products-comparison-table *::before,
.cd-products-comparison-table *::after {
  border: 0;
}

.cd-products-comparison-table ul {
  margin-bottom: 0;
}

.cd-products-comparison-table::after {
    /* never visible - this is used in jQuery to check the current MQ */
  display: none;
  content: 'mobile';
}

.cd-products-comparison-table .cd-header {
  padding: 0 0 25px;
}

.cd-products-comparison-table .cd-header::after {
  display: table;
  clear: both;
  content: '';
}

.cd-products-comparison-table h2 {
  font-weight: bold;
  float: left;
}

.cd-products-comparison-table .cd-actions {
  float: right;
}

.cd-products-comparison-table .cd-reset,
.cd-products-comparison-table .cd-filter {
  font-size: 14px;
}

.cd-products-comparison-table .cd-reset {
  text-decoration: underline;
  color: #404042;
}

.cd-products-comparison-table .cd-filter {
  margin-left: 25px;
  padding: 10px 20px;
  cursor: not-allowed;
  transition: background-color .3s;
  color: #fff;
  border-radius: 3px;
  background-color: #ccc;
}

.cd-products-comparison-table .cd-filter.active {
  cursor: pointer;
  background-color: #9dc997;
}

.cd-products-comparison-table .cd-filter.active:hover {
  background-color: #a7cea1;
}

@media only screen and (min-width: 560px) {
  .cd-products-comparison-table::after {
        /* never visible - this is used in jQuery to check the current MQ */
    content: 'desktop';
  }

  .cd-products-comparison-table .cd-header {
    padding: 0 0 40px;
  }

  .cd-products-comparison-table h2 {
    font-size: 24px;
  }
}

.cd-products-table {
  position: relative;
  overflow: hidden;
}

.cd-products-table .cd-features {
    /* fixed left column - product properties list */
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 120px;
  opacity: .95;
  border: 1px solid #e6e6e6;
  border-right: 0;
  background-color: #fafafa;
}

.cd-products-table .cd-features::after {
  position: absolute;
  top: 0;
  left: 100%;
  width: 4px;
  height: 100%;
    /* color gradient on the right of .cd-features -  visible while scrolling inside the .cd-products-table */
  content: '';
  opacity: 0;
  background-color: transparent;
  background-image: linear-gradient(to right, rgba(0, 0, 0, .06), transparent);
}

@media only screen and (min-width: 570px) {
  .cd-products-table .cd-features {
    width: 210px;
  }
}

.cd-products-table .cd-features .cd-top-info {
    /* models */
  width: 120px;
  cursor: auto;
  background: #fafafa;
}

@media only screen and (min-width: 570px) {
  .cd-products-table .cd-features .cd-top-info {
    width: 210px;
  }
}

.cd-products-table .cd-features-list li {
  font-size: 12px;
  font-weight: bold;
  overflow: scroll;
  height: 120px;
  padding: 25px 20px;
  text-overflow: ellipsis;
  border-style: solid;
  border-color: #e6e6e6;
  border-top-width: 1px;
  border-right-width: 1px;
}

.cd-products-table.scrolling .cd-features::after {
  opacity: 1;
}

.cd-products-table .cd-top-info {
  position: relative;
  width: 150px;
  height: 177px;
  padding: 20px 40px;
  cursor: pointer;
  transition: height .3s;
  text-align: center;
  border-style: solid;
  border-color: #e6e6e6;
  border-right-width: 1px;
  background: #fff;
}

.cd-products-table .cd-top-info::after {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 4px;
    /* color gradient below .cd-top-info -  visible when .cd-top-info is fixed */
  content: '';
  opacity: 0;
  background-color: transparent;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, .06), transparent);
}

.cd-products-table .cd-top-info h3,
.cd-products-table .cd-top-info img {
  transition: -webkit-transform .3s;
  transition: transform .3s;
  transition: transform .3s, -webkit-transform .3s;
}

.cd-products-table .cd-top-info h3 {
  font-size: 14px;
  font-weight: bold;
  padding: 20px 0 10px;
}

.cd-products-table .cd-top-info img {
  display: block;
  max-width: 200px;
  max-height: 150px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  align-self: center;
}

.cd-products-table .cd-top-info .check {
  position: relative;
  z-index: 100;
  width: 16px;
  height: 16px;
  margin: 0 auto 15px;
}

.cd-products-table .cd-top-info .check::after,
.cd-products-table .cd-top-info .check::before {
    /* used to create the check icon and green circle dot - visible when product is selected */
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  content: '';
}

.cd-products-table .cd-top-info .check::before {
  transition: background-color .3s, border-color .3s, -webkit-transform .3s;
  transition: background-color .3s, transform .3s, border-color .3s;
  transition: background-color .3s, transform .3s, border-color .3s, -webkit-transform .3s;
  border: 1px solid #e6e6e6;
    /* green circle dot */
  border-radius: 50%;
  background: #fff;
}

.cd-products-table .cd-top-info .check::after {
  transition: opacity .3s;
  opacity: 0;
    /* check icon */
  background: url(../img/cd-check.svg) no-repeat center center;
  background-size: 24px 24px;
}

@media only screen and (min-width: 570px) {
  .cd-products-table .cd-top-info {
    width: 310px;
    height: 280px;
  }

  .cd-products-table .cd-top-info h3 {
    padding-top: 22px;
  }

  .cd-products-table .cd-top-info .check {
    margin-bottom: 25px;
  }
}

.cd-products-table .product .cd-top-info {
  display: flex;
  flex-direction: column;
}

.cd-products-table .selected .cd-top-info .check::before {
  -webkit-transform: scale(1.5);
  transform: scale(1.5);
  -webkit-animation: cd-bounce .3s;
  animation: cd-bounce .3s;
  border-color: #9dc997;
    /* green circle dot */
  background: #9dc997;
}

.cd-products-table .selected .cd-top-info .check::after {
    /* check icon */
  opacity: 1;
}

@media only screen and (min-width: 560px) {
  .cd-products-table.top-fixed .cd-products-columns > li,
    .cd-products-table.top-scrolling .cd-products-columns > li,
    .cd-products-table.top-fixed .cd-features,
    .cd-products-table.top-scrolling .cd-features {
    padding-top: 160px;
  }

  .cd-products-table.top-fixed .cd-top-info,
    .cd-products-table.top-scrolling .cd-top-info {
    position: fixed;
    top: 0;
    height: 160px;
  }

  .cd-products-table.top-fixed .cd-top-info::after,
    .cd-products-table.top-scrolling .cd-top-info::after {
    opacity: 1;
  }

  .cd-products-table.top-fixed .cd-top-info h3,
    .cd-products-table.top-scrolling .cd-top-info h3 {
    -webkit-transform: translateY(-116px);
    transform: translateY(-116px);
  }

  .cd-products-table.top-fixed .cd-top-info img,
    .cd-products-table.top-scrolling .cd-top-info img {
    -webkit-transform: translateY(-62px) scale(.4);
    transform: translateY(-62px) scale(.4);
  }

  .cd-products-table.top-scrolling .cd-top-info {
    position: absolute;
  }
}

.product-comparator-component {
  position: fixed;
  z-index: 99999;
  bottom: -230px;
  width: 100%;
  height: 230px;
  transition: bottom .2s ease;
  background: rgba(0, 0, 0, .5);
}

.product-comparator-component .product-comparator-container {
  display: flex;
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 20px;
  align-items: center;
}

.product-comparator-component .product-comparator-container .product-comparator-products {
  display: flex;
  margin: 0 auto;
  gap: 40px;
}

.product-comparator-component .product-comparator-container .product-comparator-products .comparator-product {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 150px;
  height: 150px;
  padding: 5px;
  text-align: center;
  background: white;
  justify-content: center;
  align-items: center;
}

.product-comparator-component .product-comparator-container .product-comparator-products .comparator-product .comparator-remove-product {
  position: absolute;
  top: -5px;
  right: -5px;
  padding: 0;
  border: none;
  outline: 0;
  background: none;
}

.product-comparator-component .product-comparator-container .product-comparator-products .comparator-product .comparator-remove-product > i {
  font-size: 20px;
  color: red;
}

.product-comparator-component .product-comparator-container .product-comparator-products .comparator-product .comparator-product-image {
  max-width: 100%;
  max-height: 100%;
  margin: auto 0;
}

.product-comparator-component .product-comparator-container .product-comparator-products .comparator-product .comparator-product-name {
  font-weight: bold;
}

.product-comparator-component .product-comparator-container .product-comparator-products .comparator-product.empty-comparator-slot {
  border: 2px dashed white;
  background: none;
}

.product-comparator-component .product-comparator-container .product-comparator-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-comparator-component .product-comparator-container .product-comparator-actions .comparator-action {
  padding: 10px 15px;
  color: white;
  border: 1px solid white;
  background: transparent;
}

.product-comparator-component .product-comparator-container .product-comparator-actions .comparator-action.submit-comparator {
  border-color: green;
  background: green;
}

.product-comparator-component .product-comparator-container .product-comparator-actions .comparator-action.submit-comparator.submit-disabled,
.product-comparator-component .product-comparator-container .product-comparator-actions .comparator-action.submit-comparator:disabled {
  opacity: .6;
}

.product-comparator-component.product-comparator-open {
  bottom: 0;
}

@media only screen and (min-width: 560px) {
  .no-cssgradients .cd-products-table.top-fixed .cd-top-info,
    .no-cssgradients .cd-products-table.top-scrolling .cd-top-info {
    border-bottom: 1px solid #e6e6e6;
  }
}

.cd-products-wrapper {
  overflow-x: auto;
    /* this fixes the buggy scrolling on webkit browsers - mobile devices only - when overflow property is applied */
  -webkit-overflow-scrolling: touch;
}

.cd-products-columns {
    /* products list wrapper */
  margin-left: 120px;
}

.cd-products-columns::after {
  display: table;
  clear: both;
  content: '';
}

.cd-products-columns .product {
  position: relative;
  float: left;
  width: 150px;
  transition: opacity .3s, visibility .3s, -webkit-transform .3s;
  transition: opacity .3s, visibility .3s, transform .3s;
  transition: opacity .3s, visibility .3s, transform .3s, -webkit-transform .3s;
  text-align: center;
  border: 1px solid #e6e6e6;
  border-right: 0;
  border-left: 0;
}

@media only screen and (min-width: 570px) {
  .cd-products-columns {
    margin-left: 210px;
  }

  .cd-products-columns .product {
    width: 310px;
  }
}

.cd-filtering .cd-products-columns .product:not(.selected) {
  visibility: hidden;
  -webkit-transform: scale(0);
  transform: scale(0);
  opacity: 0;
}

.no-product-transition .cd-products-columns .product.selected {
  transition: opacity .3s, visibility .3s;
}

.cd-filtered .cd-products-columns .product:not(.selected) {
  position: absolute;
}

.cd-features .cd-features-list li,
.cd-products-table .cd-features .cd-top-info {
    /* fixed left column - items */
  font-size: 12px;
  font-weight: bold;
  padding: 25px 10px;
  text-align: left;
}

@media only screen and (min-width: 560px) {
  .cd-features .cd-features-list li,
    .cd-products-table .cd-features .cd-top-info {
    padding: 25px 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
  }
}

@-webkit-keyframes cd-bounce {
  0% {
    -webkit-transform: scale(1);
  }

  60% {
    -webkit-transform: scale(1.6);
  }

  100% {
    -webkit-transform: scale(1.5);
  }
}

@keyframes cd-bounce {
  0% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }

  60% {
    -webkit-transform: scale(1.6);
    transform: scale(1.6);
  }

  100% {
    -webkit-transform: scale(1.5);
    transform: scale(1.5);
  }
}

.cd-table-navigation a {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 15px;
    /* replace text with image */
  overflow: hidden;
  width: 40px;
  height: 60px;
  transition: background-color .3s, opacity .3s, visibility .3s, -webkit-transform .3s;
  transition: background-color .3s, opacity .3s, visibility .3s, transform .3s;
  transition: background-color .3s, opacity .3s, visibility .3s, transform .3s, -webkit-transform .3s;
  -webkit-transform: translateY(55px);
  transform: translateY(55px);
  white-space: nowrap;
  text-indent: 100%;
  color: transparent;
  border-radius: 3px;
  background: rgba(64, 64, 66, .8) url('../img/cd-arrow.svg') no-repeat center center;
}

.cd-table-navigation a.inactive {
  visibility: hidden;
  opacity: 0;
}

.cd-table-navigation a.prev {
  right: auto;
  left: 120px;
  -webkit-transform: translateY(55px) translateX(15px) rotate(180deg);
  transform: translateY(55px) translateX(15px) rotate(180deg);
}

.no-touch .cd-table-navigation a:hover {
  background-color: #404042;
}

@media only screen and (min-width: 560px) {
  .cd-table-navigation a {
    -webkit-transform: translateY(100px);
    transform: translateY(100px);
  }

  .cd-table-navigation a.prev {
    left: 210px;
    -webkit-transform: translateY(100px) translateX(15px) rotate(180deg);
    transform: translateY(100px) translateX(15px) rotate(180deg);
  }

  .top-fixed .cd-table-navigation a {
    position: fixed;
  }

  .top-fixed .cd-table-navigation a,
    .top-scrolling .cd-table-navigation a {
    -webkit-transform: translateY(45px);
    transform: translateY(45px);
  }

  .top-fixed .cd-table-navigation a.prev,
    .top-scrolling .cd-table-navigation a.prev {
    -webkit-transform: translateY(45px) translateX(15px) rotate(180deg);
    transform: translateY(45px) translateX(15px) rotate(180deg);
  }
}
/* --------------------------------

No JS

-------------------------------- */
.no-js .cd-actions {
  display: none;
}

.no-js .cd-products-table .cd-top-info {
  height: 145px;
}

@media only screen and (min-width: 560px) {
  .no-js .cd-products-table .cd-top-info {
    height: 248px;
  }
}

.no-js .cd-products-columns .check {
  display: none;
}
