@media (max-width: 768px) {
  .services-list__table .table-bg,
  .services-list__table .table-wr,
  .services-list__table .table-responsive {
    overflow: visible !important;
  }

  .services-list__table table,
  .services-list__table tbody,
  .services-list__table tbody tr,
  .services-list__table tbody td {
    display: block;
    width: 100%;
  }

  .services-list__table table {
    border-collapse: separate !important;
    border-spacing: 0 12px !important;
    background: transparent !important;
  }

  .services-list__table table > thead:first-child {
    display: none;
  }

  .services-list__table tbody tr:not(.services-list-category-title) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 14px;
    box-sizing: border-box;
    margin: 12px 2px !important;
    padding: 16px !important;
    border: 1px solid rgba(8, 43, 85, 0.08) !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden;
  }

  .services-list__table tbody tr.hidden {
    display: none !important;
  }

  .services-list__table tbody tr.services-list-category-title {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .services-list__table tbody tr.services-list-category-title td {
    padding: 0 !important;
    border: 0 !important;
  }

  .services-list__table .services-category,
  .services-list__table .styles-services-default {
    display: block !important;
    margin: 8px 0 2px !important;
    padding: 12px 16px !important;
    border-radius: 10px !important;
    line-height: 1.35 !important;
    white-space: normal !important;
  }

  .services-list__table tbody td {
    box-sizing: border-box;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    border: 0 !important;
    text-align: left !important;
    white-space: normal !important;
    overflow: visible !important;
    background: transparent !important;
  }

  .services-list__table tbody tr:not(.services-list-category-title) td:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    display: flex !important;
    align-items: center;
    gap: 7px;
    color: #0b2f5b !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
  }

  .services-list__table tbody tr:not(.services-list-category-title) td:nth-child(1)::before {
    content: "ID ";
    color: #71809a;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: uppercase;
  }

  .services-list__table tbody tr:not(.services-list-category-title) td:nth-child(1) .fa-clone,
  .services-list__table tbody tr:not(.services-list-category-title) td:nth-child(1) .fas.fa-clone {
    margin-left: 6px;
    color: #1e80e8 !important;
    font-size: 15px !important;
  }

  .services-list__table tbody tr:not(.services-list-category-title) td:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
    color: #062b55 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.45 !important;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .services-list__table tbody tr:not(.services-list-category-title) td:nth-child(2)::before {
    content: none !important;
  }

  .services-list__table tbody tr:not(.services-list-category-title) td:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    justify-self: end;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    max-width: 150px;
  }

  .services-list__table tbody tr:not(.services-list-category-title) td:nth-child(3),
  .services-list__table tbody tr:not(.services-list-category-title) td:nth-child(3) .badge {
    background: #18ee78 !important;
    color: #002b16 !important;
    padding: 6px 10px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    text-align: center !important;
  }

  .services-list__table tbody tr:not(.services-list-category-title) td:nth-child(4),
  .services-list__table tbody tr:not(.services-list-category-title) td:nth-child(5) {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 58px !important;
    padding: 10px !important;
    border-radius: 10px !important;
    background: #f3f7fb !important;
    text-align: center !important;
    color: #062b55 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
  }

  .services-list__table tbody tr:not(.services-list-category-title) td:nth-child(4) {
    grid-column: 1;
    grid-row: 3;
  }

  .services-list__table tbody tr:not(.services-list-category-title) td:nth-child(5) {
    grid-column: 2;
    grid-row: 3;
  }

  .services-list__table tbody tr:not(.services-list-category-title) td:nth-child(4)::before {
    content: "Minimum / Maximum";
    color: #71809a;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
  }

  .services-list__table tbody tr:not(.services-list-category-title) td:nth-child(5)::before {
    content: "Average Time";
    color: #71809a;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
  }

  .services-list__table tbody tr:not(.services-list-category-title) td:nth-child(4) .badge {
    background: #ff3153 !important;
    color: #fff !important;
    padding: 4px 9px !important;
    border-radius: 5px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
  }

  .services-list__table tbody tr:not(.services-list-category-title) td:nth-child(6) {
    grid-column: 1 / -1;
    grid-row: 4;
    display: block !important;
    width: 100% !important;
  }

  .services-list__table tbody tr:has(> td:nth-child(7)):not(.services-list-category-title) td:nth-child(4)::before {
    content: "Min Order";
  }

  .services-list__table tbody tr:has(> td:nth-child(7)):not(.services-list-category-title) td:nth-child(5)::before {
    content: "Max Order";
  }

  .services-list__table tbody tr:has(> td:nth-child(7)):not(.services-list-category-title) td:nth-child(6) {
    grid-column: 1 / -1;
    grid-row: 4;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 58px !important;
    padding: 10px !important;
    border-radius: 10px !important;
    background: #f3f7fb !important;
    text-align: center !important;
    color: #062b55 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
  }

  .services-list__table tbody tr:has(> td:nth-child(7)):not(.services-list-category-title) td:nth-child(6)::before {
    content: "Average Time";
    color: #71809a;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
  }

  .services-list__table tbody tr:has(> td:nth-child(7)):not(.services-list-category-title) td:nth-child(7) {
    grid-column: 1 / -1;
    grid-row: 5;
    display: block !important;
    width: 100% !important;
  }

  .services-list__table tbody tr:not(.services-list-category-title) td:nth-child(6)::before,
  .services-list__table tbody tr:has(> td:nth-child(7)):not(.services-list-category-title) td:nth-child(7)::before {
    content: none !important;
  }

  .services-list__table tbody tr:not(.services-list-category-title) td:nth-child(6) .btn,
  .services-list__table tbody tr:not(.services-list-category-title) td:nth-child(6) .js-service-description,
  .services-list__table tbody tr:has(> td:nth-child(7)):not(.services-list-category-title) td:nth-child(7) .btn,
  .services-list__table tbody tr:has(> td:nth-child(7)):not(.services-list-category-title) td:nth-child(7) .js-service-description {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 11px 12px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: #1e80e8 !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15) !important;
  }

  .services-list__table tbody tr:not(.services-list-category-title) td:nth-child(6) .btn:empty,
  .services-list__table tbody tr:not(.services-list-category-title) td:nth-child(6):empty,
  .services-list__table tbody tr:has(> td:nth-child(7)):not(.services-list-category-title) td:nth-child(7) .btn:empty,
  .services-list__table tbody tr:has(> td:nth-child(7)):not(.services-list-category-title) td:nth-child(7):empty {
    display: none !important;
  }

  .services-list__table .text-muted {
    grid-column: 1 / -1 !important;
    padding: 14px !important;
    color: #71809a !important;
  }
}

/* Apple/laptop scroll compatibility for user themes. */
html {
  min-height: 100%;
  height: auto !important;
  overflow-y: auto !important;
  -webkit-text-size-adjust: 100%;
}

body:not(.modal-open),
.body:not(.modal-open) {
  min-height: 100%;
  height: auto !important;
  overflow-y: auto !important;
  overscroll-behavior-y: auto;
  -webkit-overflow-scrolling: touch;
}

.wrapper,
.wrapper-content,
.wrapper-content__body,
.component_private,
.orders-history,
.orders-history__margin-table,
.table-bg,
.table-wr,
.table-responsive,
#order-page,
#main-page {
  max-height: none !important;
}

.wrapper,
.wrapper-content,
.wrapper-content__body,
.component_private,
.orders-history {
  overflow-y: visible !important;
}

.orders-history__margin-table,
.table-bg,
.table-wr,
.table-responsive,
#order-page,
#main-page {
  max-width: 100%;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

.orders-history__margin-table > table,
.table-bg > table,
.table-wr > table,
.table-responsive > table,
#order-page > table,
#main-page > table {
  width: max-content;
  min-width: 100%;
}

@media (min-width: 769px) and (max-width: 1440px) {
  .orders-history__margin-table > table,
  .table-bg > table,
  .table-wr > table,
  .table-responsive > table,
  #order-page > table,
  #main-page > table {
    min-width: 920px;
  }
}

@media (max-width: 768px) {
  .services-list,
  .services-list__table,
  .services-list__table .table-bg,
  .services-list__table .table-wr,
  .services-list__table .table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  .services-list__table table,
  .services-list__table .table-bg > table,
  .services-list__table .table-wr > table,
  .services-list__table .table-responsive > table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
  }

  .services-list__table tbody tr:not(.services-list-category-title) {
    width: calc(100% - 4px) !important;
    max-width: calc(100% - 4px) !important;
    grid-template-columns: minmax(0, 1fr) minmax(74px, auto);
    overflow: hidden !important;
  }

  .services-list__table tbody tr:not(.services-list-category-title) td {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  .services-list__table tbody tr:not(.services-list-category-title) td:nth-child(2) {
    display: block !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .services-list__table tbody tr:not(.services-list-category-title) td:nth-child(6),
  .services-list__table tbody tr:has(> td:nth-child(7)):not(.services-list-category-title) td:nth-child(7) {
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .services-list__table tbody tr:not(.services-list-category-title) td:nth-child(6) .btn,
  .services-list__table tbody tr:not(.services-list-category-title) td:nth-child(6) .js-service-description,
  .services-list__table tbody tr:has(> td:nth-child(7)):not(.services-list-category-title) td:nth-child(7) .btn,
  .services-list__table tbody tr:has(> td:nth-child(7)):not(.services-list-category-title) td:nth-child(7) .js-service-description {
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
}
