/* ==========================================================================
   KF Elements — Price Table
   --------------------------------------------------------------------------
   REDRAWN by w2.kfe-data.1 (ADR-0004's dated section; the widget is on
   `develop` only, so decision 7 permits it). The table is now a bordered,
   rounded card with a filled head row instead of a ruled list of columns, and
   a second style, `list`, draws the same prices as a bordered price card.

   THE MOBILE RULES ARE PART OF THE DECISION, not decoration (ADR-0003):
   prices must be readable on a phone without the page scrolling sideways.
   So `.table-wrap` takes the horizontal overflow instead of the page
   (base.css does the same for pack grids), the cell padding drops on a narrow
   viewport, and below 400px the MONTHLY column is the one that hides — the
   price column always survives.

   NO `tbody tr` BACKGROUND IS SET, on purpose. The zebra rows the reference
   shows on both sides of the comparison strips are the THEME's row reset, not
   a rule of this pack's; a widget that painted its own would fight every
   theme that has one.

   Tokens only: every colour reads a --kfe-* custom property from base.css,
   each with today's value as its fallback (ADR-0004 decision 2); the fixed
   geometry (the 15/18 cell padding, the 56px badge, the 80% card) is the
   reference's own drawing of a look no other site renders yet.
   ========================================================================== */

.kfe .kfe-price-table .head { margin-bottom: 40px; text-align: var(--kfe-head-align, start); }
.kfe .kfe-price-table .head .kfe-price-table-title {
  font-family: var(--kfe-font-heading);
  font-weight: var(--kfe-heading-weight);
  color: var(--kfe-heading, var(--kfe-primary));
  letter-spacing: -0.01em;
  margin: 0;
  font-size: var(--kfe-title-size, var(--kfe-h2-size, clamp(1.8rem, 3.4vw, 2.7rem)));
  line-height: 1.22;
}
.kfe .kfe-price-table.kfe-dark .head .kfe-price-table-title { color: #fff; }

/* The wrap, not the page, takes the overflow. */
.kfe .kfe-price-table .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.kfe .kfe-price-table .kfe-price {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
  background: var(--kfe-white);
  border: 1px solid var(--kfe-line);
  border-radius: var(--kfe-radius-card, 12px);
  overflow: hidden;
}
.kfe .kfe-price-table .kfe-price caption {
  caption-side: top;
  text-align: start;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kfe-accent);
  font-weight: 700;
  padding: 0 0 12px;
}
.kfe .kfe-price-table .kfe-price th {
  background: var(--kfe-primary-deep);
  color: #fff;
  text-align: start;
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 700;
}
.kfe .kfe-price-table .kfe-price td {
  padding: 15px 18px;
  border-top: 1px solid var(--kfe-line);
  color: var(--kfe-body, var(--kfe-muted));
  font-size: var(--kfe-body-size, 16px);
  vertical-align: top;
}
.kfe .kfe-price-table .kfe-price td.item {
  color: var(--kfe-heading, var(--kfe-primary));
  font-weight: 600;
}

/* The two money columns read as figures, at the end of their row. */
.kfe .kfe-price-table .kfe-price td.amt {
  text-align: end;
  white-space: nowrap;
  font-weight: 700;
  color: var(--kfe-heading, var(--kfe-primary));
}
.kfe .kfe-price-table .kfe-price td.mth {
  text-align: end;
  white-space: nowrap;
  color: var(--kfe-muted);
  font-size: 15px;
}
/* The two money HEAD cells are end-aligned over their figures, and the item
   heading is not. post-323's own sheet says `.ee-price th{text-align:left}`,
   but the reference's markup overrides it INLINE on exactly those two cells
   (`<th style="text-align:right">Both eyes</th>`, read in
   tmp/lane-kit/waves/w2/dumps/elem.ndjson), which is what its capture shows. A
   widget carries no inline style (WAF-safe) and has no per-cell control, so the
   reference's inline pair is expressed here as a rule on the two classes. */
.kfe .kfe-price-table .kfe-price th.amt,
.kfe .kfe-price-table .kfe-price th.mth { text-align: end; }

/* ---------- the `list` style: the same prices as a bordered card ---------- */
.kfe .kfe-price-table.style-list .list-wrap { display: block; }
.kfe .kfe-price-table .kfe-price-list {
  margin: 0;
  padding: 10px 28px 20px;
  background: var(--kfe-white);
  border: 1px solid var(--kfe-line);
  border-radius: var(--kfe-radius-card, 12px);
  /* The reference stacks each row as its own container in a flex column, so
     the rule sits clear of both rows rather than tight under the upper one;
     20px is that stack's own gap (tree 765, container `afa8faf`, no flex_gap
     of its own, so Elementor's container gap applies). */
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.kfe .kfe-price-table .kfe-price-list .row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--kfe-line);
}
.kfe .kfe-price-table .kfe-price-list .row:last-child { border-bottom: 0; }
.kfe .kfe-price-table .kfe-price-list dt.item {
  margin: 0;
  font-family: var(--kfe-font-heading);
  font-size: 17px;
  color: var(--kfe-heading, var(--kfe-primary));
}
.kfe .kfe-price-table .kfe-price-list dd.amt {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--kfe-accent);
  white-space: nowrap;
}
@media (min-width: 768px) {
  .kfe .kfe-price-table .kfe-price-list { width: 80%; margin-inline: auto; }
}

/* The reference's own footnote: `margin-top:18px; font-size:15px`, in its muted
   grey (tree 730's `<p>` after the table), and no measure — it runs the wrap's
   full width, which is where the muted token lands under the site map. The
   client's own value for that grey is deliberately not written here: a shared
   plugin carries no site's colour, only the token. */
.kfe .kfe-price-table .foot { color: var(--kfe-muted); font-size: 15px; line-height: 1.6; margin-top: 18px; }
.kfe .kfe-price-table .foot p + p { margin-top: 12px; }
.kfe .kfe-price-table .foot ul, .kfe .kfe-price-table .foot ol { margin: 12px 0 0; padding-inline-start: var(--kfe-list-indent); }
.kfe .kfe-price-table .foot li + li { margin-top: 6px; }
.kfe .kfe-price-table.style-list .foot { text-align: center; margin-inline: auto; }

.kfe .kfe-price-table .kfe-price-table-link { margin-top: 20px; }
.kfe .kfe-price-table.style-list .kfe-price-table-link { text-align: center; }

/* dark-ground flips, in the pack's idiom (feature-grid.css), rewritten for the
   filled head: the table keeps its own light ground, so only what sits outside
   it flips. */
.kfe .kfe-price-table.kfe-dark .kfe-price { border-color: rgba(255, 255, 255, 0.18); }
.kfe .kfe-price-table.kfe-dark .kfe-price caption { color: var(--kfe-on-dark-soft); }
.kfe .kfe-price-table.kfe-dark .kfe-price-list {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.18);
}
.kfe .kfe-price-table.kfe-dark .kfe-price-list .row { border-bottom-color: rgba(255, 255, 255, 0.14); }
.kfe .kfe-price-table.kfe-dark .kfe-price-list dt.item { color: #fff; }
.kfe .kfe-price-table.kfe-dark .kfe-price-list dd.amt { color: var(--kfe-on-dark-soft); }
.kfe .kfe-price-table.kfe-dark .foot { color: rgba(255, 255, 255, 0.68); }

/* The reference's own query, which replaces the pack's earlier 560 one. */
@media (max-width: 700px) {
  .kfe .kfe-price-table .kfe-price th,
  .kfe .kfe-price-table .kfe-price td { padding: 11px 12px; font-size: 14px; }
  .kfe .kfe-price-table .kfe-price td.mth { font-size: 14px; }
  .kfe .kfe-price-table .kfe-price-list { padding: 6px 18px 14px; }
}
/* The monthly amount is the column that goes, never the price. */
@media (max-width: 400px) {
  .kfe .kfe-price-table .kfe-price .mth { display: none; }
}
