/* Shared by storefront announcements and the device preview. */
.k2-popup-card { width:100%; max-width:min(92vw,clamp(448px,55vw,960px)); max-height:calc(100dvh - 32px); position:relative; display:flex; flex-direction:column; overflow:hidden; border-radius:16px; }
.k2-popup-card[data-size="sm"] { max-width:min(92vw,440px); }
.k2-popup-card[data-size="lg"] { max-width:min(92vw,clamp(640px,75vw,1440px)); }
.k2-popup-card[data-size="xl"] { max-width:92vw; }
.k2-popup-scroll { overflow:auto; overscroll-behavior:contain; min-height:0; overflow-wrap:anywhere; }
.k2-popup-image { display:block; width:100%; height:auto; object-fit:contain; }
.k2-popup-close { position:absolute; top:8px; right:8px; z-index:10; width:44px; height:44px; border-radius:50%; background:rgba(0,0,0,.7); color:white; display:flex; align-items:center; justify-content:center; }
.k2-popup-enlarge { display:block; padding:10px 16px; text-align:center; font:14px/1.5 sans-serif; color:inherit; text-decoration:underline; }
@media(max-width:640px) { .k2-popup-card,.k2-popup-card[data-size] { max-width:100%; max-height:calc(100dvh - 24px); } }
