/**
 * Copyright since 2007 PrestaShop SA and Contributors
 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License version 3.0
 * that is bundled with this package in the file LICENSE.md.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/AFL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * @author    PrestaShop SA and Contributors <contact@prestashop.com>
 * @copyright Since 2007 PrestaShop SA and Contributors
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
 */
#cp-container,
.cp-container h2,
.cp-container p,
.cp-search {
  text-align: center;
}

.cp-search {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  margin: 1em 0 2em;
  max-width: 400px;
  position: relative;
  width: 100%;
}

.cp-empty {
  color: #777;
  font-size: .9rem;
  margin: 0 auto 1rem;
  max-width: 420px;
}

.cp-header {
  margin-bottom: 1.5em;
}

.cp-count {
  color: #555;
  font-size: 1rem;
  margin: .5em 0 0;
}

.cp-input {
  border: 1px solid #ddd;
  border-radius: 100px;
  max-width: 500px;
  padding: 5px 0 7px 20px;
  width: 500px;
}

.cp-narrow .cp-input {
  position: relative;
}

.modal-dialog .cp-input {
  max-width: 300px;
  width: 300px;
}

.cp-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.cp-clear {
  color: #777;
  position: absolute;
  right: 18px;
}


.cp-color-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  list-style: none;
  margin: 0 auto;
  padding: 0;
}

.cp-color-card,
.cp-color,
.cp-combinations {
  font-size: .92em;
}

.cp-color-card {
  align-items: stretch;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 18px 35px rgba(15, 23, 42, .08);
  cursor: pointer;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(120px, 160px) 1fr;
  padding: 20px 24px;
  position: relative;
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease;
}

.cp-color-card:hover,
.cp-color-card.cp-active {
  box-shadow: 0 22px 45px rgba(15, 23, 42, .16);
  transform: translateY(-4px);
}

.cp-card-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cp-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  grid-column: 1 / -1;
}

.cp-card-heading {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  justify-content: space-between;
}

.cp-name {
  color: #111827;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  grid-column: 1 / -1;
}

.cp-code {
  color: #64748b;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.cp-preview {
  background-position: bottom;
  background-repeat: no-repeat;
  background-size: cover;
  height: 35px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  width: 100%;
  grid-column: 1 / -1;
}

.cp-preview::after,
.cp-preview::before {
  content: '';
  left: 16px;
  right: 16px;
  border-radius: 999px;
  height: 10px;
  position: absolute;
  background: rgba(255,255,255,.45);
}

.cp-preview::after {
  bottom: 18px;
}

.cp-preview::before {
  top: 18px;
}

.cp-narrow .cp-preview {
  height: 70px;
}

.cp-preview i {
  align-items: center;
  background: rgba(15, 23, 42, .7);
  border-radius: 999px;
  color: #fff;
  display: flex;
  font-size: 18px;
  height: 26px;
  justify-content: center;
  position: absolute;
  right: 10px;
  top: 5px;
  width: 26px;
  z-index: 1;
  opacity: 0;
  transition: opacity .2s ease;
}

.cp-preview.cp-white i {
  color: #111;
  background: rgba(255,255,255,.85);
}

.cp-active .cp-preview i {
  opacity: 1;
}

.cp-price-badge {
  background: #111827;
  border-radius: 999px;
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  padding: 4px 12px;
  position: absolute;
  right: 16px;
  top: 16px;
  text-transform: uppercase;
}

.cp-rating {
  align-items: center;
  color: #374151;
  display: inline-flex;
  font-size: .85em;
  gap: .4em;
  justify-content: flex-start;
  margin-top: .2em;
}

.cp-rating-stars {
  background: #eee;
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
  width: 70px;
}

.cp-rating-fill {
  background: #f3c200;
  display: block;
  height: 100%;
  width: 0;
}

.cp-rating-value {
  font-weight: 600;
}

.cp-rating-count {
  color: #888;
}

.cp-icon-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
  list-style: none;
  margin: .4em 0 0;
  padding: 0;
  grid-column: 1 / -1;
}

.cp-icon-list li {
  list-style: none;
}


.cp-icon-pill {
  align-items: center;
  border: none;
  border-radius: 999px;
  color: #0f172a;
  cursor: pointer;
  display: inline-flex;
  font-size: .75rem;
  font-weight: 600;
  gap: 6px;
  height: 30px;
  justify-content: center;
  letter-spacing: .03em;
  text-transform: none;
  background: transparent;
}

.cp-icon-pill img {
  max-height: 18px;
  width: auto;
}

.cp-icon-pill--opacity {
  color: #0d4c8c;
}

.cp-icon-pill--lightfastness {
  color: #8a5a00;
}

.cp-icon-pill--finish {
  color: #9d174d;
}

.cp-icon-pill--permanence {
  color: #166534;
}

.cp-icon-pill--vegan {
  color: #047857;
}

.cp-icon-pill {
  position: relative;
}

.cp-tooltip-bubble {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translate(-50%, -6px);
  background: #111827;
  color: #fff;
  font-size: .78rem;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity .16s ease, transform .16s ease;
  pointer-events: none;
  z-index: 30;
}

.cp-tooltip-bubble::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 100%;
  border: 6px solid transparent;
  border-bottom-color: #111827;
}

.cp-icon-pill:focus-visible .cp-tooltip-bubble,
.cp-icon-pill:hover .cp-tooltip-bubble {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.cp-load-more {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 999px;
  color: #444;
  cursor: pointer;
  font-size: .9rem;
  margin: 1.5rem auto 0;
  padding: .65rem 2.5rem;
}

.cp-load-more:hover {
  border-color: #bbb;
  color: #111;
}

.cp-lazy-hidden {
  display: none !important;
}

.cp-zoom {
  align-items: center;
  display: none;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 5000;
}

.cp-zoom.cp-open {
  display: flex;
}

.cp-zoom-backdrop {
  background: rgba(0, 0, 0, .6);
  inset: 0;
  position: absolute;
}

.cp-zoom-dialog {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
  max-width: 480px;
  padding: 20px;
  position: relative;
  width: 90%;
  z-index: 1;
}

.cp-zoom-close {
  background: transparent;
  border: none;
  color: #444;
  font-size: 1.5rem;
  position: absolute;
  right: 12px;
  top: 6px;
}

.cp-zoom-texture {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 12px;
  height: 260px;
  margin-bottom: 15px;
  width: 100%;
}

.cp-zoom-name {
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
}

#cp-combinations {
    grid-column: 1 / -1;
}

.cp-icon-list li:nth-child(2) .cp-icon-pill {
    width: 80px;
}

@media (max-width: 640px) {
  .cp-color-card {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .cp-price-badge {
    right: 12px;
    top: 12px;
  }
}

.cp-combinations {
  border-radius: 4px;
  margin: 10px 0 20px;
  max-width: 100%;
  padding: 20px;
  position: relative;
  width: 100%;
  min-width: 100%;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 35px rgba(15, 23, 42, .08);
}

.cp-combinations .cp-close {
  position: absolute;
  right: 10px;
  top: 10px;
}

.cp-combinations h3 {
  margin-bottom: 20px;
  text-align: left;
}

.cp-combinations-container {
  display: flex;
}

.cp-combinations .cp-color-preview {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  border-radius: 25px;
  border: 1px solid rgba(0,0,0,.1);
  display: inline-block;
  margin-right: 20px;
  height: 160px;
  width: 160px;
}

.cp-combinations .cp-table {
  flex: 1;
}

.cp-combinations table {
  width: 100%;
}

.cp-combinations th,
.cp-combinations td {
  padding: 6px;
}

.cp-combinations tbody tr {
  border-top: 1px solid #ddd;
}

.cp-old-price {
  color: #777;
  margin-right: 6px;
  text-decoration: line-through;
}

.cp-add-to-cart {
  align-items: center;
  display: flex;
  justify-content: flex-end;
}

.cp-quantity {
  margin-right: 10px;
}

.cp-quantity input {
  -moz-appearance: textfield;
  height: 40px;
  padding: 2px 2px 2px 6px;
  width: 60px;
}

.cp-quantity input::-webkit-outer-spin-button,
.cp-quantity input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.cp-narrow table {
  table-layout: fixed;
}

.cp-narrow .cp-add-to-cart-column {
  width: 160px;
}

.cp-narrow .cp-add i {
  margin: 0;
}

.cp-narrow .cp-color-preview,
.cp-narrow .cp-add span {
  display: none;
}

@media (max-width: 1199px) {
  .add-to-cart {
    font-size: 0;
    text-align: center;
  }

  .btn-primary .shopping-cart {
    margin: 0;
    padding: 0;
  }
}

@media (max-width: 991px) {
  .cp-nav-prev {
    left: -16px;
  }

  .cp-nav-next {
    right: -16px;
  }

  .cp-combinations {
    border: 0;
    padding: 20px 0 0;
  }

  .cp-combinations-container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
  }

  .cp-combinations .cp-color-preview {
    display: block;
    margin: 0 auto;
  }

  .cp-combinations h3 {
    margin-top: 19px;
    padding: 0;
    text-align: center;
  }

  .cp-combinations th,
  .cp-combinations td {
    align-items: center;
    display: flex;
    padding: 0 10px;
    text-align: left;
    width: 100%;
  }

  .cp-combinations th {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cp-combinations td:last-child {
    align-items: baseline;
    border-bottom: 0;
    flex-direction: row;
    padding-right: 0;
  }

  .cp-combinations tbody tr {
    padding: 0;
  }

  .cp-table table {
    border-top: 0;
  }

  .cp-table thead {
    display: none;
  }

  .cp-table tr {
    border-radius: 5px;
    border: 1px solid #ddd;
    display: flex;
    flex-wrap: wrap;
    margin: 10px 0;
  }

  .cp-table td:nth-of-type(1):before { content: "Contain"; }
  .cp-table td:nth-of-type(2):before { content: "Price"; }
  .cp-table td:nth-of-type(3):before { content: "Reference"; }
  .cp-table td:nth-of-type(4):before { content: "Available"; }
  .cp-table td:nth-of-type(5):before { content: "Quantity"; }

  .cp-table td:nth-of-type(1):before,
  .cp-table td:nth-of-type(2):before,
  .cp-table td:nth-of-type(3):before,
  .cp-table td:nth-of-type(4):before,
  .cp-table td:nth-of-type(5):before {
    display: inline-block;
    font-weight: bold;
    line-height: 33px;
    margin-right: auto;
    min-height: 33px;
    text-align: left;
    width: 50%;
  }

  .cp-table td:nth-of-type(5):before {
    margin-bottom: auto;
    margin-top: 0;
  }

  .cp-table td:nth-child(2n) {
    background: #eee;
    border: 0;
  }

  .cp-form {
    display: inline-flex;
    margin: 10px 10px 0;
  }

  .cp-add-to-cart {
    flex-direction: row;
    margin: 0 0 10px;
    width: 100%;
  }

  .cp-quantity {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 0 auto 0 0;
    text-align: center;
  }

  .cp-table .add-to-cart {
    margin-left: 10px;
  }
}

@media (max-width: 767px) {
  .cp-search {
    margin: 1em auto 2em;
    max-width: 500px;
    position: relative;
    text-align: center;
    width: 100%;
  }

  .cp-input {
    width: 100%;
  }

  .cp-color-list {
    justify-content: center;
    margin: auto;
    text-align: center;
  }

  .cp-color {
    display: block;
    max-width: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: auto;
  }

  .cp-preview {
    width: 40px;
  }

  .cp-combinations-container {
    flex-direction: column;
  }

  .cp-combinations {
    margin: 10px auto 20px;
    padding: 20px 0 0;
  }

  .cp-combinations .cp-color-preview {
    display: block;
    margin: 0 auto 20px;
  }

  .cp-combinations .cp-table {
    display: block;
    width: 100%;
  }

  .cp-combinations table {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    width: auto;
  }

  .cp-combinations thead,
  .cp-combinations th {
    margin: auto;
    text-align: center;
  }

  .cp-combinations tbody tr {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    padding: 20px;
    text-align: center;
  }

  .cp-combinations th,
  .cp-combinations td {
    display: block;
    max-width: 100%;
  }

  .cp-combinations td:last-child {
    display: flex;
    margin: auto;
    text-align: center;
  }
}

.cp-hidden {
  display: none;
}
