#emv-demo { margin: 0 8px 10px; min-width: 0; color: #30281d; border: 1px solid #cbbda6; border-radius: 14px; background: linear-gradient(120deg, #fff9ee, #fff9ee); }
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 #255b53; background: linear-gradient(145deg, #ede1ca, #ede1ca); color: #30281d; box-shadow: inset 0 1px 0 #5b3f2059, 0 0 10px #5b3f2044; transition: transform 600ms ease; }
#emv-demo-toggle:is(:hover, :focus-visible) .emv-demo-chevron { box-shadow: inset 0 1px 0 #5b3f2080, 0 0 14px #5b3f2080; }
#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: #30281d; 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: #f2e9d7; border-radius: 9px; overflow: hidden; box-shadow: inset 0 0 0 1px #5b3f2020; }
.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: #f2e9d72e; color: #30281d; cursor: pointer; }
.emv-demo-play span { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #255b53; border-radius: 50%; background: #ede1cae8; }
.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: #f2e9d7e8; }
.emv-demo-seek { flex: 1 1 0; min-width: 0; margin: 0; accent-color: #255b53; }
#emv-demo .emv-demo-mute { min-height: 30px; padding: 2px 4px; border: 0; border-radius: 5px; color: #30281d; background: #ede1ca; font-size: .72rem; cursor: pointer; }
.emv-demo-card figcaption { padding: 6px 4px 0; color: #30281d; font-size: .94rem; text-align: center; overflow-wrap: anywhere; }
#emv-demo button:focus-visible, #emv-demo-row:focus-visible { outline: 2px solid #255b53; 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; } }
