.comparison-table__wrapper {
  width: 100%;
  max-width: 80vw;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 20px 10px;
  text-align: left;
  vertical-align: top;
}

.comparison-table p {
  margin: 0;
}

.comparison-table th {
  border-bottom: 2px solid #ccc;
  font-weight: 500;
  font-size: 1.1rem;
}

.comparison-table tbody tr:nth-child(even) {
  background: #f5f5f5;
}

.comparison-table__logo {
  max-width: 250px;
  max-height: 120px;
  margin-bottom: 5px;
}

.comparison-table__company-name {
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0 0 4px;
}

.comparison-table__license,
.comparison-table__start-year {
  font-size: 0.9rem;
  margin: 0;
}

table .comparison-table__rating {
  margin-top: -9px;
}

.comparison-table__rating span {
  color: #0a63b7;
  font-size: 1.7rem;
}

.comparison-table__total-reviews {
  font-size: 14px;
  font-style: italic;
}

td[data-label="Claimed Profile"] {
  text-align: center;
}

.comparison-table__link {
  display: block;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: #0a63b7;
  padding: 15px 15px;
  border-radius: 5px;
  border: 2px solid #0a63b7;
  margin: 3px auto 9px;
  transition: all .2s;
  white-space: nowrap;
}

.comparison-table__link:hover {
  opacity: 0.8;
}

.comparison-table__link--ghost {
  background: transparent;
  color: #0a63b7;
}

@media screen and (max-width: 1600px) {
  .comparison-table__wrapper {
    max-width: 100%;
  }
}

@media screen and (max-width:1260px) {
  .comparison-table,
  .comparison-table th {
    font-size: 0.9rem;
  }

  .comparison-table__logo {
    max-width: 180px;
  }

  .comparison-table__company-name {
    font-size: 1rem;
    font-weight: 400;
  }

  .comparison-table__rating span {
    font-size: 1.3rem;
  }
}

@media screen and (max-width: 900px) {

  /* Hide table headers */
  .comparison-table thead {
    display: none;
  }

  /* Convert table and rows to blocks */
  .comparison-table table,
  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table td {
    display: block;
    max-width: 100%;
  }

  /* Style the table rows as cards, left aligned */
  .comparison-table tr,
  .comparison-table tbody tr:nth-child(even) {
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #f8f8f8;
    display: flex;
    flex-wrap: wrap;
  }

  .comparison-table svg {
    width: auto;
  }

  .intro-modal__trigger,
  .intro-modal__submit-btn {
    width: 100%;
  }

  .comparison-table td {
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 20px;
    text-align: left;
    background: transparent;
    width: 50%;
    box-sizing: border-box;
  }

  /* Create headers from table data labels */
  .comparison-table td::before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
  }
}

@media screen and (max-width: 500px) {
  .comparison-table td {
    width: 100%;
    padding: 8px;
  }

  .comparison-table__logo {
    max-width: 90%;
  }

  .comparison-table td::before {
    margin-bottom: 5px;
  }
}