/* Home page, "Account Editor across the customer journey": one product shot per tab.
   A browser window with the real Shopify store page, cropped off the panel's right and bottom
   edges, and one floating callout for what Account Editor adds at that step. Every tab shares
   the same frame size, position and type scale. Markup: tools/journey_shots.py */
.jp { position: absolute; inset: 0; --jp-blue: #005bd3; --jp-line: #e3e3e3; --jp-sub: #6b6b6b; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #111; -webkit-font-smoothing: antialiased; }
.jp b { font-weight: 600; }
.jp p { margin: 0; }

/* ---------------------------------------------------------------- frame */
.jp-frame { position: absolute; left: 9%; top: 11%; width: 112%; height: 100%; display: flex; flex-direction: column; border-radius: 14px; background: #fff; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(17, 17, 26, 0.06), 0 2px 4px rgba(17, 17, 26, 0.04), 0 30px 70px -24px rgba(40, 24, 90, 0.45); }
.jp-bar { display: flex; align-items: center; gap: 6px; flex: none; height: 34px; padding: 0 14px; background: #f7f7f8; border-bottom: 1px solid #ececef; }
.jp-bar i { width: 9px; height: 9px; border-radius: 50%; background: #dcdce1; }
.jp-bar span { margin-left: 14px; padding: 3px 12px; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1px #e6e6ea; font-size: 11px; color: #68686f; white-space: nowrap; }
.jp-page { flex: 1; overflow: hidden; font-size: 12px; }
.jp-store { display: flex; align-items: center; gap: 22px; height: 46px; padding: 0 22px; border-bottom: 1px solid #ededed; }
.jp-store > b { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.jp-store--c { justify-content: center; }
.jp-crumbs { font-size: 11px; color: var(--jp-sub); } .jp-crumbs b { color: #111; }
.jp-nav { display: flex; gap: 16px; font-size: 12px; color: var(--jp-sub); } .jp-nav b { color: #111; }
.jp-cols { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); min-height: calc(100% - 46px); }
.jp-main { display: flex; flex-direction: column; gap: 9px; padding: 18px 20px; }
.jp-h { font-size: 14px; font-weight: 600; }
.jp-h--s { margin-top: 4px; font-size: 12.5px; }
.jp-sub { margin-top: -6px; font-size: 11.5px; color: var(--jp-sub); }
.jp-field { display: flex; flex-direction: column; gap: 1px; padding: 7px 11px; border-radius: 6px; box-shadow: inset 0 0 0 1px #d9d9d9; font-size: 12px; }
.jp-field em { font-style: normal; font-size: 10px; color: #8a8a8a; }
.jp-field--ph { color: #555; letter-spacing: 0.04em; }
.jp-radios { display: flex; flex-direction: column; border-radius: 6px; box-shadow: inset 0 0 0 1px #d9d9d9; overflow: hidden; }
.jp-radio { display: flex; align-items: center; gap: 10px; padding: 9px 11px; transition: background 0.35s ease, box-shadow 0.35s ease; }
.jp-radio + .jp-radio { box-shadow: inset 0 1px 0 #e4e4e4; }
.jp-radio i { flex: none; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #b4b4b4; transition: box-shadow 0.35s ease; }
.jp-radio > span { flex: 1; display: flex; flex-direction: column; } .jp-radio em { font-style: normal; font-size: 10.5px; color: var(--jp-sub); }
.jp-radio.is-on { background: #f0f5ff; box-shadow: inset 0 0 0 1.5px var(--jp-blue); }
.jp-radio.is-on i { box-shadow: inset 0 0 0 4.5px var(--jp-blue); }
/* order summary column */
.jp-sum { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; background: #f5f5f5; border-left: 1px solid #ebebeb; }
.jp-th { position: relative; display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px #e1e1e1; }
.jp-th img { position: absolute; inset: 9%; width: 82%; height: 82%; object-fit: contain; }
.jp-th--q::after { content: "1"; position: absolute; top: -6px; right: -6px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #6b6b6b; color: #fff; font-size: 9.5px; font-weight: 700; }
.jp-th--lg { width: 54px; height: 54px; }
.jp-th--hero { width: 46%; height: auto; aspect-ratio: 1; border-radius: 10px; background: #f6f6f6; box-shadow: none; }
.jp-line { display: flex; align-items: center; gap: 12px; }
.jp-line > span:not(.jp-th) { flex: 1; display: flex; flex-direction: column; min-width: 0; } .jp-line em { font-style: normal; font-size: 10.5px; color: var(--jp-sub); }
.jp-kvs { display: flex; flex-direction: column; gap: 5px; padding-top: 10px; border-top: 1px solid #e3e3e3; }
.jp-kv { display: flex; justify-content: space-between; font-size: 11.5px; } .jp-kv b { font-weight: 500; } .jp-kv.is-sub span { color: var(--jp-sub); }
.jp-tot { display: flex; justify-content: space-between; align-items: baseline; padding-top: 4px; font-size: 13px; font-weight: 600; }
.jp-tot b { font-size: 15px; } .jp-tot em { font-style: normal; font-size: 10px; font-weight: 400; color: var(--jp-sub); margin-right: 3px; }
.jp-up { color: #0c7a43; font-weight: 600 !important; }
/* buttons, chips, prices */
.jp-btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; border-radius: 6px; background: var(--jp-blue); color: #fff; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.jp-btn--line { background: #fff; color: var(--jp-blue); box-shadow: inset 0 0 0 1px #d6d6d6; }
.jp-btn--block { display: flex; margin-top: 6px; padding: 9px; }
.jp-chip { align-self: flex-start; padding: 2px 7px; border-radius: 4px; background: #5a5a5a; color: #fff; font-style: normal; font-size: 9.5px; font-weight: 600; }
.jp-chip--ok { background: #e6f4ec; color: #0c7a43; }
.jp-price { display: inline-flex; align-items: baseline; gap: 6px; } .jp-price b { font-size: 12.5px; } .jp-price s { font-size: 11px; color: #8a8a8a; }
.jp-price--lg b { font-size: 17px; }

/* ------------------------------------------------- the per-tab page bodies */
.jp-pp { padding: 18px 24px; }
.jp-pp__h { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px; border-radius: 8px; background: #f5f5f5; } .jp-pp__h span { font-size: 11px; color: var(--jp-sub); }
.jp-pp__in { display: flex; gap: 18px; margin-top: 16px; }
.jp-pp__d { flex: 1; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.jp-pp__n { font-size: 16px; }
.jp-conf { display: flex; align-items: center; gap: 10px; }
.jp-conf svg { flex: none; width: 30px; height: 30px; color: var(--jp-blue); stroke-width: 1.6; }
.jp-conf span { display: flex; flex-direction: column; } .jp-conf em { font-style: normal; font-size: 10.5px; color: var(--jp-sub); } .jp-conf b { font-size: 16px; }
.jp-box { display: flex; flex-direction: column; gap: 3px; padding: 11px 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px #dedede; font-size: 11px; color: #555; }
.jp-box b { font-size: 12.5px; color: #111; }
.jp-ban { padding: 7px; background: #0057d0; color: #fff; text-align: center; font-size: 11px; }
.jp-cols--os { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); min-height: calc(100% - 74px); }
.jp-card { margin-top: 4px; padding: 2px 12px; border-radius: 10px; box-shadow: inset 0 0 0 1px #e6e6e6; }
.jp-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #efefef; font-size: 11.5px; font-weight: 600; }
.jp-card > :last-child { border-bottom: 0; }
.jp-row svg { width: 14px; height: 14px; stroke-width: 1.8; }
.jp-line--q { padding: 8px 0; border-bottom: 1px solid #efefef; }
.jp-qty { display: inline-flex; align-items: center; gap: 3px; align-self: flex-start; margin-top: 3px; padding: 2px 5px; border-radius: 5px; box-shadow: inset 0 0 0 1px #dcdcdc; font-size: 10px; }
.jp-qty em { font-style: normal; color: var(--jp-sub); margin-right: 3px; }
.jp-qty span { display: grid; place-items: center; width: 17px; height: 15px; border-radius: 3px; transition: background 0.3s ease, color 0.3s ease; }
.jp-qty span.is-on { background: var(--jp-blue); color: #fff; }
.jp-addr { font-size: 11.5px; line-height: 1.5; color: #333; }
.jp-sum--os { gap: 6px; }

/* ---------------------------------------------------------------- callout */
.jp-call { position: absolute; left: 4%; bottom: 7%; z-index: 2; width: min(300px, 54%); padding: 14px; border-radius: 14px; background: #fff;
  box-shadow: 0 0 0 1px rgba(17, 17, 26, 0.06), 0 24px 48px -16px rgba(40, 24, 90, 0.5); }
.jp-call--sm { width: min(250px, 46%); }
.jp-tag { display: flex; align-items: center; gap: 7px; margin-bottom: 10px !important; font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em; color: #5b2fd6; }
.jp-tag span { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; overflow: hidden; } .jp-tag img { width: 100%; height: 100%; object-fit: cover; }
.jp-free { padding: 8px 10px; border-radius: 8px; background: #f0f5ff; font-size: 11px; }
.jp-free span { display: block; height: 4px; margin-top: 6px; border-radius: 4px; background: #d3def5; overflow: hidden; } .jp-free i { display: block; width: var(--w); height: 100%; background: var(--jp-blue); }
.jp-prod { display: flex; align-items: center; gap: 10px; margin-top: 10px !important; }
.jp-prod > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 12px; }
.jp-call .jp-kv { padding: 3px 0; }
.jp-call .jp-tot { margin-top: 6px; padding-top: 8px; border-top: 1px solid #ececec; }
.jp-timer { display: flex; flex-direction: column; gap: 2px; }
.jp-timer b { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; } .jp-timer span { font-size: 11.5px; color: var(--jp-sub); }
.jp-acts { display: flex; gap: 6px; margin-top: 10px !important; }
.jp-call--toast { padding: 12px 14px; }
.jp-toast { display: flex; align-items: center; gap: 10px; }
.jp-toast svg { flex: none; width: 24px; height: 24px; color: #0c7a43; stroke-width: 1.8; }
.jp-toast span { display: flex; flex-direction: column; } .jp-toast b { font-size: 12.5px; } .jp-toast em { font-style: normal; font-size: 11px; color: var(--jp-sub); }

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: no-preference) {
  .jt .mc__card .jp-frame { opacity: 0; translate: 0 26px; transition: opacity 0.6s ease, translate 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
  .jt .mc__card .jp-call { opacity: 0; translate: 0 18px; transition: opacity 0.5s ease 0.25s, translate 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.25s; }
  .jt .mc__card.is-on .jp-frame, .jt .mc__card.is-on .jp-call { opacity: 1; translate: 0 0; }
  .jt .mc__card.is-on .jp-call { animation: jp-float 6s ease-in-out 1.2s infinite; }
  @keyframes jp-float { 50% { translate: 0 -6px; } }
}
.jt .mc__art { overflow: hidden !important; }

/* ---------------------------------------------------------------- smaller screens */
@media (max-width: 1100px) { .jp-frame { width: 120%; } }
@media (max-width: 760px) {
  .jp-frame { left: 6%; top: 8%; width: 150%; }
  .jp-page { font-size: 11px; }
  .jp-call { left: 5%; bottom: 6%; width: 74%; }
  .jp-call--sm { width: 66%; }
}
.jp-line > span:not(.jp-th) { flex: 1; } .jp-line > .jp-th { flex: none; }
.jp-line > span.jp-th { display: grid; }
.jp-frame { width: 93%; }
.jp-th--hero { width: 38%; max-width: 170px; align-self: flex-start; }
@media (max-width: 1100px) { .jp-frame { width: 96%; } }
@media (max-width: 760px) { .jp-frame { width: 128%; } }

/* frame flush to the panel's right and bottom edges; page content drawn smaller */
.jp-frame { left: 10% !important; top: 10% !important; right: 0 !important; bottom: 0 !important; width: auto !important; height: auto !important; border-radius: 14px 0 0 0; }
.jp-page, .jp-call { zoom: 0.84; }
.jp-bar { height: 30px; }
.jp-call { left: 4%; bottom: 6%; width: min(320px, 60%); }
.jp-call--sm { width: min(270px, 52%); }
@media (max-width: 760px) {
  .jp-frame { left: 7% !important; top: 8% !important; }
  .jp-page, .jp-call { zoom: 0.72; }
  .jp-call { width: 86%; } .jp-call--sm { width: 76%; }
}

/* the art panel runs to the card's right and bottom edges (no border gap there); the card's
   own rounded corner clips it, so the window meets the edge cleanly */
@media (min-width: 761px) {
  .jt .mc__card:not(.mc__card--flip) .mc__art { margin: 0 -8px -8px 0; border-radius: 22px 0 30px 0; }
  .jt .mc__card--flip .mc__art { margin: 0 0 -8px -8px; border-radius: 0 22px 0 30px; }
}
@media (min-width: 761px) {
  .jt .mc__card .mc__art, .jt .mc__card--flip .mc__art { margin: 0 -8px -8px 0 !important; border-radius: 22px 0 30px 0 !important; }
}

/* ---------------------------------------------------------------- blocks merchants can add to each page */
.jp-call--r { left: auto; right: 4%; bottom: 7%; }
.jp-call--wide { bottom: 3%; width: min(330px, 56%); }
.jp-up-h { margin: 8px 0 0 !important; font-size: 13px; font-weight: 600; color: #111; }
.jp-call .jp-free + .jp-up-h { margin-top: 10px !important; }
.jp-reel { display: flex; gap: 8px; margin: 8px -14px 0 0 !important; overflow: hidden; }
.jp-tile { flex: 0 0 116px; display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 11.5px; }
.jp-tile .jp-th { width: 100%; height: 56px; border-radius: 8px; }
.jp-tile .jp-btn { margin-top: 3px; padding: 6px 4px; font-size: 11px; }
.jp-q__k { display: block; font-size: 10.5px; color: var(--jp-sub); }
.jp-q__bar { height: 4px; margin-top: 5px !important; border-radius: 4px; background: #e6e6e6; overflow: hidden; }
.jp-q__bar i { display: block; width: var(--w); height: 100%; background: var(--jp-blue); }
.jp-q { margin-top: 8px !important; font-size: 12.5px; font-weight: 600; color: #111; }
.jp-q__btns { display: flex; justify-content: flex-end; gap: 6px; margin-top: 10px !important; }
.jp-opts { display: flex; flex-direction: column; gap: 5px; margin-top: 7px !important; font-size: 11.5px; }
.jp-opt { display: flex; align-items: center; gap: 7px; }
.jp-opt i { flex: none; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #b4b4b4; }
.jp-opt.is-on i { box-shadow: inset 0 0 0 4px var(--jp-blue); }
.jp-stars { margin-top: 4px !important; font-size: 18px; line-height: 1; letter-spacing: 2px; color: #f5a623; }
.jp-stars i { font-style: normal; color: #dedede; }
.jp-nps { display: flex; gap: 3px; margin-top: 5px !important; }
.jp-nps i { flex: 1; padding: 3px 0; border-radius: 4px; box-shadow: inset 0 0 0 1px #d9d9d9; font-style: normal; font-size: 10.5px; text-align: center; color: #333; }
.jp-nps i.is-on { background: var(--jp-blue); color: #fff; box-shadow: none; }
.jp-call--mini { bottom: 2%; padding: 9px 11px; }
.jp-call--mini .jp-tag { margin-bottom: 4px !important; }
.jp-call--mini .jp-q { margin-top: 0 !important; }
.jp-call--mini .jp-q__btns { margin-top: 4px !important; }
.jp-main > .jp-free { margin-top: 2px; }
.jp-sum--os .jp-box { margin-top: 6px; background: #fff; }
@media (max-width: 1180px) {
  .jp-call { left: 2%; width: 46%; padding: 11px; }
  .jp-call--r, .jp-call--wide { left: auto; right: 2%; width: 48%; }
  .jp-prod { gap: 7px; } .jp-prod .jp-btn { padding: 7px 8px; font-size: 11px; }
}
@media (max-width: 900px) { .jp-call--r, .jp-call--mini { display: none; } }
