.paya-dispatch-milestones .paya-dispatch-milestone-label {
  display: none;
}

.paya-dispatch-milestones .paya-dispatch-milestone-value {
  display: contents;
}

@media screen {
  .paya-dispatch-milestones {
    container-type: inline-size;
  }

  .paya-dispatch-milestones table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .paya-dispatch-milestones th,
  .paya-dispatch-milestones td {
    width: auto !important;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .paya-dispatch-milestones th:first-child {
    width: 8% !important;
  }

  .paya-dispatch-milestones th:nth-child(4),
  .paya-dispatch-milestones th:nth-child(5) {
    width: 24% !important;
  }

  .paya-dispatch-milestones button {
    max-width: 100%;
    white-space: normal;
  }

  @container (max-width: 420px) {
    .paya-dispatch-milestones table {
      display: block;
    }

    .paya-dispatch-milestones thead {
      position: absolute;
      width: 1px;
      height: 1px;
      margin: -1px;
      overflow: hidden;
      clip-path: inset(50%);
      white-space: nowrap;
    }

    .paya-dispatch-milestones tbody,
    .paya-dispatch-milestones tbody tr {
      display: grid;
      min-width: 0;
    }

    .paya-dispatch-milestones tbody td {
      display: grid;
      grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
      gap: var(--sp-2);
      align-items: start;
      min-width: 0;
      direction: rtl;
    }

    .paya-dispatch-milestones .paya-dispatch-milestone-label {
      display: block;
      color: var(--ink-2);
      font-size: var(--fs-caption);
      text-align: start;
    }

    .paya-dispatch-milestones .paya-dispatch-milestone-value {
      display: block;
      min-width: 0;
      text-align: start;
    }
  }
}
