/* Full supplied source canvas; the lower-half purchase target stays in the web page. */
:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--safe-top:0px;--safe-right:0px;--safe-bottom:0px;--safe-left:0px;--viewport-height:100dvh;color-scheme:light}
*{box-sizing:border-box}[hidden]{display:none!important}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#eff7f3}button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:2px solid #fff;outline-offset:2px}
.shell{position:relative;width:100%;height:var(--viewport-height);padding:var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);overflow:hidden;background-color:#eff7f3}
.source-frame{position:absolute;inset:0;width:100%;display:flex;flex-direction:column;overflow:hidden}
.source-frame:not([data-ready="true"]){visibility:hidden}
.media-loading{position:absolute;z-index:10;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;color:#34483f;background:#eff7f3;font-size:14px}
.media-loading::before{content:"";width:26px;height:26px;border:3px solid #d5e6de;border-top-color:#27826a;border-radius:50%;animation:loading-spin .8s linear infinite}
.media-loading[data-failed="true"]::before{display:none}
.media-loading.over-content{inset:auto 12% 35%;padding:20px;border-radius:10px;background:#fffffff5}
.media-loading button{padding:9px 24px;border:1px solid #b8c9c1;border-radius:6px;background:#fff;color:inherit}
@keyframes loading-spin{to{transform:rotate(360deg)}}
.source-header,.source-footer{display:block;width:100%;object-fit:contain;flex-shrink:0;pointer-events:none}
.source-header,.source-footer{position:absolute;z-index:2;left:calc(50% + (var(--safe-left) - var(--safe-right))/2);transform:translateX(-50%)}
.source-header{top:var(--header-top,0px);left:var(--header-left,0px);transform:none;width:var(--header-width,100%);height:var(--header-height,0px)}
.source-footer{height:var(--footer-height);bottom:var(--footer-bottom,var(--safe-bottom));width:var(--footer-width,var(--layout-width))}
.source-hero{position:relative;flex:1;min-height:0;overflow:hidden}
.source-media{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.image-page .source-media{object-position:center top}
.source-cta{position:absolute;z-index:5;left:0;top:50%;width:100%;height:50%;min-height:48px;border:0;padding:0;background:transparent!important;color:transparent;box-shadow:none;border-radius:0;touch-action:manipulation}
.source-cta:disabled{cursor:default;opacity:1}.source-cta:focus-visible{outline:3px solid #fff;outline-offset:-3px}
.close{position:absolute;z-index:20;right:calc(8px + var(--safe-right));top:calc(6px + var(--safe-top));width:40px;height:40px;padding:0;border:0;border-radius:50%;background:#ffffff90;color:#333;font-size:26px;line-height:40px}
.restore{position:absolute;z-index:20;left:calc(8px + var(--safe-left));top:calc(8px + var(--safe-top));border:0;border-radius:4px;background:#ffffffb0;padding:5px;color:#34483f;font-size:10px;opacity:0}.restore:focus-visible{opacity:1}
.preview-banner{position:fixed;z-index:25;top:0;left:50%;transform:translateX(-50%);padding:3px 8px;background:#fff0bde8;color:#654c12;border-radius:0 0 5px 5px;font-size:10px;line-height:14px;pointer-events:none;white-space:nowrap}
.status{position:absolute;z-index:20;left:10%;right:10%;bottom:calc(4px + var(--safe-bottom));text-align:center;margin:0;padding:6px 10px;background:#ffffffed;color:#2d473e;border-radius:6px;font-size:12px;line-height:1.4;pointer-events:none}
.closed-overlay{position:absolute;z-index:30;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;background:#f4faf7;color:#274a3f}.closed-overlay button{padding:12px 24px;border:1px solid #b8c9c1;border-radius:8px;background:#fff;color:inherit}
@media (orientation:landscape) and (max-height:700px){.source-media,.image-page .source-media{object-position:center}.source-cta{top:50%;height:50%}}
