/* Legacy (.pricingTable) + component (.qs-pricing-table) pricing grids */
body:not(.home) main .container > h2.wp-block-heading:has(+ .wp-block-columns .pricingTable),
body:not(.home) main .container > h2.wp-block-heading:has(+ .wp-block-columns figure.pricingTable),
.qs-pricing-table__title {
  margin: 48px 0 24px !important;
  padding: 0 8px;
  text-align: center;
  font-size: clamp(26px, 2.2vw, 32px) !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  color: #0d0d0d !important;
}

body:not(.home) main .container > h2.wp-block-heading + .wp-block-columns:has(.pricingTable),
body:not(.home) main .container > h2.wp-block-heading + .wp-block-columns:has(figure.pricingTable) {
  display: block !important;
  margin: 0 0 40px !important;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

body:not(.home)
  main
  .container
  > h2.wp-block-heading
  + .wp-block-columns:has(.pricingTable)
  > .wp-block-column,
body:not(.home)
  main
  .container
  > h2.wp-block-heading
  + .wp-block-columns:has(figure.pricingTable)
  > .wp-block-column {
  flex: 1 1 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden;
}

.pricingTable,
figure.pricingTable,
.wp-block-table.pricingTable,
.qs-pricing-table__scroll {
  display: block !important;
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  background: transparent;
  border: none;
  isolation: isolate;
}

figure.pricingTable.aligncenter,
.wp-block-table.pricingTable.aligncenter {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}

.pricingTable table,
figure.pricingTable table,
.wp-block-table.pricingTable table,
.qs-pricing-table__table {
  width: 100% !important;
  min-width: 0;
  max-width: none;
  table-layout: auto !important;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0 !important;
  background: #fff !important;
  font-family: Montserrat, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  border: 1px solid rgba(246, 177, 26, 0.35);
  border-radius: 16px;
  overflow: hidden;
}

.pricingTable table thead th,
.qs-pricing-table__table thead th {
  padding: 14px 12px;
  background: linear-gradient(180deg, #ffc84a, #f6b11a);
  color: #0d0d0d;
  font-size: 12px !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  text-align: center;
  vertical-align: middle;
  border: none;
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
  white-space: normal;
}

.pricingTable table thead th:first-child,
.qs-pricing-table__table thead th:first-child {
  text-align: left;
  padding-left: 18px;
  border-top-left-radius: 16px;
}

.pricingTable table thead th:last-child,
.qs-pricing-table__table thead th:last-child {
  border-top-right-radius: 16px;
}

.pricingTable table tbody td,
.qs-pricing-table__table tbody td {
  padding: 13px 12px;
  font-size: 14px !important;
  line-height: 1.45 !important;
  font-weight: 500;
  color: #0d0d0d;
  text-align: center;
  vertical-align: middle;
  border: none;
  border-bottom: 1px solid rgba(246, 177, 26, 0.18);
  background: rgba(255, 252, 245, 0.92);
}

.pricingTable table tbody tr:nth-child(even) td,
.qs-pricing-table__table tbody tr:nth-child(even) td {
  background: rgba(255, 248, 232, 0.95);
}

.pricingTable table tbody tr:last-child td,
.qs-pricing-table__table tbody tr:last-child td {
  border-bottom: none;
}

.pricingTable table tbody tr:last-child td:first-child,
.qs-pricing-table__table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 16px;
}

.pricingTable table tbody tr:last-child td:last-child,
.qs-pricing-table__table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 16px;
}

.pricingTable table tbody tr:hover td,
.qs-pricing-table__table tbody tr:hover td {
  background: rgba(255, 210, 128, 0.28);
}

.pricingTable table tbody td:first-child,
.qs-pricing-table__table tbody td:first-child {
  text-align: left;
  padding-left: 18px;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1a1a;
}

.tableDisclaimer,
.qs-pricing-table__disclaimer {
  margin: 16px auto 0 !important;
  padding: 0 12px;
  max-width: 72ch;
  font-size: 13px !important;
  line-height: 1.65 !important;
  font-weight: 500;
  color: #475569 !important;
  text-align: center;
}

.qs-pricing-table {
  margin: 48px 0 40px;
  font-family: Montserrat, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

@media (min-width: 783px) {
  body:not(.home)
    main
    .container
    > h2.wp-block-heading
    + .wp-block-columns:has(.pricingTable)
    > .wp-block-column,
  body:not(.home)
    main
    .container
    > h2.wp-block-heading
    + .wp-block-columns:has(figure.pricingTable)
    > .wp-block-column {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .pricingTable,
  figure.pricingTable,
  .wp-block-table.pricingTable,
  .qs-pricing-table__scroll {
    overflow-x: visible;
  }

  .pricingTable table thead th,
  figure.pricingTable table thead th,
  .wp-block-table.pricingTable table thead th,
  .qs-pricing-table__table thead th {
    padding: 16px 14px;
    font-size: 13px !important;
  }

  .pricingTable table tbody td,
  figure.pricingTable table tbody td,
  .wp-block-table.pricingTable table tbody td,
  .qs-pricing-table__table tbody td {
    padding: 14px 14px;
    font-size: 15px !important;
  }
}

@media (max-width: 782px) {
  body:not(.home) main .container > h2.wp-block-heading:has(+ .wp-block-columns .pricingTable),
  body:not(.home) main .container > h2.wp-block-heading:has(+ .wp-block-columns figure.pricingTable),
  .qs-pricing-table__title {
    margin: 36px 0 18px !important;
    font-size: 24px !important;
  }

  figure.pricingTable,
  .wp-block-table.pricingTable,
  .pricingTable,
  .qs-pricing-table__scroll {
    margin: 0 -4px;
    border-radius: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior-x: contain;
    background:
      linear-gradient(90deg, #fff 30%, rgba(255, 255, 255, 0)),
      linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 70%) 100% 0,
      radial-gradient(farthest-side at 0% 50%, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0)),
      radial-gradient(farthest-side at 100% 50%, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0)) 100% 0;
    background-repeat: no-repeat;
    background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
    background-attachment: local, local, scroll, scroll;
  }

  figure.pricingTable::-webkit-scrollbar,
  .wp-block-table.pricingTable::-webkit-scrollbar,
  .pricingTable::-webkit-scrollbar,
  .qs-pricing-table__scroll::-webkit-scrollbar {
    display: none;
  }

  figure.pricingTable table,
  .wp-block-table.pricingTable table,
  .pricingTable table,
  .qs-pricing-table__table {
    width: max-content;
    min-width: 640px;
    table-layout: auto !important;
  }

  .pricingTable table thead th,
  figure.pricingTable table thead th,
  .qs-pricing-table__table thead th {
    font-size: 11px !important;
    padding: 12px 10px;
  }

  .pricingTable table tbody td,
  figure.pricingTable table tbody td,
  .qs-pricing-table__table tbody td {
    font-size: 13px !important;
    padding: 11px 10px;
  }

  .tableDisclaimer,
  .qs-pricing-table__disclaimer {
    text-align: left;
    padding: 0 4px;
  }
}
