.cmp-table-wrapper {
  overflow-x: auto;
}

.cmp-table {
  width: 100%;
  border-collapse: collapse;
}

.cmp-table-title{
  font-size: 32px;
  font-weight: 600;
  color: #A80534;
}

.cmp-table th,
.cmp-table td {
  padding: 0.75rem;
  border-bottom: 2px solid #ddd;
  text-align: center;
}

.cmp-table th[data-sort] {
  cursor: pointer;
}

.cmp-logo {
  width: 170px;
  height: 70px;
  object-fit: contain;
  object-position: left center;
  display: flex;
}


.cmp-logo-fallback {
  width: 170x;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #374151;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 6px;
}

.cmp-controls {
  margin-top: 1rem;
}

.cmp-controls button {
  margin-right: 0.5rem;
  cursor: pointer;
}

@media (max-width: 640px) {
  .cmp-table th,
  .cmp-table td {
    padding: 0.5rem;
  }
}

/* CTA links */
.cmp-badge {
  display: inline-block;
  margin-bottom: 0.4rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  border-radius: 25px;
}

.cmp-badge--active {
  background-color: #dcfce7;
  color: #166534;
}

.cmp-badge--inactive {
  background-color: #f3f4f6;
  color: #6b7280;
}


.cmp-links a:last-child {
  margin-bottom: 0;
}

.cmp-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  width: 55%;
  text-align: center;
  margin: 0.3rem 0rem;
}

/* Website */
.cmp-links a[href*="http"] {
  background-color: #2563eb;
  color: #ffffff;
}

.cmp-links a[href*="http"]:hover,
.cmp-links a[href*="http"]:focus-visible {
  background-color: #1d4ed8;
}

.cmp-cta--primary {
  background: #2563eb;
  color: #fff;
}

/* Reviews */
.cmp-links a:not([href*="http"]) {
  background-color: #f3f4f6;
  color: #111827;
  border-color: #d1d5db;
}

.cmp-links a:not([href*="http"]):hover,
.cmp-links a:not([href*="http"]):focus-visible {
  background-color: #e5e7eb;
}

.cmp-links a:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.cmp-cta--secondary {
  background: #f3f4f6;
  color: #111827;
  border: 1px solid #d1d5db;
}

/*Editor improvments*/
.block-editor .cmp-table th[scope="row"] {
  white-space: nowrap;
}

.block-editor .cmp-logo {
  display: none;
}

/*Mobile layout*/
@media (max-width: 450px) {

  .cmp-table,
  .cmp-table thead,
  .cmp-table tbody,
  .cmp-table tr,
  .cmp-table th,
  .cmp-table td {
    display: block;
    width: 97%;
  }

  .cmp-table thead {
    display: none;
  }

  .cmp-table tr {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 0.75rem;
  }

  .cmp-table th[scope="row"] {
    display: flex;
    align-items: center;
    gap: 0.75rem;

    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
  }

  .cmp-logo,
  .cmp-logo-fallback {
    flex-shrink: 0;
    max-width: 90px;
  }

  .cmp-links {
    margin-bottom: 0.75rem;
  }

  .cmp-cta {
    width: 100%;
    text-align: center;
  }

  .cmp-table td:not(.cmp-links) {
    display: grid;
    grid-template-columns: minmax(110px, 40%) 1fr;
    gap: 0.5rem;

    padding: 0.35rem 0;
    border: none;
  }

  .cmp-table td:not(.cmp-links)::before {
    content: attr(data-label);
    font-weight: 600;
    color: #374151;
  }

  .cmp-badge {
    width: 50%;
  }
  
  .cmp-table-title{
  min-width: 400px;
  }
  /* horizontal scroll fix ;( */
  .entry-content{
    padding-right: 0 !important;
    padding-left: 12px !important;
    overflow-x: hidden;
  }

}
