.tv-key-benefits {
  position: relative;
}

/* Full-bleed white BACKDROP, edge to edge, behind the block's own normal-width content —
   a `::before` sized to 100vw and re-centered (left:50%; margin-left:-50vw), not resizing
   the block itself. `.tv-key-benefits-col`/`.tv-key-benefits-preview` below are positioned
   with percentages relative to the block's OWN width (e.g. `width:40%; margin-left:50%`),
   so making the block itself 100vw (the `generic-hero-section`/`video-banner`/`tv-key-faq`
   dark-variant breakout technique) would blow those percentages out to the full viewport
   instead of the page's normal content width — this keeps the block's box/content sizing
   completely unchanged and only extends the visual background. Scoped away from
   `dark-theme`, which paints its own authored background image (set via an inline style in
   decorate(), tv-key-benefits.js) and has no use for a white backdrop under it. */
.tv-key-benefits:not(.dark-theme)::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  margin-left: -50vw;
  background-color: #fff;
}

.tv-key-benefits .tv-key-benefits-col {
  width: 100%;
}

.tv-key-benefits .tv-key-benefits-heading {
  width: 80%;
  margin: 0 auto;
  padding: 20px 0 30px;
  font-size: 35px;
  font-weight: 800;
  color: #000;
  text-align: center;
  text-transform: uppercase;
}

.tv-key-benefits .tv-key-benefits-heading-highlight {
  color: #f04c23;
}

.tv-key-benefits .tv-key-benefits-tabs {
  display: none;
}

.tv-key-benefits .tv-key-benefits-tablist {
  display: flex;
  flex-direction: column;
}

.tv-key-benefits .tv-key-benefits-tab {
  margin-bottom: 42px;
  padding: 0 16px 0 35px;
  border: none;
  border-left: 3px solid #e62a36;
  background: transparent;
  font-size: 18px;
  font-weight: 400;
  color: #a4a4a4;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

/* When a tab's description is actually expanded, the description (not the tab) carries
   the gap to the next tab, so the description sits flush under its own tab. A collapsed
   description is display:none and contributes no space at all, so this must only zero
   the tab's own margin when the description is the active (visible) one — otherwise
   every collapsed item loses its gap to the next tab entirely. */
.tv-key-benefits .tv-key-benefits-tab:has(+ .tv-key-benefits-description.active) {
  margin-bottom: 0;
}

.tv-key-benefits .tv-key-benefits-tablist .tv-key-benefits-tab:first-child {
  margin-top: 16px;
}

.tv-key-benefits .tv-key-benefits-tab.active {
  font-weight: 700;
  color: #000;
}

.tv-key-benefits .tv-key-benefits-description {
  display: none;
  margin: 0 0 42px;
  padding: 8px 16px 0 35px;
  font-size: 14px;
  line-height: 1.6;
  color: #000;
}

.tv-key-benefits .tv-key-benefits-description.active {
  display: block;
}

.tv-key-benefits .tv-key-benefits-preview {
  display: none;
}

.tv-key-benefits .tv-key-benefits-preview-image {
  display: none;
}

.tv-key-benefits .tv-key-benefits-preview-image.active {
  display: block;
}

.tv-key-benefits .tv-key-benefits-preview-image img {
  display: block;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.tv-key-benefits .tv-key-benefits-swiper {
  padding-bottom: 50px;
}

.tv-key-benefits .tv-key-benefits-swiper img {
  display: block;
  width: 100%;
}

.tv-key-benefits .tv-key-benefits-caption {
  margin: 0;
  padding: 16px 35px 45px;
  font-size: 16px;
  font-weight: 500;
  color: #000;
  text-align: center;
}

/* Only rendered when a benefit row has a description — reduces the title's own bottom
   padding so the two lines sit together (see the Dark Theme override below). */
.tv-key-benefits .tv-key-benefits-caption:has(+ .tv-key-benefits-caption-description) {
  padding-bottom: 16px;
}

.tv-key-benefits .tv-key-benefits-caption-description {
  margin: 0;
  padding: 0 35px 45px;
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  color: #000;
  text-align: center;
}

.tv-key-benefits .swiper-pagination-bullet {
  width: 16px;
  height: 2px;
  border-radius: 0;
  background: #d3d3d3;
  opacity: 1;
}

.tv-key-benefits .swiper-pagination-bullet-active {
  background: transparent;
  border: 1px solid #e62a36;
}

@media (width >= 600px) {
  .tv-key-benefits {
    min-height: 500px;
  }

  .tv-key-benefits .tv-key-benefits-col {
    width: 40%;
    margin-left: 50%;
  }

  .tv-key-benefits .tv-key-benefits-heading {
    width: auto;
    margin: 0;
    padding: 55px 0 34px;
    font-size: 40px;
    text-align: left;
  }

  .tv-key-benefits .tv-key-benefits-tabs {
    display: block;
  }

  .tv-key-benefits .tv-key-benefits-preview {
    position: absolute;
    top: 50%;
    left: 0;
    display: block;
    width: 50%;
    transform: translateY(-50%);
  }

  .tv-key-benefits .tv-key-benefits-preview-image img {
    max-width: 475px;
  }

  .tv-key-benefits .tv-key-benefits-swiper {
    display: none;
  }
}

@media (600px <= width <= 850px) {
  .tv-key-benefits .tv-key-benefits-col {
    margin-left: 56%;
  }
}

@media (width >= 1024px) {
  .tv-key-benefits .tv-key-benefits-preview-image img {
    max-width: 600px;
  }
}

@media (600px <= width <= 820px) {
  .tv-key-benefits .tv-key-benefits-preview-image img {
    max-width: 375px;
  }
}

/* Dark Theme variant — light text on a dark/authored background image, with the tab's
   left accent switching color (gray inactive, white active) instead of a constant red. */
.tv-key-benefits.dark-theme .tv-key-benefits-heading {
  padding: 60px 0 0;
  font-size: 25px;
  font-weight: 500;
  color: #fff;
  text-transform: none;
}

.tv-key-benefits.dark-theme .tv-key-benefits-heading-highlight {
  display: block;
  color: #f04c23;
}

.tv-key-benefits.dark-theme .tv-key-benefits-tablist .tv-key-benefits-tab {
  border-left-width: 2px;
  border-left-color: #666;
  color: #c4c4c4;
  text-transform: none;
}

.tv-key-benefits.dark-theme .tv-key-benefits-tab.active {
  border-left-color: #eaeaea;
  color: #eaeaea;
}

/* The expanded description gets its own left border: a full-height gray track, with a
   white overlay (::before) covering only its top N% — set per item via a CSS custom
   property in decorate() (the classic source's per-item highlight-bleed effect). The
   last item has no custom property set, so the overlay's height falls back to 0 (fully
   gray, no white bleed), matching the source's :last-child rule. */
.tv-key-benefits.dark-theme .tv-key-benefits-tablist .tv-key-benefits-description {
  position: relative;
  padding: 0 16px 0 35px;
  border-left: 2px solid #666;
  font-size: 18px;
  font-weight: 400;
  line-height: 32px;
  color: #eaeaea;
}

.tv-key-benefits.dark-theme .tv-key-benefits-description::before {
  content: '';
  position: absolute;
  top: 0;
  left: -2px;
  width: 2px;
  height: var(--tv-key-benefits-description-highlight, 0%);
  background: #eaeaea;
}

.tv-key-benefits.dark-theme .tv-key-benefits-caption {
  color: #fff;
}

.tv-key-benefits.dark-theme .tv-key-benefits-caption-description {
  color: #e4e4e4;
}

.tv-key-benefits.dark-theme .tv-key-benefits-swiper {
  padding-bottom: 0;
}

.tv-key-benefits.dark-theme .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4f4f4f;
}

.tv-key-benefits.dark-theme .swiper-pagination-bullet-active {
  background: transparent;
  border: 1px solid #4f4f4f;
}

@media (width >= 600px) {
  .tv-key-benefits.dark-theme {
    min-height: 930px;
  }

  .tv-key-benefits.dark-theme .tv-key-benefits-col {
    width: 42%;
    margin-left: 55%;
  }

  .tv-key-benefits.dark-theme .tv-key-benefits-heading {
    padding: 100px 0 34px;
    font-size: 36px;
  }
}

@media (600px <= width <= 850px) {
  .tv-key-benefits.dark-theme {
    min-height: 760px;
  }

  /* Not part of the source spec for this variant — override back to 55% so it doesn't
     inherit the base tv-key-benefits' own tablet-only 56% quirk (see above). */
  .tv-key-benefits.dark-theme .tv-key-benefits-col {
    margin-left: 55%;
  }
}
