.alternatives-table-section {
  overflow: visible !important;
}

.alternatives-table-hint {
  margin: 0 0 1rem;
  color: rgb(216 199 239 / 0.82);
  font-size: 0.875rem;
  line-height: 1.5;
}

.alternatives-table-region {
  max-width: 100%;
  border-radius: 0.75rem;
}

.alternatives-table-region:focus-visible {
  outline: 2px solid #fda481;
  outline-offset: 0.25rem;
}

.alternatives-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.alternatives-table-caption {
  padding: 0 0 0.75rem;
  color: #f3eaff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
}

.alternatives-table-source-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  margin-top: 0.45rem;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
}

.alternatives-table-source-link {
  color: #fda481;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.alternatives-table-source-link:hover,
.alternatives-table-source-link:focus-visible {
  color: #ffd0bd;
}

.alternatives-table-review {
  color: rgb(216 199 239 / 0.76);
}

@media (min-width: 1024px) {
  .alternatives-table-region {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-gutter: stable;
  }

  .alternatives-table {
    min-width: 1100px;
  }

  .alternatives-table thead th:first-child,
  .alternatives-table tbody th[scope="row"] {
    position: sticky;
    left: 0;
    background: #160c24;
  }

  .alternatives-table thead th:first-child {
    z-index: 2;
  }

  .alternatives-table tbody th[scope="row"] {
    z-index: 1;
    min-width: 10.5rem;
  }
}

@media (max-width: 1023px) {
  .alternatives-table-section {
    padding-inline: 1rem !important;
  }

  .alternatives-table-region {
    width: 100%;
    overflow: visible;
  }

  .alternatives-table,
  .alternatives-table tbody,
  .alternatives-table tr,
  .alternatives-table th,
  .alternatives-table td {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0 !important;
  }

  .alternatives-table {
    display: block;
  }

  .alternatives-table-caption {
    display: block;
    width: 100%;
  }

  .alternatives-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .alternatives-table tbody {
    display: grid;
    gap: 1rem;
  }

  .alternatives-table tbody tr {
    display: grid;
    width: 100%;
    padding: 1rem;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 0.1);
    border-radius: 0.875rem;
    background: rgb(10 5 20 / 0.5);
  }

  .alternatives-table tbody th[scope="row"] {
    display: block;
    position: static;
    width: 100%;
    padding: 0 0 0.8rem !important;
    border-bottom: 1px solid rgb(255 255 255 / 0.1);
    text-align: left;
    overflow-wrap: anywhere;
  }

  .alternatives-table-app-name {
    display: block;
    color: #fff7f1;
    font-size: 1.05rem;
    font-weight: 700;
  }

  .alternatives-table tbody td {
    display: grid;
    grid-template-columns: minmax(7.5rem, 36%) minmax(0, 1fr);
    gap: 0.75rem;
    width: 100%;
    padding: 0.65rem 0 !important;
    text-align: left;
    white-space: normal;
  }

  .alternatives-table tbody td::before {
    content: attr(data-label);
    color: rgb(216 199 239 / 0.82);
    font-weight: 700;
    line-height: 1.45;
  }

  .alternatives-table-value {
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.5;
  }
}

@media (max-width: 520px) {
  .alternatives-table tbody td {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}
