#emv-demo { margin: 0 8px 10px; min-width: 0; color: #e8f6ff; border: 1px solid #315367; border-radius: 14px; background: linear-gradient(120deg, #102739, #17172e); }
body[data-v8-checkout] #emv-demo { display: none; }
#emv-demo [hidden] { display: none !important; }
#emv-demo #emv-demo-toggle { display: flex; width: 100%; min-height: 49px; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; color: inherit; text-align: left; font: inherit; font-weight: 800; background: none; border: 0; border-radius: inherit; cursor: pointer; }
.emv-demo-chevron { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; border: 1px solid #72e3f5; background: linear-gradient(145deg, #225a78, #3c2d6b); color: #f0fcff; box-shadow: inset 0 1px 0 #c1f6ff59, 0 0 10px #63d9f344; transition: transform 600ms ease; }
#emv-demo-toggle:is(:hover, :focus-visible) .emv-demo-chevron { box-shadow: inset 0 1px 0 #c1f6ff80, 0 0 14px #63d9f380; }
#emv-demo-toggle[aria-expanded="true"] .emv-demo-chevron { transform: rotate(180deg); }
#emv-demo-fold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 600ms ease; }
#emv-demo-toggle[aria-expanded="true"] + #emv-demo-fold { grid-template-rows: 1fr; }
#emv-demo-fold > div { min-width: 0; overflow: hidden; }
#emv-demo-row { display: flex; gap: 10px; max-width: 100%; overflow-x: auto; padding: 4px 11px 10px; scroll-snap-type: x mandatory; scroll-padding-inline: 11px; }
#emv-demo-row:empty { display: none; }
#emv-demo-note { margin: 0; padding: 4px 12px 12px; color: #b7cbd9; font-size: .86rem; }
.emv-demo-card { --emv-demo-height: clamp(180px, 40vw, 210px); flex: 0 0 auto; width: calc(var(--emv-demo-height) * var(--emv-demo-aspect)); margin: 0; scroll-snap-align: start; }
.emv-demo-media { position: relative; height: var(--emv-demo-height); background: #060f1c; border-radius: 9px; overflow: hidden; box-shadow: inset 0 0 0 1px #45728a; }
.emv-demo-media img, .emv-demo-media video, .emv-demo-play { width: 100%; height: 100%; }
.emv-demo-media img, .emv-demo-media video { display: block; object-fit: contain; }
.emv-demo-play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; border-radius: inherit; background: #050c192e; color: #ecfbff; cursor: pointer; }
.emv-demo-play span { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #87d8e2; border-radius: 50%; background: #112e44e8; }
.emv-demo-play.is-playing { background: transparent; }
.emv-demo-play.is-playing span { visibility: hidden; }
.emv-demo-controls { position: absolute; inset: auto 0 0; display: flex; align-items: center; gap: 5px; padding: 4px 6px; background: #08131ee8; }
.emv-demo-seek { flex: 1 1 0; min-width: 0; margin: 0; accent-color: #83e4f1; }
#emv-demo .emv-demo-mute { min-height: 30px; padding: 2px 4px; border: 0; border-radius: 5px; color: #e8f6ff; background: #253e56; font-size: .72rem; cursor: pointer; }
.emv-demo-card figcaption { padding: 6px 4px 0; color: #c6dae8; font-size: .94rem; text-align: center; overflow-wrap: anywhere; }
#emv-demo button:focus-visible, #emv-demo-row:focus-visible { outline: 2px solid #8eeeff; outline-offset: -3px; }
@media (min-width: 720px) { .emv-demo-card { --emv-demo-height: 230px; } }
@media (prefers-reduced-motion: reduce) { #emv-demo-fold, .emv-demo-chevron { transition: none; } }
