/* Print shop — photobooth-SPA side (client/core/printShop.js). The storefront itself
   is the standalone /shop page (shop/shop.css); the booth no longer carries shop entry
   points (the only shop promo lives on the homepage), so these styles cover what's
   left: the legacy return-from-Stripe success glyph and the profile's order-history
   rows. Landing design language throughout. */

/* ---------- success glyph (legacy /photobooth return) ---------- */
.ps-success-mark { font-size: 26px; }

/* ---------- profile: order history ---------- */
.ps-order-list { display: flex; flex-direction: column; gap: 10px; }
.ps-order {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--paper-raised);
  padding: 10px 12px;
}
.ps-order-mark { font-size: 18px; flex: none; }
.ps-order-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ps-order-name { font-size: 13.5px; font-weight: 600; }
.ps-order-date { font-size: 11.5px; color: var(--ink-soft); font-family: var(--font-mono); letter-spacing: 0.03em; }
.ps-order-tracks { display: flex; gap: 10px; flex-wrap: wrap; }
.ps-track { font-size: 12.5px; color: var(--blue); text-decoration: none; font-weight: 600; }
.ps-track:hover { text-decoration: underline; }

.ps-status {
  flex: none; font-size: 11.5px; font-weight: 700; border-radius: 4px; padding: 4px 10px;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink-soft);
}
.ps-status.is-live { background: var(--blue-tint); border-color: transparent; color: #2d6bcc; }
.ps-status.is-ship { background: #FFF3D6; border-color: transparent; color: #a96b00; }
.ps-status.is-done { background: #eafaf1; border-color: #bfe6d2; color: #0a7d4d; }
.ps-status.is-bad { background: #fde3e8; border-color: transparent; color: #c0344e; }

/* ---- DOWNLOAD scene: the re-opened shop entry points (§21b) ----
   Fixed colors on purpose: themed rooms (fifa/karaoke/prison…) flip the app tokens
   dark, which made the token-based ghost button unreadable. This card is always a
   white "photo paper" object with a pink→blue gradient edge, whatever the room. */
.dl-shop-row { margin-top: 6px; }
.dl-shop-btn {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; cursor: pointer;
  padding: 12px 20px; border-radius: 12px;
  border: 2px solid transparent;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(115deg, #FF8FB3, #5FA0FF) border-box;
  color: #2A2E35 !important; font-weight: 700; font-size: 14.5px; letter-spacing: -0.01em;
  box-shadow: 0 8px 22px rgba(23, 24, 28, 0.16);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.dl-shop-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(23, 24, 28, 0.2); }
.dl-shop-btn .dl-shop-emoji { font-size: 17px; }
.dl-shop-btn .dl-shop-sub {
  display: block; font-weight: 500; font-size: 11.5px; color: #8A8F98; margin-top: 1px;
}
/* the card form: a mini slideshow of the real pieces sits where the emoji was
   (client/core/realProof.js) — proof, at the moment the strip is fresh */
.dl-shop-btn.is-card { padding: 10px 20px 10px 10px; text-align: left; max-width: 340px; }
.dl-shop-btn.is-card .rp { pointer-events: none; } /* the whole card is the link */
.dl-shop-btn .dl-shop-text { display: block; }

/* the Indonesian post-booth popup — keychain + HD print over the fresh strip */
.shop-pop-overlay {
  position: fixed; inset: 0; z-index: 1200;
  display: grid; place-items: center; padding: 20px;
  background: rgba(23, 24, 28, 0.45);
  animation: shopPopFade 0.22s ease;
}
@keyframes shopPopFade { from { opacity: 0; } }
.shop-pop {
  position: relative;
  display: flex; gap: 20px; align-items: stretch;
  width: min(480px, 100%);
  /* fixed light palette — NEVER the room tokens: dark rooms (fifa/karaoke/prison)
     flip those and made this popup unreadable */
  background: #ffffff;
  border: 1px solid #E7E9EE;
  border-radius: 12px; padding: 22px;
  box-shadow: 0 24px 60px rgba(23, 24, 28, 0.28);
  animation: shopPopRise 0.26s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}
@keyframes shopPopRise { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.shop-pop-x {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px; border-radius: 50%;
  border: none; background: transparent; cursor: pointer;
  color: #8A8F98; font-size: 14px;
}
.shop-pop-x:hover { color: #2A2E35; }
/* left column: the real-product slideshow with the buyer's own strip clipped to it */
.shop-pop-media { position: relative; flex: none; align-self: center; }
.shop-pop-media .rp { transform: rotate(-2deg); }
.shop-pop-mine {
  position: absolute; right: -26px; bottom: -10px; width: 46px;
  transform: rotate(7deg);
}
.shop-pop-mine img {
  display: block; width: 100%;
  background: #fff; padding: 3px; border-radius: 2px;
  box-shadow: 0 8px 18px rgba(23, 24, 28, 0.26);
}
.shop-pop-mine-tag {
  display: block; margin-top: 3px; text-align: center;
  font-family: var(--font-mono, monospace); font-size: 8.5px;
  letter-spacing: 0.1em; color: #8A8F98;
}
.shop-pop-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; flex: 1; }
.shop-pop-eyebrow {
  font-family: var(--font-mono, monospace); font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase; color: #8A8F98;
}
.shop-pop-title { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; color: #2A2E35; }
.shop-pop-products { display: flex; gap: 8px; }
.shop-pop-prod {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  border: 1px solid #E7E9EE; border-radius: 8px; padding: 10px 8px;
}
.spp-emoji { font-size: 20px; }
.spp-name { font-size: 12px; font-weight: 600; color: #2A2E35; }
.spp-was { font-family: var(--font-mono, monospace); font-size: 10px; color: #A8ADB6; }
.spp-price { font-family: var(--font-mono, monospace); font-size: 11px; color: #2A2E35; font-weight: 700; }
.shop-pop-note { font-size: 12px; color: #8A8F98; line-height: 1.5; }
/* the CTA styles itself — .btn-primary flips gold/dark in themed rooms */
.shop-pop-cta {
  display: flex; justify-content: center; align-items: center; text-decoration: none;
  padding: 12px 16px; border-radius: 10px; border: none; cursor: pointer;
  background: linear-gradient(115deg, #FF8FB3, #5FA0FF) !important;
  color: #ffffff !important; font-weight: 800; font-size: 14.5px;
  box-shadow: 0 8px 20px rgba(95, 160, 255, 0.35);
}
.shop-pop-cta:hover { filter: brightness(1.04); }
.shop-pop-skip { color: #8A8F98 !important; background: none; border: none; cursor: pointer; font-size: 12.5px; }
.shop-pop-skip { align-self: center; }
@media (max-width: 480px) {
  .shop-pop { flex-direction: column; gap: 14px; padding: 20px 16px; }
  .shop-pop-media { align-self: center; }
  .shop-pop-mine { right: -20px; width: 38px; }
}
