html body .control-loading-static{position:relative!important}
html body :is(button,a,[role=button]).control-is-loading{color:transparent!important;cursor:progress!important}
html body .control-is-loading>:not(.control-loading-spinner){opacity:.35}
html body .control-is-loading>.control-loading-spinner{position:absolute!important;display:block!important;left:50%!important;top:50%!important;width:22px!important;height:22px!important;box-sizing:border-box!important;margin:-11px 0 0 -11px!important;padding:0!important;border:3px solid color-mix(in srgb,var(--control-loading-ink,#57518d) 25%,transparent)!important;border-top-color:var(--control-loading-ink,#57518d)!important;border-radius:50%!important;animation:control-loading-spin .75s linear infinite!important;pointer-events:none;z-index:5;opacity:1!important}
html body .control-is-loading::after{visibility:hidden!important}
@keyframes control-loading-spin{to{transform:rotate(360deg)}}
html body #productDialog .product-detail-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;min-height:280px;padding:48px 28px;text-align:center;color:var(--theme-font,#243247);background:var(--theme-background,#fff);border-radius:inherit}
html body #productDialog .product-detail-loading[hidden]{display:none!important}
html body #productDialog[data-detail-loading] .detail-layout{display:none!important}
html body #productDialog .product-detail-loading>span{display:block;width:36px;height:36px;border:3px solid color-mix(in srgb,var(--theme-button,#57518d) 18%,transparent);border-top-color:var(--theme-button,#57518d);border-radius:50%;animation:control-loading-spin .75s linear infinite}
html body #productDialog .product-detail-loading p{margin:0;font:500 14px/1.7 var(--theme-font-family,Arial,sans-serif);max-width:340px}
html body #productDialog .product-detail-loading button{min-height:44px;padding:10px 20px;border:0;border-radius:10px;background:var(--theme-button,#57518d);color:var(--theme-button-text,#fff);font:600 13px var(--theme-font-family,Arial,sans-serif)}
@media(prefers-reduced-motion:reduce){html body .control-loading-spinner,html body #productDialog .product-detail-loading>span{animation-duration:1.5s!important}}
/* Keep the loading caption readable beside the explicit circle. */
html body #productDialog .product-detail-loading p{color:var(--theme-font,#243247)!important;background:transparent!important}
html body #productDialog .product-detail-loading p::after{display:none!important}
/* The detail content scrolls inside the dialog; the close control stays outside it. */
html body #productDialog{overflow:hidden!important;max-height:calc(100dvh - 24px)!important}
html body #productDialog[open]{display:flex!important;flex-direction:column}
html body #productDialog>.detail-layout{flex:0 1 auto;min-height:0;max-height:calc(100dvh - 28px);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
html body #productDialog>#closeProductDetail{position:absolute!important;top:12px!important;right:12px!important;margin:0!important;z-index:30;flex:none;min-width:44px;min-height:44px}
