/* Live preview pop-up: a clickable example funnel (post-purchase pages + thank-you page) */
.pv-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(15, 13, 36, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 16px; }
.pv-overlay.open { display: flex; animation: pvFade .25s ease; }
@keyframes pvFade { from { opacity: 0 } to { opacity: 1 } }
.pv { position: relative; width: min(1320px, 100%); height: min(900px, 100%); background: #f4f3f9; border-radius: 24px; overflow: hidden; display: grid; grid-template-columns: 310px 1fr; box-shadow: 0 40px 120px rgba(0, 0, 0, .4); animation: pvUp .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes pvUp { from { transform: translateY(24px) scale(.98) } to { transform: none } }
.pv-close { position: absolute; top: 14px; right: 14px; z-index: 6; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow); font: 400 22px/1 Inter, sans-serif; cursor: pointer; color: var(--navy); }
.pv-close:hover { background: var(--cream); }

/* left: the funnel map and the order */
.pv-side { background: var(--navy-2); color: #cfcdea; padding: 26px 22px 22px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
.pv-side h3 { color: #fff; font-size: 23px; }
.pv-side > p { font-size: 14px; line-height: 1.5; }
.pv-map { display: grid; gap: 7px; }
.pv-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pv-branch { font: 600 10.5px/1 Inter, sans-serif; letter-spacing: .05em; text-transform: uppercase; text-align: center; padding: 3px 0; }
.pv-branch.y { color: var(--mint); }
.pv-branch.n { color: #ff9c90; }
.pv-node { position: relative; border-radius: 12px; padding: 9px 11px; background: rgba(255, 255, 255, .06); border: 1.5px solid rgba(255, 255, 255, .09); font-size: 11.5px; line-height: 1.3; transition: all .3s; }
.pv-node b { display: block; color: #fff; font: 600 13.5px/1.2 Outfit, sans-serif; padding-right: 18px; }
.pv-node small { color: #a29fc9; font-size: 11px; }
.pv-node.cur { background: #fff; border-color: var(--mint); box-shadow: 0 0 0 4px rgba(108, 223, 171, .28); }
.pv-node.cur b { color: var(--ink); }
.pv-node.cur small { color: var(--text); }
.pv-node.yes { border-color: var(--mint); }
.pv-node.no { border-color: #ff8a7a; }
.pv-node.yes::after, .pv-node.no::after { position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font: 800 10px/1 Inter, sans-serif; }
.pv-node.yes::after { content: "✓"; background: var(--mint); color: var(--navy-2); }
.pv-node.no::after { content: "✕"; background: #ff8a7a; color: #fff; }
.pv-node.skip { opacity: .28; }
.pv-arrow { text-align: center; color: #6f6c9c; font-size: 13px; line-height: 1; }
.pv-order { margin-top: auto; background: rgba(255, 255, 255, .07); border-radius: 16px; padding: 16px; }
.pv-order > small { font-size: 12px; color: #a29fc9; }
.pv-order .tot { font: 700 30px/1.1 Outfit, sans-serif; color: #fff; margin: 4px 0 8px; }
.pv-order .add { display: inline-block; background: var(--mint); color: var(--navy-2); font: 600 12px/1 Inter, sans-serif; padding: 6px 9px; border-radius: 999px; }
.pv-order ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: 12.5px; }
.pv-order li { display: flex; justify-content: space-between; gap: 10px; }
.pv-order li span:last-child { color: #fff; font-weight: 600; white-space: nowrap; }
.pv-order li.new span:first-child::before { content: "+ "; color: var(--mint); font-weight: 700; }
.pv-fine { font-size: 11.5px; color: #8784b2; }

/* right: toolbar, the page, the accept / decline controls */
.pv-stage { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; min-height: 0; }
.pv-bar { display: flex; align-items: center; gap: 14px; padding: 16px 72px 12px 26px; flex-wrap: wrap; }
.pv-step { font: 600 16px/1.2 Outfit, sans-serif; color: var(--ink); }
.pv-step small { display: block; font: 500 12.5px/1.35 Inter, sans-serif; color: var(--muted); margin-top: 3px; max-width: 560px; }
.pv-totm { display: none; margin-left: auto; font: 600 13px/1 Inter, sans-serif; color: var(--navy); background: var(--mint-soft); padding: 8px 10px; border-radius: 999px; }
.pv-dev { margin-left: auto; display: flex; background: #fff; border-radius: 999px; padding: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.pv-dev button { border: 0; background: none; padding: 8px 14px; border-radius: 999px; font: 600 13px/1 Inter, sans-serif; color: var(--text); cursor: pointer; }
.pv-dev button.on { background: var(--navy); color: #fff; }
.pv-frame { min-height: 0; display: flex; justify-content: center; padding: 0 26px; }
.pv-device { position: relative; background: #fff; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(22, 20, 47, .16); }
.pv-device.desktop { width: 100%; border-radius: 12px; }
.pv-device.mobile { width: 390px; max-width: 100%; border-radius: 40px; border: 10px solid #121022; }
.pv-chrome { height: 36px; flex: none; background: #f0eff4; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid #e4e3ea; }
.pv-chrome i { width: 10px; height: 10px; border-radius: 50%; background: #d8d6e0; }
.pv-chrome span { margin-left: 10px; flex: 1; max-width: 440px; height: 22px; border-radius: 6px; background: #fff; font: 400 11.5px/22px Inter, sans-serif; color: #888; padding: 0 10px; overflow: hidden; white-space: nowrap; }
.pv-device.mobile .pv-chrome { display: none; }
.pv-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth; }
.pv-toast { position: absolute; left: 50%; bottom: 26px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; background: #111; color: #fff; font: 600 13px/1.2 Inter, sans-serif; padding: 12px 16px; border-radius: 999px; transition: all .3s ease; z-index: 3; display: flex; gap: 8px; align-items: center; max-width: 90%; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.pv-toast.show { opacity: 1; transform: translate(-50%, 0); }
.pv-toast::before { content: "✓"; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--mint); color: #111; display: grid; place-items: center; font-size: 11px; }
.pv-ctrl { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 14px 26px 18px; flex-wrap: wrap; }
.pv-ctrl .btn { height: 50px; min-width: 190px; }
.pv-ctrl .pv-no { background: #fff; color: #c43d32; border: 1.5px solid #f2c9c6; }
.pv-ctrl .pv-no:hover { border-color: #c43d32; }
.pv-ctrl .hint { width: 100%; text-align: center; font-size: 12.5px; color: var(--muted); margin-top: -4px; }

@media (max-width: 900px) {
  .pv-overlay { padding: 0; }
  .pv { grid-template-columns: 1fr; border-radius: 0; height: 100%; }
  .pv-side { display: none; }
  .pv-dev { display: none; }
  .pv-totm { display: inline-block; }
  .pv-bar { padding: 14px 64px 10px 16px; }
  .pv-frame { padding: 0 12px; }
  .pv-device.mobile { width: 100%; border-width: 0; border-radius: 14px; }
  .pv-ctrl { padding: 10px 12px 14px; gap: 8px; }
  .pv-ctrl .btn { min-width: 0; flex: 1; height: 48px; padding: 0 12px; font-size: 15px; }
  .pv-ctrl .hint { display: none; }
}

/* ---------- the example store's pages (styled like Shopify's checkout pages) ---------- */
.sp { container-type: inline-size; font: 14px/1.45 Inter, -apple-system, "Segoe UI", sans-serif; color: #1a1a1a; }
.sp.enter { animation: spIn .45s ease; }
@keyframes spIn { from { opacity: 0; transform: translateX(18px) } to { opacity: 1; transform: none } }
.sp h4, .sp h5 { font-family: Inter, sans-serif; letter-spacing: 0; color: #1a1a1a; margin: 0; }
.sp-head { border-bottom: 1px solid #e3e3e3; padding: 16px; }
.sp-in { max-width: 820px; margin: 0 auto; }
.sp-store { font: 700 17px/1.2 Outfit, sans-serif; letter-spacing: .18em; margin-bottom: 14px; }
.sp-paid { display: flex; gap: 12px; align-items: center; }
.sp-check { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #2d8a5f; position: relative; }
.sp-check::after { content: ""; position: absolute; left: 10px; top: 8px; width: 9px; height: 5px; border-left: 2px solid #2d8a5f; border-bottom: 2px solid #2d8a5f; transform: rotate(-45deg) translate(-1px, 2px); }
.sp-paid small { display: block; color: #707070; font-size: 12.5px; }
.sp-paid b { font-size: 15.5px; font-weight: 600; }
.sp-paid a { margin-left: auto; font-size: 13px; color: #1a1a1a; text-decoration: underline; white-space: nowrap; }
.sp-body { padding: 18px 16px 34px; display: grid; gap: 10px; }
.sp-title { border: 1px solid #e3e3e3; border-radius: 6px; padding: 16px; text-align: center; }
.sp-title h4 { font-size: 20px; font-weight: 500; line-height: 1.3; }
.sp-title p { color: #707070; font-size: 14px; margin-top: 4px; }
.sp-banner { border-radius: 8px; padding: 14px 10px; text-align: center; color: #fff; font: 800 18px/1 Outfit, sans-serif; letter-spacing: .05em; background: linear-gradient(90deg, #16142f, #3d3790); }
.sp-banner.coral { background: linear-gradient(90deg, #d8473d, #ff7a6b); }
.sp-banner.mint { background: linear-gradient(90deg, #1f8f62, #3fc98c); }
.sp-timer { display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 8px; background: #fdeeed; border: 1px solid #f2c9c6; padding: 8px; font-size: 13.5px; }
.sp-tm { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; }
.sp-tm span { background: #16142f; color: #fff; border-radius: 5px; font: 700 15px/1 Outfit, sans-serif; padding: 6px 0; width: 30px; text-align: center; }
.sp-cards { display: grid; gap: 21px; margin-top: 8px; }
.sp-card { display: grid; grid-template-columns: 40% 1fr; gap: 14px; align-items: start; }
.sp-pic { aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 1px solid #eee; transition: box-shadow .2s; }
.sp-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-card.on .sp-pic { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #111; }
.sp-name { font-size: 15px; line-height: 1.3; }
.sp-stars { color: #e8a317; font-size: 13px; letter-spacing: 1px; margin-top: 3px; }
.sp-stars span { color: #707070; letter-spacing: 0; margin-left: 4px; }
.sp-price { display: flex; align-items: center; gap: 7px; margin-top: 4px; }
.sp-price b { font-size: 18px; font-weight: 600; }
.sp-badge { font: 700 11px/1 Inter, sans-serif; background: #d8473d; color: #fff; padding: 5px 6px; border-radius: 4px; white-space: nowrap; }
.sp-old { display: block; color: #8a8a8a; font-size: 13px; margin-top: 1px; }
.sp-select { margin-top: 10px; position: relative; border: 1px solid #d6d6d6; border-radius: 5px; background: #fff; }
.sp-select:focus-within { border-color: #111; box-shadow: 0 0 0 1px #111; }
.sp-select label { position: absolute; left: 11px; top: 6px; font-size: 11px; color: #707070; pointer-events: none; }
.sp-select select { appearance: none; -webkit-appearance: none; width: 100%; border: 0; outline: 0; background: transparent; padding: 21px 30px 7px 11px; font: 14px Inter, sans-serif; color: #1a1a1a; cursor: pointer; border-radius: 5px; }
.sp-select::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 1.6px solid #555; border-bottom: 1.6px solid #555; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.sp-choose { margin-top: 10px; width: 100%; height: 48px; border-radius: 5px; border: 1px solid #cfcfcf; background: #fff; font: 500 14px Inter, sans-serif; cursor: pointer; color: #1a1a1a; transition: all .15s; white-space: nowrap; }
.sp-choose:hover { border-color: #111; }
.sp-choose.on { background: #111; color: #fff; border-color: #111; }
.sp-pay { display: grid; gap: 9px; margin-top: 16px; }
.sp-rows { display: grid; gap: 5px; font-size: 14px; padding-top: 12px; border-top: 1px solid #e3e3e3; }
.sp-rows div { display: flex; justify-content: space-between; gap: 10px; }
.sp-rows .t { font-size: 16px; font-weight: 600; padding-top: 8px; margin-top: 3px; border-top: 1px solid #e3e3e3; }
.sp-btn { height: 56px; border-radius: 5px; border: 0; background: #111; color: #fff; font: 600 15px Inter, sans-serif; cursor: pointer; transition: transform .1s, background .15s; margin-top: 6px; }
.sp-btn:hover { background: #000; }
.sp-btn:active { transform: scale(.99); }
.sp-nudge { display: none; color: #c43d32; font-size: 13px; text-align: center; font-weight: 500; }
.sp-nudge.show { display: block; animation: spShake .35s; }
@keyframes spShake { 25% { transform: translateX(-5px) } 75% { transform: translateX(5px) } }
.sp-note { color: #707070; font-size: 12px; text-align: center; }
.sp-decline { background: none; border: 0; color: #1a1a1a; text-decoration: underline; font: 14px Inter, sans-serif; cursor: pointer; padding: 6px; justify-self: center; }
.sp-one { display: grid; gap: 16px; margin-top: 8px; }
.sp-one .sp-pic { width: 80%; margin: 0 auto; }
.sp-one .sp-name { font-size: 20px; }
.sp-one .sp-price b { font-size: 22px; }
.sp-lbl { font-size: 13px; color: #707070; margin-top: 14px; }
.sp-lbl b { color: #1a1a1a; font-weight: 500; }
.sp-sw { display: flex; gap: 9px; margin-top: 8px; }
.sp-sw button { width: 32px; height: 32px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px #c9c9c9; cursor: pointer; padding: 0; }
.sp-sw button.on { box-shadow: 0 0 0 2px #111; }
.sp-perks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; color: #444; }
.sp-perks li::before { content: "✓"; color: #2d8a5f; font-weight: 700; margin-right: 7px; }

/* thank-you page */
.ty-wrap { display: grid; gap: 14px; }
.ty-main { display: grid; gap: 14px; align-content: start; }
.ty-hello { display: flex; gap: 12px; align-items: center; }
.ty-hello small { color: #707070; font-size: 12.5px; display: block; }
.ty-hello h4 { font-size: 22px; font-weight: 600; }
.tyx-box { border: 1px solid #e3e3e3; border-radius: 8px; padding: 16px; }
.tyx-box > b { font-size: 15.5px; font-weight: 600; }
.tyx-box > p { color: #707070; margin-top: 4px; font-size: 13.5px; }
.ty-det { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; font-size: 13px; }
.ty-det small { display: block; color: #707070; margin-bottom: 3px; }
.ty-offer { border: 1.5px solid #111; border-radius: 10px; padding: 16px; display: grid; gap: 12px; }
.ty-ohead { display: grid; gap: 4px; }
.ty-ohead h5 { font-size: 16px; font-weight: 600; }
.ty-ohead p { color: #707070; font-size: 13.5px; }
.ty-ohead .sp-badge { justify-self: start; margin-bottom: 4px; }
.ty-items { display: grid; gap: 12px; }
.ty-item { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: start; }
.ty-item.on .sp-pic { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #111; }
.ty-item .sp-name { font-size: 14px; }
.ty-item .sp-price b { font-size: 16px; }
.ty-item .sp-choose { height: 40px; margin-top: 8px; }
.ty-item .sp-select { margin-top: 8px; }
.ty-offer .sp-btn { margin-top: 0; }
.ty-offer.done { border-color: #2d8a5f; background: #f0faf5; }
.ty-offer.done b { color: #1d6b48; font-size: 15px; }
.ty-sum { background: #f6f6f7; border-radius: 8px; padding: 16px; display: grid; gap: 12px; align-content: start; }
.ty-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; font-size: 13.5px; }
.ty-th { position: relative; width: 56px; height: 56px; border-radius: 8px; overflow: visible; border: 1px solid #e3e3e3; background: #fff; }
.ty-th img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 7px; }
.ty-th i { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; background: #707070; color: #fff; font: 600 11px/20px Inter, sans-serif; text-align: center; font-style: normal; }
.ty-line small { display: block; color: #707070; font-size: 12px; }
.ty-line .ty-tag { display: inline-block; margin-top: 3px; font: 600 10.5px/1 Inter, sans-serif; color: #1d6b48; background: #dff5ea; padding: 3px 6px; border-radius: 4px; }

@container (min-width: 700px) {
  .sp-head { padding: 20px 32px; }
  .sp-body { padding: 26px 32px 44px; max-width: 884px; margin: 0 auto; }
  .sp-cards { grid-template-columns: repeat(3, 1fr); }
  .sp-cards.two { grid-template-columns: repeat(2, 1fr); max-width: 560px; width: 100%; margin-inline: auto; }
  .sp-card { grid-template-columns: 1fr; gap: 10px; }
  .sp-choose { width: 60%; }
  .sp-cards.two .sp-choose { width: 100%; }
  .sp-one { grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
  .sp-one .sp-pic { width: 100%; }
  .sp-pay { max-width: 560px; margin: 18px auto 0; width: 100%; }
  .ty-body { max-width: 1040px; }
  .ty-wrap { grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
}
@container (max-width: 480px) { .sp-paid a { display: none; } }
@media (max-width: 900px) { .pv-step small { display: none; } .pv-bar { align-items: center; } }
