.dcx-package-groups__tabs:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 24px;
  padding: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  background: #f8fafc;
}

.dcx-package-groups__tab {
  min-height: 44px;
  padding: 10px 22px;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: #45556c;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.dcx-package-groups__tab[aria-selected="true"] {
  background: #b10d28;
  color: #fff;
}

.dcx-package-groups__tab:focus-visible,
.dcx-package-groups__panel:focus-visible {
  outline: 2px solid #0f172b;
  outline-offset: 4px;
}

.dcx-package-groups__title {
  margin: 36px 0 0;
  color: #0f172b;
  text-align: center;
  font-size: 24px;
}

/* Long product identifiers must fit the existing three-column tablet grid. */
.dcx-package-groups .dcx-hosting-card__name {
  overflow-wrap: anywhere;
}

/* Align content rows by their actual height, including longer plan names. */
@media (min-width: 768px) {
  .dcx-package-groups .dcx-hosting-grid {
    row-gap: 0;
  }

  .dcx-package-groups .dcx-hosting-card {
    display: grid;
    grid-row: span 8;
    grid-template-rows: subgrid;
    row-gap: 0;
    align-items: start;
  }

  .dcx-package-groups .dcx-hosting-card__sub {
    min-height: 0;
  }
}
