.retailer-comparison {
  margin: 1.25rem 0 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(164, 174, 198, 0.25);
  border-radius: 0.4rem;
  background: #fff;
  scroll-margin-top: 5.5rem;
}

.retailer-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.35rem;
  border-bottom: 1px solid rgba(164, 174, 198, 0.2);
  background: #f6f7f9;
}

.retailer-tab {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.6rem;
  border: 0;
  border-radius: 0.3rem;
  background: transparent;
  color: #60697b;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.retailer-tab:hover {
  color: var(--bs-primary);
}

.retailer-tab[aria-selected="true"] {
  background: var(--bs-primary);
  color: #fff;
}

.retailer-tab:focus-visible,
.retailer-link:focus-visible,
.retailer-panel:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: -3px;
}

.retailer-panel[hidden] {
  display: none;
}

.retailer-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.retailer-table tr + tr {
  border-top: 1px solid rgba(164, 174, 198, 0.2);
}

.retailer-table tr:hover {
  background: #f6f7f9;
}

.retailer-table th,
.retailer-table td {
  padding: 0.5rem 0.75rem;
  vertical-align: middle;
}

.retailer-table th {
  color: #343f52;
  font-weight: 700;
  text-align: left;
}

.retailer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.retailer-logo {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 0.2rem;
  object-fit: contain;
}

.retailer-table td {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}

.retailer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 36px;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--bs-primary);
  border-radius: 0.3rem;
  background: var(--bs-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.4;
}

.retailer-link:hover {
  background: #343f52;
  border-color: #343f52;
  color: #fff;
}

.retailer-link:focus-visible {
  outline-color: #fff;
}

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

  .retailer-brand {
    gap: 0.35rem;
    font-size: 0.7rem;
  }

  .retailer-logo {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
  }

  .retailer-link {
    gap: 0.3rem;
    padding: 0.35rem 0.5rem;
    font-size: 0.65rem;
  }
}
