/* #865 FULL / ESP-ONLY pill and "not included" feature state for a product page that has a merged
   ESP-only edition (BO7 Frost + Frost LITE). Loaded only on those pages by storefront/product.blade.php.
   The page root (.product-page) carries .is-lite while the pill is on ESP-ONLY. */

/* Text that exists once per edition (breadcrumb, "Inside {name}" heading). */
.ed-lite { display: none; }
.product-page.is-lite .ed-lite { display: revert; }
.product-page.is-lite .ed-full { display: none; }

/* ---- title row ---- */
/* Owner, 11-10: the status badge must not drop under the title when the pill flips. "Buy Frost LITE"
   plus the badge is wider than the 392px rail at the normal 44px title, so on pages with a merged
   edition (the only pages that load this file) the title is a little smaller in BOTH states and the
   two always share one line. Phones already fit (the title is 30px there). */
.buy-box .product-title-row .product-title { font-size: clamp(30px, 3.4vw, 38px); }
.buy-box .product-title-row { min-height: 51px; }

/* ---- the pill: mint-outline slider, full width at the top of the purchase panel (#873) ---- */
/* Owner, 11-11: the toggle sits in the purchase panel above the durations, under its own label
   ("Which version do you want?"), which copies the duration legend's look
   (.variant-fieldset legend in 21-product-page-1.css). It used to be a 264px pill under the name. */
.buy-box .edition-fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.edition-fieldset legend {
  padding: 0; margin-bottom: 10px; font-family: var(--font-accent); font-size: 16px; font-weight: var(--weight-semibold);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted);
}
.edition-pill {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  width: 100%; height: 48px; padding: 4px; margin: 0;
  border-radius: var(--radius-pill); background: var(--surface-sunken); border: 1px solid var(--border-default);
}
.edition-pill-thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  /* same selection look as the picked duration row (.variant-pill.is-selected): mint border, no fill, no glow */
  border-radius: var(--radius-pill); background: var(--surface-sunken); border: 1.5px solid var(--brand-mint);
  transition: transform 0.26s var(--ease-out);
}
.edition-pill.is-lite .edition-pill-thumb { transform: translateX(100%); }
.edition-pill-btn {
  position: relative; z-index: 1; padding: 0; border: 0; border-radius: var(--radius-pill); background: none;
  color: var(--text-muted); font-family: var(--font-accent); font-weight: 700; font-size: 15px;
  letter-spacing: 0.18em; line-height: 1; cursor: pointer; transition: color 0.2s;
}
.edition-pill-btn:hover { color: var(--text-primary); }
.edition-pill-btn.is-on, .edition-pill-btn.is-on:hover { color: var(--text-primary); }
.edition-pill-btn:focus-visible { outline: 2px solid var(--brand-mint); outline-offset: 2px; }

/* ---- feature categories the edition does not have ---- */
/* Owner, 11-10: a lock in the MIDDLE of the greyed card, the line "{Feature} is not on Frost LITE"
   under it and the "Switch to FULL" button under that, all centered. It lies over the card (the
   card keeps its size, nothing on the page moves). Hidden overlays are visibility:hidden so their
   button cannot take focus; the visibility flip waits for the fade-out to finish. */
.fv2-lock { position: relative; overflow: hidden; }
.fv2-lockbar {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 16px 20px; text-align: center;
  /* darkest behind the centered lock + text so they read cleanly, lighter toward the edges so the
     greyed card is still visible around them */
  background: radial-gradient(ellipse 62% 72% at 50% 50%, rgba(11, 11, 13, 0.9) 0%, rgba(11, 11, 13, 0.82) 45%, rgba(11, 11, 13, 0.4) 100%);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0s linear 0.3s;
}
.fv2-lockbar > * { transform: translateY(8px); transition: transform 0.34s var(--ease-out); }
.product-page.is-lite .fv2-lock .fv2-lockbar { opacity: 1; visibility: visible; transition: opacity 0.3s, visibility 0s; }
.product-page.is-lite .fv2-lock .fv2-lockbar > * { transform: none; }
.fv2-lockbar-text {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--font-display); font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--text-primary);
}
.fv2-lockbar-ico {
  display: flex; flex: none; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface-strong); border: 1px solid var(--border-strong); color: var(--text-primary);
}
.fv2-lockbar-ico svg { width: 21px; height: 21px; }
.fv2-lockbar-btn {
  height: 34px; padding: 0 16px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong);
  background: rgba(14, 14, 16, 0.6); color: var(--text-primary); font-family: var(--font-body); font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.34s var(--ease-out);
}
/* Owner, 11-10: keep this button neutral (no mint), the card around it is already greyed. */
.fv2-lockbar-btn:hover { background: var(--surface-strong); border-color: rgba(255, 255, 255, 0.3); }

/* The greyed state under the overlay, eased in with it. */
.fv2-lock, .fv2-lock .fv2-media .fv2-thumb, .fv2-lock .fv2-info, .fv2-cell.fv2-lock > :not(.fv2-lockbar) {
  transition: opacity 0.3s, filter 0.3s, background 0.3s, border-color 0.3s;
}
.product-page.is-lite .fv2-section.fv2-lock,
.product-page.is-lite .fv2-cell.fv2-lock { background: #111113; border-color: var(--border-default); }
.product-page.is-lite .fv2-lock .fv2-media .fv2-thumb { filter: grayscale(1) brightness(0.55); opacity: 0.5; }
.product-page.is-lite .fv2-lock .fv2-play { display: none; }
.product-page.is-lite .fv2-lock .fv2-info,
.product-page.is-lite .fv2-cell.fv2-lock > :not(.fv2-lockbar) { opacity: 0.36; filter: grayscale(1); }
.product-page.is-lite .fv2-lock .fv2-subs { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.25); }
/* #874: hidden, not removed. The button keeps its space so the greyed card stays the same height and
   nothing below it moves when the version is switched (Wardogs "Rage Aimbot" shrank by 46px). */
.product-page.is-lite .fv2-lock .fv2-more { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  .edition-pill-thumb, .fv2-lockbar, .fv2-lockbar > *, .product-page.is-lite .fv2-lock .fv2-lockbar,
  .fv2-lock, .fv2-lock .fv2-media .fv2-thumb, .fv2-lock .fv2-info, .fv2-cell.fv2-lock > :not(.fv2-lockbar) { transition: none; }
}
