/**
 * NOTICE OF LICENSE.
 *
 * ---------------------------------------------------
 *
 *  @author    : CD Presta <cdpresta@gmail.com>
 *  @copyright : 2016-2026
 *  @license   : Commercial License
 *
 *  @version   : 2.8.1
 * ---------------------------------------------------
 */
#cdpcp-fake-miniatures {
  display: none;
}

.cdpcp {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 10;
  left: auto;
  display: none;
  white-space: nowrap;
  height: auto;
  min-height: 0;
  padding: 1rem;
  color: #fff;
  background: var(--bs-primary);
  border-radius: 12px;
  opacity: 1;
  transition: var(--bs-transition-default);

  body.sticky-up & {
    bottom: 3.5rem;
  }
}

.cdpcp--visible {
  display: block;
}

.cdpcp > p {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.cdpcp > a {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 500;
  text-decoration: underline;
  color: #fff;
}

.cdpcp > a:hover,
.cdpcp > a:focus {
  color: #fff;
  text-decoration: none;
}

@media (max-width: 575px) {
  .cdpcp {
    right: 16px;
    bottom: 16px;
    max-width: calc(100vw - 32px);
  }
}

.cdpcp * {
  box-sizing: border-box;
}

.cdpcp-compare {
  padding: 13px 19px 0;
}

.cdpcp-compare__button {
  font-weight: 600;
  color: #777676;
  cursor: pointer;
}

.cdpcp-compare__button:hover {
  color: #000;
}

.cdpcp-compare__button:before {
  content: "\f067";
  display: inline-block;
  font-family: "FontAwesome";
  margin-right: 3px;
}

.cdpcp-compare__button.checked:before {
  content: "\f068";
}

.cdpcp-compare-now {
  margin: 1rem 0;
}

.cdpcp-compare-btn--blacklisted {
  visibility: hidden !important;
}

.cdpcp-compare-btn--above-list {
  margin-bottom: 0.5rem !important;
}

.cdpcp-compare-btn--below-list {
  margin-bottom: 1.5rem !important;
}

.cdpcp-compare-btn--add .cdpcp-compare-btn__text--add,
.cdpcp-compare-btn--add .cdpcp-compare-btn__icon--add,
.cdpcp-compare-btn--remove .cdpcp-compare-btn__text--remove,
.cdpcp-compare-btn--remove .cdpcp-compare-btn__icon--remove,
.cdpcp-compare-btn--loading .cdpcp-compare-btn__icon--loading {
  display: inline-block;
}

.cdpcp-compare-btn__text,
.cdpcp-compare-btn__icon,
.cdpcp-compare-btn--loading .cdpcp-compare-btn__icon--add,
.cdpcp-compare-btn--loading .cdpcp-compare-btn__icon--remove {
  display: none;
}

.cdpcp-compare-btn--loading .cdpcp-compare-btn__icon {
  animation: spin 2s infinite linear;
}

.cdpcp-compare-modal__dialog {
  max-width: 95%;
  width: 1200px;
}

.cdpcp-share-modal__dialog {
  max-width: 95%;
  width: 430px;
}

.cdpcp-compare-modal__dialog .modal-body {
  padding: 25px;
}

.cdpcp-highlight-btn .highlight-btn__icon--active,
.cdpcp-highlight-btn.active .highlight-btn__icon--inactive {
  display: none;
}

.cdpcp-highlight-btn.active .highlight-btn__icon--active {
  display: inline-block;
}

/* ============================================================================
   COMPARE TABLE
   ============================================================================ */
.cdpcp-table-card {
  margin-top: 2rem;
}

@media only print {
  .product-miniature__form,
  .cdpcp-saved-comparison-msg {
    display: none;
  }
}

.cdpcp-table-wrapper {
  -webkit-overflow-scrolling: touch;
  padding: 1px;
  /* Ensures outlines on table rows don't bleed out of container */
  transform: translateZ(0px);
  /* Fixed -webkit-overflow-scrolling in certain versions of iOS Safari*/
}

@media only print {
  .cdpcp-table-wrapper {
    overflow: hidden !important;
  }
}

.cdpcp-table-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

@media (max-width: 575.98px) {
  .cdpcp-table-actions {
    flex-direction: column-reverse;
  }

  .cdpcp-table-actions .btn {
    width: 100%;
  }
}

@media only print {
  .cdpcp-table-actions {
    display: none !important;
  }
}

.cdpcp-table {
  page-break-inside: auto;
  table-layout: fixed;
}

.cdpcp-table thead {
  display: table-header-group;
}

.cdpcp-table__feature-cell--name,
.cdpcp-table__header-cell--empty {
  overflow: hidden;
  text-overflow: ellipsis;
  width: 10rem;
}

@media (max-width: 767px) {
  .cdpcp-table__header-cell--empty {
    display: none !important;
  }
}

.cdpcp-table__header-cell--product {
  width: 174px;
  background-color: var(--bs-body-bg);
  border: 1px solid transparent;
  position: relative;
}

.cdpcp-table__header-cell--product:before {
  position: absolute;
  inset: -1px;
  content: "";
  border: 1px solid #333333;
  border-top-left-radius: 0.75rem;
}

.cdpcp-table__header-cell--product ~ .cdpcp-table__header-cell--product:before {
  border-top-left-radius: 0;
}

.cdpcp-table__header-cell--product:last-child:before {
  border-top-right-radius: 0.75rem;
}

@media only print {
  .cdpcp-table__header-cell--product {
    width: auto;
  }
}

.cdpcp-table__cell--current-product {
  background: rgba(255, 235, 59, 0.05);
}

/* More specific to override default theme */
.cdpcp-table__header-cell.cdpcp-table__header-cell--product {
  vertical-align: top;
}

.cdpcp-table__product-inner {
  position: relative;
}

.cdpcp-table__delete {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
  padding: 12px;
  color: #fa5353;
  border: 0;
  background: none;
  transition: var(--bs-transition-default);
}

.cdpcp-table__delete:hover {
  color: #000;
}

.cdpcp-table__delete svg {
  width: 24px;
  height: 24px;
}

@media only print {
  .cdpcp-table__delete {
    display: none;
  }
}

.cdpcp-table__product-link {
  display: block;
}

.cdpcp-table__img {
  padding: 42px 13px;
  overflow: hidden;
  background-color: var(--bs-white);
  border-radius: 8px;
  margin-bottom: 1rem;
}

.cdpcp-table__name {
  height: calc(1.25rem * 2);
  overflow: hidden;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--bs-white);
  text-overflow: ellipsis;
}

.cdpcp-table__add-cart {
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
}

.cdpcp-table__variants > * {
  position: static;
  justify-content: center;
}

@media only print {
  .cdpcp-table__quickview,
  .cdpcp-table__variants,
  .cdpcp-table__add-cart {
    display: none !important;
  }
}

.cdpcp-table__name {
  text-align: center;
}

/* Remove space from last child element of the description */
.cdpcp-table__desc > *:last-child {
  margin-bottom: 0;
}

.cdpcp-table__feature-row {
  outline: 1px solid transparent;
  page-break-inside: avoid;
  page-break-after: auto;
  transition: outline 0.3s;
}

.cdpcp-table__feature-cell {
  text-align: center;
  position: relative;
}

.cdpcp-table__feature-cell--name {
  color: #fff;
  font-weight: 400;
}

.cdpcp-table__prices {
  position: relative;
}

.cdpcp-table__prices > .price,
.cdpcp-table__prices > .regular-price {
  display: inline-block;
}

.cdpcp-table .discount-percentage {
  background: #f39d72;
  box-shadow: 2px 2px 11px 0px rgba(0, 0, 0, 0.1);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0.4375rem;
  min-height: 1.875rem;
  min-width: 3.125rem;
  padding: 0.3125rem 0.4375rem;
  text-transform: uppercase;
  z-index: 2;
}

.cdpcp-table .regular-price {
  color: #acaaa6;
  font-size: 0.875rem;
  text-decoration: line-through;
}

.cdpcp-cart-modal .cdpcp-cart-modal__dialog {
  margin: 0 auto;
  max-width: 100%;
  width: 22rem;
}

.cdpcp-cart-modal .modal-content,
.cdpcp-cart-modal .modal-body {
  min-height: 0;
}

.cdpcp-social-block {
  border-radius: 4px;
  cursor: pointer;
  margin: 0 auto;
  padding: 10px;
  text-align: center;
  transition: background 0.3s;
  width: 150px;
}

.cdpcp-social-block:hover {
  background: rgba(0, 0, 0, 0.1);
}

.cdpcp-print-logo {
  max-height: 200px;
  max-width: 200px;
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(359deg);
  }
}

@media (max-width: 767.98px) {
  #cdpcp-table {
    width: 100% !important;
    table-layout: fixed !important;
  }

  #cdpcp-table tbody tr th,
  #cdpcp-table tbody tr td {
    border-radius: 0;
  }

  #cdpcp-table tbody tr:first-child th:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
  }

  #cdpcp-table tbody tr:last-child td:nth-child(2) {
    border-bottom-left-radius: 12px;
  }

  #cdpcp-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
  }

  #cdpcp-table > thead > tr,
  #cdpcp-table > tbody > tr.cdpcp-table__feature-row {
    display: grid;
    grid-template-columns: repeat(var(--products), minmax(174px, 1fr));
    width: 100%;
  }

  #cdpcp-table .cdpcp-table__header-cell--empty {
    display: none;
  }

  #cdpcp-table .cdpcp-table__header-cell--product {
    display: block;

    width: auto !important;
    min-width: 0;
    max-width: none;
  }

  .cdpcp-table__header-cell--product:before {
    position: absolute;
    inset: -1px;
    content: "";
    border: 1px solid #333333;
    border-bottom-left-radius: 0.75rem;
  }

  .cdpcp-table__header-cell--product
    ~ .cdpcp-table__header-cell--product:before {
    border-bottom-left-radius: 0;
  }

  .cdpcp-table__header-cell--product:last-child:before {
    border-bottom-right-radius: 0.75rem;
  }

  #cdpcp-table > tbody {
    display: block;
    margin-top: 32px;
    width: 100%;
  }

  #cdpcp-table > tbody > tr.cdpcp-table__feature-row {
    grid-template-columns: repeat(var(--products), minmax(174px, 1fr));
  }

  #cdpcp-table
    > tbody
    > tr.cdpcp-table__feature-row
    > .cdpcp-table__feature-cell--name {
    grid-column: 1 / -1;
    grid-row: 1;

    width: 100% !important;
    min-width: 0;
  }

  #cdpcp-table
    > tbody
    > tr.cdpcp-table__feature-row
    > td.cdpcp-table__feature-cell {
    position: relative;
    grid-row: 2;
    width: auto !important;
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
  }

  #cdpcp-table
    > tbody
    > tr.cdpcp-table__feature-row
    > td.cdpcp-table__feature-cell:nth-child(n + 3):after {
    content: "";
    position: absolute;
    top: 0.75rem;
    bottom: 0.75rem;
    left: 0;
    width: 1px;
    background: var(--bs-secondary);
  }
}

#module-cdproductcomparisonplus-compare .page-header,
#module-cdproductcomparisonplus-compare .page-content {
  width: 1126px;
  max-width: 100%;
  margin: 0 auto;
}

[class^="cdpcp-icon-"],
[class*=" cdpcp-icon-"] {
  pointer-events: none;
}

@media only screen {
  .cdpcp-highlight
    .cdpcp-table__feature-cell:not(.cdpcp-table__feature-cell--name) {
    box-shadow: none;
    background: #1b1a1b;
    border: 0;
  }

  .cdpcp-highlight
    .cdpcp-table__feature-cell:not(.cdpcp-table__feature-cell--name):before {
    content: "";
    position: absolute;
    inset: -1px;
    border: 1px solid transparent;
    background: linear-gradient(180deg, #812cf7 0%, #a959b9 100%) border-box;
    -webkit-mask:
      linear-gradient(#fff 0 0) padding-box,
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
  }

  /* Ukrywamy pionowe ramki między produktami */
  .cdpcp-highlight
    .cdpcp-table__feature-cell:not(.cdpcp-table__feature-cell--name):not(
      :last-child
    ):before {
    border-right-width: 0;
  }

  .cdpcp-highlight .cdpcp-table__feature-cell:nth-child(n + 3):before {
    border-left-width: 0;
  }
}

@media only print {
  /* Wymusza drukowanie teł - w dialogu druku Chrome zaznacz też "Grafika tła" */
  .cdpcp-table-wrapper,
  .cdpcp-table,
  .cdpcp-table * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Wszystko na białym tle, tekst czarny */
  .cdpcp-table,
  .cdpcp-table > :not(caption) > * > * {
    color: #000 !important;
    background-color: #fff !important;
    background-image: none !important;
    box-shadow: none !important;
    --bs-table-color: #000;
    --bs-table-bg: #fff;
    --bs-table-striped-color: #000;
    --bs-table-striped-bg: #e8e8e8;
  }

  /* Co drugi wiersz lekko szary */
  .cdpcp-table.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: #e8e8e8 !important;
  }

  .cdpcp-table-card,
  .cdpcp-table__header-cell--product,
  .cdpcp-table__img,
  .cdpcp-table__name,
  .cdpcp-table__feature-cell--name,
  .page-header,
  .product-miniature,
  .product-miniature__inner,
  .product-miniature__bottom,
  .product-miniature__infos,
  .product-miniature__infos__bottom {
    color: #000 !important;
    background-color: #fff !important;
  }

  .page-title,
  .product-miniature__title,
  .product-miniature__price,
  .product-miniature__regular-price,
  .product-miniature__short,
  .cdpcp-table__name,
  .cdpcp-table__feature-cell--name,
  .cdpcp-table__prices,
  .cdpcp-table__prices * {
    color: #000 !important;
  }

  .cdpcp-table__header-cell--product:before {
    border-color: #ccc !important;
  }
}
