/* Storefront pop-ups (also used by the panel's live preview). Colours come from each pop-up's own settings. */
.pp-layer { position: fixed; z-index: 9000; }
.pp-layer.pp-center { inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(15, 17, 21, .55); animation: pp-fade .25s ease; }
.pp-layer.pp-corner { right: 20px; bottom: 20px; width: min(360px, calc(100vw - 32px)); animation: pp-rise .35s ease; }
.pp-layer.pp-bar { left: 0; right: 0; bottom: 0; animation: pp-rise .35s ease; }
.pp { position: relative; display: grid; background: var(--pp-bg); color: var(--pp-text); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .28); max-height: calc(100vh - 32px); overflow-y: auto; text-align: left; }
.pp-center .pp { width: 100%; max-width: 440px; animation: pp-pop .3s cubic-bezier(.2, .9, .3, 1.2); }
.pp-center .pp-size-sm { max-width: 380px; }
.pp-center .pp-size-lg { max-width: 820px; }
.pp-center .pp-size-md.pp-img-left, .pp-center .pp-size-md.pp-img-right { max-width: 720px; }
.pp-center .pp-size-sm.pp-img-left, .pp-center .pp-size-sm.pp-img-right { max-width: 560px; }
.pp-img-left, .pp-img-right { grid-template-columns: 1fr 1fr; }
.pp-img-right .pp-media { order: 2; }
.pp-media { position: relative; min-height: 180px; background: rgba(127, 127, 127, .12); }
.pp-img-top .pp-media { aspect-ratio: 16/9; min-height: 0; }
.pp-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pp-img-ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; opacity: .45; font-size: 12px; }
.pp-img-background { grid-template-columns: 1fr; }
.pp-img-background .pp-media { position: absolute; inset: 0; min-height: 0; }
.pp-img-background .pp-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .6)); }
.pp-img-background .pp-body { position: relative; min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; }
.pp-body { padding: 32px 28px 26px; display: grid; gap: 10px; align-content: center; }
.pp-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.pp-title { margin: 0; font-size: clamp(22px, 3vw, 30px); line-height: 1.15; letter-spacing: -.02em; color: inherit; }
.pp-text { margin: 0; font-size: 15px; line-height: 1.55; opacity: .8; }
.pp-actions { display: grid; gap: 10px; margin-top: 8px; }
.pp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 10px; background: var(--pp-btn); color: var(--pp-btn-text); font-weight: 700; font-size: 15px; border: 0; cursor: pointer; text-decoration: none; transition: filter .15s; }
.pp-btn:hover { filter: brightness(1.08); }
.pp-form { display: grid; gap: 8px; }
.pp-form input { width: 100%; height: 46px; min-height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(127, 127, 127, .35); background: #fff; color: #111; font-size: 15px; }
.pp-success { margin: 0; display: flex; gap: 8px; align-items: center; font-weight: 600; }
.pp-code { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 2px dashed currentColor; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; }
.pp-code span { font-size: 20px; font-weight: 800; letter-spacing: .14em; }
.pp-code small { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; opacity: .8; }
.pp-dismiss { justify-self: center; margin-top: 2px; background: none; border: 0; color: inherit; opacity: .65; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pp-close { position: absolute; z-index: 2; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 0; background: rgba(255, 255, 255, .9); color: #111; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
/* Corner card */
.pp-corner .pp { border-radius: 14px; }
.pp-corner .pp-body { padding: 20px; }
.pp-corner .pp-title { font-size: 19px; }
.pp-corner .pp-img-left, .pp-corner .pp-img-right { grid-template-columns: 1fr; }
.pp-corner .pp-img-left .pp-media, .pp-corner .pp-img-right .pp-media { aspect-ratio: 16/9; min-height: 0; order: 0; }
/* Bottom bar */
.pp-bar .pp { border-radius: 0; box-shadow: 0 -8px 30px rgba(0, 0, 0, .18); }
.pp-bar .pp-body { padding: 14px 64px 14px 24px; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 18px; max-width: 1320px; margin: 0 auto; width: 100%; }
.pp-bar .pp-eyebrow { grid-row: span 2; }
.pp-bar .pp-title { font-size: 17px; }
.pp-bar .pp-text { font-size: 14px; grid-column: 2; }
.pp-bar .pp-actions { grid-row: 1 / span 2; grid-column: 3; margin: 0; grid-auto-flow: column; }
.pp-bar .pp-btn { min-height: 40px; }
.pp-bar .pp-dismiss { display: none; }
.pp-bar .pp-close { top: 50%; transform: translateY(-50%); }
@keyframes pp-fade { from { opacity: 0; } }
@keyframes pp-pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes pp-rise { from { opacity: 0; transform: translateY(24px); } }
@media (max-width: 640px) {
  .pp-img-left, .pp-img-right { grid-template-columns: 1fr; }
  .pp-img-left .pp-media, .pp-img-right .pp-media { order: 0; aspect-ratio: 16/9; min-height: 0; }
  .pp-layer.pp-center { align-items: end; padding: 12px; }
  .pp-body { padding: 24px 20px 20px; }
  .pp-layer.pp-corner { right: 12px; left: 12px; bottom: 12px; width: auto; }
  .pp-bar .pp-body { grid-template-columns: 1fr; padding: 14px 52px 14px 16px; }
  .pp-bar .pp-text, .pp-bar .pp-actions { grid-column: auto; grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) { .pp-layer, .pp { animation: none !important; } }
