html.sgm-popup-open,html.sgm-popup-open body{overflow:hidden!important;overscroll-behavior:none!important}
html body dialog[data-sgm-popup-root][open]{position:fixed!important;top:calc(var(--sgm-popup-top,0px) + 12px)!important;bottom:auto!important;left:0;right:0;margin:0 auto!important;max-height:calc(var(--sgm-popup-height,100dvh) - 24px)!important;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden!important;overscroll-behavior:contain}
html body [data-sgm-popup-header]{flex:0 0 auto;min-height:44px;position:relative;z-index:2}
html body [data-sgm-popup-scroll]{min-height:0;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch;scroll-padding-block:16px}
html body dialog>[data-sgm-popup-scroll]{flex:1 1 auto;padding-bottom:max(20px,env(safe-area-inset-bottom))}
html body [data-sgm-popup-root]:not(dialog){max-height:calc(var(--sgm-popup-height,100dvh) - 16px)!important;box-sizing:border-box;overscroll-behavior:contain!important}
html body [data-sgm-popup-sticky]{position:sticky!important;top:0!important;z-index:5;flex-shrink:0}
html body .sgm-account__close[data-sgm-popup-sticky]{margin-left:auto!important;display:block!important;float:none!important}
.sgm-popup-header{display:flex;justify-content:flex-end;align-items:center;gap:12px;background:#fffefa;padding:8px}
.sgm-popup-content{overflow-wrap:anywhere;padding:0 8px 20px}
html body .sgm-popup-header button{min-height:44px;flex-shrink:0}
@media(max-width:600px){html body dialog[data-sgm-popup-root][open]{max-height:calc(var(--sgm-popup-height,100dvh) - 16px)!important;top:calc(var(--sgm-popup-top,0px) + 8px)!important}html body [data-sgm-popup-scroll]{scroll-padding-bottom:max(20px,env(safe-area-inset-bottom))}}

html body .sgm-account__panel .sgm-account__close[data-sgm-popup-sticky]{grid-column:1/-1;justify-self:end;z-index:10!important}
