.site-popup{width:min(560px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:0;border:0;background:#fff;color:var(--ink,#242321);box-shadow:0 24px 100px #0005;overflow:auto}
.site-popup::backdrop{background:rgb(13 16 21 / .66)}
.site-popup-toolbar{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:center;padding:7px 12px 7px 20px;background:#fff;border-bottom:1px solid var(--line,#ddd);font-size:.875rem}
.site-popup-close{width:44px;height:44px;padding:0;border:0;background:#fff;color:var(--ink,#242321);font-size:2rem;line-height:1;cursor:pointer}
.site-popup-close:hover{color:var(--red,#d6002b)}
.site-popup-toolbar-actions{display:flex;align-items:center;gap:10px}
.site-popup-keep{border:0;background:none;color:inherit;font:inherit;font-size:.875rem;min-height:44px;padding:4px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.site-popup-keep:disabled{cursor:default;text-decoration:none;color:var(--muted,#646970)}
.popup-square-image{aspect-ratio:1;display:grid;place-items:center;width:100%;overflow:hidden;background:#f4f5f6;color:var(--muted,#646970)}
.popup-square-image>img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;display:block}
.popup-square-image>p{padding:30px;text-align:center;margin:0;font-size:1rem}
.site-popup-copy{padding:22px 26px 26px}
.site-popup-title{font-size:1.75rem;line-height:1.15;margin:0 0 14px;overflow-wrap:anywhere}
.site-popup-description,.site-popup-conditions p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:1rem;line-height:1.6}
.site-popup-conditions{border-block:1px solid var(--line,#ddd);padding:12px 0;margin-top:20px;font-size:1rem}
.site-popup-conditions summary{cursor:pointer;min-height:30px}
.site-popup-actions{display:flex;align-items:center;flex-wrap:wrap;gap:18px;margin-top:22px}
.site-popup-dismiss{border:0;background:none;color:inherit;min-height:44px;font:inherit;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.site-popup :focus-visible,.popup-admin :focus-visible{outline:3px solid var(--red,#d6002b);outline-offset:3px}
.popup-admin-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr);gap:28px;align-items:start}
.popup-admin-preview{position:sticky;top:110px;border:1px solid var(--line,#ddd);background:#fff}
.popup-admin-preview>h3,.popup-admin-preview>p,.popup-admin-preview>button{margin:18px}
.popup-admin-preview [data-popup-preview-copy]{padding:0 20px 22px}
.popup-admin-preview [data-popup-preview-copy] p{white-space:pre-wrap;overflow-wrap:anywhere}
.popup-admin-preview [data-popup-preview-copy] h3{overflow-wrap:anywhere}
.popup-admin .admin-upload-label{display:inline-flex;margin-bottom:12px}
.popup-admin .admin-form-section h3{font-size:1.2rem}
.popup-admin .admin-field small{display:block;line-height:1.5;margin-top:7px}
.popup-admin [hidden]{display:none!important}
@media(max-width:850px){.popup-admin-layout{grid-template-columns:1fr}.popup-admin-preview{position:static;max-width:560px}.site-popup-copy{padding:20px}.site-popup-title{font-size:1.5rem}}
