/* Keep the new diagnostic tables readable without horizontal scrolling on phones. */
.cost-diagnostic-path .cost-table-cell-label {
  display: none;
}

@media (max-width: 680px) {
  .cost-diagnostic-path .table-responsive,
  html.page-shipping-guide .portal-main .cost-diagnostic-path .table-responsive {
    position: static;
    left: auto;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    border: 0;
    background: transparent;
    transform: none;
  }

  .cost-diagnostic-path table[data-cost-table] {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .cost-diagnostic-path table[data-cost-table] thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .cost-diagnostic-path table[data-cost-table] tbody {
    display: grid;
    gap: 16px;
  }

  .cost-diagnostic-path table[data-cost-table] tr {
    display: block;
    min-width: 0;
    border: 1px solid #dfe7f0;
    border-radius: 8px;
    background: #fff;
  }

  .cost-diagnostic-path table[data-cost-table] td,
  html.page-shipping-guide .portal-main .cost-diagnostic-path table[data-cost-table] td {
    display: block;
    width: auto;
    padding: 14px 16px;
    border: 0;
    white-space: normal !important;
    overflow-wrap: anywhere;
    line-height: 1.6;
  }

  .cost-diagnostic-path table[data-cost-table] td + td,
  html.page-shipping-guide .portal-main .cost-diagnostic-path table[data-cost-table] td + td {
    border-top: 1px solid #edf0f5;
  }

  .cost-diagnostic-path .cost-table-cell-label {
    display: block;
    margin-bottom: 6px;
    color: #526070;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.5;
  }

  .cost-diagnostic-path table[data-cost-table] td a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    max-width: 100%;
    padding: 6px 0;
    white-space: normal;
  }
}
