.indy-comparative-table-2b-widget {
  background-color: #fff !important;
  height: 100%;
  /* important pour centrer verticalement */
}

.indy-comparative-table-2b-widget .table-header,
.indy-comparative-table-2b-widget .table-body {
  width: 100%;
  table-layout: fixed;
  /* Important ! */
  border-collapse: collapse;
  margin-bottom: 0;
}

.indy-comparative-table-2b-widget .table-body-wrapper {
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.indy-comparative-table-2b-widget .table-body-wrapper:not(.expanded) {
  max-height: 800px;
  position: relative;
}

.indy-comparative-table-2b-widget .table-body-wrapper:not(.expanded)::after {
  content: "";
  height: 307px;
  display: block;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0) 0%,
      #ffffff 60%,
      #ffffff 100%);
  position: absolute;
  bottom: 0;
  width: 100%;
}

.indy-comparative-table-2b-widget .table-body-wrapper.expanded {
  max-height: none;
}

/* Fixed column sizes : première colonne = espace restant, les autres fixes */
.indy-comparative-table-2b-widget colgroup col:first-child {
  width: calc(100% - 78px * var(--offer-count));
}

.indy-comparative-table-2b-widget colgroup col:not(:first-child) {
  width: 78px;
}

@media (min-width: 768px) {
  .indy-comparative-table-2b-widget colgroup col:first-child {
    width: calc(100% - 153px * var(--offer-count));
  }

  .indy-comparative-table-2b-widget colgroup col:not(:first-child) {
    width: 153px;
  }
}

@media (min-width: 1024px) {
  .indy-comparative-table-2b-widget colgroup col:first-child {
    width: calc(100% - 224px * var(--offer-count));
  }

  .indy-comparative-table-2b-widget colgroup col:not(:first-child) {
    width: 224px;
  }
}

.indy-comparative-table-2b-widget .table-header {
  position: sticky;
  top: 65px;
  background: #fff;
  z-index: 2;
  box-shadow: 0px 1px 0px rgba(75, 96, 116, 0.12);
}

.indy-comparative-table-2b-widget thead .filler.sticky-label {
  padding-left: 0;
  text-align: left;
  position: relative;
}

.indy-comparative-table-2b-widget thead .filler.sticky-label span {
  font-size: 20px;
  line-height: 24px;
  letter-spacing: -0.4px;
  font-family: "Martina Plantijn", Sans-serif;
  font-weight: 400;
}

@media (min-width: 768px) {
  .indy-comparative-table-2b-widget thead {
    top: 62px;
  }

  .indy-comparative-table-2b-widget thead .filler.sticky-label span {
    font-size: 32px;
    letter-spacing: -0.64px;
    position: absolute;
    bottom: 15px;
    left: 0;
    line-height: 32px;
  }

  .indy-comparative-table-2b-widget thead.stick .price,
  body:not(.choice-2) .indy-comparative-table-2b-widget thead.stick .col-head.premium.double-card .price.double-card.choice-1,
  body.choice-2 .indy-comparative-table-2b-widget thead.stick .col-head.premium.double-card .price.double-card.choice-2 {
    display: none;
  }
}

.indy-comparative-table-2b-widget th,
.indy-comparative-table-2b-widget td {
  background-color: transparent !important;
  border-top: 0px !important;
  border-left: 0px !important;
  border-right: 0px !important;
  border-bottom: 1px solid !important;
  border-color: rgba(75, 96, 116, 0.12) !important;
}

.indy-comparative-table-2b-widget tr:last-child th,
.indy-comparative-table-2b-widget tr:last-child td {
  border-bottom: none !important;
}

.indy-comparative-table-2b-widget .col-row-head {
  width: 100%;
  padding: 16px 15px 16px 0;
  height: 100%;
  /* important pour centrer verticalement */
  vertical-align: middle;
  /* important pour centrer verticalement */
}

/* Col heads */
.indy-comparative-table-2b-widget th.col-head {
  height: 100%;
  /* important pour centrer verticalement */
}

.indy-comparative-table-2b-widget th.col-head .col-head-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.indy-comparative-table-2b-widget .col-head .col-head-img {
  margin-bottom: 10px;
  width: 226px;
}

.indy-comparative-table-2b-widget .col-head .col-title {
  color: #171514;
  text-align: center;
  font-family: "Martina Plantijn", Sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: -0.4px;
}

.indy-comparative-table-2b-widget .col-head .price {
  position: relative;
  width: fit-content;
  margin-inline: auto;
}

.indy-comparative-table-2b-widget .col-head .price .from {
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  position: absolute;
  top: -18px;
}

.indy-comparative-table-2b-widget .col-head .price .offer-amount {
  font-size: 20px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: -0.32px;
}

.indy-comparative-table-2b-widget .col-head .price .currency {
  position: relative;
  top: -11px;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.176px;
  left: 3px;
}

.indy-comparative-table-2b-widget .col-head .price .price-old {
  top: -3px;
  position: absolute;
  font-size: 20px;
  line-height: 32px;
  letter-spacing: -0.32px;
  color: rgba(34, 44, 54, 0.5);
  text-decoration: line-through;
  left: 65px;
  font-weight: 400;
  display: flex;
}

.indy-comparative-table-2b-widget .col-head .price .currency-old {
  font-size: 14px;
  line-height: 24px;
  transform: translateX(2px) translateY(-2px);
  display: inline-block;
}

.indy-comparative-table-2b-widget .col-head .price .offer-detail {
  font-size: 11px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0.176px;
  left: -7px;
  position: relative;
  opacity: 0.5;
}

.indy-comparative-table-2b-widget .col-head a.btn {
  min-width: unset;
}

@media (min-width: 768px) {
  .indy-comparative-table-2b-widget .col-head a.btn {
    width: 123px;
  }
}

@media (min-width: 1024px) {
  .indy-comparative-table-2b-widget .col-head a.btn {
    width: 159px;
  }
}

/* Row heads */
.indy-comparative-table-2b-widget .row-group-title .row-header {
  font-family: "Martina Plantijn", Sans-serif;
  font-weight: 400;
  padding-top: 50px;
  padding-bottom: 25px;
  font-size: 20px;
  line-height: 40px;
  letter-spacing: -0.4px;
}

.indy-comparative-table-2b-widget .row-header .row-title {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: -0.16px;
  margin-right: 12px;
}

.indy-comparative-table-2b-widget .comparative-table.accordion .row-text.content {
  color: rgba(34, 44, 54, 0.8);
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  display: none;
  margin-bottom: 0;
}

/* Cells */
.indy-comparative-table-2b-widget td.col-cell {
  height: 100%;
  /* important pour centrer verticalement */
  vertical-align: middle;
  /* important pour centrer verticalement */
}

.indy-comparative-table-2b-widget .col-cell .flex-wrapper {
  display: flex;
  justify-content: center;
  height: 100%;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.indy-comparative-table-2b-widget .col-cell img {
  display: block;
  margin: 0 auto;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  max-width: none;
}

.indy-comparative-table-2b-widget .col-cell p {
  text-align: center;
  font-size: 12px;
  margin: 0;
}

.indy-comparative-table-2b-widget .col-cell p.light {
  opacity: 0.5;
}

.indy-comparative-table-2b-widget .comparative-table.offer-count-2 .row.switchable .col-cell:nth-child(n + 4):not([class*="switchable"]),
.indy-comparative-table-2b-widget .comparative-table.offer-count-3 .row.switchable .col-cell:nth-child(n + 5):not([class*="switchable"]),
.indy-comparative-table-2b-widget .comparative-table.offer-count-4 .row.switchable .col-cell:nth-child(n + 6):not([class*="switchable"]),
.indy-comparative-table-2b-widget .comparative-table.offer-count-5 .row.switchable .col-cell:nth-child(n + 7):not([class*="switchable"]),
body:not(.choice-2) .indy-comparative-table-2b-widget .col-head.premium.choice-2,
body.choice-2 .indy-comparative-table-2b-widget .col-head.premium.double-card .price.double-card.choice-1,
body:not(.choice-2) .indy-comparative-table-2b-widget .col-head.premium.double-card .price.double-card.choice-2,
body.choice-2 .indy-comparative-table-2b-widget .col-head.premium.double-card .price.double-card:not(.choice-2) {
  display: none;
}

.indy-comparative-table-2b-widget .col-head.premium.double-card,
.indy-comparative-table-2b-widget .col-head.double-card,
body:not(.choice-2) .indy-comparative-table-2b-widget .col-head.premium.double-card .price.double-card.choice-1,
body.choice-2 .indy-comparative-table-2b-widget .col-head.premium.double-card .price.double-card.choice-2 {
  display: table-cell;
}

@media (min-width: 400px) and (max-width: 767px) {
  .indy-comparative-table-2b-widget .row-header {
    min-width: 155px;
  }
}

@media (max-width: 767px) {

  .indy-comparative-table-2b-widget .table-wrapper,
  .indy-comparative-table-2b-widget .table-header,
  .indy-comparative-table-2b-widget .table-body {
    width: 100%;
  }

  .indy-comparative-table-2b-widget .table-body {
    display: block;
  }

  .indy-comparative-table-2b-widget thead .filler.sticky-label {
    display: none;
    width: 0;
    min-width: 0;
    padding: 0;
    border: none;
  }

  .indy-comparative-table-2b-widget .table-header {
    display: block;
    padding-bottom: 10px;
    padding-top: 5px;
    margin-top: 20px;
  }

  .indy-comparative-table-2b-widget .table-header thead {
    display: block;
    width: 100%;
  }

  .indy-comparative-table-2b-widget .table-header colgroup {
    display: none;
  }

  .indy-comparative-table-2b-widget .table-header thead tr {
    display: grid;
    grid-template-columns: repeat(var(--offer-count), minmax(0, 1fr));
    width: 100%;
  }

  .indy-comparative-table-2b-widget .table-header th.col-head {
    display: block;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .indy-comparative-table-2b-widget .col-head.premium.double-card,
  .indy-comparative-table-2b-widget .col-head.double-card {
    display: block;
  }

  .indy-comparative-table-2b-widget .table-body colgroup col:first-child {
    width: 0 !important;
    min-width: 0;
  }

  .indy-comparative-table-2b-widget .table-body colgroup col:not(:first-child) {
    width: calc(100% / var(--offer-count)) !important;
  }

  .indy-comparative-table-2b-widget th.col-head {
    padding: 0;
  }

  .indy-comparative-table-2b-widget .col-head .col-title {
    height: 48px;
    display: flex;
    align-items: flex-end;
  }

  .indy-comparative-table-2b-widget .col-head .btn,
  .indy-comparative-table-2b-widget .col-head .price .price-old,
  .indy-comparative-table-2b-widget .col-head .price .from {
    display: none;
  }

  .indy-comparative-table-2b-widget .col-head .price {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }

  .indy-comparative-table-2b-widget .col-head .price .offer-detail {
    width: 100%;
    display: block;
  }

  .indy-comparative-table-2b-widget .col-head .price .currency {
    font-size: 15px;
    top: unset;
  }

  /*.indy-comparative-table-2b-widget .col-cell .flex-wrapper {
    max-width: 48px;
  }*/

  /* Body rows : label pleine largeur, cellules alignées sur les col-head */
  .indy-comparative-table-2b-widget .table-body tbody {
    display: block;
    width: 100%;
  }

  .indy-comparative-table-2b-widget .table-body tbody tr.row-group-title {
    display: block;
    width: 100%;
  }

  .indy-comparative-table-2b-widget .table-body tbody tr.row-group-title>td {
    display: block;
    width: 100%;
    line-height: 32px;
    letter-spacing: -0.32px;
    font-family: "Suisse Int’l", Sans-serif;
    border-bottom-width: 2px !important;
  }

  .indy-comparative-table-2b-widget .table-body tbody tr.row {
    display: grid;
    grid-template-rows: auto auto;
    grid-template-columns: repeat(var(--offer-count), minmax(0, 1fr));
    width: 100%;
  }

  .indy-comparative-table-2b-widget .row-header {
    padding: 6px 45px 0 0;
    margin-bottom: 16px;
  }

  .indy-comparative-table-2b-widget .table-body tbody tr.row>.col-cell {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .indy-comparative-table-2b-widget .table-body tbody tr.row>.item.col-row-head {
    display: block;
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 16px 0 0 0;
    border-bottom: none !important;
  }

  /* Alignement body ↔ header (--offer-count = colonnes visibles) */
  .indy-comparative-table-2b-widget .table-body tbody tr.row>.col-cell.essential {
    grid-column: 1;
    grid-row: 2;
  }

  .indy-comparative-table-2b-widget .table-body tbody tr.row>.col-cell.plus {
    grid-column: 2;
    grid-row: 2;
  }

  .indy-comparative-table-2b-widget .table-body tbody tr.row>.col-cell.premium {
    grid-column: 3;
    grid-row: 2;
  }

  /* Partage la colonne Premium (IR/IS) */
  .indy-comparative-table-2b-widget .table-body tbody tr.row>.col-cell.premium-choice-2 {
    grid-column: 3;
    grid-row: 2;
  }

  .indy-comparative-table-2b-widget .table-body tbody tr.row>.col-cell.expert-comptable {
    grid-column: 4;
    grid-row: 2;
  }

  .indy-comparative-table-2b-widget .comparative-table.accordion .row-text.content {
    padding-right: 0;
  }
}

@media (min-width: 768px) {
  .indy-comparative-table-2b-widget .col-head .col-title {
    font-size: 25px;
    line-height: 40px;
    letter-spacing: -0.64px;
  }

  .indy-comparative-table-2b-widget .col-head .price .offer-amount {
    font-size: 48px;
    line-height: 48px;
    letter-spacing: -1.152px;
    font-family: "Martina Plantijn", Sans-serif;
    font-weight: 400;
  }

  .indy-comparative-table-2b-widget .col-head .price .currency {
    font-size: 24px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: -0.24px;
    top: -20px;
    font-family: "Martina Plantijn", Sans-serif;
  }

  .indy-comparative-table-2b-widget .col-head .price .offer-detail {
    left: -14px;
  }

  .indy-comparative-table-2b-widget tbody tr:first-child {
    display: none !important;
  }

  .indy-comparative-table-2b-widget .row-group-title .row-header {
    font-size: 32px;
    line-height: 40px;
    letter-spacing: -0.64px;
  }

  .indy-comparative-table-2b-widget .row-header {
    padding: 4px 45px 4px 0;
  }

  .indy-comparative-table-2b-widget .row-header .row-title {
    font-size: 16px;
    line-height: 24px;
  }

  .indy-comparative-table-2b-widget .row-header .badge {
    vertical-align: text-bottom;
  }
}

.indy-comparative-table-2b-widget .comparative-table.accordion .toggle::after {
  content: "";
  background-image: url(/wp-content/themes/hello-child/img/chevron.svg);
  width: 24px;
  height: 24px;
  position: absolute;
  top: 4px;
  right: 12px;
  transition: transform 100ms linear;
  background-size: 20px;
  background-repeat: no-repeat;
  background-position: center;
  transform: rotate(180deg);
}

/* Show more button */
.indy-comparative-table-2b-widget .show-more-wrapper {
  text-align: center;
}

.indy-comparative-table-2b-widget .show-more-wrapper .show-more-link {
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.432px;
}

.indy-comparative-table-2b-widget .show-more-wrapper .show-more-link::after {
  content: "";
  background-image: url(/wp-content/themes/hello-child/img/chevron.svg);
  width: 24px;
  height: 24px;
  transform: rotate(180deg);
  display: inline-block;
  vertical-align: middle;
  margin-left: 18px;
}