/* Home "RATE CHART": desktop shows the table; on mobile (≤575px) the row becomes
   a stacked card (label: value), matching the Nationwide Delivery / Chiller
   Transport lists. The table carries inline styles, so overrides use !important. */
@media (max-width: 575px) {
  /* id+class beats `.rate-table-scroll > #table-1 { min-width: 460px }`, and
     !important beats the inline `border: 2px solid red` on the table. */
  #table-1.rate-chart-table {
    min-width: 0 !important;
    border: 0 !important;
    margin-bottom: 16px;
  }
  .rate-chart-table,
  .rate-chart-table thead,
  .rate-chart-table tbody,
  .rate-chart-table tr {
    display: block;
    width: 100%;
  }
  /* Hide the column-label row (Weight / Charge / …) — the 2nd thead row. */
  .rate-chart-table thead tr:nth-child(2) {
    display: none;
  }
  /* The "BILI Rate Chart (Regular)" row becomes the card's top banner. */
  .rate-chart-table thead tr:first-child td {
    display: block;
    border: 0 !important;
    border-radius: 8px 8px 0 0;
  }
  /* Data row → card body. */
  .rate-chart-table tbody tr {
    border: 1px solid #e0e0e0;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    text-align: left !important;
  }
  .rate-chart-table tbody td {
    display: flex;
    align-items: flex-start;
    padding: 9px 14px !important;
    border: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
    font-size: 14px;
    line-height: 1.5;
  }
  .rate-chart-table tbody td:last-child {
    border-bottom: 0 !important;
  }
  /* Bold label on the left of each cell, derived from the column header. */
  .rate-chart-table tbody td::before {
    content: attr(data-label);
    flex: 0 0 130px;
    padding-right: 10px;
    font-weight: 700;
    color: #212121;
  }
}