.comparison-table{
  position: relative;
}

.comparison-table p{
  margin: 0;
}

.comparison-table__container{
  display: flex;
  flex-direction: column;
  position: relative;
}

.comparison-table__row{
  display: grid;
}

.comparison-table__cell{
  text-align: center;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.comparison-table__cell svg{
  width: 1rem;
  height: 1rem;
}

@media screen and (min-width: 768px){
  .comparison-table__navigation{
    display: none;
  }

  .mobile{
    display: none;
  }
}

@media screen and (max-width: 767px){

  .comparison-table__container::-webkit-scrollbar {
    display: none;
  }

  .comparison-table{
    padding-bottom: 3rem;
  }

  .comparison-table__container{
    position: relative;
    overflow-x: scroll;
  }

  .comparison-table__mobile-overlay{
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
  }

  .comparison-table__cell{
    width: 150px;
  }

  .comparison-table__navigation{
    position: absolute;
    right: 0;
    bottom: 10px;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
  }

  .comparison-table__navigation > a{
    background-color: var(--secondary-color);
    padding: 0.5rem;
    line-height: 0;
    opacity 1;
    transition: opacity 0.3s ease-out;
  }

  .comparison-table__navigation > a.disabled{
    opacity: 0.5;
    transition: opacity 0.3s ease-out;
  }

  {# Hides the overlaid row headers if the overlay effect is enabled #}
  .comparison-table:has(.comparison-table__navigation) .comparison-table__row > .comparison-table__cell.rows{
    opacity: 0;
  }
}