.capacity-table-hint {
  display: none;
}

[data-capacity-route-target] {
  scroll-margin-top: 24px;
}

@media (max-width: 640px) {
  main table.capacity-price-compact {
    display: table;
    width: 100%;
    min-width: 0;
    overflow: visible;
    overflow-wrap: anywhere;
  }

  main table.capacity-price-compact :is(th, td) {
    min-width: 0;
    padding-inline: 5px;
  }

  main table.capacity-price-compact tbody :is(th, td) {
    padding-inline: 4px;
    font-size: 0.9375rem;
    white-space: nowrap;
  }

  .capacity-table-hint {
    display: block;
    margin: 0.5rem 0;
    font-size: 0.875rem;
    line-height: 1.55;
  }

  .capacity-scroll-target:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
  }
}

@media (max-width: 400px) {
  main .capacity-table-fits > table.capacity-scroll-target,
  main .capacity-identifiers-fit {
    display: table;
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    overflow: visible;
  }
  main .capacity-table-fits > table.capacity-scroll-target :is(th, td),
  main .capacity-identifiers-fit :is(th, td) {
    min-width: 0;
    padding-inline: 5px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  main .capacity-identifiers-fit code {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  main .capacity-table-fits > .capacity-table-hint,
  main .capacity-table-hint:has(+ [role="region"] > .capacity-identifiers-fit) {
    display: none;
  }
}
