/* Readable FILOLIV tariff table typography. */
.prices-page #prices-table,
.tariffs-embed #prices-table {
  font-size: 17px;
}

.prices-page #prices-table tbody th,
.prices-page #prices-table tbody td,
.tariffs-embed #prices-table tbody th,
.tariffs-embed #prices-table tbody td,
.prices-page #prices-table .delivery-fee,
.prices-page #prices-table .free-fee,
.tariffs-embed #prices-table .delivery-fee,
.tariffs-embed #prices-table .free-fee {
  font-size: 17px;
}

.prices-page #prices-table thead th,
.prices-page #prices-table thead .sort-button,
.tariffs-embed #prices-table thead th,
.tariffs-embed #prices-table thead .sort-button {
  font-size: 18px;
}

/* Keep the embedded tariff grid accessible without duplicating its heading. */
.tariffs-embed-page .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 575px) {
  .tariffs-embed {
    padding: 12px 10px 18px;
  }

  .tariffs-embed-toolbar {
    margin-bottom: 14px;
  }

  .tariffs-embed-toolbar label {
    margin-bottom: 8px;
    font-size: 14px;
  }

  .tariffs-embed-toolbar input {
    height: 50px;
    padding-inline: 16px;
    border-radius: 12px;
    font-size: 16px;
  }

  .tariffs-embed-table {
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 14px;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .tariffs-embed #prices-table {
    display: table;
    width: 100%;
    min-width: 100%;
    table-layout: fixed;
  }

  .tariffs-embed #prices-table thead {
    display: table-header-group;
  }

  .tariffs-embed #prices-table tbody {
    display: table-row-group;
  }

  .tariffs-embed #prices-table tr {
    display: table-row;
  }

  .tariffs-embed #prices-table tr[hidden] {
    display: none;
  }

  .tariffs-embed #prices-table th,
  .tariffs-embed #prices-table td {
    display: table-cell;
    height: 58px;
    padding: 9px 3px;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    line-height: 1.2;
    text-align: center;
    vertical-align: middle;
    white-space: normal;
  }

  .tariffs-embed #prices-table thead th,
  .tariffs-embed #prices-table thead .sort-button {
    font-size: 16px;
    line-height: 1.15;
  }

  .tariffs-embed #prices-table thead th,
  .tariffs-embed #prices-table tbody th,
  .tariffs-embed #prices-table tbody td {
    border-right: 1px solid #e4ece1;
  }

  .tariffs-embed #prices-table tr > :last-child {
    border-right: 0;
  }

  .tariffs-embed #prices-table tbody th,
  .tariffs-embed #prices-table tbody td,
  .tariffs-embed #prices-table .delivery-fee,
  .tariffs-embed #prices-table .free-fee {
    font-size: 15px;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .tariffs-embed #prices-table tbody th {
    text-align: center;
  }

  .tariffs-embed #prices-table .free-fee {
    font-size: 14px;
  }

  .tariffs-embed .sort-button {
    justify-content: center;
    min-height: 44px;
  }

  .tariffs-embed-footer {
    padding-top: 16px;
  }

  .tariffs-embed .results-count {
    margin-bottom: 12px;
    font-size: 13px;
  }

  .tariffs-embed .table-pagination {
    gap: 12px;
  }

  .tariffs-embed .table-pagination label,
  .tariffs-embed .table-pagination button,
  .tariffs-embed #cities-page {
    font-size: 13px;
  }

  .tariffs-embed .table-pagination button {
    min-height: 44px;
  }
}

@media (max-width: 289px) {
  .tariffs-embed #prices-table {
    min-width: 300px;
  }
}
