/* Commun modale et tabs */
.product-color-chart__color,
.modal-color-chart__color {
    display: flex;
    flex-direction: column;
    border: 1px solid #e6e6e6;
}
.product-color-chart__color__title,
.modal-color-chart__color__title {
    border-top: 1px solid #e6e6e6;
    background-color: #ffffff;
    margin-bottom: 0;
    color: #000000;
    font-weight: 700;
    text-transform: uppercase;
}
.product-color-chart__list,
.modal-color-chart__list {
     display: flex;
     flex-wrap: wrap;
}

.modal-color-chart .modal-header {
  padding: 3rem 1rem 1rem 1rem;
  position: relative;
}

.modal-color-chart .modal-header .btn-help {
  position: absolute;
  top: 0;
  left: 24px;
  border-radius: 0 0 10px 10px;
}
.btn-help {
  padding: 6px 16px;
  border-radius: 10px;
  font-size: 13px;
  text-transform: none;
}

/* Commun variants */
.product-color-chart__btn,
.product-variants-item__btn {
    padding: 9px 12px;
    background-color: #ffffff !important;
    background-image:none !important;
    border: 1px solid #cccccc;
    border-radius: 4px;
    color: #000000;
    font-size: 13px;
    transition:opacity 250ms ease-in-out;
}

.product-color-chart__btn:hover,
.product-variants-item__btn:hover {
     text-decoration: none;
     color: #000000;
     opacity:.5;
}

/* Tabs */
.product-color-chart__btn:hover svg {
    transform: rotate(360deg);
}

.product-color-chart__btn svg {
    margin-top: -4px;
    margin-right: 12px;
    width: 18px;
    height: 18px;
    transition: all .2s ease-in-out;
}

.product-color-chart__list {
     margin-top: 20px;
     display: flex;
     flex-wrap: wrap;
}

.product-color-chart__color {
    width: 132px;
    min-height: 96px;
    margin-bottom: 12px;
    margin-right: 6px;
}

@media screen and (max-width: 339px) {
    .product-color-chart__color {
        flex: 0 0 47%;
        max-width: 47%;
    }
}

@media screen and (min-width: 1337px) {
    .product-color-chart__color:nth-child(7n+0) {
        margin-right: 0;
    }
}

.product-color-chart__color__title {
     padding: 4px 6px;
     font-size: 11px;
}

.product-color-chart__color--more {
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #ffffff;
    padding: 12px;
}

.product-color-chart__color--more p {
    margin-bottom: 0;
}

.product-color-chart__color--more p:first-child {
     color: #000000;
     font-size: 22px;
     font-weight: 700;
}

.product-color-chart__color--more p:last-child {
     font-size: 11px;
     line-height: 1.2;
}

/* Variants */
.product-variants-item__btn {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    text-transform: uppercase;
}
.product-variants-item__btn > span {
    width: 30px;
    height: 17px;
    margin-right: 8px;
}

/* Modal */
.modal-color-chart .modal-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
}

.modal-color-chart .modal-content {
  height: 100%;
  border: 0;
  border-radius: 0;
}

.modal-color-chart .modal-body {
  overflow-y: auto;
  padding-bottom: 120px;
}

.modal-color-chart .modal-header {
    display: block;
    border: 0;
}

.modal-color-chart .modal-title {
    font-size: 26px;
    padding-bottom: 8px;
}
.modal-color-chart .close {
    margin: 0;
    padding: 6px 10px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 400;
    background-color: #e5101d;
    opacity: 1;
    float: none;
    position: absolute;
    top: 0;
    right: 0;
}
@media screen and (min-width: 575px) {
    .modal-color-chart .close {
        font-size: 26px;
        padding: 17px 22px;
    }
}
.modal-color-chart__filters, .product-color-chart__filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.modal-color-chart__filters > div, .product-color-chart__filters > div {
    height: 22px;
    width: 80px;
    position: relative;
}
@media (min-width: 992px) {
  .modal-color-chart__filters > div, .product-color-chart__filters > div {
    height: 42px;
  }
}
.modal-color-chart__filters > div.selected:before {
    font-family: 'Font Awesome 5 Pro';
    font-weight: 300;
    content: '\f00c';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background-color: white;
    border-radius: 100%;
    color: #e5101d;
    box-shadow: 0 0 10px rgba(0,0,0,.15);
}

.modal-color-chart__reset:active {
  box-shadow:none !important;
}

.modal-color-chart__list {
     margin-top: 32px;
     justify-content: center;
}
.modal-color-chart__color {
    width: 203px;
    min-height: 90px;
    margin-bottom: 8px;
    margin-left: 5px;
    margin-right: 5px;
    position: relative;
}
@media screen and (max-width: 457px) {
    .modal-color-chart__color {
        flex: 0 0 46%;
        max-width: 46%;
    }
}
@media screen and (min-width: 458px) {
    .modal-color-chart__color {
        min-height: 155px;
        margin-bottom: 24px;
    }
}
.modal-color-chart__color:hover {
     cursor: pointer;
}

.modal-color-chart__color.selected:before, .modal-color-chart__color:hover:before {
    font-family: 'Font Awesome 5 Pro';
    font-weight: 300;
    content: '\f00c';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background-color: white;
    border-radius: 100%;
    color: #e5101d;
    box-shadow: 0 0 10px rgba(0,0,0,.15);
}

@media screen and (min-width: 458px) {
    .modal-color-chart__color.selected:before, .modal-color-chart__color:hover:before {
        font-size: 23px;
        width: 50px;
        height: 50px;
        line-height: 50px;
    }
}

.modal-color-chart__color__colors {
    display: none;
    background-color: rgba(255,255,255,.8);
    font-size: 11px;
    color: #2d2d2d;
    margin: 2px 2px 16px 2px;
    padding: 4px;
}

.modal-color-chart__color.selected .modal-color-chart__color__colors {
  display: inline;
}

.modal-color-chart__color__colors span {
    display: block;
}

.modal-color-chart__color__title {
    padding: 4px 35px 4px 6px;
    /*font-size: 12px;*/
    font-size: 10px;
    margin-top: auto;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

.modal-color-chart__color__title > span {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #043E85;
  color: #ffffff;
  width: 20px;
  height: 20px;
  line-height: 1;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media screen and (min-width: 458px) {
    .modal-color-chart__color__title {
        padding: 8px 35px 8px 10px;
        /*font-size: 14px;*/
    }
}

/* Images d'ambiance */
.modal-color-chart__ambiance {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  box-shadow: 0px -10px 15px 0px rgba(0,0,0,0.1);
  z-index: 10;
}
.modal-color-chart__ambiance .btn-simulation {
  transition: all .2s ease-in-out;
  text-decoration: none;
}
.modal-color-chart__ambiance .btn-simulation:before {
  font-family: 'Font Awesome 5 Pro';
  font-weight: 300;
  font-size: 15px;
  content: "\f302";
  margin-right: 0.5rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  line-height: 1;
  text-rendering: auto;
}
.modal-color-chart__ambiance .btn-simulation.icon-hide {
/*  color: #ffffff;
  text-shadow: 0 0 3px rgba(0,0,0,.7);*/
  box-shadow: none !important;
}
.modal-color-chart__ambiance .btn-simulation.icon-hide:before {
  content: "\f070";
}
.modal-color-chart__ambiance__carousel {
  /*margin: -56px -16px 0;*/
  margin: 0 -16px 0;
  position: relative;
}
.modal-color-chart__ambiance__carousel:after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 32%;
  content: '';
  background: linear-gradient(transparent, #ffffff);
  z-index: 1;
}
.modal-color-chart__ambiance__carousel .slick__nuancier:not(.slick-initialized) {
  display: none;
}
.modal-color-chart__ambiance .btn-simulation,
.modal-color-chart__ambiance .btn-choose {
  position: relative;
  z-index: 1;
}
.modal-color-chart__ambiance .slick-arrow {
  border: 0;
}
.modal-color-chart__ambiance .slick-prev {
  background: linear-gradient(90deg, rgba(0,0,0,.6), transparent);
  padding-right: 25px !important;
}
.modal-color-chart__ambiance .slick-next {
  background: linear-gradient(-90deg, rgba(0,0,0,.6), transparent);
  padding-left: 25px !important;
}
.modal-color-chart__ambiance .slick-arrow i,
.modal-color-chart__ambiance .slick-arrow svg {
  background: transparent;
  color: #ffffff !important;
  box-shadow: none;
}

/* Masquage du chat et du bouton choisir sur la page de visualisation du nuancier */
body#module-ukoonuancier-displaynuancier #chat-widget-container,
body#module-ukoonuancier-displaynuancier .btn-choose {
  display: none;
}

/* Listing des nuanciers */
.list-charts {}
.list-chart__item:hover .list-chart__img {
  transform:scale(1.1);
}
.list-chart__img-container {
  overflow: hidden;
  position:relative;
  padding-bottom:62.58%;
  background-color:var(--light, #F2F5F9);
}
.list-chart__img-container.rc--lazyload .list-chart__spinner {
  display: none !important;
}
.list-chart__spinner {
  position: absolute;
  top:0;
  left:0;
  width: 100%;
  height:100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color:var(--primary, #043E85);
}
.list-chart__img {
  position: absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  object-fit: cover;
  transition:transform 250ms ease-in-out;
}
.list-chart__content {
  display: flex;
  flex-direction: column;
}
@media (max-width: 767px) {
  .list-chart__content {
    padding:.625rem;
  }
}
.list-chart__title {
  line-height:1;
}
@media (max-width: 767px) {
  .list-chart__title {
    font-size:.875rem;
  }
}
.list-chart__link {
  display: inline-block;
  margin-top:auto;
}
.list-chart__link:hover {
  text-decoration: none !important;
}
@media (max-width: 767px) {
  .list-chart__link {
    font-size:.875rem;
  }
}

/* Fancybox images d'ambiance */
.fancybox-image {
  background-color: #ffffff;
}
