/* Shopify Markets page only (/shopify/markets/). Loaded via `extra: crm, p-shopify-markets`. Every class is scoped with .psmk- */
:root { --psmk-g: #5E8E3E; --psmk-gbg: #EAF4E2; --psmk-sea: #0A6FA8; --psmk-ink: #082238; --psmk-mut: #475569; --psmk-line: #DCE7EF; }

/* ---------- hero: globe + flipping currency chips ---------- */
.psmk-hero .psmk-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.psmk-hero .crm-sub { max-width: 40ch; }
.psmk-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.psmk-chips li { display: grid; gap: 2px; padding: 10px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--psmk-line); box-shadow: 0 10px 20px -16px rgba(8,34,56,.5); }
.psmk-chips b { font: 800 16px/1.1 var(--f-display); color: var(--psmk-ink); }
.psmk-chips span { font: 500 12.5px/1.2 var(--f-body); color: #64748B; }
.psmk-badge img { width: 40px !important; height: 40px; padding: 6px; border-radius: 12px; background: var(--psmk-gbg); }

.psmk-globe { position: relative; margin: 0; min-height: 470px; display: grid; place-items: center; }
.psmk-globe__ball { position: relative; width: min(330px, 78%); aspect-ratio: 1; filter: drop-shadow(0 40px 50px rgba(8,34,56,.28)); }
.psmk-globe__ball svg { display: block; width: 100%; height: 100%; }
.psmk-lat ellipse { fill: none; stroke: rgba(10,111,168,.22); stroke-width: 1; }
.psmk-lon .psmk-m { fill: none; stroke: rgba(10,111,168,.32); stroke-width: 1.1; transform-origin: 150px 150px; transform: scaleX(calc(1 - var(--i) * .25)); animation: psmk-spin 12s linear infinite; animation-delay: calc(var(--i) * -3s); }
@keyframes psmk-spin { 0% { transform: scaleX(1); } 50% { transform: scaleX(0); } 100% { transform: scaleX(-1); } }
.psmk-land path { fill: #95BF47; opacity: .55; stroke: #5E8E3E; stroke-width: 1; animation: psmk-drift 24s ease-in-out infinite alternate; }
@keyframes psmk-drift { from { transform: translateX(-10px); } to { transform: translateX(12px); } }
.psmk-rim { stroke: rgba(8,34,56,.18); stroke-width: 1.5; }
.psmk-pin { fill: #fff; stroke: var(--psmk-sea); stroke-width: 2.4; }
.psmk-pin--home { fill: #E11D48; stroke: #fff; }
.psmk-pins circle:not(.psmk-pin--home) { animation: psmk-ping 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.psmk-pins circle:nth-child(3) { animation-delay: .5s; } .psmk-pins circle:nth-child(4) { animation-delay: 1s; } .psmk-pins circle:nth-child(5) { animation-delay: 1.5s; } .psmk-pins circle:nth-child(6) { animation-delay: 2s; } .psmk-pins circle:nth-child(7) { animation-delay: 2.5s; }
@keyframes psmk-ping { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.5); } }

.psmk-flip { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.psmk-flip li { position: absolute; width: 132px; height: 58px; perspective: 600px; }
.psmk-flip li:nth-child(1) { left: 0; top: 40px; }
.psmk-flip li:nth-child(2) { right: 0; top: 24px; }
.psmk-flip li:nth-child(3) { right: -6px; top: 196px; }
.psmk-flip li:nth-child(4) { right: 22px; bottom: 54px; }
.psmk-flip li:nth-child(5) { left: 10px; bottom: 70px; }
.psmk-flip li:nth-child(6) { left: -10px; top: 210px; }
.psmk-flip__in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.3,1.3,.4,1); }
.psmk-flip li.is-on .psmk-flip__in { transform: rotateX(180deg); }
.psmk-flip__f, .psmk-flip__b { position: absolute; inset: 0; display: grid; align-content: center; gap: 3px; padding: 8px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--psmk-line); box-shadow: 0 18px 30px -20px rgba(8,34,56,.6); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.psmk-flip__b { transform: rotateX(180deg); border-color: #BFE3F6; background: linear-gradient(180deg, #fff, #F1F9FE); }
.psmk-flip small { font: 600 10.5px/1.1 var(--f-body); color: #64748B; letter-spacing: .02em; }
.psmk-flip b { font: 800 17px/1 var(--f-display); color: var(--psmk-ink); font-variant-numeric: tabular-nums; }
.psmk-flip__b b { color: var(--psmk-sea); }
.psmk-globe__cap { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; width: max-content; max-width: 100%; font: 500 12.5px/1.35 var(--f-body); color: var(--psmk-mut); }
.psmk-globe__cap span { padding: 3px 8px; border-radius: 999px; background: #F3F7F9; font-weight: 700; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: #64748B; }

/* ---------- fit ---------- */
.psmk-fit__grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 22px; margin-top: 34px; }
.psmk-fit__col { padding: 26px 26px 10px; border-radius: 22px; background: #fff; border: 1px solid var(--psmk-line); }
.psmk-fit__col--go { border-top: 4px solid var(--psmk-g); }
.psmk-fit__col--wait { border-top: 4px solid #B45309; background: #FFFBF2; }
.psmk-fit__col h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 800 18px/1.2 var(--f-display); color: var(--psmk-ink); }
.psmk-fit__col h3 span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--psmk-gbg); color: var(--psmk-g); font-size: 15px; }
.psmk-fit__col--wait h3 span { background: #FFF1D6; color: #B45309; }
.psmk-fit__col ul { margin: 0; padding: 0; list-style: none; }
.psmk-fit__col li { padding: 0 0 16px; margin: 0 0 16px; border-bottom: 1px dashed var(--psmk-line); font: 400 15px/1.55 var(--f-body); color: var(--psmk-mut); }
.psmk-fit__col li:last-child { border-bottom: 0; margin-bottom: 0; }
.psmk-fit__col li b { color: var(--psmk-ink); font-weight: 700; }

/* ---------- services: numbered strip ---------- */
.psmk-svc__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 34px 0 0; padding: 0; list-style: none; border-radius: 22px; overflow: hidden; border: 1px solid var(--psmk-line); background: #fff; }
.psmk-svc__list li { position: relative; padding: 24px 20px 26px; border-left: 1px solid var(--psmk-line); }
.psmk-svc__list li:first-child { border-left: 0; }
.psmk-svc__list li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c); transform: scaleX(.25); transform-origin: left; transition: transform .45s ease; }
.psmk-svc__list li:hover::before { transform: scaleX(1); }
.psmk-svc__n { display: block; margin-bottom: 14px; font: 800 30px/1 var(--f-display); color: var(--c); opacity: .85; }
.psmk-svc__list h3 { margin: 0 0 8px; font: 800 17px/1.25 var(--f-display); color: var(--psmk-ink); }
.psmk-svc__list p { margin: 0; font: 400 14.5px/1.55 var(--f-body); color: var(--psmk-mut); }

/* ---------- story: route + ticket stubs ---------- */
.psmk-route__map { position: relative; height: 150px; margin: 34px 0 6px; }
.psmk-route__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.psmk-route__base { fill: none; stroke: #CFE0EC; stroke-width: 3; stroke-dasharray: 2 8; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.psmk-route__line { fill: none; stroke: var(--psmk-sea); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--psmk-p, 0) * 100); transition: stroke-dashoffset .9s cubic-bezier(.3,.8,.3,1); }
.psmk-route__end { position: absolute; padding: 5px 10px; border-radius: 999px; background: var(--psmk-ink); color: #fff; font: 700 12px/1 var(--f-body); }
.psmk-route__end--a { left: 0; bottom: 0; }
.psmk-route__end--b { right: 0; top: 0; background: #E11D48; }
.psmk-tix { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.psmk-tix__i { position: relative; display: flex; flex-direction: column; padding: 18px 18px 0; border-radius: 16px; background: #fff; border: 1px solid var(--psmk-line); box-shadow: 0 22px 40px -34px rgba(8,34,56,.6); transition: opacity .5s, transform .5s cubic-bezier(.2,1.2,.4,1), border-color .4s; }
.psmk-js .psmk-tix__i { opacity: .55; transform: translateY(10px); }
.psmk-js .psmk-tix__i.is-in { opacity: 1; transform: none; border-color: #A9D3EC; }
.psmk-tix__stop { display: flex; justify-content: space-between; margin: 0 0 10px; font: 700 11px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: #94A3B8; }
.psmk-tix__stop span { color: var(--psmk-sea); }
.psmk-tix__i h3 { margin: 0 0 8px; font: 800 16px/1.25 var(--f-display); color: var(--psmk-ink); }
.psmk-tix__i p { margin: 0 0 14px; font: 400 14px/1.55 var(--f-body); color: var(--psmk-mut); }
.psmk-tix__i .psmk-tix__out { position: relative; margin: auto -18px 0; padding: 12px 18px; border-top: 2px dashed var(--psmk-line); background: #F7FAFC; border-radius: 0 0 16px 16px; font: 700 12.5px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--psmk-ink); }
.psmk-tix__out::before, .psmk-tix__out::after { content: ""; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--pg-bg, #F7FAFC); border: 1px solid var(--psmk-line); }
.psmk-tix__out::before { left: -9px; } .psmk-tix__out::after { right: -9px; }
.psmk-route__note { margin: 18px 0 0; font: 400 13px/1.5 var(--f-body); color: #64748B; }

/* ---------- interactive: market picker (dark) ---------- */
.psmk-pk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 26px; margin-top: 34px; }
.psmk-pk__in { display: grid; gap: 18px; align-content: start; }
.psmk-pk__set { margin: 0; padding: 0; border: 0; min-width: 0; }
.psmk-pk__set legend { margin-bottom: 10px; padding: 0; font: 700 13px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: #9FC0D8; }
.psmk-pk__cty { display: flex; flex-wrap: wrap; gap: 8px; }
.psmk-pk__cty button { padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #fff; font: 600 14px/1 var(--f-body); cursor: pointer; transition: background .25s, border-color .25s, transform .2s; }
.psmk-pk__cty button:hover { border-color: #5FD3F3; }
.psmk-pk__cty button[aria-pressed="true"] { background: #5FD3F3; border-color: #5FD3F3; color: #061A2E; }
.psmk-pk__cty button:focus-visible, .psmk-seg input:focus-visible + span { outline: 3px solid #FDE68A; outline-offset: 2px; }
.psmk-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.psmk-seg label { position: relative; cursor: pointer; }
.psmk-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.psmk-seg span { display: block; padding: 9px 13px; border-radius: 10px; font: 600 13.5px/1 var(--f-body); color: #CFE3F1; transition: background .2s, color .2s; }
.psmk-seg input:checked + span { background: #fff; color: #061A2E; }
.psmk-pk__out { padding: 22px; border-radius: 22px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); min-width: 0; }
.psmk-prev { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 50px -30px rgba(0,0,0,.6); }
.psmk-prev__bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #F3F7F9; border-bottom: 1px solid #E2E8F0; }
.psmk-prev__bar i { width: 8px; height: 8px; border-radius: 50%; background: #CBD5E1; }
.psmk-prev__bar span { margin-left: 8px; padding: 4px 10px; border-radius: 999px; background: #fff; font: 600 11.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--psmk-sea); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.psmk-prev__body { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px; }
.psmk-prev__img { display: grid; place-items: center; height: 92px; border-radius: 12px; background: linear-gradient(150deg, #EAF4E2, #D3E8C2); }
.psmk-prev__img svg { width: 64px; fill: #fff; stroke: #5E8E3E; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.psmk-prev__langs { display: flex; gap: 4px; margin: 0 0 6px; }
.psmk-prev__langs b, .psmk-prev__langs span { padding: 3px 7px; border-radius: 6px; font: 700 10.5px/1 var(--f-body); }
.psmk-prev__langs b { background: var(--psmk-ink); color: #fff; }
.psmk-prev__langs span { background: #EEF3F7; color: var(--psmk-mut); }
.psmk-prev__name { margin: 0 0 4px; font: 700 14px/1.25 var(--f-display); color: var(--psmk-ink); }
.psmk-prev__price { margin: 0 0 4px; font: 800 24px/1 var(--f-display); color: var(--psmk-ink); font-variant-numeric: tabular-nums; transition: color .3s; }
.psmk-prev__price.is-new { color: var(--psmk-sea); }
.psmk-prev__tax { margin: 0; font: 500 11.5px/1.3 var(--f-body); color: #64748B; }
.psmk-pk__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 0; }
.psmk-pk__facts div { padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.18); }
.psmk-pk__facts dt { font: 700 10.5px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: #9FC0D8; }
.psmk-pk__facts dd { margin: 5px 0 0; font: 500 13.5px/1.4 var(--f-body); color: #fff; }
.psmk-pk__h { margin: 16px 0 8px; font: 700 13px/1 var(--f-body); color: #9FC0D8; }
.psmk-pk__todo { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.psmk-pk__todo li { position: relative; padding: 0 0 0 24px; font: 400 14px/1.45 var(--f-body); color: #E6F1F8; animation: psmk-in .4s ease both; animation-delay: calc(var(--n, 0) * 60ms); }
.psmk-pk__todo li::before { content: ""; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 4px; border: 2px solid #5FD3F3; }
@keyframes psmk-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.psmk-pk__say { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(95,211,243,.12); font: 500 13.5px/1.45 var(--f-body); color: #fff; }
.psmk-pk__fine { margin: 18px 0 0; font: 400 13px/1.5 var(--f-body); color: #9FC0D8; }

/* ---------- Zoho ledger ---------- */
.psmk-led { margin-top: 30px; border-radius: 20px; overflow: hidden; border: 1px solid var(--psmk-line); background: #fff; }
.psmk-led__row { display: grid; grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 2.2fr) minmax(0, .8fr); align-items: center; gap: 14px; padding: 14px 20px; border-top: 1px solid #EEF3F7; font: 400 14.5px/1.45 var(--f-body); color: var(--psmk-mut); }
.psmk-led__row:nth-child(even) { background: #FAFCFD; }
.psmk-led__row--h { border-top: 0; background: var(--psmk-ink) !important; font: 700 11.5px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: #9FC0D8; }
.psmk-led__row span:first-child:not([role="columnheader"]) { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #E3F1FB; font: 800 13px/1 var(--f-display); color: var(--psmk-sea); }
.psmk-led__row span:nth-child(2) { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--psmk-ink); }
.psmk-led__row span:last-child b { font: 700 13px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--psmk-ink); }
.psmk-zoho__more { margin: 20px 0 0; max-width: 820px; font: 400 15px/1.6 var(--f-body); color: var(--psmk-mut); }
.psmk-led__row--h span[role="columnheader"] { color: #9FC0D8; font-weight: 700; }
.psmk-zoho__more a { color: var(--psmk-sea); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.psmk-zoho__more a:hover { color: var(--psmk-ink); }

/* ---------- pricing ---------- */
.psmk-rates th small { display: block; margin-top: 3px; font: 500 12px/1.3 var(--f-body); color: #64748B; }
.psmk-price__notes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0 0; }
.psmk-price__notes p { margin: 0; padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--psmk-line); font: 400 14.5px/1.55 var(--f-body); color: var(--psmk-mut); }
.psmk-price__notes b { color: var(--psmk-ink); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .psmk-svc__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .psmk-svc__list li:nth-child(4) { border-left: 0; }
  .psmk-svc__list li:nth-child(n+4) { border-top: 1px solid var(--psmk-line); }
  .psmk-tix { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .psmk-hero .psmk-hero__grid, .psmk-fit__grid, .psmk-pk, .psmk-price__notes { grid-template-columns: minmax(0, 1fr); }
  .psmk-globe { min-height: 420px; margin-top: 10px; }
  .psmk-led__row { grid-template-columns: 40px minmax(0, 1fr); }
  .psmk-led__row span:nth-child(3) { grid-column: 2; }
  .psmk-led__row span:nth-child(4) { grid-column: 2; }
  .psmk-led__row--h { display: none; }
}
@media (max-width: 640px) {
  .psmk-globe { min-height: 380px; }
  .psmk-globe__ball { width: 62%; }
  .psmk-flip li { width: 112px; height: 50px; }
  .psmk-flip b { font-size: 14.5px; }
  .psmk-flip small { font-size: 9.5px; }
  .psmk-flip li:nth-child(1) { left: 0; top: 10px; }
  .psmk-flip li:nth-child(2) { right: 0; top: 10px; }
  .psmk-flip li:nth-child(3) { right: 0; top: 150px; }
  .psmk-flip li:nth-child(4) { right: 0; bottom: 50px; }
  .psmk-flip li:nth-child(5) { left: 0; bottom: 50px; }
  .psmk-flip li:nth-child(6) { left: 0; top: 150px; }
  .psmk-globe__cap { width: 100%; justify-content: center; text-align: center; }
  .psmk-svc__list, .psmk-tix { grid-template-columns: minmax(0, 1fr); }
  .psmk-svc__list li { border-left: 0; border-top: 1px solid var(--psmk-line); }
  .psmk-svc__list li:first-child { border-top: 0; }
  .psmk-route__map { display: none; }
  .psmk-tix { position: relative; padding-left: 22px; }
  .psmk-tix::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 2px; background: repeating-linear-gradient(180deg, var(--psmk-sea) 0 6px, transparent 6px 12px); }
  .psmk-pk__facts { grid-template-columns: minmax(0, 1fr); }
  .psmk-prev__body { grid-template-columns: 72px minmax(0, 1fr); }
  .psmk-prev__img { height: 72px; }
  .psmk-pk__out { padding: 16px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .psmk-lon .psmk-m, .psmk-land path, .psmk-pins circle, .psmk-pk__todo li { animation: none !important; }
  .psmk-flip__in, .psmk-tix__i, .psmk-route__line, .psmk-svc__list li::before { transition: none !important; }
  .psmk-js .psmk-tix__i { opacity: 1; transform: none; }
}
