.zonli-club-benefits-table {
  --zcbt-bg: #ffffff;
  --zcbt-ink: #2a3b2b;
  --zcbt-head: #2a3b2b;
  --zcbt-head-fg: #ffffff;
  --zcbt-tier-1: #ffffff;
  --zcbt-tier-2: #eef5e8;
  --zcbt-tier-3: #e2edd8;
  --zcbt-tier-4: #d4e4c8;
  --zcbt-tier-fg: #2a3b2b;
  --zcbt-row: #f7f4ee;
  width: 100%;
  background: var(--zcbt-bg);
  color: var(--zcbt-ink);
  scroll-margin-top: 96px;
}

.zonli-club-benefits-table__header {
  max-width: 560px;
  margin: 0 0 24px;
  text-align: left;
}

.zonli-club-benefits-table__eyebrow {
  margin: 0 0 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}

.zonli-club-benefits-table__heading {
  margin: 0 0 8px;
}

.zonli-club-benefits-table__text {
  margin: 0;
  font-size: var(--zcbt-copy-size, 14px);
  line-height: var(--zcbt-copy-leading, 140%);
  opacity: 0.8;
}

.zonli-club-benefits-table__text p {
  margin: 0;
}

.zonli-club-benefits-table__figure {
  margin: 0;
}

.zonli-club-benefits-table__image,
.zonli-club-benefits-table__figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--content-border-radius);
}

.zonli-club-benefits-table__scroller {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.zonli-club-benefits-table__table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: var(--content-border-radius);
  border: 1px solid rgba(42, 59, 43, 0.1);
}

.zonli-club-benefits-table__table th,
.zonli-club-benefits-table__table td {
  padding: 16px 12px;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid rgba(42, 59, 43, 0.08);
  font-size: var(--zcbt-copy-size, 14px);
  line-height: var(--zcbt-copy-leading, 140%);
}

.zonli-club-benefits-table__table th:first-child,
.zonli-club-benefits-table__table td:first-child {
  text-align: left;
  font-weight: 600;
  min-width: 180px;
}

.zonli-club-benefits-table__th-benefit {
  background: var(--zcbt-head);
  color: var(--zcbt-head-fg);
  border-bottom: none;
}

.zonli-club-benefits-table__th-tier {
  color: var(--zcbt-tier-fg);
  border-bottom: none;
  font-weight: 600;
}

.zonli-club-benefits-table__th-tier--1 {
  background: var(--zcbt-tier-1);
}

.zonli-club-benefits-table__th-tier--2 {
  background: var(--zcbt-tier-2);
}

.zonli-club-benefits-table__th-tier--3 {
  background: var(--zcbt-tier-3);
}

.zonli-club-benefits-table__th-tier--4 {
  background: var(--zcbt-tier-4);
}

.zonli-club-benefits-table__benefit-head {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.zonli-club-benefits-table__benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  color: inherit;
}

.zonli-club-benefits-table__benefit-icon img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.zonli-club-benefits-table__benefit-label {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
}

.zonli-club-benefits-table__head-name,
.zonli-club-benefits-table__head-note {
  display: block;
}

.zonli-club-benefits-table__head-note {
  margin-top: 4px;
  font-weight: 500;
  opacity: 0.85;
}

.zonli-club-benefits-table__cell {
  line-height: 1.35;
}

.zonli-club-benefits-table__cell-line {
  display: block;
}

.zonli-club-benefits-table__cell-line + .zonli-club-benefits-table__cell-line {
  margin-top: 4px;
  font-size: 0.85em;
  font-weight: 500;
  opacity: 0.78;
}

.zonli-club-benefits-table__table tbody tr:nth-child(odd) td {
  background: var(--zcbt-row);
}

.zonli-club-benefits-table__table tbody tr:nth-child(even) td {
  background: #fff;
}

.zonli-club-benefits-table__table tbody tr:last-child td {
  border-bottom: none;
}

.zonli-club-benefits-table__scroller:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Theme editor: align editable headings and copy without changing data/control alignment. */
.zonli-club-benefits-table[data-editable-text-align="left"] :is(h1, h2, h3, h4, h5, h6, p, .rte, th, td) { text-align: left; }
.zonli-club-benefits-table[data-editable-text-align="center"] :is(h1, h2, h3, h4, h5, h6, p, .rte, th, td) { text-align: center; }
.zonli-club-benefits-table[data-editable-text-align="right"] :is(h1, h2, h3, h4, h5, h6, p, .rte, th, td) { text-align: right; }

@media screen and (min-width: 960px) {
  /* Center the content on wide screens (otherwise it stays pinned left). */
  .zonli-club-benefits-table > .page-width {
    margin-inline: auto !important;
  }
}

/* Mobile/Pad: freeze the left label column; tier columns scroll horizontally. */
@media screen and (max-width: 959px) {
  /* The table's own overflow:hidden (for the radius) makes it the sticky scroll
     container, which defeats sticky. Let the outer scroller be the context. */
  .zonli-club-benefits-table__table {
    overflow: visible;
    border-radius: 0;
  }
  .zonli-club-benefits-table__scroller {
    border-radius: var(--content-border-radius);
  }
  .zonli-club-benefits-table__table th:first-child,
  .zonli-club-benefits-table__table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
  }
  /* top-left corner sits above both the header row and the sticky column */
  .zonli-club-benefits-table__table thead th:first-child,
  .zonli-club-benefits-table__th-benefit {
    z-index: 3;
  }
  /* thin separator so scrolled cells don't bleed under the frozen column */
  .zonli-club-benefits-table__table th:first-child,
  .zonli-club-benefits-table__table td:first-child {
    box-shadow: 1px 0 0 rgba(42, 59, 43, 0.12);
  }
}

@media screen and (max-width: 749px) {
  .zonli-club-benefits-table__table th:first-child,
  .zonli-club-benefits-table__table td:first-child {
    min-width: 140px;
  }
  .zonli-club-benefits-table__table th,
  .zonli-club-benefits-table__table td {
    padding: 12px 10px;
  }
}

