/* ========== סקופ: כל הסטיילים חלים רק בתוך וידג'ט הסטורי ========== */
/* Container for the story bubbles – גלילה אופקית גם במובייל (+ momentum ב-iOS) */
.elementor-widget-story_status_widget .angie-story-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 5px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    align-items: flex-start;
    gap: 15px; /* Default gap */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y pinch-zoom;
    min-height: min-content;
}

/* אלמנטור לפעמים חותך overflow בקונטיינר הפנימי – מאפשרים גלילה בשורת הסטוריז */
@media (max-width: 767px) {
    .elementor-widget-story_status_widget .elementor-widget-container,
    .elementor-widget-story_status_widget .elementor-widget-wrap {
        overflow-x: visible !important;
        overflow-y: visible !important;
        max-width: 100vw;
        box-sizing: border-box;
    }
}
.elementor-widget-story_status_widget .angie-story-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* דסקטופ: גלילה אופקית – סרגל דק + גלגלת (בשילוב עם JS) */
@media (min-width: 768px) {
    .elementor-widget-story_status_widget .angie-story-container.angie-desktop-hscroll {
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 0, 0, 0.38) transparent;
        cursor: grab;
    }
    .elementor-widget-story_status_widget .angie-story-container.angie-desktop-hscroll:active {
        cursor: grabbing;
    }
    .elementor-widget-story_status_widget .angie-story-container.angie-desktop-hscroll::-webkit-scrollbar {
        display: block;
        height: 7px;
    }
    .elementor-widget-story_status_widget .angie-story-container.angie-desktop-hscroll::-webkit-scrollbar-track {
        background: transparent;
    }
    .elementor-widget-story_status_widget .angie-story-container.angie-desktop-hscroll::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.38);
        border-radius: 4px;
    }
}

/* Visibility Control Classes – רק בתוך הווידג'ט */
@media (min-width: 1025px) {
    .elementor-widget-story_status_widget .angie-hide-desktop { display: none !important; }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .elementor-widget-story_status_widget .angie-hide-tablet { display: none !important; }
}
@media (max-width: 767px) {
    .elementor-widget-story_status_widget .angie-hide-mobile { display: none !important; }
}

/* Instagram Style Layout */
.elementor-widget-story_status_widget .angie-view-instagram {
    flex-wrap: nowrap;
}

/* WhatsApp Style Layout – שורה אופקית של כרטיסי סטורי */
.elementor-widget-story_status_widget.angie-view-whatsapp .angie-story-container {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    align-items: stretch !important;
    gap: 12px;
}

/* Individual Story Trigger Item */
.elementor-widget-story_status_widget .angie-story-trigger-item {
    display: flex;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    text-decoration: none;
    color: inherit;
}

/* Instagram Item */
.elementor-widget-story_status_widget .angie-view-instagram .angie-story-trigger-item {
    flex-direction: column;
    align-items: center;
}
.elementor-widget-story_status_widget .angie-view-instagram .angie-story-trigger-item:hover {
    transform: scale(1.05);
}

/* WhatsApp Item – כרטיס אנכי (גלולה) */
.elementor-widget-story_status_widget.angie-view-whatsapp .angie-story-trigger-item {
    flex-direction: column !important;
    align-items: stretch !important;
    position: relative !important;
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
    aspect-ratio: 9 / 16 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    padding: 0 !important;
    border: none !important;
    border-bottom: none !important;
    background-color: transparent !important;
}
.elementor-widget-story_status_widget.angie-view-whatsapp .angie-story-trigger-item:hover {
    transform: scale(1.03);
    background-color: transparent !important;
}

/* בועה: תמונה/וידאו ממלאים את כל הקוביה או העיגול */
.elementor-widget-story_status_widget .angie-whatsapp-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-color: #222;
}

/* וידאו בבועה (סגנון וואטסאפ) */
.elementor-widget-story_status_widget .angie-view-whatsapp .angie-story-trigger-item .angie-story-bubble-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.elementor-widget-story_status_widget .angie-view-whatsapp .angie-story-trigger-item .angie-whatsapp-card-bg { z-index: 0; }
.elementor-widget-story_status_widget .angie-view-whatsapp .angie-story-trigger-item .angie-whatsapp-card-gradient,
.elementor-widget-story_status_widget .angie-view-whatsapp .angie-story-trigger-item .angie-whatsapp-card-title { z-index: 1; }

/* וידאו בבועה (סגנון אינסטגרם) */
.elementor-widget-story_status_widget .angie-view-instagram .angie-story-trigger-image .angie-story-bubble-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    z-index: 1;
}
.elementor-widget-story_status_widget .angie-view-instagram .angie-story-trigger-image .angie-story-bubble-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    z-index: 0;
}
.elementor-widget-story_status_widget .angie-view-instagram .angie-story-trigger-image {
    position: relative;
}

/* גרדיאנט שחור בתחתית הבועה */
.elementor-widget-story_status_widget .angie-whatsapp-card-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.3) 40%, transparent);
    z-index: 1;
    pointer-events: none;
}

/* כותרת בתחתית הכרטיס */
.elementor-widget-story_status_widget.angie-view-whatsapp .angie-whatsapp-card-title.angie-story-trigger-title {
    position: absolute;
    bottom: 14px;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 24px 10px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.4) 60%, transparent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    word-break: normal !important;
    white-space: normal !important;
    max-height: 3.75em !important;
}
/* יישור כותרת */
.elementor-widget-story_status_widget .angie-whatsapp-card-title.angie-whatsapp-title-align-left {
    text-align: left !important;
}
.elementor-widget-story_status_widget .angie-whatsapp-card-title.angie-whatsapp-title-align-center {
    text-align: center !important;
}
.elementor-widget-story_status_widget .angie-whatsapp-card-title.angie-whatsapp-title-align-right {
    text-align: right !important;
}
.elementor-widget-story_status_widget.angie-view-whatsapp .angie-whatsapp-card-title.angie-story-trigger-title {
    text-align: center !important;
}

/* The circle image container */
.elementor-widget-story_status_widget .angie-story-trigger-image {
    border-radius: 50%;
    padding: 3px; /* Gap between image and border */
    border: 2px solid #e1306c; /* Default instagram-like color */
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.elementor-widget-story_status_widget .angie-view-instagram .angie-story-trigger-image {
    margin-bottom: 3px;
}

/* בועה (אינסטגרם): תמונה */
.elementor-widget-story_status_widget .angie-story-trigger-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    background-color: #eee;
}

/* Title Styling */
.elementor-widget-story_status_widget .angie-story-trigger-title {
    line-height: 1.3;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.elementor-widget-story_status_widget .angie-view-instagram .angie-story-trigger-title {
    text-align: center;
    font-size: 12px;
    width: 100%;
}


/* --- OVERLAY STYLES (סקופ: רק בתוך הווידג'ט) --- */

.elementor-widget-story_status_widget .angie-story-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    background-color: #000;
}

@media (min-width: 768px) {
    .elementor-widget-story_status_widget .angie-story-overlay {
        background-color: rgba(0,0,0,0.9); /* Dimmed background outside */
        align-items: center;
        justify-content: center;
    }
    /* ברירת מחדל דסקטופ – נדרס ע"י הגדרות רוחב/גובה של הווידג'ט */
    .angie-story-overlay .angie-story-content-wrapper {
        width: 100%;
        max-width: 450px;
        height: 80vh;
        max-height: 95vh;
    }
    .elementor-widget-story_status_widget .angie-story-overlay .angie-story-content-wrapper {
        border-radius: 12px;
        overflow: hidden;
        position: relative;
        box-shadow: 0 0 20px rgba(0,0,0,0.5);
    }
    .elementor-widget-story_status_widget .angie-story-overlay .angie-story-close-btn {
        width: 40px;
        height: 40px;
        margin: 0;
        padding: 0;
        border: none !important;
        border-radius: 50%;
        background: rgba(0,0,0,0.5);
        color: #fff;
        font-size: 26px;
        line-height: 1;
        cursor: pointer;
        z-index: 40;
        display: flex;
        align-items: center;
        justify-content: center;
        outline: none !important;
        box-shadow: none !important;
    }
    .elementor-widget-story_status_widget .angie-story-overlay .angie-story-close-btn:focus,
    .elementor-widget-story_status_widget .angie-story-overlay .angie-story-close-btn:focus-visible,
    .elementor-widget-story_status_widget .angie-story-overlay .angie-story-close-btn:active {
        outline: none !important;
        box-shadow: none !important;
        border: none !important;
    }
    .elementor-widget-story_status_widget .angie-story-overlay {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .elementor-widget-story_status_widget .angie-story-overlay .angie-story-content-wrapper {
        position: relative;
        background: #222;
    }
    /* דסקטופ: לוגו בתוך מסגרת התוכן (absolute מה-PHP) – לא fixed לראש הדף */
    .elementor-widget-story_status_widget .angie-story-overlay.angie-story-overlay-open .angie-story-content-wrapper .angie-story-overlay-logo {
        position: absolute !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin: 0 !important;
        z-index: 9998 !important;
    }
}

/* מובייל: ברירת מחדל מסך מלא – נדרס ע"י הגדרות רוחב/גובה של הווידג'ט (פאנל responsive) */
@media (max-width: 767px) {
    .angie-story-overlay .angie-story-content-wrapper {
        width: 100%;
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
    }
    .elementor-widget-story_status_widget .angie-story-overlay .angie-story-content-wrapper {
        position: relative;
        background: #222;
        border-radius: 0;
    }
    .elementor-widget-story_status_widget .angie-story-overlay .angie-story-close-btn {
        top: 12px;
        right: 14px;
        outline: none !important;
        box-shadow: none !important;
        border: none !important;
        -webkit-tap-highlight-color: transparent !important;
        tap-highlight-color: transparent !important;
    }
    .elementor-widget-story_status_widget .angie-story-overlay .angie-story-close-btn:focus,
    .elementor-widget-story_status_widget .angie-story-overlay .angie-story-close-btn:focus-visible,
    .elementor-widget-story_status_widget .angie-story-overlay .angie-story-close-btn:active,
    .elementor-widget-story_status_widget .angie-story-overlay .angie-story-close-btn:hover {
        outline: none !important;
        box-shadow: none !important;
        border: none !important;
        background: rgba(0,0,0,0.5) !important;
    }
    .elementor-widget-story_status_widget .angie-story-overlay .angie-story-progress-container {
        padding: 10px 5px 0;
    }
}

/* Common Overlay Elements */
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-content-wrapper {
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Text at bottom */
}

/* רקע מטושטש */
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-bg-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #111;
    filter: blur(20px);
    opacity: 0.25;
    z-index: 0;
    transition: background-image 0.3s linear;
    border-radius: inherit;
}

/* תמונה ראשית בלייטבוקס */
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-content-wrapper .angie-story-bg-image {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100% !important;
    height: auto !important;
    max-height: 100% !important;
    object-fit: contain;
    object-position: center;
    z-index: 10;
    transition: opacity 0.2s ease;
    border-radius: inherit;
    pointer-events: none;
    display: block;
    visibility: visible;
    opacity: 1;
}

/* Video Styling */
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    overflow: hidden;
}

.elementor-widget-story_status_widget .angie-story-overlay .angie-story-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover ensures it fills like an image */
}

.elementor-widget-story_status_widget .angie-story-overlay .angie-story-overlay-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    z-index: 2;
    pointer-events: none;
}

/* Info container – ממורכז, 65% מרוחב הלייטבוקס */
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-info {
    position: relative;
    z-index: 20;
    width: 65% !important;
    max-width: 65% !important;
    min-width: 65% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 20px 16px 40px !important;
    text-align: center;
    color: #fff;
    pointer-events: none;
    box-sizing: border-box !important;
}

/* Typography from Elementor */
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-meta {
    opacity: 0.8;
    margin-bottom: 5px;
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-post-title {
    margin: 5px 0 10px;
    line-height: 1.3;
    width: 100% !important;
    max-width: 100% !important;
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-credit {
    margin: 0 0 10px;
    font-size: 0.9em;
    opacity: 0.85;
    line-height: 1.3;
    display: none;
}
/* כשמוזן תוכן קרדיט – מוצג מתחת לכותרת */
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-credit.angie-story-credit--has-content {
    display: block !important;
    visibility: visible !important;
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-excerpt {
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Read More button */
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-read-more {
    display: inline-block;
    padding: 8px 20px;
    background: #fff;
    color: #000;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    margin-top: 10px;
    transition: transform 0.2s;
    position: relative;
    z-index: 20; /* Ensure clickable */
    pointer-events: auto; /* Re-enable clicks for the button */
    cursor: pointer;
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-read-more:hover {
    transform: scale(1.05);
}
@media (min-width: 768px) {
    .elementor-widget-story_status_widget .angie-story-overlay .angie-story-read-more[data-show-desktop="0"] {
        display: none !important;
    }
}
@media (max-width: 767px) {
    .elementor-widget-story_status_widget .angie-story-overlay .angie-story-read-more[data-show-mobile="0"] {
        display: none !important;
    }
}

/* כפתור קישור פרסום (adlink) – מוצג רק כשיש adlink בפוסט */
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-adlink-btn {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,255,0.95);
    color: #000;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    margin-top: 8px;
    margin-left: 8px;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 20;
    transition: transform 0.2s;
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-adlink-btn:hover {
    transform: scale(1.05);
}

/* לוגו בלייטבוקס – עיגול עם לוגו, מעל תוכן הכרטיס (z-index גבוה) */
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-overlay-logo {
    position: absolute;
    z-index: 9998;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    overflow: hidden;
    box-sizing: border-box;
    border: 2px solid rgba(255,255,255,0.9);
    box-shadow: 0 1px 8px rgba(0,0,0,0.35);
    pointer-events: none;
    direction: ltr;
    display: none;
    visibility: hidden;
}
/* כש-overlay פתוח – לוגו גלוי ומעל התוכן (גם עם סלקטור קצר אם ה-overlay לא תחת הווידג'ט) */
.elementor-widget-story_status_widget .angie-story-overlay.angie-story-overlay-open .angie-story-overlay-logo,
.angie-story-overlay.angie-story-overlay-open .angie-story-overlay-logo {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 9998 !important;
}
/* לוגו כעת בתוך content-wrapper – position:absolute ביחס למסגרת */
/* מיקום הלוגו */
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-overlay-logo--top_left {
    top: 12px;
    left: 14px;
    right: auto;
    bottom: auto;
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-overlay-logo--top_right {
    top: 12px;
    right: 14px;
    left: auto;
    bottom: auto;
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-overlay-logo--bottom_left {
    bottom: 12px;
    left: 14px;
    top: auto;
    right: auto;
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-overlay-logo--bottom_right {
    bottom: 12px;
    right: 14px;
    top: auto;
    left: auto;
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-overlay-logo img {
    display: block;
    vertical-align: top;
}

/* Progress Bars */
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-progress-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 4px;
    padding: 10px 10px 0;
    z-index: 25;
    box-sizing: border-box;
}

.elementor-widget-story_status_widget .angie-story-overlay .angie-story-progress-bar-wrap {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    overflow: hidden;
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-progress-bar {
    height: 100%;
    width: 0%;
    background: #fff;
    border-radius: 2px;
    transition: width 0.1s linear;
}

/* בר תקדמות לווידאו */
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-video-progress-wrap {
    position: absolute;
    left: 10px;
    right: 10px;
    top: 16px;
    height: 4px;
    z-index: 25;
    box-sizing: border-box;
    background: rgba(255,255,255,0.25);
    border-radius: 2px;
    overflow: hidden;
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-video-progress-wrap[aria-hidden="false"] {
    display: block !important;
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-video-progress-bar {
    height: 100%;
    width: 0%;
    background: rgba(255,255,255,0.95);
    border-radius: 2px;
    transition: width 0.08s linear;
}

/* Close Button */
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-close-btn,
.elementor-widget-story_status_widget .angie-story-overlay button.angie-story-close-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 26px;
    color: #fff;
    z-index: 40;
    cursor: pointer;
    line-height: 1;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    pointer-events: auto;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
    tap-highlight-color: transparent !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-close-btn:hover,
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-close-btn:focus,
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-close-btn:focus-visible,
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-close-btn:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* כפתור סאונד – גודל אייקון בלבד (לא נמתח ברוחב), מוצג רק ב-overlay כשיש וידאו */
.elementor-widget-story_status_widget .angie-story-overlay.angie-story-overlay-open.angie-story-has-video .angie-story-sound-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-sound-btn {
    z-index: 10000;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    max-width: 44px;
    max-height: 44px;
    box-sizing: border-box;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.75);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 18px;
    line-height: 1;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.35);
    touch-action: manipulation;
    visibility: visible;
    opacity: 1;
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-sound-btn:hover {
    background: rgba(0,0,0,0.9);
    border-color: rgba(255,255,255,0.5);
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-sound-btn:focus,
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-sound-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.7);
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-sound-btn .angie-sound-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: inherit;
    pointer-events: none;
    color: #fff;
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-sound-btn .angie-sound-icon i,
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-sound-btn .angie-sound-icon svg {
    display: block !important;
    margin: 0 !important;
    font-size: inherit;
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-sound-btn .angie-sound-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-sound-btn .angie-sound-icon i::before {
    margin: 0;
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-sound-btn template {
    display: none !important;
}

@media (max-width: 767px) {
    .elementor-widget-story_status_widget .angie-story-overlay.angie-story-overlay-open.angie-story-has-video .angie-story-sound-btn {
        z-index: 260 !important;
        font-size: 22px !important;
        background: rgba(0,0,0,0.85) !important;
        border-width: 2px !important;
        -webkit-tap-highlight-color: transparent !important;
    }
}

/* קבוצת סאונד+לייק – הלייק מעל הסאונד, גלוי ונלחץ */
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-like-wrap {
    display: none;
}
/* לייק מעל סאונד – column-reverse (גם אם הסטייל המוזרק לא נטען).
   מיקום מדויק (bottom/צד מהמוזרק ב-PHP): נעוץ מתחתית המסך + safe-area. */
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-sound-like-group {
    flex-direction: column-reverse !important;
    pointer-events: none !important;
    max-width: 100vw;
    box-sizing: border-box;
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-sound-like-group .angie-story-sound-btn,
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-sound-like-group .angie-story-like-btn {
    pointer-events: auto !important;
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-sound-like-group .angie-story-like-wrap {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    position: relative;
    z-index: 2;
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-sound-like-group .angie-story-sound-btn {
    position: relative;
    z-index: 1;
}
/* כפתור לייק – עגול, לבן, בלחיצה אדום */
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-like-btn {
    pointer-events: auto !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    padding: 0 !important;
    border: none;
    border-radius: 50% !important;
    background: #fff !important;
    color: #333 !important;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    border: 1px solid rgba(0,0,0,0.1) !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    box-sizing: border-box !important;
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-like-btn:hover:not(:disabled) {
    background: #f5f5f5 !important;
    color: #111 !important;
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-like-btn:disabled,
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-like-btn.angie-story-liked {
    background: #e53935 !important;
    color: #fff !important;
    border-color: #c62828 !important;
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-like-btn:disabled {
    cursor: default;
    opacity: 0.95;
}
@media (max-width: 767px) {
    .elementor-widget-story_status_widget .angie-story-overlay .angie-story-like-btn {
        border-radius: 50% !important;
        background: #fff !important;
    }
    .elementor-widget-story_status_widget .angie-story-overlay .angie-story-like-btn.angie-story-liked {
        background: #e53935 !important;
    }
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-like-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: inherit;
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-like-icon i,
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-like-icon svg {
    display: block;
    margin: 0;
    color: inherit;
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-like-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-like-count {
    display: block !important;
    font-size: 11px;
    font-weight: 600;
    min-height: 1.2em;
    line-height: 1.2;
    color: inherit;
    visibility: visible !important;
}

/* Tap Zones */
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-tap-zone {
    position: absolute;
    top: 0;
    height: 80%;
    z-index: 18;
    cursor: pointer;
    pointer-events: auto;
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-tap-zone.left {
    left: 0;
    width: 35%;
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-tap-zone.right {
    right: 0;
    width: 65%;
}

/* הדרכה שימוש ראשון */
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-tutorial {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-tutorial-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.75);
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-tutorial-content {
    position: relative;
    z-index: 2;
    max-width: 320px;
    width: 90%;
    padding: 24px;
    background: rgba(255,255,255,0.98);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    text-align: center;
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-tutorial-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-tutorial-mobile-note {
    font-size: 13px;
    color: #555;
    margin: 0 0 14px;
    line-height: 1.4;
    text-align: right;
}
body:not(.rtl) .elementor-widget-story_status_widget .angie-story-overlay .angie-story-tutorial-mobile-note {
    text-align: left;
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-tutorial-hints {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
    text-align: right;
}
body:not(.rtl) .elementor-widget-story_status_widget .angie-story-overlay .angie-story-tutorial-hints {
    text-align: left;
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-tutorial-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(37, 211, 102, 0.12);
    border-radius: 10px;
    border: 1px solid rgba(37, 211, 102, 0.35);
}
body.rtl .elementor-widget-story_status_widget .angie-story-overlay .angie-story-tutorial-hint {
    flex-direction: row-reverse;
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-tutorial-icon {
    flex-shrink: 0;
    font-size: 22px;
    line-height: 1;
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-tutorial-icon-tap {
    animation: angie-tutorial-tap 1.4s ease-in-out infinite;
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-tutorial-icon-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background: #333;
    border-radius: 50%;
    animation: angie-tutorial-pulse 1.2s ease-in-out infinite;
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-tutorial-text {
    font-size: 14px;
    color: #333;
    line-height: 1.35;
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-tutorial-dismiss {
    display: inline-block;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #25D366;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.4);
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-tutorial-dismiss:hover {
    background: #20bd5a;
    transform: scale(1.03);
}
.elementor-widget-story_status_widget .angie-story-overlay .angie-story-tutorial-dismiss:active {
    transform: scale(0.98);
}

@keyframes angie-tutorial-tap {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.25); opacity: 0.9; }
}
@keyframes angie-tutorial-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0,0,0,0.3); }
    50% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(0,0,0,0.1); }
}

/* דריסה סופית – כפתור סגירה */
.elementor-widget-story_status_widget .angie-story-overlay button.angie-story-close-btn,
.elementor-widget-story_status_widget .angie-story-overlay button.angie-story-close-btn:focus,
.elementor-widget-story_status_widget .angie-story-overlay button.angie-story-close-btn:focus-visible,
.elementor-widget-story_status_widget .angie-story-overlay button.angie-story-close-btn:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    -webkit-tap-highlight-color: transparent !important;
}
@media (max-width: 767px) {
    .elementor-widget-story_status_widget .angie-story-overlay button.angie-story-close-btn {
        outline: none !important;
        box-shadow: none !important;
        border: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }
}
