.wp-story { max-width:100%; margin:24px auto; }
.wp-story-highlights { display:flex; flex-direction:row; align-items:flex-start; gap:18px; width:100%; overflow-x:auto; overflow-y:hidden; white-space:nowrap; padding:8px 4px 14px; margin:0; background:transparent; box-shadow:none; border:none; scroll-behavior:smooth; scrollbar-width:thin; -webkit-overflow-scrolling:touch; }
.wp-story-highlights::-webkit-scrollbar { height:5px; }
.wp-story-highlights::-webkit-scrollbar-thumb { background:rgba(0,0,0,.2); border-radius:10px; }
.wp-story-highlight { flex:0 0 90px; width:90px; min-width:90px; display:flex; flex-direction:column; align-items:center; text-align:center; border:0; background:transparent; box-shadow:none; padding:0; cursor:pointer; color:inherit; white-space:normal; }
.wp-story-highlight-ring { display:flex; align-items:center; justify-content:center; width:72px; height:72px; flex:0 0 72px; padding:3px; border-radius:50%; background:linear-gradient(135deg,#feda75 0%,#fa7e1e 35%,#d62976 65%,#4f5bd5 100%); }
.wp-story-highlight-ring img { display:block; width:100%; height:100%; border:3px solid #fff; border-radius:50%; object-fit:cover; }
.wp-story-highlight-title { display:-webkit-box; width:90px; max-width:90px; height:36px; overflow:hidden; margin-top:8px; color:#222; font-size:13px; line-height:1.4; text-align:center; white-space:normal; word-break:normal; overflow-wrap:break-word; text-overflow:clip; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.wp-story-viewer[hidden] { display:none; }.wp-story-viewer { position:fixed; inset:0; z-index:999999; display:flex; align-items:center; justify-content:center; background:rgba(15,15,20,.85); backdrop-filter:blur(15px); }
.wp-story-content { position:relative; width:90vw; max-width:420px; height:85vh; max-height:750px; overflow:hidden; border-radius:28px; background:#17171c; box-shadow:0 20px 50px rgba(0,0,0,.5); touch-action:none; }.wp-story-content::after { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(to bottom,rgba(0,0,0,.6) 0%,transparent 28%); }.wp-story-media { display:block; width:100%; height:100%; object-fit:cover; }
.wp-story-progress-row { position:absolute; z-index:4; top:calc(7.5vh + 16px); right:calc(50% - 185px); left:calc(50% - 185px); display:flex; gap:4px; direction:ltr; }.wp-story-progress-row span { flex:1; height:3px; overflow:hidden; border-radius:5px; background:rgba(255,255,255,.35); transition:width 5000ms linear; }.wp-story-progress-row span.is-done { background:#fff; }.wp-story-progress-row span[style*="width"] { background:linear-gradient(to right,#fff var(--story-progress,0%),rgba(255,255,255,.35) var(--story-progress,0%)); }
.wp-story-top-header { position:absolute; z-index:5; top:calc(7.5vh + 30px); right:calc(50% - 185px); left:calc(50% - 185px); display:flex; align-items:flex-start; gap:12px; color:#fff; direction:rtl; }.wp-story-profile { display:flex; align-items:center; gap:8px; min-width:0; }.wp-story-profile > div { display:flex; flex-direction:column; gap:2px; }.wp-story-profile strong { overflow:hidden; max-width:230px; text-overflow:ellipsis; white-space:nowrap; }.wp-story-profile time { color:#fff; font-size:11px; opacity:.8; }.wp-story-avatar img { width:34px; height:34px; border:2px solid #fff; border-radius:50%; object-fit:cover; }.wp-story-play-toggle,.wp-story-close-btn { width:32px; height:32px; margin:0; padding:0; border:0; background:transparent!important; box-shadow:none!important; color:#fff; font-size:20px; cursor:pointer; }.wp-story-close-btn { margin-right:auto; font-size:28px; line-height:28px; }
.wp-story-action { position:absolute; z-index:6; right:0; bottom:28px; left:0; display:flex; justify-content:center; }.wp-story-action-button { padding:10px 24px; border:1px solid rgba(255,255,255,.2); border-radius:50px; background:rgba(80,80,80,.65); backdrop-filter:blur(10px); color:#fff!important; font-size:14px; font-weight:500; text-decoration:none; }.wp-story-product-overlay { position:absolute; right:16px; bottom:68px; left:16px; display:flex; flex-direction:column; gap:6px; padding:20px 16px; color:#fff; background:linear-gradient(to top,rgba(0,0,0,.85),transparent); }.wp-story-product-overlay strong { font-size:17px; }.wp-story-product-overlay span { font-weight:600; }
.wp-story-prev-btn,.wp-story-next-btn { position:absolute; z-index:7; top:50%; border:0; background:transparent; color:#fff; font-size:38px; line-height:1; opacity:.7; cursor:pointer; transform:translateY(-50%); transition:opacity .3s,transform .3s; }.wp-story-prev-btn { right:calc(50% - 250px); }.wp-story-next-btn { left:calc(50% - 250px); }.wp-story-prev-btn:hover,.wp-story-next-btn:hover { opacity:1; transform:translateY(-50%) scale(1.1); }body.wp-story-modal-open { overflow:hidden; }
@media (max-width:767px) { .wp-story-content { width:100vw; height:100vh; max-width:none; max-height:none; border-radius:0; }.wp-story-progress-row,.wp-story-top-header { right:16px; left:16px; }.wp-story-prev-btn { right:8px; }.wp-story-next-btn { left:8px; } }


/* اطمینان از شفاف بودن تمام لایه‌های نوار هایلایت؛ گرادیانت فقط روی حلقه باقی می‌ماند. */
.wp-story,
.wp-story-highlights,
.wp-story-highlight,
.wp-story-highlight::before,
.wp-story-highlight::after,
.wp-story-highlight-ring,
.wp-story-highlight-ring::before,
.wp-story-highlight-ring::after,
.wp-story-highlight-title,
.wp-story-highlight a,
.wp-story-highlight img,
.wp-stories-highlights-bar,
.wp-stories-highlights-container,
.wp-story-item,
.wp-story-item *,
.wp-story-item a,
.wp-story-circle-wrapper,
.wp-story-circle img,
.story-highlight-circle,
.story-highlight-circle img,
.story-avatar-holder,
.story-avatar-holder img,
.wp-story-title {
    background-image: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.wp-story-highlight,
.wp-story-highlight a,
.wp-story-highlight button,
.wp-story-item,
.wp-story-item a {
    border: 0 !important;
    outline: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

/* حلقه تنها لایه‌ای است که باید گرادیانت داشته باشد. */
.wp-story-highlight-ring,
.wp-story-circle,
.story-highlight-circle,
.story-avatar-holder {
    width: 75px !important;
    height: 75px !important;
    flex: 0 0 75px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    box-sizing: border-box !important;
    padding: 2.5px !important;
    border: 0 !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
}

.wp-story-highlight-ring img,
.wp-story-circle img,
.story-highlight-circle img,
.story-avatar-holder img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
    border: 2px solid #fff !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    object-fit: cover !important;
    background: #fff !important;
    background-color: #fff !important;
}

.wp-story-highlights::-webkit-scrollbar,
.wp-story-highlights::-webkit-scrollbar-track,
.wp-story-highlights::-webkit-scrollbar-thumb {
    background: transparent !important;
    box-shadow: none !important;
}
