/* Promo pack panel (promo-pack.js). Desktop: graphics grid beside the controls. Phone: a full-screen sheet,
   previews in a horizontal strip with big Download buttons, controls below. */
html.pp-open{overflow:hidden}
.pp-backdrop{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:24px;background:rgba(6,6,8,.72);backdrop-filter:blur(6px)}
.pp-modal{display:flex;flex-direction:column;width:min(1240px,100%);max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);background:#141518;border:1px solid #2e3035;border-radius:18px;box-shadow:0 30px 80px rgba(0,0,0,.5);color:#f4f2eb;overflow:hidden}
.pp-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:18px 22px 14px;border-bottom:1px solid #2e3035}
.pp-eyebrow{display:block;font-size:11px;letter-spacing:1.4px;text-transform:uppercase;color:#efb867;font-weight:700}
.pp-head h2{margin:4px 0 4px;font-size:21px;line-height:1.25}
.pp-head p{margin:0;font-size:13px;line-height:1.5;color:#b9b6b0;max-width:720px}
.pp-close{flex:none;width:40px;height:40px;border-radius:50%;border:1px solid #2e3035;background:#1b1c20;color:#f4f2eb;font-size:22px;line-height:1;cursor:pointer}
.pp-body{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:0;min-height:0;flex:1;overflow:hidden}
.pp-previews{display:flex;flex-direction:column;min-height:0;overflow:auto}
.pp-yours{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin:16px 22px 0;padding:10px 14px;border-radius:10px;background:#1d1a14;border:1px solid rgba(239,184,103,.35)}
.pp-yours strong{font-size:15px;color:#f4f2eb;letter-spacing:.2px}
.pp-yours span{font-size:12.5px;color:#d9cfbb}
.pp-outputs{list-style:none;margin:0;padding:18px 22px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-flow:row dense;gap:16px;align-content:start;align-items:end;overflow:visible}
.pp-card{display:flex;flex-direction:column;gap:8px;min-width:0;grid-column:span 2}
.pp-card--hero,.pp-card--etsy{grid-column:span 6}
.pp-card--hero .pp-frame,.pp-card--etsy .pp-frame{max-width:100%}
.pp-frame{position:relative;width:100%;border-radius:10px;overflow:hidden;background:#0e0f11;border:1px solid #2e3035}
.pp-frame canvas{display:block;width:100%;height:100%}
.pp-card.is-loading .pp-frame{background:linear-gradient(90deg,#17181c 0,#22242a 50%,#17181c 100%);background-size:400px 100%;animation:qpshine 1.2s linear infinite}
.pp-card.is-loading canvas{opacity:0}
.pp-card.is-broken .pp-frame::after{content:"!";position:absolute;inset:0;display:grid;place-items:center;color:#f08a7a;font-size:26px}
.pp-meta{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-size:13px}
.pp-meta strong{font-weight:650;color:#f4f2eb}
.pp-meta small{color:#a9a7a1;font-size:12px;white-space:nowrap}
.pp-download{min-height:44px;font-weight:700}
.pp-controls{padding:18px 20px;border-left:1px solid #2e3035;overflow:auto;display:flex;flex-direction:column;gap:14px}
.pp-field{display:flex;flex-direction:column;gap:6px;margin:0;padding:0;border:0;min-width:0;font-size:12.5px;color:#b9b6b0}
.pp-field legend{padding:0;margin-bottom:6px}
.pp-input{width:100%;min-height:44px;padding:9px 12px;border:1px solid #3a3c42;border-radius:10px;background:#0e0f11;color:#f4f2eb;font:inherit;font-size:15px}
.pp-input--big{font-weight:800;letter-spacing:.3px}
.pp-input:focus{outline:2px solid #efb867;outline-offset:1px;border-color:transparent}
.pp-chip-row{display:flex;flex-wrap:wrap;gap:6px}
.pp-chip{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:7px 12px;border:1px solid #3a3c42;border-radius:999px;background:#1b1c20;color:#f4f2eb;font:inherit;font-size:13px;cursor:pointer}
.pp-chip[aria-checked="true"]{border-color:#efb867;color:#efb867;background:#2a2318}
.pp-chips .pp-input{margin-top:8px}
.pp-themes .pp-chip-row{display:grid;grid-template-columns:1fr 1fr}
.pp-swatch{width:18px;height:18px;border-radius:50%;border:1px solid rgba(255,255,255,.25);flex:none}
.pp-photos .pp-chip{padding:3px;border-radius:10px;min-height:0}
.pp-photos img{display:block;width:54px;height:54px;object-fit:cover;border-radius:7px}
.pp-hint{margin:-6px 0 0;font-size:12px;color:#efb867}
.pp-note{margin:0;padding:10px 12px;border-radius:10px;background:#1d1a14;border:1px solid rgba(239,184,103,.3);font-size:12.5px;line-height:1.5;color:#e9dcc0}
.pp-foot{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;padding:14px 22px;border-top:1px solid #2e3035;background:#121316}
.pp-zip{min-height:46px;padding:0 22px;font-weight:700}
.pp-foot-note{margin:0;font-size:12.5px;color:#a9a7a1;flex:1 1 260px}
.pp-upsell{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-left:auto;font-size:12.5px;color:#b9b6b0}
.pp-upsell-btn{min-height:42px;border-color:#efb867!important;color:#efb867!important;font-weight:700}
@media(max-width:820px){
  .pp-backdrop{padding:0;place-items:stretch}
  .pp-modal{max-height:none;height:100vh;height:100dvh;border-radius:0;border:0}
  .pp-head{padding:12px 14px 10px}
  .pp-previews{overflow:visible;flex:none}
  .pp-yours{margin:12px 14px 0;padding:8px 12px}
  .pp-yours strong{font-size:14px}
  .pp-yours span{font-size:12px}
  .pp-head h2{font-size:18px}
  .pp-head p{font-size:12px}
  .pp-body{display:flex;flex-direction:column;overflow-y:auto}
  .pp-outputs{display:flex;align-items:flex-end;gap:12px;overflow-x:auto;overflow-y:visible;scroll-snap-type:x mandatory;padding:12px 14px;flex:none;-webkit-overflow-scrolling:touch}
  .pp-card,.pp-card--hero,.pp-card--etsy{flex:0 0 auto;width:min-content;scroll-snap-align:center}
  .pp-frame{height:min(40vh,calc(84vw / var(--ar)));height:min(40dvh,calc(84vw / var(--ar)));width:auto;max-width:84vw}
  .pp-meta{flex-wrap:wrap;min-width:150px}
  .pp-frame canvas{width:100%;height:100%}
  .pp-download{min-height:50px;font-size:15px}
  .pp-controls{border-left:0;border-top:1px solid #2e3035;overflow:visible;padding:14px}
  .pp-foot{padding:10px 14px calc(10px + env(safe-area-inset-bottom))}
  .pp-zip{flex:1 1 100%}
  .pp-upsell{margin-left:0;flex:1 1 100%}
  .pp-upsell>span{display:none}
  .pp-upsell-btn{flex:1 1 100%;min-height:48px}
  .pp-foot-note{font-size:12px;flex-basis:100%}
}
