/* Announcement and navigation stay together while the page scrolls. */
body:has(#lab-storefront-header-stack){--lab-announcement-space:0px}
#lab-storefront-header-stack{position:sticky;top:0;z-index:200;background:inherit}
#lab-storefront-header-stack #lab-site-header{position:relative;top:auto}
body:has(#lab-global-notice){--lab-announcement-space:42px}
body:has(#lab-storefront-header-stack) .gstore-product-layout-v8 #buybox{top:calc(var(--lab-header-stack-height,106px) + 14px)!important}
#lab-global-notice{box-sizing:border-box;width:100%;padding:4px 0 6px;background:inherit;color:var(--lab-text,#243044);font:400 13px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}
#lab-global-notice *{box-sizing:border-box}
.lab-global-notice-inner{display:flex;align-items:center;gap:10px;height:32px;max-width:1288px;margin:0 auto;padding:0 13px;border:1px solid var(--lab-line,#dde5ef);border-radius:8px;background:var(--lab-surface,#fff);box-shadow:0 2px 8px #20345406}
#lab-global-notice>div>svg{width:18px;height:18px;flex:0 0 18px;color:var(--lab-muted,#768297)}
.lab-announcement-label{font-weight:650;flex-shrink:0}
.lab-announcement-window{flex:1;min-width:0;overflow:hidden;color:var(--lab-muted,#768297);outline-offset:2px;border-radius:3px}
.lab-announcement-window:focus-visible{outline:2px solid var(--lab-accent,#285aff)}
.lab-announcement-track{display:flex;align-items:center;width:max-content;max-width:none;gap:64px}
.lab-announcement-copy{flex:none;white-space:nowrap;font:inherit}
.lab-announcement-copy br{display:none}.lab-announcement-copy strong{font-weight:700;font-size:inherit}
/* Rich-text announcement colors must also survive the product dark theme. */
#lab-global-notice .lab-announcement-copy strong,#lab-global-notice .lab-announcement-copy b{color:inherit!important}
#lab-global-notice .lab-announcement-copy a{font:inherit;color:var(--lab-accent,#285aff);text-decoration:underline;text-underline-offset:2px}
#lab-global-notice .lab-announcement-copy a:focus-visible{outline:2px solid currentColor;outline-offset:1px}
@media(min-width:761px){body:has(#lab-global-notice){--lab-announcement-space:42px}body:has(#lab-global-notice) .sidebar{top:calc(var(--lab-header-stack-height,106px) + 1px);height:calc(100dvh - var(--catalog-header-height,64px) - var(--lab-announcement-space) - 1px);--sidebar-row-height:clamp(18px,calc((100dvh - var(--catalog-header-height,64px) - var(--lab-announcement-space) - var(--catalog-top-space,24px) - 72px)/var(--sidebar-count,15)),36px)}}
@media(max-width:1360px) and (min-width:1191px){.lab-global-notice-inner{margin:0 36px}}
@media(max-width:1190px) and (min-width:761px){.lab-global-notice-inner{margin:0 24px}}
@media(max-width:760px){body:has(#lab-global-notice){--lab-announcement-space:38px}body:has(#lab-global-notice) .mobile-primary{top:var(--lab-header-stack-height,94px)}#lab-global-notice{padding:0 16px 6px;font-size:12px}.lab-global-notice-inner{height:32px;gap:7px;padding:0 9px;border-radius:7px}#lab-global-notice>div>svg{width:16px;height:16px;flex-basis:16px}.lab-announcement-track{gap:40px}}
@media(prefers-reduced-motion:reduce){.lab-announcement-window{overflow-x:auto;scrollbar-width:none}.lab-announcement-window::-webkit-scrollbar{display:none}}


/* GSTORE_NOTICE_TEXT_STROKE_V1 */
#lab-global-notice.has-text-stroke .lab-announcement-copy,
#lab-global-notice.has-text-stroke .lab-announcement-copy :is(span,strong,b,a){
 -webkit-text-stroke:var(--lab-notice-stroke-width,.6px) var(--lab-notice-stroke-color,#fff);
 text-stroke:var(--lab-notice-stroke-width,.6px) var(--lab-notice-stroke-color,#fff);
 paint-order:stroke fill;
}

/* Paused touch and keyboard reading use the complete, scrollable notice. */
#lab-global-notice.is-manual .lab-announcement-window{overflow-x:auto;overflow-y:hidden;scrollbar-width:none;touch-action:pan-x pan-y;overscroll-behavior-x:contain}
#lab-global-notice.is-manual .lab-announcement-window::-webkit-scrollbar{display:none}
