/* Canonical storefront widget CSS, sourced from store.css + storefront-theme-demo2-1195.css.
 The category/story HTML and viewer event contract are shared, not redesigned. */
.story-rail{display:flex;gap:18px;overflow-x:auto;padding:3px 3px 10px;scrollbar-width:none}
.story-rail::-webkit-scrollbar{display:none}
.story-bubble{border:0;background:transparent;padding:0;min-width:92px;display:flex;flex-direction:column;align-items:center;gap:8px;color:#344054;cursor:pointer}
.story-bubble>span{width:78px;height:78px;border-radius:50%;padding:3px;background:conic-gradient(#ef233c,#ff8a65,#ffbe0b,#ef233c);display:block;transition:.2s}
.story-bubble:hover>span{transform:translateY(-3px) scale(1.03)}
.story-bubble img{width:100%;height:100%;object-fit:cover;border-radius:50%;border:3px solid #fff;display:block}
.story-bubble b{font-size:9px;max-width:88px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.story-viewer{position:fixed;inset:0;z-index:120;background:rgba(10,15,24,.82);backdrop-filter:blur(9px);display:none;align-items:center;justify-content:center;padding:18px}
.story-viewer.open{display:flex}
.story-viewer-shell{position:relative;width:min(420px,92vw);height:min(760px,88vh);border-radius:25px;background:#111827;overflow:hidden;box-shadow:0 35px 100px rgba(0,0,0,.4)}
.story-viewer article{position:absolute;inset:0}
.story-viewer article>img{width:100%;height:100%;object-fit:cover}
.story-viewer article:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.18),transparent 38%,rgba(0,0,0,.78))}
.story-progress{position:absolute;z-index:5;top:14px;right:14px;left:14px;height:3px;background:rgba(255,255,255,.28);border-radius:6px;overflow:hidden}
.story-progress i{display:block;width:0;height:100%;background:#fff;border-radius:6px}
.story-close,.story-nav{position:absolute;z-index:6;border:0;color:#fff;background:rgba(0,0,0,.3);backdrop-filter:blur(5px);cursor:pointer}
.story-close{left:14px;top:25px;width:34px;height:34px;border-radius:50%;font-size:23px}
.story-nav{top:50%;transform:translateY(-50%);width:38px;height:56px;border-radius:12px;font-size:28px}
.story-nav.prev{right:10px}
.story-nav.next{left:10px}
.story-viewer-copy{position:absolute;z-index:4;right:24px;left:24px;bottom:25px;color:#fff}
.story-viewer-copy small{display:block;opacity:.82;margin-bottom:6px}
.story-viewer-copy h3{font-size:22px;margin:0 0 13px}
.story-viewer-copy a{display:inline-flex;background:#fff;color:#111827;text-decoration:none;border-radius:11px;padding:10px 15px;font-weight:900;font-size:10px}
.story-strip{padding-top:12px}
.story-bubble{min-width:78px}
.story-bubble>span{width:68px;height:68px}
.story-rail{gap:12px}
.story-bubble{min-width:70px}
.story-bubble>span{width:62px;height:62px}
.story-strip{margin-top:20px;padding:17px 18px 8px;background:#fff;border:1px solid #eceef1;border-radius:20px}
.story-strip-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}
.story-strip-head>div{display:flex;align-items:center;gap:8px}
.story-strip-head span{color:var(--red);font-size:10px;font-weight:900}
.story-strip-head b{font-size:15px}
.story-strip-head small{color:#98a2b3;font-size:10px}
.story-rail{gap:var(--story-gap,16px)}
.story-bubble{min-width:calc(var(--story-size,82px) + 12px)}
.story-bubble>span{width:var(--story-size,82px);height:var(--story-size,82px)}
.story-bubble b{font-size:10px;max-width:calc(var(--story-size,82px) + 18px)}
.story-viewer{background:rgb(10 15 24 / calc(var(--story-backdrop,82)*1%))}
.story-viewer-shell{border-radius:var(--story-viewer-radius,26px)}
.story-viewer article.fit-contain>img{object-fit:contain;background:#0f172a}
.story-viewer article.fit-cover>img{object-fit:cover}
.story-viewer article.no-overlay:after{display:none}
.story-viewer-copy.position-top{top:70px;bottom:auto}
.story-viewer-copy.position-center{top:50%;bottom:auto;transform:translateY(-50%)}
.story-viewer-copy.theme-dark{color:#111827}
.story-viewer-copy.theme-dark a{background:#111827;color:#fff}
.story-viewer-copy em{display:none;width:max-content;background:var(--red);color:#fff;border-radius:999px;padding:5px 9px;font-size:9px;font-style:normal;margin-bottom:8px}
.story-viewer-copy em:not(:empty){display:block}
.story-strip{width:calc(100% - 20px);padding:13px 11px 5px;border-radius:16px}
.story-strip-head small{display:none}
.story-bubble{min-width:calc(var(--story-size-mobile,68px) + 8px)}
.story-bubble>span{width:var(--story-size-mobile,68px);height:var(--story-size-mobile,68px)}
.story-bubble b{font-size:9px;max-width:calc(var(--story-size-mobile,68px) + 12px)}
.story-strip-head{display:none!important}
.story-rail{gap:14px!important;padding:8px 14px 10px!important}
.story-bubble{min-width:76px!important;gap:6px!important}
.story-bubble>span{width:62px!important;height:62px!important;padding:2px!important}
.story-bubble b{font-size:10.5px!important;max-width:76px!important;color:#344054!important}
.cms-shop-native .d2-category-list{display:flex;gap:14px;overflow-x:auto;scrollbar-width:thin;padding-bottom:5px}
.cms-shop-native .d2-category-tile{flex:0 0 108px;min-width:0;display:flex;align-items:center;flex-direction:column;gap:8px;text-align:center;text-decoration:none;color:var(--d2-ink)}
.cms-shop-native .d2-category-media{width:78px;height:78px;background:#f7f6f3;border-radius:20px;display:flex;justify-content:center;align-items:center;overflow:hidden;color:#8ba396;font-size:32px}
.cms-shop-native .d2-category-media img{width:100%;height:100%;object-fit:contain;padding:8px}
.cms-shop-native .d2-category-tile strong{font-size:12px;font-weight:650;line-height:1.65}
.cms-shop-native .cms-shop-native-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px;color:inherit}
.cms-shop-native .cms-shop-native-title h2{font-size:clamp(18px,2.5vw,28px);font-weight:900;margin:0}
.cms-shop-native .cms-shop-native-title a{font-size:12px;color:var(--ai2-gold,#c9932f)}
.cms-shop-native .cms-shop-native-rail{display:flex;align-items:center;justify-content:flex-start;gap:var(--story-gap,16px);overflow-x:auto;scrollbar-width:none;scroll-snap-type:x proximity}
.cms-shop-native .cms-shop-native-rail::-webkit-scrollbar{display:none}
.cms-shop-native .story-bubble{flex:0 0 auto;scroll-snap-align:start;border:0;background:transparent;box-shadow:none}
.cms-shop-native .story-bubble>span{width:var(--story-size,82px);height:var(--story-size,82px)}
.cms-shop-native .story-bubble img{object-fit:cover!important;aspect-ratio:1!important;border-radius:50%!important}
.cms-shop-native .story-bubble b{font-size:10px}
.cms-shop-native .cms-shop-native-category-grid{display:grid;grid-template-columns:repeat(var(--cms-category-columns,4),minmax(0,1fr));gap:18px;overflow:visible;align-items:start}
.cms-shop-native .d2-category-tile{display:flex;flex-direction:column;align-items:center;gap:12px;text-decoration:none;min-width:0;flex-basis:auto}
.cms-shop-native .d2-category-media{width:min(100%,160px);height:auto;aspect-ratio:1;border-radius:18px;background:#f7f6f3}
.cms-shop-native .d2-category-media img{object-fit:contain;max-height:100%;padding:8px}
.cms-shop-native .d2-category-tile strong{font-size:12px;line-height:1.65;text-align:center}
.cms-shop-native .d2-image-fallback{display:grid;place-items:center;height:100%;width:100%;font-size:26px}
body.theme-corporate1 .cms-shop-native{max-width:1200px;margin-inline:auto;padding-inline:24px}
.cms-shop-native .story-bubble{min-width:calc(var(--story-size,82px) + 12px)}
@media(max-width:768px){.cms-shop-native .cms-shop-native-category-grid{grid-template-columns:repeat(var(--cms-category-mobile,2),minmax(0,1fr));gap:12px}.cms-shop-native .d2-category-media{width:min(100%,125px)}.cms-shop-native .story-bubble>span{width:68px;height:68px}}
@media(max-width:480px){.cms-shop-native .cms-shop-native-category-grid{gap:10px}.cms-shop-native .story-bubble>span{width:62px;height:62px}}

/* Category tile sizing copied from demo2 storefront (78px, 108px width) rather than large cards. */
.cms-shop-native .cms-shop-native-category-grid{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:14px!important;overflow-x:auto!important;scrollbar-width:none;padding:4px 0 10px;scroll-snap-type:x proximity}
.cms-shop-native .cms-shop-native-category-grid::-webkit-scrollbar{display:none}
.cms-shop-native .cms-shop-native-category-grid .d2-category-tile{flex:0 0 108px!important;width:108px!important;gap:8px;scroll-snap-align:start}
.cms-shop-native .cms-shop-native-category-grid .d2-category-media{width:78px!important;height:78px!important;aspect-ratio:1!important;border-radius:20px!important}
.cms-shop-native .cms-shop-native-category-grid .d2-category-media img{width:100%!important;height:100%!important;object-fit:contain!important;padding:8px!important}
@media(max-width:600px){.cms-shop-native .cms-shop-native-category-grid .d2-category-tile{flex-basis:82px!important;width:82px!important}.cms-shop-native .cms-shop-native-category-grid .d2-category-media{width:59px!important;height:59px!important;border-radius:14px!important}.cms-shop-native .cms-shop-native-category-grid .d2-category-tile strong{font-size:10px!important}}
.cms-shop-native-rail[data-align="center"]{justify-content:center}.cms-shop-native-rail[data-align="left"]{justify-content:flex-end}

/* Keep the canonical viewer above corporate headers and editor overlays. */
body.theme-corporate1 .story-viewer,body.theme-corporate2 .story-viewer{z-index:10020!important}
body.theme-corporate1 .cms-shop-native{padding-block:48px}

/* The imported mobile-only !important rules must not shrink circles on desktop. */
@media(min-width:601px){.cms-shop-native .story-bubble{min-width:94px!important}.cms-shop-native .story-bubble>span{width:82px!important;height:82px!important}.cms-shop-native .story-bubble b{max-width:94px!important}}

/* 1.19.22.86: storefront-size story viewer for both corporate themes; no desktop fullscreen */
body.theme-corporate1 .story-viewer,body.theme-corporate2 .story-viewer{display:none;inset:0;padding:18px;align-items:center;justify-content:center;box-sizing:border-box;z-index:10020!important}
body.theme-corporate1 .story-viewer.open,body.theme-corporate2 .story-viewer.open{display:flex!important}
body.theme-corporate1 .story-viewer-shell,body.theme-corporate2 .story-viewer-shell{position:relative;flex:0 1 auto;width:min(420px,calc(100vw - 36px))!important;height:min(746px,calc(100dvh - 36px))!important;max-width:420px;max-height:746px;aspect-ratio:9 / 16;border-radius:22px!important;overflow:hidden;background:#111827}
body.theme-corporate1 .story-viewer article,body.theme-corporate2 .story-viewer article{position:absolute;inset:0;overflow:hidden}
body.theme-corporate1 .story-viewer article>img,body.theme-corporate2 .story-viewer article>img{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:cover}
body.theme-corporate1 .story-viewer article.fit-contain>img,body.theme-corporate2 .story-viewer article.fit-contain>img{object-fit:contain}
@media(max-width:600px){body.theme-corporate1 .story-viewer,body.theme-corporate2 .story-viewer{padding:12px}body.theme-corporate1 .story-viewer-shell,body.theme-corporate2 .story-viewer-shell{width:min(420px,calc(100vw - 24px))!important;height:min(746px,calc(100dvh - 24px))!important;border-radius:17px!important}}
