.payment-matrix {
  min-width: 0;
  margin: 14px 0 24px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--paper);
  overflow: hidden;
  scroll-margin-top: 18px;
}
.payment-matrix > header, .matrix-chooser { padding: clamp(15px, 2.4vw, 26px); }
.payment-matrix :is(h2,h3), .matrix-hub h2 {
  margin: 0 0 8px;
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.22;
  overflow-wrap: anywhere;
}
.payment-matrix header p, .matrix-chooser p, .matrix-hub section > p { max-width: 76ch; }
.payment-matrix :is(p, small) { color: var(--muted); }
.payment-matrix header time, .matrix-price { font-weight: 650; color: var(--ink); }
.payment-matrix .table-scroll:focus-visible { outline: 2px solid var(--action); outline-offset: -2px; }
.matrix-table {
  min-width: 574px;
  margin: 0;
  border-block: 1px solid var(--soft-line);
  font-variant-numeric: tabular-nums;
}
.matrix-table caption { padding: 10px 18px; background: var(--surface-raised); font-size: 13px; color: var(--link-strong); }
.matrix-table :is(th, td) { padding: 10px 16px; line-height: 1.3; vertical-align: middle; }
.matrix-table thead th { background: var(--table-head); }
.matrix-table tbody th { color: var(--ink); }
.matrix-table tr > :is(th, td) { width: auto; overflow-wrap: normal; }
.payment-matrix[data-service] { container-type: inline-size; }
.matrix-payments { min-width: 880px; table-layout: fixed; }
.matrix-payments tr > :is(th, td) { padding-inline: 8px; overflow-wrap: anywhere; }
.matrix-payments thead th { font-size: 13px; vertical-align: bottom; white-space: normal; }
.matrix-provider-col { width: 14%; }
.matrix-status-col { width: 17.5%; }
.matrix-issue-col { width: 10%; }
.matrix-purchase-col { width: 9.5%; }
.matrix-maintenance-col { width: 13.5%; }
.matrix-funding-col { width: 11%; }
.matrix-estimate-col { width: 12%; }
.matrix-promo-col { width: 12.5%; }
.matrix-table tbody tr:nth-of-type(even) > * { background: var(--surface-raised); }
.matrix-payments tbody:nth-of-type(even) tr > * { background: var(--surface-raised); }
.matrix-payments tbody:nth-of-type(odd) tr > * { background: transparent; }
.matrix-table small { display: block; margin-top: 3px; font-size: 12px; }
.matrix-table s { color: var(--muted); white-space: nowrap; font-size: 12px; }
.matrix-price { white-space: nowrap; }
.matrix-payments .matrix-price { font-size: 14px; }
.matrix-cost-part { white-space: nowrap; }
.matrix-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 620;
  line-height: 1.25;
}
.matrix-status { color: var(--link-strong); background: var(--table-head); }
:is([data-payment-status="confirmed"], [data-payment-status="partner_reported"]) .matrix-status {
  color: var(--positive);
  background: var(--positive-bg);
}
[data-payment-status="declined"] .matrix-status, [data-payment-status="refunded"] .matrix-status {
  color: var(--negative); background: var(--negative-bg);
}
.matrix-tariff-link { font-weight: 600; }
[data-payment-status="unsupported"] .matrix-status {
  color: var(--muted);
  background: var(--surface-raised);
}
.matrix-primary, .page-date { color: var(--muted); font-size: 13px; margin-block: 10px; }
.matrix-costs { margin-top: 16px; border-top: 1px solid var(--soft-line); }
.payment-matrix ~ .matrix-costs {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--paper);
  overflow: hidden;
}
.matrix-costs > :is(h3, p) { margin: 14px 18px; }
.matrix-costs .matrix-table { min-width: 670px; }
.matrix-costs td { min-width: 142px; }
.cost-estimate { max-width: 30ch; }
.payment-options { margin-top: 18px; }
.payment-options h3 { font-size: 18px; }
.payment-options ul {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr));
  gap: 8px; list-style: none; padding: 0; margin: 8px 0;
}
.payment-options li {
  display: grid; align-content: start; gap: 4px; padding: 10px 13px;
  background: var(--surface-raised); border: 1px solid var(--line); border-radius: 10px;
}
.payment-options li b { font-weight: 640; }
.matrix-history { margin: 14px 18px; }
.matrix-history ul { padding: 0 16px 10px 32px; }
.matrix-history li small { display: block; }
.cost-parts { margin-top: 5px; color: var(--muted); font-size: 12px; white-space: normal; }
.cost-parts summary { color: var(--blue); cursor: pointer; }
.cost-parts ul { padding-inline-start: 16px; }
.matrix-evidence-list { display: grid; gap: 8px; list-style: none; padding: 0; }
.matrix-evidence-list > li {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px;
  border: 1px solid var(--line); border-radius: 11px; background: var(--paper); padding: 12px 14px;
}
.matrix-evidence-list > li:target { border-color: var(--blue); }
.matrix-evidence-list small { display: block; color: var(--muted); }
.matrix-table .coupon-copy { min-height: 34px; padding: 5px 8px; }
.matrix-payments .coupon-copy { max-width: 100%; gap: 5px; padding-inline: 6px; }
.matrix-payments .coupon-copy b { font-size: 12px; }
.payment-matrix > .matrix-explanation { padding: 12px 18px 0; line-height: 1.45; }
.matrix-explanation { font-size: 13px; color: var(--muted); }
.matrix-links { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; padding: 9px 18px 15px; }
.matrix-links a { font-size: 13px; color: var(--blue); }
.matrix-chooser .matrix-links { padding: 12px 0 0; }
.matrix-chooser .matrix-links a { padding: 6px 9px; background: var(--surface-accent); border-radius: 7px; }
.matrix-chooser .matrix-links .matrix-index-link { display: inline-flex; align-items: center; gap: 5px; font-weight: 640; }
.matrix-groups { margin-bottom: 22px; }
.matrix-groups .matrix-chooser { margin-bottom: 9px; }
.matrix-group {
  margin-bottom: 9px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.matrix-group > summary { padding: 12px 16px; font-weight: 640; cursor: pointer; }
.matrix-group > .payment-matrix { margin: 0; border: 0; border-top: 1px solid var(--soft-line); border-radius: 0; }
.matrix-hub {
  display: grid;
  gap: 16px;
  margin-top: 17px;
}
.matrix-hub > section { border: 1px solid var(--line); border-radius: 17px; background: var(--paper); padding: clamp(16px, 2.65vw, 28px); }
.matrix-hub .search-field { width: min(100%, 420px); margin-block: 10px; }
.matrix-confirmed-list, .matrix-directory-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px),1fr));
  gap: 7px;
  list-style: none;
  margin: 11px 0 0;
  padding: 0;
}
.matrix-confirmed-list li, .matrix-directory-list a {
  border: 1px solid var(--line);
  background: var(--surface-raised);
  border-radius: 9px;
  padding: 9px 12px;
}
.matrix-confirmed-list li { display: grid; gap: 2px; }
.matrix-confirmed-list span { font-size: 13px; color: var(--positive); }
.matrix-directory-list a { display: flex; align-items: center; justify-content: space-between; gap: 9px; color: var(--ink); }
.matrix-directory-list a:hover { background: var(--tint-hover); text-decoration: none; }
.matrix-directory-list a .icon { flex: 0 0 auto; color: var(--blue); }
.matrix-platforms ul { margin-top: 8px; padding-left: 20px; }
.matrix-method h3 { margin-top: 14px; font-size: 17px; }
.matrix-method li { max-width: 78ch; }
@media (max-width: 650px) {
  .payment-matrix { scroll-margin-top: 68px; margin-block: 10px 16px; }
  .matrix-table { min-width: 500px; }
  .matrix-table :is(th,td) { padding: 8px 10px; }
  .matrix-costs .matrix-table tr > :first-child { position: sticky; left: 0; z-index: 1; background: var(--paper); min-width: 108px; }
  .matrix-costs .matrix-table thead tr > :first-child { background: var(--table-head); }
  .matrix-directory-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .matrix-directory-list a { overflow-wrap: anywhere; }
}
@container (max-width: 880px) {
  .matrix-payments, .matrix-payments caption, .matrix-payments tbody { display: block; min-width: 0; width: 100%; }
  .matrix-payments :is(colgroup, thead) { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .matrix-payments tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; }
  .matrix-payments tbody + tbody, .matrix-payments tbody tr + tr { border-top: 1px solid var(--soft-line); }
  .matrix-payments tbody:nth-of-type(even) { background: var(--surface-raised); }
  .matrix-payments tbody tr > :is(th, td) { width: auto; min-width: 0; padding: 0; border: 0; background: transparent; overflow-wrap: anywhere; }
  .matrix-payments td:last-child:nth-child(odd) { grid-column: span 2; }
  .matrix-payments td[data-label]::before {
    content: attr(data-label); display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px;
  }
}
@container (min-width: 640px) and (max-width: 880px) {
  .matrix-payments tbody tr { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
