/* One responsive presentation for every existing semantic affiliate table. */
body.tables-enhanced .toplist-section.affiliate-section {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
body.tables-enhanced .toplist-section.affiliate-section > h2 {
  margin: 0 0 21px;
  font-size: clamp(1.55rem, 2.35vw, 2rem);
  line-height: 1.16;
}
body.tables-enhanced .toplist-section.affiliate-section > h2::after {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 10px;
  border-radius: 999px;
  background: #e9a600;
}
body.tables-enhanced .toplist-section.affiliate-section .table-scroller {
  overflow: visible;
  border: 0;
  border-radius: 0;
}
body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist,
body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist tbody {
  display: block;
  width: 100%;
  min-width: 0;
  background: transparent;
}
body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist tbody tr {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(220px,1.35fr) minmax(170px,1.1fr) minmax(120px,.8fr) minmax(140px,.8fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-width: 0;
  margin-bottom: 13px;
  padding: 18px 20px;
  border: 1px solid #dce4f0;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(21,34,59,.035);
}
body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist tbody tr:nth-child(even) { background: #edf2f9; }
body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist tbody tr:hover { background: #f9fbff; }
body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist tbody tr.top-pick,
body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist tbody tr.top-pick:hover {
  border-color: #e9a600;
  background: #fffaf0;
  box-shadow: 0 8px 26px rgba(153,107,0,.075);
}
body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist td {
  display: block;
  min-width: 0;
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  overflow-wrap: break-word;
  word-break: normal;
  line-height: 1.3;
}
body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist td::before { content: none; }
body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist td[data-role='rank'] {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #172648;
  color: #fff;
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}
body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist tr.top-pick td[data-role='rank'] {
  background: #e9a600;
  color: #182440;
}
body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist td[data-role='brand'] { grid-column: 2; grid-row: 1; min-width: 0; }
body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist .brandlink {
  display: grid;
  grid-template-columns: 112px minmax(0,1fr);
  column-gap: 12px;
  align-items: center;
  color: #172648;
  text-decoration: none;
}
body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist .brandlink img {
  grid-column: 1;
  grid-row: 1 / span 3;
  display: block;
  width: 112px;
  height: 82px;
  object-fit: contain;
  padding: 8px;
  border: 1px solid #d9e2ef;
  border-radius: 12px;
  background: #fff;
}
body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist .brand-name {
  grid-column: 2;
  color: #172648;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.14;
}
body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist .brand-score {
  grid-column: 2;
  color: #6b7891;
  font-size: .75rem;
  font-weight: 600;
}
body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist .top-pick-badge {
  grid-column: 2;
  justify-self: start;
  border-radius: 5px;
  background: #e9a600;
  color: #172648;
  padding: 4px 6px;
  font-size: .6rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
}
body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist td[data-role='offer'] {
  grid-column: 3;
  grid-row: 1;
  min-height: 82px;
  padding: 13px 15px;
  border: 1px solid #e4aa00;
  border-left: 4px solid #d99f00;
  border-radius: 10px;
  background: #ffe9a0;
  color: #172648;
  font-size: .96rem;
  font-weight: 800;
  line-height: 1.28;
}
body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist td[data-role='offer']::before,
body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist td[data-role='metric']::before {
  content: attr(data-display-label);
  display: block;
  margin-bottom: 4px;
  color: #8a671e;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}
body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist td[data-role='offer'] .subnote {
  display: block;
  margin-top: 5px;
  color: #68532d;
  font-size: .7rem;
  font-weight: 600;
  line-height: 1.3;
}
body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist td[data-role='metric'] {
  grid-column: 4;
  grid-row: 1;
  color: #24694b;
  font-size: .83rem;
  font-weight: 700;
}
body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist td[data-role='metric']::before {
  content: attr(data-label);
  color: #69768c;
}
body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist td[data-role='action'] {
  grid-column: 5;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  align-self: stretch;
  justify-content: center;
  text-align: center;
}
body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist td[data-role='action']::before { content: none; }
body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist td[data-role='action'] > .btn-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #d7194e;
  box-shadow: 0 8px 16px rgba(215,25,78,.14);
  color: #fff;
  font-size: .87rem;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  white-space: normal;
}
body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist td[data-role='action'] > .btn-cta:hover {
  background: #b80f3d;
  box-shadow: 0 9px 19px rgba(215,25,78,.22);
}
body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist .row-notes {
  color: #798397;
  font-size: .62rem;
  line-height: 1.25;
}
body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist .row-notes a { color: #3a5696; }
body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist .row-details-toggle {
  align-self: flex-end;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: #69768c;
  cursor: pointer;
  font: 500 .66rem Inter,Arial,sans-serif;
  text-decoration: underline;
  text-underline-offset: 2px;
}
body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist td[data-role='extra'] { display: none; }
body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist tr.is-expanded td[data-role='extra'] {
  display: flex;
  grid-column: 2 / -1;
  grid-row: auto;
  align-items: baseline;
  gap: 10px;
  padding-top: 9px;
  border-top: 1px solid #dbe2ee;
  color: #223250;
  font-size: .78rem;
}
body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist tr.is-expanded td[data-role='extra']::before {
  content: attr(data-label);
  display: inline-block;
  flex: 0 0 130px;
  color: #68768d;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

@media (max-width: 1095px) {
  body.tables-enhanced .toplist-section.affiliate-section > h2 { margin-bottom: 14px; font-size: 1.35rem; }
  body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist tbody tr {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    max-width: 420px;
    margin: 0 auto 13px;
    padding: 14px 15px 13px;
    border-radius: 17px;
  }
  body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist td[data-role='rank'] {
    position: absolute;
    z-index: 1;
    top: 24px;
    left: 25px;
    width: 42px;
    height: 42px;
    box-shadow: 0 4px 12px rgba(23,38,72,.13);
  }
  body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist td[data-role='brand'] { width: 100%; }
  body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist .brandlink {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
  body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist .brandlink img {
    width: 100%;
    height: 90px;
    padding: 8px 58px;
  }
  body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist .top-pick-badge { margin-top: 3px; }
  body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist .brand-name { font-size: 1.08rem; }
  body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist .brand-score { font-size: .72rem; }
  body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist td[data-role='offer'] {
    order: 3;
    width: 100%;
    min-height: 0;
    margin-top: 4px;
    padding: 11px 12px;
    text-align: center;
  }
  body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist td[data-role='metric'] {
    order: 4;
    width: 100%;
    padding: 10px 12px;
    border-radius: 9px;
    background: #e9eef6;
    text-align: center;
  }
  body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist td[data-role='action'] {
    order: 5;
    width: 100%;
    gap: 5px;
  }
  body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist td[data-role='action'] > .btn-cta {
    min-height: 48px;
    border-radius: 999px;
    font-size: .9rem;
  }
  body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist .row-details-toggle { align-self: center; }
  body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist tr.is-expanded td[data-role='extra'] {
    order: 6;
    width: 100%;
    flex-direction: column;
    gap: 2px;
    padding: 8px 2px 0;
    text-align: left;
  }
  body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist tr.is-expanded td[data-role='extra']::before { flex: none; }
}
@media (min-width: 700px) and (max-width: 1095px) {
  body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
    align-items: stretch;
  }
  body.tables-enhanced .toplist-section.affiliate-section table.toplist.affiliate-toplist tbody tr {
    width: 100%;
    max-width: none;
    margin: 0;
  }
}
