.rma-sb-strip{max-width:1280px;margin:24px auto;padding:0 20px;box-sizing:border-box;color:inherit}.rma-sb-strip[hidden]{display:none}.rma-sb-heading{display:flex;gap:18px;align-items:baseline;margin-bottom:16px}.rma-sb-heading h2{font-size:22px;margin:0}.rma-sb-heading>span{color:#6a7773}.rma-sb-list{display:flex;gap:16px;overflow:auto;padding:4px 0 12px;scrollbar-width:thin}.rma-sb-list>button{border:0;background:none;display:flex;flex:0 0 90px;flex-direction:column;align-items:center;gap:8px;text-align:center;font:inherit;font-size:12px;cursor:pointer;color:inherit}.rma-sb-avatar{height:64px;width:64px;box-sizing:border-box;border:3px solid #237b65;border-radius:50%;display:grid;place-items:center;font-weight:700;font-size:18px;background:#e4f2ec;color:#206551}.rma-sb-modal{position:fixed;inset:0;z-index:200000;background:rgba(13,22,19,.94);display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box}.rma-sb-dialog{width:min(420px,100%);height:min(760px,calc(100dvh - 32px));display:flex;flex-direction:column;color:white;position:relative;overflow:hidden;border-radius:20px;background:#172e27;box-shadow:0 20px 80px #0008}.rma-sb-top{position:absolute;z-index:4;top:0;left:0;right:0;padding:14px;background:linear-gradient(#0009,transparent)}.rma-sb-progress{display:flex;gap:4px;height:3px;margin-bottom:12px}.rma-sb-progress i{height:3px;flex:1;background:#ffffff55;overflow:hidden;border-radius:3px}.rma-sb-progress i>span{display:block;height:100%;background:#fff;width:0}.rma-sb-toolbar{display:flex;align-items:center;gap:6px}.rma-sb-toolbar strong{margin-right:auto;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rma-sb-modal button{cursor:pointer;font:inherit;color:inherit;border:0;background:#ffffff22;border-radius:50%;min-height:36px;min-width:36px}@media (prefers-reduced-motion: no-preference) {
 .rma-sb-stage > .rma-sb-canvas { animation: rm-story-appear 180ms ease-out both; }
 @keyframes rm-story-appear { from { opacity: .25; } to { opacity: 1; } }
}

.rma-sb-stage{position:relative;flex:1;min-height:0;overflow:hidden;touch-action:pan-y}.rma-sb-canvas{position:absolute;inset:0;overflow:hidden}.rma-sb-photo{width:100%;height:100%;object-fit:contain}.rma-sb-layer{position:absolute;transform-origin:center;line-height:1.2;box-sizing:border-box;overflow-wrap:anywhere;white-space:pre-wrap}.rma-sb-layer a{color:inherit;text-decoration:none;display:block}.rma-sb-layer img{width:100%;height:100%;object-fit:contain}.rma-sb-controls{position:absolute;inset:46% 8px auto;display:flex;justify-content:space-between;z-index:3;pointer-events:none}.rma-sb-controls button{pointer-events:auto;background:#0005}.rma-sb-bottom{display:flex;align-items:center;gap:6px;padding:10px 12px max(12px,env(safe-area-inset-bottom));z-index:4;background:#12241f}.rma-sb-bottom a{color:white;text-decoration:underline;margin-right:auto;font-size:13px}.rma-sb-bottom button{font-size:18px}.rma-sb-status{font-size:13px}.rma-sb-badge{display:inline-block;background:#e1f3e9;color:#17664d;border:1px solid #b6dbc9;padding:3px 7px;border-radius:6px;font-size:11px;margin:4px 0}.rma-sb-landing{padding:30px}.rma-sb-notice{position:absolute;bottom:80px;left:16px;right:16px;z-index:8;background:#fff;color:#24372e;padding:12px;border-radius:10px}@media(max-width:600px){.rma-sb-modal{padding:0}.rma-sb-dialog{height:100dvh;max-height:100dvh;width:100%;border-radius:0}.rma-sb-top{padding-top:max(14px,env(safe-area-inset-top))}.rma-sb-heading>span{display:none}.rma-sb-strip{margin:18px auto;padding:0 12px}.rma-sb-heading h2{font-size:20px}}@media(prefers-reduced-motion:reduce){.rma-sb-modal *{animation:none!important;transition:none!important}}

.rma-sb-dialog .rma-sb-toolbar,.rma-sb-dialog .rma-sb-toolbar strong{color:#fff!important}.rma-sb-dialog .rma-sb-toolbar button,.rma-sb-controls button{color:#fff!important;background:#12241fcc!important;text-shadow:none!important;opacity:1!important}
/* Keep the light UniTheme header's collapse from changing document height. */
html.rma-sb-scroll-stable #tygh_main_container{overflow-anchor:none}
html.rma-sb-scroll-stable body.fixed-header .tygh-content{padding-top:var(--rma-sb-header-offset,51px)!important}
/* Compact strip, including the common case of one store. */
#rma-social-stories{display:flex;align-items:center;flex-wrap:wrap;gap:12px 24px;margin:12px auto;padding:0 20px}
#rma-social-stories[hidden]{display:none}
#rma-social-stories .rma-sb-heading{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin:0;flex:0 0 auto}
#rma-social-stories .rma-sb-heading h2{margin:0;padding:0;font-size:18px;line-height:1.25}
#rma-social-stories .rma-sb-heading>span{font-size:12px;line-height:1.3}
#rma-social-stories .rma-sb-list{flex:1 1 180px;min-width:0;gap:12px;padding:4px 0;align-items:center}
#rma-social-stories .rma-sb-list>button{flex:0 0 auto;flex-direction:row;gap:10px;min-height:56px;padding:0 4px;max-width:220px;text-align:start;border-radius:10px}
#rma-social-stories button:focus-visible,.rma-sb-dialog button:focus-visible,.rma-sb-dialog a:focus-visible{outline:3px solid #55c3a1;outline-offset:3px}
.rma-sb-avatar{position:relative;flex:0 0 48px;width:48px;height:48px;border-width:2px;overflow:hidden;background:#fff}
.rma-sb-avatar>span{position:absolute;inset:0;display:grid;place-items:center;background:#e4f2ec}
.rma-sb-avatar>img{position:relative;display:block!important;width:100%!important;height:100%!important;object-fit:contain;border-radius:50%;background:#fff}
.rma-sb-store-label{display:flex;flex-direction:column;gap:3px;min-width:0;line-height:1.3}
.rma-sb-store-label>span{font-size:13px;font-weight:600;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rma-sb-store-label>small{font-size:11px;color:#65776f}
#rma-social-stories .rma-sb-status{flex-basis:100%;margin:0;font-size:12px}
#rma-social-stories .rma-sb-status:empty{display:none}
.rma-sb-identity{display:flex;align-items:center;gap:8px;min-width:0;flex:1}
.rma-sb-viewer-avatar{flex-basis:32px;width:32px;height:32px;border:0;font-size:14px}
.rma-sb-dialog{width:min(420px,calc(100dvw - 32px),calc((100dvh - 90px)*9/16));height:auto;max-height:calc(100dvh - 32px)}
.rma-sb-stage{flex:none;width:100%;aspect-ratio:9/16}
.rma-sb-toolbar strong{min-width:0;font-size:13px}
.rma-sb-top{padding:12px}
.rma-sb-modal .rma-sb-controls[hidden]{display:none}
.rma-sb-modal button:disabled{opacity:.35!important;cursor:default}
.rma-sb-bottom{box-sizing:border-box;min-height:58px;padding:10px 12px;flex:none}
.rma-sb-bottom>a{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rma-sb-product{
 --product-width:min(72%, 320px);
 width:var(--product-width);
 left:clamp(calc(var(--product-width) / 2 + 6px), var(--product-x), calc(100% - var(--product-width) / 2 - 6px));
 top:clamp(52px, var(--product-y), calc(100% - 52px));
 overflow-wrap:normal;
 padding:0;border-radius:14px;background:#fffffff2;color:#153e30;font-size:13px;white-space:normal}
.rma-sb-product>a{display:flex;align-items:center;gap:10px;padding:7px;border-radius:inherit;min-height:48px;box-sizing:border-box}
.rma-sb-layer .rma-sb-product-photo{flex:0 0 48px;width:48px;height:58px;object-fit:cover;border-radius:10px}
.rma-sb-product-info{display:flex;flex-direction:column;gap:4px;min-width:0;text-align:start}
.rma-sb-product-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.25;font-weight:600;font-size:13px}
.rma-sb-product-price{white-space:nowrap;font-size:16px;color:#008a7b;line-height:1.2}
.rma-sb-product-info small{font-size:10px;color:#647976;line-height:1.2}
@media(max-width:600px){
 #rma-social-stories{padding:0 12px;gap:8px 16px;margin:10px auto}
 #rma-social-stories .rma-sb-heading{flex-basis:108px}
 #rma-social-stories .rma-sb-heading h2{font-size:16px}
 #rma-social-stories .rma-sb-list{flex:1 1 130px}
 #rma-social-stories .rma-sb-store-label>span{max-width:100px}
 .rma-sb-modal{padding:8px}
 .rma-sb-dialog{width:min(100%,calc((100dvh - 74px)*9/16));height:auto;max-height:calc(100dvh - 16px);border-radius:16px}
 .rma-sb-top{padding:10px}
}
/* Product snapshots keep readable text independently of story text/layer colors. */
.rma-sb-layer.rma-sb-product > a,
.rma-sb-layer.rma-sb-product .rma-sb-product-name{color:#153e30}
.rma-sb-empty{margin:0;color:#62756b;font-size:14px;line-height:1.5}
/* Compact stories: one row of store logos instead of tall preview cards. */
#rma-social-stories.rma-sb-strip--compact{display:flex;align-items:center;flex-wrap:nowrap;gap:24px;max-width:none;margin:14px 0;padding:0;color:#163e35;min-width:0}
#rma-social-stories.rma-sb-strip--compact[hidden]{display:none}
#rma-social-stories.rma-sb-strip--compact .rma-sb-heading{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin:0;flex:0 0 190px}
#rma-social-stories.rma-sb-strip--compact h2{font-size:18px;line-height:1.3;font-weight:650;letter-spacing:-.2px}
.rma-sb-heading-actions{display:flex;align-items:center;gap:12px}
.rma-sb-heading-actions>a{display:flex;align-items:center;gap:8px;min-height:36px;color:#155d4e;font-size:13px;white-space:nowrap}
.rma-sb-heading-actions .rm-icon{width:18px;height:18px}
.rma-sb-scroll-controls{display:flex;gap:8px}.rma-sb-scroll-controls[hidden]{display:none}
.rma-sb-scroll-controls button{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #d9e2d5;border-radius:12px;background:#fff;color:#205c4c;cursor:pointer}
.rma-sb-scroll-controls button:hover:not(:disabled){background:#edf3e8}.rma-sb-scroll-controls button:disabled{opacity:.35;cursor:default}
[data-rma-stories-prev] .rm-icon{transform:rotate(180deg)}
#rma-social-stories.rma-sb-strip--compact .rma-sb-list{display:flex;align-items:flex-start;flex:1;min-width:0;gap:12px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:none;padding:4px;margin:0 -4px}
#rma-social-stories.rma-sb-strip--compact .rma-sb-list::-webkit-scrollbar{display:none}
#rma-social-stories.rma-sb-strip--compact .rma-sb-story-card{display:flex;flex-direction:column;align-items:center;gap:6px;flex:0 0 84px;width:84px;max-width:84px;min-height:0;padding:0;border:0;border-radius:10px;background:transparent;color:#163e35;text-align:center;scroll-snap-align:start;font:inherit;cursor:pointer;transform:none;box-shadow:none}
.rma-sb-story-ring{display:block;position:relative;width:60px;height:60px;box-sizing:border-box;padding:3px;border:2px solid #297d66;border-radius:50%;transition:background-color .15s}
.rma-sb-story-card:hover .rma-sb-story-ring{background:#dcebdc}
.rma-sb-story-ring .rma-sb-avatar{display:grid;width:50px;height:50px;border:0;font-size:18px;box-shadow:none}
.rma-sb-story-count{position:absolute;right:-3px;bottom:-1px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 3px;border:2px solid white;border-radius:12px;background:#15594c;color:white;font-size:10px;line-height:1;box-sizing:content-box}
#rma-social-stories.rma-sb-strip--compact .rma-sb-store-label{display:block;width:100%;padding:0;line-height:1.3}
#rma-social-stories.rma-sb-strip--compact .rma-sb-store-label>span{display:block;max-width:100%;font-size:12px;line-height:16px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#rma-social-stories.rma-sb-strip--compact .rma-sb-empty{align-self:center;margin:0;font-size:13px;line-height:1.5;color:#62756b;padding:8px 0}
#rma-social-stories .rma-sb-list:focus-visible{outline:2px solid #237b65;outline-offset:2px;border-radius:10px}
#rma-social-stories.rma-sb-strip--compact .rma-sb-status:not(:empty){flex:0 1 170px;font-size:12px}
@media(max-width:600px){
 #rma-social-stories.rma-sb-strip--compact{display:block;margin:12px 0}
 #rma-social-stories.rma-sb-strip--compact .rma-sb-heading{flex-direction:row;align-items:center;justify-content:space-between;gap:8px;margin-bottom:4px}
 #rma-social-stories.rma-sb-strip--compact h2{font-size:16px}
 .rma-sb-heading-actions>a{font-size:12px;min-height:32px}.rma-sb-heading-actions>a .rm-icon{width:16px;height:16px}
 #rma-social-stories.rma-sb-strip--compact .rma-sb-scroll-controls{display:none}
 #rma-social-stories.rma-sb-strip--compact .rma-sb-list{gap:8px}
 #rma-social-stories.rma-sb-strip--compact .rma-sb-story-card{flex-basis:72px;width:72px;max-width:72px;gap:4px}
 .rma-sb-story-ring{width:54px;height:54px}.rma-sb-story-ring .rma-sb-avatar{width:44px;height:44px}
 #rma-social-stories.rma-sb-strip--compact .rma-sb-status:not(:empty){margin-top:6px}
}
@media(prefers-reduced-motion:reduce){.rma-sb-story-ring{transition:none}}
