/*
 * Server-side demo, compact version (cb/serverside-demo): the store's site with
 * an ad blocker on, and the ad platform's event list in front of it.
 * assets/js/scripts.js adds is-live (blocker message shows), then is-travel,
 * then is-delivered (the new event slides into the list), and loops.
 * The hero version's styles are in theme.css (.ss-demo--*).
 */
.ssx { position: relative; display: grid; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #1d2327; }
.ssx i { display: block; }
.ssx-site,
.ssx-platform { border: 1px solid rgba(20, 30, 45, .08); border-radius: 14px; background: #fff; box-shadow: 0 30px 50px -28px rgba(20, 45, 70, .35), 0 8px 18px -10px rgba(20, 45, 70, .14); }

/* The store's site */
.ssx-site { position: relative; margin-right: 14%; overflow: hidden; }
.ssx-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid #e5e7eb; }
.ssx-url { font-size: 13px; font-weight: 600; }
.ssx-shield { position: relative; width: 18px; height: 18px; color: #d63638; }
.ssx-shield svg { width: 100%; height: 100%; }
.ssx-shield b { position: absolute; top: -5px; right: -7px; min-width: 14px; padding: 0 3px; border-radius: 7px; background: #1d2327; color: #fff; font-size: 9px; line-height: 14px; text-align: center; }
.ssx-page { padding: 14px 14px 64px; }
.ssx-nav { display: flex; gap: 12px; padding-bottom: 10px; margin-bottom: 18px; border-bottom: 1px solid #f0f0f1; }
.ssx-nav i { width: 36px; height: 7px; border-radius: 4px; background: #e5e7eb; }
.ssx-thanks { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 16px; font-weight: 700; }
.ssx-tick { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #43cea2; color: #fff; }
.ssx-tick svg { width: 12px; height: 12px; color: #fff; }
.ssx-line { height: 7px; margin-top: 8px; border-radius: 4px; background: #eceef1; }

/* The ad blocker's message, under its toolbar icon. */
.ssx-blocked { position: absolute; top: 44px; right: 10px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #f3c7c7; border-radius: 10px; background: #fff5f5; font-size: 11.5px; color: #8a2424; box-shadow: 0 6px 16px rgba(0, 0, 0, .08); opacity: 0; transform: translateY(-6px); transition: opacity .35s ease, transform .35s ease; }
.ssx-blocked b { display: block; font-size: 12.5px; color: #d63638; }
.ssx-blocked-icon { width: 16px; height: 16px; color: #d63638; }
.ssx-blocked-icon svg { width: 100%; height: 100%; }
.ssx.is-live .ssx-blocked { opacity: 1; transform: none; }

/* The ad platform's event list */
.ssx-platform { position: relative; z-index: 1; margin: -48px 0 0 12%; overflow: hidden; }
.ssx-head { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid #e5e7eb; font-size: 13px; font-weight: 600; }
.ssx-logo { width: auto; max-width: 64px; height: 20px; object-fit: contain; }
.ssx-title { margin-left: auto; font-weight: 400; color: #646970; }
/* The list keeps a fixed height (three rows), so the page never moves: the new
   event pushes the others down and the oldest slides out of sight. */
.ssx-list { height: 168px; overflow: hidden; }
.ssx-row { height: 56px; overflow: hidden; }
.ssx-row + .ssx-row .ssx-row-in { border-top: 1px solid #f0f0f1; }
.ssx-row--new .ssx-row-in { background: #fff; }
.ssx-row-in { box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; align-content: center; align-items: center; height: 56px; padding: 0 14px; }
.ssx-ev,
.ssx-src { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ssx-ev { font-size: 13px; }
.ssx-ev span { color: #646970; }
/* The old demo's label rules (theme.css) set a mono font and small sizes on these hooks. */
.ssx .ss-demo--event-label,
.ssx .ss-demo--event-value,
.ssx .ss-demo--dest-name { font-family: inherit; font-size: inherit; }
.ssx-src { grid-row: 2; font-size: 11.5px; color: #8c8f94; }
.ssx-ok { grid-row: 1 / 3; grid-column: 2; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: #e7f7f0; color: #1f8a63; font-size: 11.5px; font-weight: 600; }
.ssx-ok svg { width: 11px; height: 11px; color: inherit; }

/* The new event: folded away until it arrives, then slides in with a mint flash. */
.ssx-row--new { height: 0; opacity: 0; }
.ssx.is-delivered .ssx-row--new { height: 56px; opacity: 1; transition: height .45s ease, opacity .45s ease; }
.ssx.is-delivered .ssx-row--new .ssx-row-in { animation: ssx-flash 1.8s ease; }
@keyframes ssx-flash { from { background: #dff4ed; } to { background: #fff; } }

@media (max-width: 480px) {
	.ssx-site { margin-right: 6%; }
	.ssx-platform { margin-left: 6%; }
}
