.mintycomparator {
  margin: 40px 0;
  color: var(--color-brand-indigo, #16006d);
}

.mintycomparator__inner {
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: 0 16px;
}

.mintycomparator__header {
  margin-bottom: 24px;
  text-align: center;
}

.mintycomparator__title {
  margin: 0;
  color: inherit;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
}

.mintycomparator__scroller {
  overflow-x: auto;
  padding-bottom: 8px;
}

.mintycomparator__table {
  width: 100%;
  min-width: max(720px, calc((var(--mintycomparator-cols, 3) + 1) * 180px));
  border-collapse: separate;
  border-spacing: 0;
  background: var(--color-surface, #fff);
}

.mintycomparator__table th,
.mintycomparator__table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(22, 0, 109, 0.1);
  vertical-align: middle;
}

.mintycomparator__table tbody th {
  width: 220px;
  color: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
}

.mintycomparator__table td {
  color: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
}

.mintycomparator__product-heading {
  min-width: 180px;
  text-align: center;
}

.mintycomparator__image-link {
  display: flex;
  width: 100%;
  height: 180px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: #f5f5f5;
}

.mintycomparator__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.mintycomparator__product-name {
  display: block;
  margin-top: 12px;
  color: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.mintycomparator__product-name:hover,
.mintycomparator__product-name:focus {
  color: var(--color-brand-sky, #009fe3);
  text-decoration: none;
}

.mintycomparator__price {
  display: block;
  margin-top: 8px;
  color: var(--color-brand-sky, #009fe3);
  font-size: 14px;
  font-weight: 800;
}

.mintycomparator__table tfoot td {
  text-align: center;
}

.mintycomparator__table .btn {
  white-space: nowrap;
}

@media (max-width: 767px) {
  .mintycomparator {
    margin: 32px 0;
  }

  .mintycomparator__title {
    font-size: 22px;
  }

  .mintycomparator__table {
    min-width: max(640px, calc((var(--mintycomparator-cols, 3) + 1) * 160px));
  }

  .mintycomparator__image-link {
    height: 140px;
  }
}

/* PrettyBlocks product comparator */

.mintyblock-product-comparator {
  overflow: hidden;
  padding: 40px 0;
  color: var(--color-brand-indigo, #16006d);
}

.mintyblock-product-comparator__header {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}

.mintyblock-product-comparator__table {
  display: grid;
  grid-template-columns: repeat(var(--comparator-cols, 3), minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.mintyblock-product-comparator__product {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 0 0 42px;
  border-radius: var(--radius-lg, 20px);
  background: var(--color-surface, #fff);
  color: var(--color-brand-indigo, #16006d);
}

.mintyblock-product-comparator__product--highlighted {
  padding: 14px 14px 42px;
  background: #d7f0ff;
}

.mintyblock-product-comparator__image-link {
  display: flex;
  width: 100%;
  height: 360px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-lg, 20px);
  border: 1px solid var(--color-border, rgba(22, 0, 109, 0.1));
  background: #fff;
}

.mintyblock-product-comparator__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
}

.mintyblock-product-comparator__body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

/* Only the white-bg (non-highlighted) cards need the inset; the
   highlighted card already reserves it via its own card padding. */
.mintyblock-product-comparator__product:not(.mintyblock-product-comparator__product--highlighted) .mintyblock-product-comparator__body {
  margin-top: 14px;
  padding-right: 14px;
  padding-left: 14px;
}

.mintyblock-product-comparator__heading {
  position: relative;
  display: flex;
  height: 56px;
  align-items: center;
  gap: 12px;
  margin: 14px 0 0;
}

.mintyblock-product-comparator__name {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mintyblock-product-comparator__product--highlighted .mintyblock-product-comparator__name {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.08;
}

.mintyblock-product-comparator__badge {
  display: inline-flex;
  min-height: 24px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--color-brand-indigo, #16006d);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.mintyblock-product-comparator__specs {
  flex: 1;
}

.mintyblock-product-comparator__spec {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 36px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(22, 0, 109, 0.08);
  font-size: 12px;
  line-height: 1.2;
}

/* Author `display` values below beat the UA `[hidden] { display: none }`, so
   restore it — the "Avis" row keeps its slot even without reviews (only its
   inner stars / "Pas d'avis" states toggle), avoiding a vertical mismatch
   between columns. */
.mintyblock-product-comparator__spec[hidden],
.mintyblock-product-comparator__rating[hidden],
.mintyblock-product-comparator__rating-empty[hidden] {
  display: none;
}

.mintyblock-product-comparator__spec-label-mobile {
  color: var(--color-brand-indigo, #16006d);
  font-weight: 600;
}

.mintyblock-product-comparator__spec-value {
  color: var(--color-brand-indigo, #16006d);
  font-weight: 500;
  text-align: right;
}

.mintyblock-product-comparator__spec--price {
  margin-top: 16px;
}

.mintyblock-product-comparator__price {
  margin: 0;
  color: var(--color-brand-sky, #009fe3);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  text-align: right;
}

/* "Avis" row: right-aligned stars + review count, matching the price cell. */
.mintyblock-product-comparator__rating {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  grid-column: 2;
  justify-self: end;
}

.mintyblock-product-comparator__stars {
  position: relative;
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 1px;
  color: transparent;
  vertical-align: middle;
}

.mintyblock-product-comparator__stars::before {
  content: "\2606\2606\2606\2606\2606"; /* ☆☆☆☆☆ */
  color: #ffb800;
}

.mintyblock-product-comparator__stars-fill {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
  color: transparent;
}

.mintyblock-product-comparator__stars-fill::before {
  content: "\2605\2605\2605\2605\2605"; /* ★★★★★ */
  color: #ffb800;
}

.mintyblock-product-comparator__rating-count {
  color: var(--color-brand-indigo, #16006d);
  font-size: 12px;
  font-weight: 800;
}

/* "Pas d'avis" placeholder: same right slot as the stars so columns stay
   aligned even when a product has no reviews. */
.mintyblock-product-comparator__rating-empty {
  grid-column: 2;
  justify-self: end;
  color: var(--color-brand-indigo, #16006d);
  font-size: 12px;
  font-weight: 500;
  opacity: 0.6;
}

.mintyblock-product-comparator__switch-btn {
  display: flex;
  flex: 1;
  min-width: 0;
  align-self: stretch;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.mintyblock-product-comparator__product:not(.mintyblock-product-comparator__product--highlighted) .mintyblock-product-comparator__switch-btn {
  padding: 0 12px 0 18px;
  border-radius: 999px;
  background: #f2f2f2;
}

.mintyblock-product-comparator__switch-arrow {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  transform: rotate(90deg);
  transition: transform 200ms ease;
}

.mintyblock-product-comparator__switch-btn[aria-expanded="true"] .mintyblock-product-comparator__switch-arrow {
  transform: rotate(-90deg);
}

.mintyblock-product-comparator__search {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  z-index: 20;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.14);
}

.mintyblock-product-comparator__search-input {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--color-brand-indigo, #16006d);
  font: inherit;
  font-size: 13px;
  outline: none;
}

.mintyblock-product-comparator__search-input::placeholder {
  color: rgba(22, 0, 109, 0.4);
}

.mintyblock-product-comparator__search-results {
  margin: 0;
  padding: 4px 0;
  overflow-y: auto;
  max-height: 200px;
  border-top: 1px solid rgba(22, 0, 109, 0.08);
  border-radius: 0 0 12px 12px;
  list-style: none;
}

.mintyblock-product-comparator__search-result {
  padding: 10px 16px;
  color: var(--color-brand-indigo, #16006d);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.mintyblock-product-comparator__search-result:hover,
.mintyblock-product-comparator__search-result:focus-visible {
  background: #f2f2f2;
  outline: none;
}

.mintyblock-product-comparator__search-header {
  padding: 8px 16px 4px;
  color: rgba(22, 0, 109, 0.4);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.mintyblock-product-comparator__search-empty {
  padding: 10px 16px;
  color: rgba(22, 0, 109, 0.4);
  font-size: 13px;
  line-height: 1.2;
}

.mintyblock-product-comparator .btn {
  margin: 20px auto 0;
}

@media (max-width: 1199px) {
  .mintyblock-product-comparator__table {
    gap: 18px;
  }

  .mintyblock-product-comparator__image-link {
    height: 300px;
  }
}

@media (max-width: 991px) {
  .mintyblock-product-comparator__table {
    display: flex;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
  }

  .mintyblock-product-comparator__product {
    flex: 0 0 min(86vw, 360px);
    scroll-snap-align: start;
  }

  /* Single card: centre it instead of leaving the slider's peek gap on the right. */
  .mintyblock-product-comparator__product:only-child {
    margin-inline: auto;
    scroll-snap-align: center; /* keep it centred if a slight scroll overflow occurs */
  }
}

@media (max-width: 575px) {
  .mintyblock-product-comparator__header {
    margin-bottom: 28px;
  }

  .mintyblock-product-comparator__image-link {
    height: 270px;
  }

  .mintyblock-product-comparator__product--highlighted .mintyblock-product-comparator__name {
    font-size: 22px;
  }
}
