﻿/* Compact Facebook-style stories, not the larger product cards. */
.ohelp-market-stories{margin:12px 0;padding:0;min-width:0}
.ohelp-stories-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 0 8px}
.ohelp-stories-header h2{font-size:18px;margin:0;color:#123940}
.ohelp-stories-marketplace-button{border:1px solid #075c4540;border-radius:14px;padding:9px 14px;background:#ffffffcc;color:#075c45;font-weight:700;cursor:pointer}
.ohelp-market-stories-track{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;padding:0 0 10px;scrollbar-width:none;min-width:0;overscroll-behavior-x:contain}
.ohelp-market-stories-track::-webkit-scrollbar{display:none}
html body #app .ohelp-market-story{position:relative;display:block!important;flex:0 0 clamp(76px,calc((100% - 24px)/3.4),150px)!important;padding:0!important;margin:0!important;min-width:0!important;border-radius:14px!important;overflow:hidden;border:0!important;background:#10271e!important;text-align:left;color:#fff;cursor:pointer;box-shadow:none!important}
html body #app .ohelp-market-story-media{position:relative;width:100%;aspect-ratio:9/16;background:#10271e;overflow:hidden;isolation:isolate}
html body #app .ohelp-market-story-media>img,html body #app .ohelp-market-story-media>video{position:absolute;inset:0;display:block;width:100%!important;height:100%!important;object-fit:cover!important;border-radius:0!important}
.ohelp-market-story-gradient{position:absolute;inset:30% 0 0;background:linear-gradient(transparent,#000d);pointer-events:none}
.ohelp-market-story-avatar{position:absolute;top:7px;left:7px;border-radius:50%;border:2px solid #fff;background:#e4eee8;overflow:hidden;display:flex;align-items:center;justify-content:center;flex-shrink:0;z-index:2}
.ohelp-market-story-avatar img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:50%!important}
.ohelp-market-story-avatar .fallback{color:#075c45;font-size:13px;font-weight:800}
.ohelp-market-story-body{position:absolute;bottom:8px;left:7px;right:7px;z-index:2;display:flex;flex-direction:column;gap:3px;color:#fff}
.ohelp-market-story-seller{font-size:11px!important;font-weight:800;line-height:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ohelp-market-story-description{font-size:10px!important;line-height:13px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#fff}
.ohelp-market-story-video-badge{position:absolute;top:8px;right:5px;font-size:9px;color:#fff;background:#123f36b0;border-radius:5px;padding:3px;z-index:2}
.ohelp-media-empty{display:flex;align-items:center;justify-content:center;color:#c7ddd2}
.ohelp-media-unavailable{padding:8px;text-align:center;font-size:11px}
.ohelp-stories-status{color:#5a7067;font-size:13px;line-height:1.5;margin:6px 0}
.ohelp-stories-status:empty{display:none}
.ohelp-story-viewer{position:fixed;inset:0;display:block;border:0;max-width:100vw;max-height:100dvh;width:100vw;height:100dvh;margin:0;padding:0;background:#0b1410;color:#fff;overflow:hidden;box-sizing:border-box;font:14px/1.4 system-ui,sans-serif}
.ohelp-story-viewer:not([open]){display:none}
.ohelp-story-viewer::backdrop{background:#0b1410}
.ohelp-story-content{position:absolute;inset:0}
.ohelp-story-progress{position:absolute;top:0;left:0;right:0;display:flex;gap:5px;padding:calc(8px + env(safe-area-inset-top)) 12px 8px;z-index:4}
.ohelp-story-dot{height:4px;flex:1;border-radius:3px;background:#ffffff50}
.ohelp-story-dot.active{background:#fff}.ohelp-story-dot.done{background:#07b07e}
.ohelp-story-viewer-bar{position:absolute;top:calc(24px + env(safe-area-inset-top));left:0;right:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;z-index:4;background:linear-gradient(#0008,transparent)}
.ohelp-story-viewer-header-cell{display:flex;align-items:center;gap:10px;min-width:0;flex:1}
.ohelp-story-viewer-header-cell .ohelp-market-story-avatar,.ohelp-story-sheet-header .ohelp-market-story-avatar{position:relative;top:auto;left:auto}
.ohelp-story-viewer-name{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ohelp-story-close,.ohelp-story-nav-button{min-width:44px;min-height:44px;border:0;border-radius:24px;background:#0008;color:#fff;font-weight:700;font-size:13px;cursor:pointer;padding:10px}
.ohelp-story-media-area{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse,#17382b,#0b1410);overflow:hidden}
.ohelp-story-media-area>img,.ohelp-story-media-area>video{display:block;width:100%!important;height:100%!important;max-height:100%!important;max-width:100%!important;object-fit:contain!important;object-position:center}
.ohelp-story-media-area>video{padding:85px 0 120px;box-sizing:border-box}
.ohelp-story-nav-button{position:absolute;top:45%;z-index:3}.ohelp-story-nav-button.prev{left:8px}.ohelp-story-nav-button.next{right:8px}
.ohelp-story-nav-button:disabled{opacity:.3}
.ohelp-story-compact{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:flex-end;gap:10px;padding:18px 14px calc(18px + env(safe-area-inset-bottom));background:linear-gradient(transparent,#000e);z-index:3;box-sizing:border-box}
.ohelp-story-compact-text{flex:1;min-width:0}.ohelp-story-compact-name{font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ohelp-story-compact-desc{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;margin-top:3px}
.ohelp-story-see-more{flex:none;background:#ffffff30;color:white;border:0;border-radius:20px;padding:10px 14px;font-weight:700;font-size:13px;cursor:pointer}
.ohelp-story-sheet-backdrop{position:absolute;inset:0;z-index:5;border:0;background:#0009;cursor:pointer;width:100%;height:100%;border-radius:0;margin:0;padding:0}
.ohelp-story-sheet{position:absolute;left:0;right:0;bottom:0;z-index:6;max-height:82dvh;display:flex;flex-direction:column;background:#fff;color:#123940;border-radius:20px 20px 0 0;overflow:hidden;animation:ohelp-sheet-up .25s ease-out}
.ohelp-sheet-drag-area{padding:14px;flex:none;touch-action:none;cursor:grab}.ohelp-sheet-handle{width:36px;height:5px;margin:auto;border-radius:4px;background:#bfd1c7}
.ohelp-story-sheet-content{padding:0 16px calc(18px + env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain}
.ohelp-story-sheet-header{display:flex;gap:12px;align-items:center}.ohelp-story-sheet-name{font-size:17px}
.ohelp-story-sheet-product-name{font-size:18px;margin:14px 0 5px}.ohelp-story-sheet-product-price{font-weight:800;color:#075c45;margin:0 0 12px}
.ohelp-story-full-description{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}
.ohelp-story-sheet-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.ohelp-story-sheet-actions button,.ohelp-story-sheet-close{flex:1;min-height:44px;border:1px solid #075c4540;border-radius:12px;padding:10px;background:#edf6f1;color:#075c45;font-size:14px;font-weight:700;cursor:pointer}
.ohelp-story-sheet-close{display:block;width:100%;margin-top:14px}
.ohelp-story-video-status{position:absolute;top:40%;left:15%;right:15%;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;background:#000a;padding:16px;border-radius:16px;color:#fff}
.ohelp-story-video-status button{min-height:44px;padding:10px 16px;border:0;border-radius:12px;color:#075c45;background:#fff}
.ohelp-story-sheet[hidden],.ohelp-story-sheet-backdrop[hidden]{display:none!important}
.ohelp-market-stories :focus-visible,.ohelp-story-viewer :focus-visible{outline:3px solid #07b07e;outline-offset:3px}
@keyframes ohelp-sheet-up{from{transform:translateY(100%)}to{transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.ohelp-story-sheet{animation:none}.ohelp-market-stories-track{scroll-behavior:auto}}
@media(min-width:768px){.ohelp-story-viewer{max-width:900px;left:50%;right:auto;transform:translateX(-50%)}.ohelp-story-sheet-actions{flex-wrap:nowrap}}
