/* KVV homepage card fixes 30.08.2026 b */
.ria-conversion-card__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: contain;
  background: #ffffff;
}
.ria-conversion-card__action {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.ria-conversion-card__action .ria-button {
  display: block;
  width: 100%;
  text-align: center;
}
.ria-conversion-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.ria-conversion-card__meta > * {
  min-width: 0;
  overflow-wrap: anywhere;
}
.xr-picks__heading {
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.15;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.xr-picks, .xr-picks p, .xr-picks h3 {
  overflow-wrap: anywhere;
}

/* c: heading scale + drop repeated affiliate labels in the picks column */
.ria-conversion-grid .xr-picks .xr-picks__heading,
h2.xr-picks__heading {
  font-size: clamp(22px, 2vw, 30px) !important;
  line-height: 1.15;
  margin-bottom: 14px;
}
.xr-pick__flag { display: none; }

/* d: identical screenshot sizes across every review page */
@media (min-width: 900px) {
  .kvv-product-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
.kvv-product-media img {
  width: 100%;
  height: auto;
}

/* e: every review page uses the same full-width measure */
@media (min-width: 1100px) {
  body.parent-pageid-75578 .kvv-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.parent-pageid-75578 .kvv-layout > .kvv-sidebar {
    max-width: 100%;
  }
}

/* ---------- f: the ratings / picks block had no styles at all ---------- */
.ria-conversion-grid > .xr-picks {
  grid-column: 1 / -1;
  margin: 0 0 8px;
}
.ria-conversion-grid .xr-picks .xr-picks__heading,
h2.xr-picks__heading {
  font-size: clamp(20px, 1.8vw, 26px) !important;
  line-height: 1.2;
  margin: 0 0 16px;
}
.xr-picks__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.xr-pick {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid #d0d5dd;
  border-radius: 16px;
}
.xr-pick .xr-meta {
  display: block;
  margin: 0;
}
.xr-ribbon {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.3;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e7f5f3;
  color: #0b6f63;
  white-space: normal;
}
.xr-ribbon.xr-badge--top-pick { background: #0e9384; color: #ffffff; }
.xr-ribbon.xr-badge--best-value { background: #fef3c7; color: #92400e; }
.xr-ribbon.xr-badge--best-budget { background: #e0f2fe; color: #075985; }
.xr-ribbon.xr-badge--best-for-avatars { background: #ede9fe; color: #5b21b6; }
.xr-pick__name {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}
.xr-pick__name a { color: #17324d; text-decoration: none; }
.xr-pick__name a:hover { text-decoration: underline; }
.xr-score {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.xr-score__value {
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  padding: 5px 11px;
  border-radius: 999px;
  background: #0e9384;
  color: #ffffff;
  white-space: nowrap;
}
.xr-score__plan { font-size: 13px; color: #5b6b7a; line-height: 1.4; }
.xr-pick__line {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #425466;
}
/* ribbon sits on the logo card instead of floating above it as bare text */
.ria-conversion-card__media.xr-card-figure { position: relative; }
.ria-conversion-card__media.xr-card-figure > .xr-ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  max-width: calc(100% - 24px);
}
.ria-conversion-card .xr-meta { margin: 4px 0 12px; }
@media (max-width: 640px) {
  .xr-picks__grid { grid-template-columns: 1fr; }
}

/* ---------- g: product blocks were a single 620px column with a 4:3 logo panel ---------- */
.kvv-product-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)) !important;
  gap: 24px;
  align-items: stretch;
}
.kvv-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.kvv-product-card__media {
  aspect-ratio: 16 / 7 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  margin: 0;
}
.kvv-product-card__media img {
  width: auto !important;
  height: auto !important;
  max-width: min(100%, 200px);
  max-height: 100%;
  object-fit: contain;
}
.kvv-product-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
/* repeated affiliate wording under every button */
.kvv-affiliate-marker,
.kvv-product-card .kvv-link-state {
  display: none;
}
@media (max-width: 600px) {
  .kvv-product-grid { grid-template-columns: 1fr !important; }
}

/* h: any page carrying a product block uses the same full-width measure, so the grid is always 3-up */
@media (min-width: 1100px) {
  .kvv-layout:has(.kvv-product-grid) {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .kvv-layout:has(.kvv-product-grid) > .kvv-sidebar {
    max-width: 100%;
  }
}

/* i: 3-up made 358x903 cards (1:2.5, tall and thin). Wider cards, tighter rhythm. */
.kvv-product-grid {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)) !important;
  gap: 22px !important;
}
.kvv-product-card__body {
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 20px;
}
.kvv-product-card__body > * { margin-top: 0; margin-bottom: 0; }
.kvv-product-card__price { padding: 14px 16px; }
.kvv-product-card__specs { margin: 0; }
.kvv-card-actions { gap: 10px; margin-top: 4px; }
@media (max-width: 860px) {
  .kvv-product-grid { grid-template-columns: 1fr !important; }
}

/* j: a ratio-based logo band grows with the card; pin it instead */
.kvv-product-card__media {
  aspect-ratio: auto !important;
  height: 132px !important;
  min-height: 132px;
}

/* k: card interior was half centred, half left aligned, with loose vertical rhythm */
.kvv-product-card__body,
.kvv-product-card__body h3,
.kvv-product-card__body h3 a,
.kvv-product-card__meta,
.kvv-product-card__best,
.kvv-product-card__specs,
.kvv-product-card__source {
  text-align: left !important;
}
.kvv-product-card__body h3 {
  margin: 0 !important;
  font-size: 21px;
  line-height: 1.25;
}
.kvv-product-card__meta { margin: 0 !important; }
.kvv-product-card__best { margin: 0 !important; }
.kvv-product-card__best strong { display: block; margin-bottom: 2px; }
.kvv-product-card__specs { padding-left: 0; list-style: none; }
.kvv-product-card__specs li { margin: 0 0 6px; }
.kvv-product-card__source {
  margin: 0 !important;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

/* l: a lone card must not stretch to the full row. Cap the track, centre the row. */
.kvv-product-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 550px)) !important;
  justify-content: center;
}
