/* ============================================================
   Burgtec Product Widgets V2 — Shared Styles
   Adapted from the approved quest-lounge_v4.html design.
   Classes are prefixed bpv2-. Critical rules are hardened with
   !important so theme CSS cannot break the layout.
   ============================================================ */

:root {
  --bpv2-bg: #ffffff;
  --bpv2-surface-soft: #f5f5f2;
  --bpv2-surface-softer: #faf9f7;
  --bpv2-line: #e6e3de;
  --bpv2-line-strong: #d8d3cc;
  --bpv2-text: #1d1d1b;
  --bpv2-muted: #6f716a;
  --bpv2-green: #16302a;
  --bpv2-shadow-soft: 0 14px 34px rgba(18, 18, 15, 0.05);
  --bpv2-container: 1600px;
  --bpv2-radius-button: 7px;
  --bpv2-radius-md: 16px;
  --bpv2-radius-lg: 22px;
}

/* ── Base wrapper ──────────────────────────────────────────── */
.bpv2-widget {
  font-family: 'Fonetika', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--bpv2-text);
  line-height: 1.45;
}
.bpv2-widget *, .bpv2-widget *::before, .bpv2-widget *::after { box-sizing: border-box; }
.bpv2-widget img { max-width: 100%; display: block; border: 0; }
.bpv2-widget a:not(.bpv2-btn):not(.bpv2-download-pill) { color: inherit; text-decoration: none; }

/* Inner content container: 85% of the VIEWPORT, capped at 1600px.
   Breaks out of Elementor's boxed content width (same principle as the
   hero's 100vw trick) so the theme's container setting can't cap it. */
.bpv2-page {
  width: min(var(--bpv2-container), 85vw) !important;
  max-width: none !important;
  margin-left: calc(50% - min(var(--bpv2-container), 85vw) / 2) !important;
  margin-right: 0 !important;
}

/* Shared typography */
.bpv2-eyebrow {
  color: var(--bpv2-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}
.bpv2-widget h2.bpv2-h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 600;
  color: var(--bpv2-text);
}
.bpv2-widget h3.bpv2-h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--bpv2-text);
}
.bpv2-widget p {
  margin: 0 0 14px;
  color: var(--bpv2-muted);
  font-size: 15px;
}

/* ── Buttons (hardened) ────────────────────────────────────── */
.bpv2-widget .bpv2-btn,
a.bpv2-btn {
  appearance: none !important;
  border: 1px solid var(--bpv2-line-strong) !important;
  background: #fff;
  color: var(--bpv2-text);
  border-radius: var(--bpv2-radius-button) !important;
  min-height: 40px !important;
  height: 40px !important;
  padding: 0 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: 'Fonetika', Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}
.bpv2-widget .bpv2-btn:hover,
a.bpv2-btn:hover { transform: translateY(-1px); border-color: #c7c1b8 !important; }

.bpv2-widget a.bpv2-btn-primary,
a.bpv2-btn.bpv2-btn-primary {
  background: var(--bpv2-green) !important;
  color: #ffffff !important;
  border-color: var(--bpv2-green) !important;
}
.bpv2-widget a.bpv2-btn-primary:hover,
a.bpv2-btn.bpv2-btn-primary:hover { background: #1d4238 !important; border-color: #1d4238 !important; }

.bpv2-widget a.bpv2-btn-soft,
a.bpv2-btn.bpv2-btn-soft {
  background: var(--bpv2-surface-soft) !important;
  color: #7b7b78 !important;
  border-color: #f0efeb !important;
}
.bpv2-widget a.bpv2-btn-light,
a.bpv2-btn.bpv2-btn-light {
  background: #ffffff !important;
  color: var(--bpv2-text) !important;
  border-color: #ffffff !important;
}
.bpv2-widget a.bpv2-btn-light:hover,
a.bpv2-btn.bpv2-btn-light:hover { background: rgba(255,255,255,0.9) !important; border-color: rgba(255,255,255,0.9) !important; }

/* ── 1. Product hero (full-bleed) ──────────────────────────── */
.bpv2-hero {
  position: relative;
  height: clamp(480px, 68vh, 720px);
  overflow: hidden;
  background: var(--bpv2-green);
  /* Full-bleed even inside a boxed Elementor container */
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}
.bpv2-hero-bg { position: absolute; inset: 0; }
.bpv2-widget .bpv2-hero-bg img {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  display: block;
}
.bpv2-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(12,14,12,0.66) 0%, rgba(12,14,12,0.34) 55%, rgba(12,14,12,0.08) 100%);
}
.bpv2-hero-content {
  position: relative; z-index: 2; height: 100%;
  width: 85%; max-width: var(--bpv2-container); margin: 0 auto;
  display: flex; flex-direction: column; justify-content: center;
  align-items: flex-start; gap: 18px; color: #fff;
}
.bpv2-hero-breadcrumb {
  position: absolute; top: 26px; left: 0;
  font-size: 12.5px; color: rgba(255,255,255,0.75);
  display: flex; gap: 8px;
}
.bpv2-hero-breadcrumb a { color: rgba(255,255,255,0.75) !important; text-decoration: none !important; }
.bpv2-hero-breadcrumb a:hover { color: #fff !important; }
.bpv2-hero-small {
  text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.85);
}
.bpv2-widget h1.bpv2-hero-title {
  margin: 0 !important;
  font-size: clamp(64px, 9vw, 140px) !important;
  line-height: 0.92 !important;
  letter-spacing: -0.04em !important;
  font-weight: 600 !important;
  color: #fff !important;
  font-family: 'Fonetika', Arial, sans-serif !important;
}
.bpv2-widget p.bpv2-hero-copy {
  margin: 4px 0 0;
  max-width: 52ch;
  font-size: 17px; line-height: 1.55;
  color: rgba(255,255,255,0.88);
}
.bpv2-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* ── 2. Product block: gallery 2/3 + tabs 1/3 ──────────────── */
.bpv2-product {
  display: grid !important;
  grid-template-columns: 2fr 1fr;
  gap: 44px;
  padding: 56px 0 64px;
  align-items: start;
}

/* Gallery: thumbnails strip on the LEFT of the main image */
.bpv2-product-gallery {
  display: grid !important;
  grid-template-columns: 22% 1fr;
  gap: 12px;
  align-items: stretch;
}
.bpv2-product-gallery .bpv2-gallery-main { grid-column: 2; grid-row: 1; }
.bpv2-product-gallery .bpv2-gallery-side { grid-column: 1; grid-row: 1; }

.bpv2-gallery-side { position: relative; min-width: 0; min-height: 0; }
.bpv2-gallery-side-scroll {
  position: absolute; inset: 0; /* exactly matches the main image height */
  overflow-y: auto;
  cursor: grab; user-select: none;
  -webkit-user-select: none;
  scrollbar-width: none;
  border-radius: 12px;
}
.bpv2-gallery-side-scroll::-webkit-scrollbar { display: none; }
.bpv2-gallery-side-scroll.is-dragging { cursor: grabbing; }
.bpv2-gallery-side-grid {
  display: grid; grid-template-columns: 1fr; gap: 12px; /* single column strip */
}

.bpv2-gallery-main {
  border-radius: var(--bpv2-radius-lg); overflow: hidden;
  background: var(--bpv2-surface-softer); border: 1px solid var(--bpv2-line);
  box-shadow: var(--bpv2-shadow-soft);
  cursor: zoom-in; position: relative;
  aspect-ratio: 4 / 3;
  align-self: start;
  width: 100%; max-width: 100%;
}
.bpv2-widget .bpv2-gallery-main img {
  position: absolute !important; inset: 0;
  width: 100% !important; height: 100% !important;
  max-width: none !important;
  object-fit: cover !important; display: block;
  transition: opacity 0.25s ease;
}
.bpv2-gallery-main img.is-fading { opacity: 0; }
.bpv2-gallery-zoom-hint {
  position: absolute; right: 14px; bottom: 14px;
  background: rgba(255,255,255,0.9); border-radius: 999px;
  font-size: 11px; font-weight: 600; color: var(--bpv2-muted);
  padding: 7px 14px; pointer-events: none; z-index: 2;
}

/* Gallery arrows — appear on hover of the main image */
.bpv2-widget button.bpv2-gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3;
  width: 42px !important; height: 42px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255,255,255,0.5) !important;
  background: rgba(255,255,255,0.72) !important;
  backdrop-filter: blur(6px);
  color: var(--bpv2-text) !important; font-size: 16px !important; line-height: 1 !important;
  display: inline-flex !important; align-items: center; justify-content: center;
  cursor: pointer; font-family: Arial, sans-serif !important;
  padding: 0 !important;
  opacity: 0; transition: opacity 0.2s ease, background 0.2s ease;
}
.bpv2-gallery-main:hover .bpv2-gallery-arrow { opacity: 1; }
.bpv2-widget button.bpv2-gallery-arrow:hover { background: rgba(255,255,255,0.95) !important; }
.bpv2-gallery-arrow.bpv2-prev { left: 14px; }
.bpv2-gallery-arrow.bpv2-next { right: 14px; }

/* Counter under the thumbs strip */
.bpv2-gallery-counter {
  position: absolute; top: 100%; left: 0;
  margin-top: 8px; font-size: 12px; color: var(--bpv2-muted);
  letter-spacing: 0.04em; text-align: left; white-space: nowrap;
}

/* Thumbnails */
.bpv2-widget button.bpv2-gallery-thumb {
  display: block; width: 100% !important;
  border-radius: 12px !important; overflow: hidden;
  border: 1px solid var(--bpv2-line) !important;
  background: var(--bpv2-surface-softer) !important;
  cursor: pointer; padding: 0 !important; margin: 0 !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  position: relative; aspect-ratio: 4 / 3;
  appearance: none;
}
.bpv2-widget .bpv2-gallery-thumb img {
  position: absolute !important; inset: 0;
  width: 100% !important; height: 100% !important;
  max-width: none !important;
  object-fit: cover !important; display: block;
  -webkit-user-drag: none; pointer-events: none;
}
.bpv2-widget button.bpv2-gallery-thumb.is-active {
  border-color: var(--bpv2-green) !important;
  box-shadow: 0 0 0 1px var(--bpv2-green) !important;
}

/* ── Tabs (right column) ───────────────────────────────────── */
.bpv2-tab-nav {
  display: flex !important; flex-wrap: wrap;
  border-bottom: 1px solid var(--bpv2-line) !important;
  margin-bottom: 18px;
}
.bpv2-widget .bpv2-tab-nav button {
  appearance: none !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: 'Fonetika', Arial, sans-serif !important;
  font-size: 13.5px !important; font-weight: 400 !important;
  color: var(--bpv2-muted) !important;
  padding: 16px 8px 16px !important; /* taller labels */
  cursor: pointer;
  border-bottom: 2px solid transparent !important;
  border-radius: 8px 8px 0 0 !important; /* rounded top corners */
  margin: 0 0 -1px 0 !important;
  flex: 1 1 0 !important; text-align: center !important; /* equal-width tabs */
  position: relative;
  transition: color 0.15s ease, border-bottom-color 0.15s ease, background-color 0.15s ease;
}
.bpv2-widget .bpv2-tab-nav button:hover { color: var(--bpv2-text) !important; }
.bpv2-widget .bpv2-tab-nav button.is-active {
  color: var(--bpv2-text) !important;
  font-weight: 700 !important;
  background: var(--bpv2-surface-soft) !important; /* light grey active label */
  border-bottom-color: var(--bpv2-text) !important; /* underline */
}

.bpv2-tab-panel { display: none; min-height: 260px; }
.bpv2-tab-panel.is-active { display: block; animation: bpv2-tab-fade 0.25s ease; }
@keyframes bpv2-tab-fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* Spec rows (srow / slabel / smid / snum) */
.bpv2-srow {
  display: flex; gap: 12px;
  align-items: center; /* vertically centre content within every row */
  padding: 9px 0; border-top: 1px solid var(--bpv2-line);
  font-size: 14px; line-height: 1.4;
}
/* The tab-nav bottom line frames the content — no duplicate first row line */
.bpv2-tab-panel .bpv2-srow:first-child { border-top: 0 !important; }
/* No closing rule on any panel — the facts bar is the visual bottom */
.bpv2-tab-panel .bpv2-srow:last-child { border-bottom: 0 !important; }
/* Finish options: all rows as tall as the tallest (Legs) */
.bpv2-tab-panel[data-panel="finishes"] .bpv2-srow { min-height: 76px; }

.bpv2-slabel {
  flex: 0 0 92px;
  text-transform: uppercase; font-size: 11px;
  letter-spacing: 0.07em; color: var(--bpv2-muted); font-weight: 600;
}
.bpv2-smid { flex: 1; color: #3a3b36; }
.bpv2-sval { flex: 1; color: #3a3b36; }
.bpv2-snum {
  margin-left: auto; color: #3a3b36;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
/* Dimensions tab: dimension strings must NEVER break mid-value.
   The value keeps nowrap; if config + value don't fit on one line,
   the value drops as a whole to its own right-aligned line below
   (flex-wrap on the row). Configs wrap naturally on word boundaries. */
.bpv2-tab-panel[data-panel="dimensions"] .bpv2-srow {
  flex-wrap: wrap;
  row-gap: 2px;
  align-items: center;
}
/* Label rows (Seat height / Depth): matching line-height so the small
   uppercase label and the value sit on the same visual centre */
.bpv2-tab-panel[data-panel="dimensions"] .bpv2-slabel,
.bpv2-tab-panel[data-panel="dimensions"] .bpv2-snum {
  line-height: 1.4;
  align-self: center;
}
.bpv2-tab-panel[data-panel="dimensions"] .bpv2-smid {
  flex: 1 1 auto;
  min-width: 0;
}
.bpv2-tab-panel[data-panel="dimensions"] .bpv2-snum {
  flex: 0 0 auto;
  margin-left: auto;      /* right-aligned beside the config, or on its own line */
  white-space: nowrap;    /* the dimension string stays intact */
  text-align: right;
}
/* Compact mode (tried first): a notch smaller type to keep every
   row on a single line for long modular configs. */
.bpv2-tab-panel[data-panel="dimensions"].bpv2-dims-compact .bpv2-smid,
.bpv2-tab-panel[data-panel="dimensions"].bpv2-dims-compact .bpv2-snum {
  font-size: 12.5px;
}
.bpv2-tab-panel[data-panel="dimensions"].bpv2-dims-compact .bpv2-srow {
  gap: 10px;
}
/* Uniform stacked mode (fallback): if even compact type can't fit,
   every row renders identically — config on the first line, value
   right-aligned on the second. No one-line/two-line zigzag. */
.bpv2-tab-panel[data-panel="dimensions"].bpv2-dims-stacked .bpv2-snum {
  flex: 0 0 100%;
  text-align: right;
}

.bpv2-widget a.bpv2-fin-link {
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  color: inherit;
}
.bpv2-widget a.bpv2-fin-link:hover { color: var(--bpv2-muted) !important; }

/* Curated palette swatches */
.bpv2-swatch-row { display: flex; gap: 10px; margin-top: 2px; align-items: center; flex-wrap: wrap; }
.bpv2-swatch {
  width: 28px !important; height: 28px !important; border-radius: 50% !important;
  border: 1px solid rgba(29,29,27,0.18) !important;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.25);
  cursor: default; display: inline-block;
  transition: transform 0.15s ease;
}
.bpv2-swatch:hover { transform: scale(1.15); }

/* Download pills (hardened) */
.bpv2-widget a.bpv2-download-pill,
a.bpv2-download-pill {
  display: inline-flex !important; align-items: center !important; gap: 8px;
  padding: 10px 18px !important; border-radius: 999px !important;
  border: 1px solid var(--bpv2-line-strong) !important;
  background: #fff !important;
  font-size: 12.5px !important; font-weight: 600 !important;
  color: var(--bpv2-text) !important;
  font-family: 'Fonetika', Arial, sans-serif !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  transition: border-color 0.18s ease, background-color 0.18s ease;
  margin: 0;
}
.bpv2-widget a.bpv2-download-pill:hover {
  border-color: #c7c1b8 !important;
  background: var(--bpv2-surface-softer) !important;
}
.bpv2-download-pill::before { content: '\2193'; font-size: 12px; color: var(--bpv2-muted); }

/* Downloads tab: pills half-width, left-aligned labels */
.bpv2-download-stack {
  display: flex; flex-direction: column;
  align-items: stretch; gap: 8px; margin-top: 4px;
}
.bpv2-download-stack .bpv2-download-pill { width: 50% !important; justify-content: flex-start !important; }

/* ── Facts bar (dark green, below tabs) ────────────────────── */
.bpv2-fact-grid {
  display: grid !important;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  width: 100%;
  background: var(--bpv2-green) !important;
  border-radius: 10px;
  padding: 12px 18px;
  margin-top: 22px;
}
.bpv2-fact-cell {
  font-size: 13px; font-weight: 600; color: #fff !important;
  padding-right: 16px;
}
.bpv2-fact-cell + .bpv2-fact-cell {
  padding-left: 18px;
  border-left: 1px solid rgba(255,255,255,0.25) !important; /* translucent divider */
}
.bpv2-fact-cell span {
  display: block;
  text-transform: uppercase; font-size: 9.5px; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.65) !important; font-weight: 600; margin-bottom: 3px;
}

/* ── 3/4. Related products & projects ──────────────────────── */
.bpv2-related { padding: 60px 0; border-top: 1px solid var(--bpv2-line); }
.bpv2-related-grid {
  display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 28px;
}
.bpv2-related-card { display: flex !important; flex-direction: column; }
.bpv2-related-image {
  border-radius: var(--bpv2-radius-md); overflow: hidden;
  border: 1px solid var(--bpv2-line); background: var(--bpv2-surface-softer);
  margin-bottom: 16px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.bpv2-related-card:hover .bpv2-related-image {
  border-color: #c7c1b8;
  box-shadow: 0 8px 24px rgba(18,18,15,0.10);
}
.bpv2-widget .bpv2-related-image img {
  width: 100% !important;
  aspect-ratio: 1.18 / 1;
  object-fit: cover !important;
  display: block;
}
.bpv2-related-card h3.bpv2-h3 { margin-bottom: 12px; }
.bpv2-related-image-link { display: block; }
.bpv2-related-card .bpv2-btn { align-self: flex-start !important; margin-top: auto; }

/* ── 5. Ready CTA strip ────────────────────────────────────── */
.bpv2-final-cta {
  display: grid !important; grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px; align-items: center; padding: 48px 0 72px;
  border-top: 1px solid var(--bpv2-line);
}
.bpv2-final-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* ── 6. Best for ───────────────────────────────────────────── */
.bpv2-best-for { padding: 60px 0; border-top: 1px solid var(--bpv2-line); }
.bpv2-best-grid {
  display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 28px;
}
.bpv2-best-card {
  background: var(--bpv2-surface-softer); border: 1px solid var(--bpv2-line);
  border-radius: var(--bpv2-radius-md); padding: 24px 22px; min-height: 170px;
}

/* ── Lightbox ──────────────────────────────────────────────── */
.bpv2-lightbox {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(18,18,15,0.88);
  display: none; align-items: center; justify-content: center;
  padding: 40px; cursor: zoom-out;
}
.bpv2-lightbox.is-open { display: flex !important; }
.bpv2-widget .bpv2-lightbox img {
  position: static !important;
  max-width: 100% !important; max-height: 100% !important;
  width: auto !important; height: auto !important;
  object-fit: contain !important;
  border-radius: 8px;
}
.bpv2-widget button.bpv2-lightbox-close {
  position: absolute; top: 22px; right: 28px;
  background: none !important; border: 0 !important; color: #fff !important;
  font-size: 30px !important; cursor: pointer; line-height: 1 !important;
  font-family: inherit; padding: 0 !important;
}
/* Lightbox side arrows — browse images while zoomed */
.bpv2-widget button.bpv2-lightbox-arrow {
  position: absolute !important; top: 50% !important;
  transform: translateY(-50%) !important;
  width: 48px !important; height: 48px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  font-size: 18px !important; line-height: 1 !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  cursor: pointer !important;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, border-color 0.2s ease !important;
  font-family: Arial, sans-serif !important; padding: 0 !important;
}
.bpv2-widget button.bpv2-lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
}
.bpv2-widget button.bpv2-lightbox-prev { left: 26px !important; }
.bpv2-widget button.bpv2-lightbox-next { right: 26px !important; }

/* ── Configure Online modal (slide-up iframe) ──────────────────
   Built by product.js on demand and appended to <body>, so every
   rule is hardened with !important against theme interference.   */
.bpv2-configure-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  background: rgba(18, 18, 15, 0.62) !important;
  display: block !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}
.bpv2-configure-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease;
}
.bpv2-configure-panel {
  position: absolute !important;
  left: 0 !important; right: 0 !important; bottom: 0 !important;
  height: calc(100% - 40px) !important;
  margin: 0 !important; padding: 0 !important;
  background: #ffffff !important;
  border-radius: 18px 18px 0 0 !important;
  overflow: hidden !important;
  box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.35) !important;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.bpv2-configure-overlay.is-open .bpv2-configure-panel { transform: translateY(0); }
.bpv2-configure-frame {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  background: #ffffff !important;
}
.bpv2-configure-overlay button.bpv2-configure-close {
  position: absolute !important;
  top: 12px !important; right: 14px !important;
  z-index: 2 !important;
  width: 38px !important; height: 38px !important;
  border-radius: 50% !important;
  border: 1px solid var(--bpv2-line-strong) !important;
  background: rgba(255, 255, 255, 0.95) !important;
  color: var(--bpv2-text) !important;
  font-size: 22px !important;
  line-height: 1 !important;
  font-family: Arial, sans-serif !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important; margin: 0 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12) !important;
  transition: background 0.18s ease, transform 0.18s ease;
}
.bpv2-configure-overlay button.bpv2-configure-close:hover {
  background: #ffffff !important;
  transform: scale(1.06);
}
body.bpv2-modal-open { overflow: hidden !important; }

/* ── Scroll reveal ─────────────────────────────────────────── */
.bpv2-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.bpv2-reveal.is-visible { opacity: 1; transform: none; }
/* JS may not run inside the Elementor editor — always show */
.elementor-editor-active .bpv2-reveal { opacity: 1 !important; transform: none !important; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .bpv2-product { grid-template-columns: 1fr; }
  .bpv2-best-grid, .bpv2-related-grid { grid-template-columns: 1fr 1fr; }
  .bpv2-final-cta { grid-template-columns: 1fr; }
  .bpv2-final-actions { justify-content: flex-start; }
}
@media (max-width: 720px) {
  .bpv2-page { width: calc(100% - 28px) !important; }
  .bpv2-hero { height: auto; min-height: 480px; }
  .bpv2-hero-content { width: calc(100% - 28px); padding: 90px 0 60px; }
  .bpv2-best-grid, .bpv2-related-grid { grid-template-columns: 1fr; }
  .bpv2-widget .bpv2-btn, a.bpv2-btn { width: 100% !important; }
  .bpv2-hero-actions, .bpv2-final-actions { width: 100%; }
  .bpv2-product-gallery { grid-template-columns: 1fr; }
  .bpv2-product-gallery .bpv2-gallery-main { grid-column: 1; grid-row: 1; }
  .bpv2-product-gallery .bpv2-gallery-side {
    grid-column: 1; grid-row: 2;
    position: static; height: 120px;
  }
  .bpv2-product-gallery .bpv2-gallery-side-scroll {
    position: static; height: 120px;
    overflow-x: auto; overflow-y: hidden;
  }
  .bpv2-product-gallery .bpv2-gallery-side-grid {
    grid-auto-flow: column; grid-auto-columns: 160px; grid-template-columns: none;
  }
  .bpv2-download-stack .bpv2-download-pill { width: 100% !important; }
}
