/* Shared product compositions; colours come from the existing BonusPass palette. */
.elementor-widget-bonuspass-reference-rewards:has(.bph),
.elementor-widget-bonuspass-reference-brand:has(.bph),
.elementor-widget-bonuspass-reference-insights:has(.bph),
.elementor-widget-bonuspass-reference-visual:has(.bph) { width:100%; min-width:0; align-self:stretch; --container-widget-width:100%; }
.bph { display:flex; align-items:center; gap:var(--bph-gap,64px); width:100%; min-width:0; font-family:inherit; color:var(--title-dark); }
.bph * { box-sizing:border-box; }
.bph [hidden] { display:none!important; }
.bph .bpr-ui-icon { width:1.3rem; height:1.3rem; flex:none; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.bph-copy { flex:0 1 39%; min-width:0; }
.bph .bpr-description { max-width:32rem; }
.bph-canvas { position:relative; isolation:isolate; flex:1 1 57%; min-width:0; height:var(--bph-canvas-height,580px); overflow:hidden; border:1px solid var(--border); border-radius:var(--bradius); background:var(--bg-light); container:bph-visual / inline-size; }
.bph-view { position:absolute; inset:0; }
.bph-orbit { position:absolute; width:110%; aspect-ratio:1; left:-25%; top:-38%; border:1px solid var(--border); border-radius:50%; z-index:-1; pointer-events:none; }
.bph-screen { position:absolute; height:var(--bph-screen-height,80%); bottom:7%; width:min(var(--bph-phone-width,300px),45%); overflow:hidden; border:1px solid var(--border); border-radius:1.6rem; background:var(--bg-light-4); box-shadow:0 1rem 2rem color-mix(in srgb,var(--title-dark) 8%,transparent); }
.bph--dock .bph-screen { bottom:0; border-radius:1.6rem 1.6rem 0 0; }
.bph-screen img { display:block; width:100%; height:100%; object-fit:cover; object-position:top; max-width:none; }
.bph-options { display:flex; flex-wrap:wrap; gap:.6rem; margin-top:2rem; }
.bph-options button:not(.bph-format-button) { display:flex; align-items:center; justify-content:center; gap:.5rem; min-height:46px; padding:.75rem 1rem; border:1px solid var(--border); border-radius:var(--buttonradius); background:var(--bg-light-4); color:var(--title-dark); font:inherit; font-size:.85rem; line-height:1.3; cursor:pointer; }
.bph-options button:not(.bph-format-button)[aria-selected=true] { border-color:var(--primary); background:var(--primary); color:var(--bg-light-4); }
.bph-options button:focus-visible { outline:2px solid var(--primary); outline-offset:4px; }
.bph-options .bpr-ui-icon { width:1.1rem; height:1.1rem; }
.bph-card { position:absolute; z-index:3; padding:clamp(1rem,3.6cqi,1.7rem); border:1px solid var(--border); border-radius:1.4rem; background:var(--bg-light-4); box-shadow:0 .6rem 1.8rem color-mix(in srgb,var(--title-dark) 7%,transparent); }
.bph-card-label { display:flex; align-items:center; justify-content:space-between; gap:.8rem; font-size:.9rem; }
.bph-card-label>.bpr-ui-icon { color:var(--primary); }
.bph-card-footer { display:flex; align-items:center; gap:.5rem; margin-top:1.3rem; padding-top:1rem; border-top:1px solid var(--border); color:var(--text-dark); font-size:.78rem; line-height:1.4; }
.bph-card-footer .bpr-ui-icon { color:var(--primary); width:1rem; height:1rem; }
/* Reward formats: a recognisable app beside a large, simple reward graphic. */
.bph-reward-phone { right:5%; }
.bph-reward-graphic { left:5%; top:10%; width:48%; max-width:21rem; }
.bph-stamps { display:flex; flex-wrap:wrap; gap:8px; margin-top:1.5rem; }
.bph-stamps>span { display:flex; align-items:center; justify-content:center; flex:0 0 calc((100% - 24px)/4); aspect-ratio:1; border:1px solid var(--border); border-radius:50%; background:var(--bg-light); color:var(--primary); }
.bph-stamps>span.is-filled { background:var(--primary); color:var(--bg-light-4); border-color:var(--primary); }
.bph-stamps>span:last-child { background:var(--tertiary); color:var(--title-dark); border-color:var(--border); }
.bph-stamps .bpr-ui-icon { width:48%; height:48%; }
.bph-view-copy { position:absolute; bottom:6%; left:5%; width:42%; z-index:2; }
.bph-view-copy :is(h3,h4,h5) { margin:0 0 .7rem; text-wrap:balance; }
.bph-view-copy p:not(.e-paragraph-base) { margin:0; color:var(--text-dark); font-size:.9rem; line-height:1.5; }
.bph-points-ring { position:relative; width:78%; aspect-ratio:1; margin:1.1rem auto 0; }
.bph-points-ring svg { display:block; width:100%; height:100%; fill:none; stroke:var(--bg-light); stroke-width:10; }
.bph-points-ring svg circle:last-child { stroke:var(--primary); stroke-linecap:round; transform:rotate(-90deg); transform-origin:center; }
.bph-points-ring strong { position:absolute; inset:0; display:flex; flex-direction:column; justify-content:center; align-items:center; font-size:clamp(1.5rem,5.5cqi,2.6rem); font-weight:500; line-height:1.1; }
.bph-points-ring small,.bph-graphic-value small { display:block; margin-top:.25rem; font-size:.75rem; font-weight:400; color:var(--text-dark); }
.bph-visits { display:flex; flex-wrap:wrap; gap:8px; margin-top:1.4rem; }
.bph-visits>span { display:flex; align-items:center; justify-content:center; width:calc((100% - 24px)/4); aspect-ratio:1; border-radius:50%; border:1px solid var(--border); background:var(--bg-light); }
.bph-visits .is-filled { background:var(--accent); }
.bph-visits i { width:7px; height:7px; border-radius:50%; background:var(--primary); }
.bph-graphic-value { display:block; font-size:clamp(1.7rem,5.3cqi,2.8rem); margin-top:1.1rem; line-height:1.1; font-weight:500; }
.bph-coins { position:relative; height:115px; margin-top:1.4rem; }
.bph-coins i { position:absolute; display:flex; align-items:center; justify-content:center; width:82px; height:82px; border:1px solid var(--border); border-radius:50%; background:var(--tertiary); left:40%; top:0; transform:rotate(12deg); }
.bph-coins i:nth-child(2) { left:21%; top:16%; background:var(--accent); transform:rotate(-12deg); }
.bph-coins i:nth-child(3) { left:5%; top:32%; background:var(--primary); color:var(--bg-light-4); }
.bph-coins .bpr-ui-icon { width:2.3rem; height:2.3rem; }
/* Branding: real app views, with type, palette and Wallet graphics. */
.bph-brand-canvas { background:var(--bg-light-4); }
.bph-brand-phone { left:29%; z-index:2; }
.bph-peek { position:absolute; inset:0; z-index:0; pointer-events:none; }
.bph-peek-screen { width:32%; height:calc(var(--bph-screen-height,80%) - 13%); }
.bph-peek--left .bph-screen { left:4%; transform:rotate(-6deg); transform-origin:bottom center; }
.bph-peek--right .bph-screen { right:4%; transform:rotate(6deg); transform-origin:bottom center; }
.bph-brand-graphic { top:6%; left:4%; width:33%; padding:1.2rem; transform:rotate(-3deg); }
.bph-brand-tools { display:flex; align-items:center; justify-content:space-between; gap:.7rem; }
.bph-brand-tools>strong { font-size:clamp(1.8rem,6cqi,3rem); line-height:1; font-weight:500; letter-spacing:-.06em; }
.bph-brand-tools>span { display:flex; align-items:center; justify-content:center; padding:.65rem; border-radius:50%; background:var(--bg-light); color:var(--primary); }
.bph-swatches { display:flex; gap:.4rem; margin:1rem 0 .8rem; }
.bph-swatches>i { flex:1; aspect-ratio:1; border-radius:50%; background:var(--primary); border:1px solid var(--border); }
.bph-swatches>i:nth-child(2) { background:var(--accent); }
.bph-swatches>i:nth-child(3) { background:var(--tertiary); }
.bph-swatches>i:nth-child(4) { background:var(--secondary); }
.bph-brand-graphic>span { display:block; color:var(--text-dark); font-size:.75rem; }
.bph-wallet-badges { display:flex; position:absolute; top:8%; right:5%; gap:.6rem; z-index:3; }
.bph-wallet-badges>span { display:flex; align-items:center; justify-content:center; width:62px; height:62px; padding:14px; border:1px solid var(--border); border-radius:1rem; background:var(--bg-light-4); }
.bph-wallet-badges img { display:block; width:100%; height:100%; object-fit:contain; }
.bph-compact-benefits { display:flex; flex-direction:column; gap:1rem; margin-top:2rem; }
.bph-compact-benefits>span { display:flex; gap:.7rem; align-items:center; }
.bph-compact-benefits .bpr-ui-icon { color:var(--primary); }
/* Dashboard views: expansive real desktop imagery, a mobile source on phones. */
.bph--insights { flex-direction:column; align-items:stretch; gap:2.5rem; }
.bph-insights-intro { display:flex; align-items:flex-end; justify-content:space-between; gap:3rem; }
.bph-insights-intro>div:first-child { flex:1; max-width:730px; }
.bph-insights-intro .bpr-description { max-width:38rem; }
.bph-insights-intro .bph-options { flex-shrink:0; margin:0 0 .25rem; }
.bph-insights-canvas { width:100%; flex-basis:auto; flex-shrink:0; background:var(--bg-light-2); }
.bph-dashboard-screen { left:5%; width:90%; border-radius:1rem; }
.bph--dock .bph-dashboard-screen { border-radius:1rem 1rem 0 0; }
.bph-dashboard-screen picture { display:block; height:100%; }
.bph-insight-graphic { right:3%; top:6%; width:24%; max-width:310px; }
.bph-insight-graphic>strong { display:block; margin-top:1rem; font-size:1.1rem; font-weight:500; }
.bph-insight-graphic>p { font-size:.8rem; line-height:1.45; color:var(--text-dark); margin:.5rem 0 0; }
.bph-chart-art { position:relative; height:96px; display:flex; align-items:flex-end; }
.bph-chart-art>svg { width:100%; height:100%; fill:none; stroke:var(--primary); stroke-width:4; stroke-linecap:round; }
.bph-chart-art>span { position:absolute; top:0; left:0; display:flex; padding:.6rem; border-radius:50%; background:var(--accent); }
.bph-flow-icons { display:flex; align-items:center; justify-content:center; gap:.8rem; height:96px; }
.bph-flow-icons>span { display:flex; padding:1rem; border-radius:50%; background:var(--bg-light); color:var(--primary); }
.bph-flow-icons>span:last-child { background:var(--accent); }
.bph-flow-icons>i { display:flex; color:var(--primary); }
.bph-member-orbit { display:flex; align-items:center; justify-content:center; position:relative; height:96px; }
.bph-member-orbit>span { display:flex; align-items:center; justify-content:center; width:72px; height:72px; border:1px solid var(--border); border-radius:50%; background:var(--primary); color:var(--bg-light-4); }
.bph-member-orbit>span .bpr-ui-icon { width:2rem; height:2rem; }
.bph-member-orbit>i { display:flex; padding:.6rem; border:1px solid var(--border); border-radius:50%; background:var(--accent); position:absolute; left:10%; top:0; }
.bph-member-orbit>i:nth-last-child(2) { left:auto; right:6%; top:15%; background:var(--tertiary); }
.bph-member-orbit>i:last-child { top:auto; bottom:0; left:20%; background:var(--bg-light-4); }
/* Native Elementor FAQ with a separate editable product visual. */
.bp-reference-faq-grid:has(.bph-support) { display:flex; align-items:flex-start; gap:clamp(2rem,6vw,6rem); }
.bp-reference-faq-grid:has(.bph-support)>:first-child { flex:0 1 40%; min-width:0; }
.bp-reference-faq-grid:has(.bph-support)>.elementor-widget-toggle { flex:1; min-width:0; }
.bp-reference-faq-grid:has(.bph-support) .elementor-toggle-item { border:1px solid var(--border); border-radius:1rem; margin-bottom:12px; background:var(--bg-light-4); overflow:hidden; }
.bp-reference-faq-grid:has(.bph-support) .elementor-toggle .elementor-tab-title { padding:24px; border:0; }
.bp-reference-faq-grid:has(.bph-support) .elementor-toggle .elementor-tab-title:first-child { border:0; }
.bp-reference-faq-grid:has(.bph-support) .elementor-toggle .elementor-tab-content { padding:0 24px 24px; border:0; color:var(--text-dark); }
.bp-reference-faq-grid:has(.bph-support) .elementor-tab-title.elementor-active { background:var(--bg-light); }
.bp-reference-faq-grid:has(.bph-support) .elementor-tab-content.elementor-active { background:var(--bg-light); }
.bp-reference-faq-grid:has(.bph-support) .elementor-toggle-title { line-height:1.35; }
.bph-support { display:block; }
.bph-support-canvas { height:300px; background:var(--bg-light-2); }
.bph-support-phone { left:43%; width:45%; }
.bph-question { position:absolute; top:12%; left:10%; display:flex; justify-content:center; align-items:center; width:30%; aspect-ratio:1; font-size:clamp(3rem,16cqi,5rem); line-height:1; border:1px solid var(--border); border-radius:1.5rem 1.5rem .3rem 1.5rem; background:var(--primary); color:var(--bg-light-4); transform:rotate(-7deg); }
.bph-support-check { position:absolute; left:31%; top:44%; display:flex; padding:1rem; border:1px solid var(--border); border-radius:50%; background:var(--accent); }
.bph-support-label { position:absolute; left:7%; bottom:9%; display:flex; align-items:center; gap:.5rem; padding:.75rem; border:1px solid var(--border); border-radius:5rem; background:var(--bg-light-4); font-size:.8rem; }
html:not(.bph-ready) .bph-options { display:none; }
html:not(.bph-ready) .bp-reference-faq-grid:has(.bph-support) .elementor-tab-content { display:block; }
@media(max-width:1100px) {
 .bph { gap:var(--bph-gap,36px); }
 .bph-insights-intro { align-items:flex-start; flex-direction:column; gap:2rem; }
 .bph-insight-graphic { width:29%; }
 .bph-wallet-badges>span { width:48px; height:48px; padding:11px; }
}
@media(max-width:899px) {
 .bph--rewards,.bph--brand { flex-direction:column; align-items:stretch; }
 .bph-copy { flex:auto; }
 .bph-canvas { flex-basis:auto; width:100%; }
 .bph--brand>.bph-copy { order:-1; }
 .bph-compact-benefits { flex-direction:row; flex-wrap:wrap; gap:1rem 1.5rem; }
 .bp-reference-faq-grid:has(.bph-support) { flex-direction:column; align-items:stretch; }
 .bp-reference-faq-grid:has(.bph-support)>:first-child { flex:auto; }
 .bph-support-canvas { max-width:580px; }
}
@media(max-width:599px) {
 .bph-options { gap:.5rem; margin-top:1.5rem; }
 .bph-options button:not(.bph-format-button) { padding:.7rem .8rem; font-size:.8rem; }
 .bph--rewards .bph-options button:not(.bph-format-button) { flex:1 1 calc(50% - .5rem); }
 .bph-insight-graphic { width:50%; padding:1rem; top:5%; }
 .bph-dashboard-screen { width:86%; left:7%; }
 .bph-insight-graphic>strong { font-size:1rem; margin-top:.5rem; }
 .bph-insight-graphic>p { font-size:.73rem; }
 .bph-chart-art,.bph-flow-icons,.bph-member-orbit { height:65px; }
 .bph-flow-icons { gap:.4rem; }
 .bph-flow-icons>span { padding:.7rem; }
 .bph-member-orbit>span { width:54px; height:54px; }
 .bph-member-orbit>i { padding:.35rem; }
 .bp-reference-faq-grid:has(.bph-support) .elementor-toggle .elementor-tab-title { padding:20px; }
 .bp-reference-faq-grid:has(.bph-support) .elementor-toggle .elementor-tab-content { padding:0 20px 20px; }
}
@container bph-visual (max-width:480px) {
 .bph-card { padding:.9rem; border-radius:1rem; }
 .bph-card-label { font-size:.75rem; }
 .bph-card-footer { font-size:.65rem; gap:.3rem; margin-top:.8rem; padding-top:.7rem; }
 .bph-reward-graphic { width:49%; left:4%; top:8%; }
 .bph-reward-phone { right:4%; width:55%; }
 .bph-stamps { gap:6px; margin-top:1rem; }
 .bph-stamps>span { flex-basis:calc((100% - 18px)/4); }
 .bph-view-copy { left:5%; width:34%; bottom:7%; }
 .bph-view-copy :is(h3,h4,h5) { font-size:1.1rem; line-height:1.25; }
 .bph-view-copy p { display:none; }
 .bph-points-ring { margin-top:.8rem; }
 .bph-visits { gap:6px; margin-top:.8rem; }
 .bph-visits>span { width:calc((100% - 18px)/4); }
 .bph-coins { height:85px; }
 .bph-coins i { width:58px; height:58px; }
 .bph-coins .bpr-ui-icon { width:1.8rem; height:1.8rem; }
 .bph-graphic-value { font-size:1.6rem; }
 .bph-brand-phone { width:58%; left:22%; }
 .bph-brand-graphic { width:36%; top:7%; padding:.8rem; }
 .bph-brand-tools>span { padding:.35rem; }
 .bph-brand-graphic>span { font-size:.65rem; }
 .bph-wallet-badges { right:4%; gap:.4rem; }
 .bph-wallet-badges>span { width:42px; height:42px; padding:9px; border-radius:.8rem; }
}
@media(prefers-reduced-motion:no-preference) {
 .bph[data-motion=yes] .bph-view:not([hidden]) { animation:bph-reveal .26s ease both; }
 @keyframes bph-reveal { from { opacity:.4; } to { opacity:1; } }
}
