/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Variables
# Global
# User Stories
# Add Story Model
# Public Story Model
# Story Instagram Style
# Story Square Style
# Story List Style
# Widgets
# Scrollbar CSS
# Skeleton Loader
# View Count
# View Stories Slider
# View Stories
# PeepSo
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Variables
--------------------------------------------------------------*/
:root {
    --wbs-primary-color: #64B5F6;
    --wbs-global-border-color: #eaeaea;
    --wbs-content-background-color: #fff;
    --wbs-global-border-radius: 8px;

    /* Story Modal Transition Variables for Uniform Animations */
    --story-transition-duration: 0.6s;
    --story-transition-timing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --story-hover-transition: 0.4s;
    --story-loading-duration: 1.2s;
}

/*--------------------------------------------------------------
# Global
--------------------------------------------------------------*/
*,
*::before,
*::after {
    box-sizing: border-box;
}

#zuck-modal-content .story-viewer .head .back,
#zuck-modal-content .story-viewer .head .right .close {
    display: inline-block;
    color: #fff;
    opacity: 1;
}

#zuck-modal-content .story-viewer .head .left .time {
    display: inline-block;
}

#zuck-modal-content .story-viewer .head .left>div {
    line-height: normal;
}

#zuck-modal .close svg {
    height: 35px;
    width: 35px;
}

#zuck-modal svg {
    margin: 0;
}

.filepond--root .filepond--credits {
    display: none;
}

/*--------------------------------------------------------------
# User Stories
--------------------------------------------------------------*/
.stories.list .story>.item-link>.item-preview {
    box-sizing: border-box;
    display: inline-block;
    font-size: 0;
    height: 42px;
    margin-right: 12px;
    max-width: 42px;
    overflow: hidden;
    vertical-align: top;
    width: 42px;
}

.wp-stories-user-stories {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-bottom: 25px;
}

.wp-stories-add-stories {
    -webkit-box-flex: 0;
    display: inline-block;
    -ms-flex: 0 0 18vw;
    -webkit-box-flex: 0;
    flex: 0 0 18vw;
    margin-right: 6px;
    max-width: 90px;
    position: relative;
    text-align: center;
    vertical-align: top;
    width: 18vw;
}

.wp-stories-add-stories .wp-stories-add-image {
    font-size: 0;
    height: 18vw;
    max-height: 90px;
    overflow: hidden;
    padding: 4px;
    position: relative;
    -webkit-transition: -webkit-transform var(--story-hover-transition, 0.4s) var(--story-transition-timing, ease);
    transition: -webkit-transform var(--story-hover-transition, 0.4s) var(--story-transition-timing, ease);
    transition: transform var(--story-hover-transition, 0.4s) var(--story-transition-timing, ease);
    -webkit-transition: -webkit-transform var(--story-hover-transition, 0.4s) var(--story-transition-timing, ease), -webkit-transform var(--story-hover-transition, 0.4s) var(--story-transition-timing, ease);
    transition: transform var(--story-hover-transition, 0.4s) var(--story-transition-timing, ease), -webkit-transform var(--story-hover-transition, 0.4s) var(--story-transition-timing, ease);
}

.wp-stories-add-stories .wp-stories-add-image,
.wp-stories-add-stories img {
    box-sizing: border-box;
    display: block;
}

.wp-stories-add-stories img {
    background-position: 50%;
    background-size: cover;
    border-radius: 50%;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.wp-stories-add-stories .wp-stories-add-image img {
    border-radius: 50% !important;
    box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.1);
}

.wp-stories-add-stories .wp-stories-add-icon {
    bottom: 0;
    position: absolute;
    right: 0;
    z-index: 1;
}

.wp-stories-add-stories .wp-stories-add-icon svg {
    background-color: #fff;
    border: 1px solid #fff;
    border-radius: 50%;
    height: 23px;
    width: 23px;
}

.wp-stories-add-stories .wp-stories-add-title {
    display: inline-block;
    line-height: 1.2em;
    margin-top: 0.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.wp-stories-add-stories .wp-stories-loader-cycle {
    fill: none;
    stroke: #8a3ab8;
    stroke-width: 2px;
    stroke-dasharray: 2;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    -webkit-animation: wp-stories-cycle-anim 2.5s ease-in-out infinite alternate;
    animation: wp-stories-cycle-anim 2.5s ease-in-out infinite alternate;
    display: none;
    left: 0;
    position: absolute;
    top: 0;
}

.wp-stories-add-stories .wp-stories-loader-square {
    fill: none;
    stroke: #8a3ab8;
    stroke-width: 2px;
    stroke-dasharray: 2;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    -webkit-animation: wp-stories-square-anim 2.5s ease-in-out infinite alternate;
    animation: wp-stories-square-anim 2.5s ease-in-out infinite alternate;
    display: none;
    left: 0;
    position: absolute;
    top: 0;
}

@-webkit-keyframes wp-stories-cycle-anim {
    to {
        stroke: #cd476b;
        stroke-dasharray: 10;
        -webkit-transform: rotate(200deg);
        transform: rotate(200deg);
    }
}

@keyframes wp-stories-cycle-anim {
    to {
        stroke: #cd476b;
        stroke-dasharray: 10;
        -webkit-transform: rotate(200deg);
        transform: rotate(200deg);
    }
}

@-webkit-keyframes wp-stories-square-anim {
    to {
        stroke: #cd476b;
        stroke-dasharray: 10;
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
}

@keyframes wp-stories-square-anim {
    to {
        stroke: #cd476b;
        stroke-dasharray: 10;
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
}

/*--------------------------------------------------------------
# Add Story Model
--------------------------------------------------------------*/
.wp-stories-modal-overlay {
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background-color: #000;
    background-color: rgba(0, 0, 0, .55);
    bottom: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    height: 100%;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 99999;
    display: none;
}

.wp-stories-modal-overlay.active {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.wp-stories-model-popup {
    background: var(--wbs-content-background-color);
    border-radius: 12px;
    /* height: 100%; */
    max-height: 85%;
    max-width: 500px;
    overflow: auto;
    padding: 30px;
    position: relative;
    width: 100%;
    margin: auto;
}

.wp-stories-user-submit-modal .wb-stories-model-close {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    height: 30px;
    position: absolute;
    right: 5px;
    top: 5px;
    width: 30px;
}

.wp-stories-user-submit-modal .wb-stories-model-close-button {
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background: none;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    height: 30px;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 0;
    width: 30px;
}

.wp-stories-user-submit-modal .wb-stories-model-close-button svg {
    fill: #5f6368;
    height: 18px;
    pointer-events: none;
    width: 18px;
}

.wp-stories-modal-content {
    height: 100%;
}

.wb-stories-current-stories {
    background-color: #f5f5f5;
    border-radius: 12px;
    margin-bottom: 30px;
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
}

.wb-stories-story-preview {
    background-color: var(--wbs-content-background-color);
    border-radius: 12px;
    box-shadow: rgba(94, 92, 154, 0.1) 3px 5px 40px 0px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-bottom: 1px;
    padding: 10px;
    position: relative;
}

.wb-stories-current-stories .wb-stories-story-preview+.wb-stories-story-preview {
    margin-top: 5px;
}

.wb-stories-story-preview .wb-stories-preview-image {
    -webkit-box-flex: 0;
    background-position: 50%;
    background-size: cover;
    border-radius: 12px;
    cursor: pointer;
    display: inline-block;
    -ms-flex: 0 0 50px;
    -webkit-box-flex: 0;
    flex: 0 0 50px;
    height: 50px;
    margin-right: 15px;
    vertical-align: middle;
    width: 50px;
}

.wb-stories-story-preview .wb-stories-preview-meta {
    -webkit-box-flex: 0;
    -ms-flex-positive: 0;
    -ms-flex-negative: 0;
    -ms-flex-preferred-size: calc(100% - 100px);
    color: #5f6368;
    -ms-flex-preferred-size: calc(100% - 100px);
    flex-basis: -webkit-calc(100% - 100px);
    flex-basis: calc(100% - 100px);
    -webkit-box-flex: 0;
    -ms-flex-positive: 0;
    flex-grow: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    max-width: -webkit-calc(100% - 100px);
    max-width: calc(100% - 100px);
}

.wb-stories-story-preview ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wb-stories-story-preview ul li {
    line-height: 20px;
    max-width: 275px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wb-stories-story-preview ul li span {
    font-size: 13px;
}

.wb-stories-story-preview ul li span:first-child {
    font-weight: 700;
}

.wb-stories-story-preview ul li span:nth-child(2) {
    font-style: italic;
}

.wb-stories-story-preview button {
    margin-top: -15px;
    position: absolute;
    right: 5px;
    top: 50%;
}

.wb-stories-story-preview button.wb-stories-float-button {
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background: none;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    height: 30px;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 0;
    width: 30px;
}

.wp-stories-user-submit-modal .wb-stories-model-close-button:hover,
.wp-stories-user-submit-modal .wb-stories--float-button[type=button]:hover,
.wb-stories-story-preview button.wb-stories-float-button:hover {
    background: #f1f3f4;
}

.wb-stories-story-preview button.wb-stories-float-button svg {
    fill: #5f6368;
    height: 18px;
    pointer-events: none;
    width: 18px;
}

.wb-stories--submit-form .wb-stories--submit-item {
    background-color: var(--wbs-content-background-color);
    border-radius: 12px;
    box-shadow: rgba(94, 92, 154, 0.1) 3px 5px 40px 0px;
    margin-bottom: 15px;
    padding: 15px;
    position: relative;
}

.wb-stories--submit-form .wb-stories--submit-item.ui-sortable-placeholder {
    border: 2px dashed #bdbdbd;
    box-shadow: none;
    visibility: visible !important
}

.wb-stories--submit-form .wb-stories--form-row {
    margin-bottom: 15px;
}

.wb-stories--submit-form label {
    display: block;
    font-size: 16px;
    margin-bottom: 0;
}

.wb-stories--submit-form label span {
    font-size: 16px;
    line-height: 25px;
    margin-bottom: 5px;
}

.wp-stories-submit-form label span {
    font-size: 16px;
    line-height: 25px;
    margin-bottom: 5px;
}

.wb-stories--submit-form .wb-stories--input,
select.bp-xprofile-visibility {
    border: 1px solid #dadce0;
    border-radius: 6px;
    display: block;
    font-size: 14px;
    height: auto;
    padding: 10px;
    -webkit-transition: all var(--story-hover-transition, 0.4s) var(--story-transition-timing, ease);
    transition: all var(--story-hover-transition, 0.4s) var(--story-transition-timing, ease);
    width: 100%;
}



.wb-stories--submit-form small {
    font-size: 80%;
}

.wb-stories--submit-form .wp-story-float-buttons {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    position: absolute;
    right: 5px;
    top: 5px;
}

.wb-stories--need-text {
    background-color: #ffcdd2;
    border-radius: 3px;
    color: #f44336;
    display: none;
    font-size: 10px !important;
    font-weight: 700;
    height: 20px;
    line-height: 20px !important;
    margin: 0 5px;
    padding: 0 5px;
    text-align: center;
    text-transform: uppercase;
}
.wb-stories-cover-img-error{
 background-color: #ffcdd2;
    border-radius: 3px;
    color: #f44336;
}

.wp-stories-user-submit-modal .wb-stories--float-button[type=button] {
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background: none;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    height: 30px;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 0;
    width: 30px;
}

.wp-stories-user-submit-modal .wb-stories--float-button[type=button] svg {
    fill: #5f6368;
    height: 18px;
    pointer-events: none;
    width: 18px;
}

.wp-stories-user-submit-modal .wb-stories--float-button[type=button] .wb-stories--expand-close {
    display: none;
}

.wp-stories-user-submit-modal .wb-stories-story-media-wrapper {
    background: #fafafa;
    padding: 15px;
    border-radius: 10px;
}

.wp-stories-user-submit-modal .wb-stories-story-media-wrapper .wb-stories--form-description {
    margin-top: 5px;
    display: block;
}

.wb-stories--submit-form .wb-stories--button[type=button],
.wb-stories--submit-form .wb-stories--button[type=submit] {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    /* background: #fff; */
    border: 1px solid transparent !important;
    border-radius: 100px;
    /* color: #5f6368; */
    cursor: pointer;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    height: 36px;
    padding: 0 15px;
    text-transform: capitalize;
    -webkit-transition: all var(--story-hover-transition, 0.4s) var(--story-transition-timing, ease);
    transition: all var(--story-hover-transition, 0.4s) var(--story-transition-timing, ease);
    vertical-align: top;
    width: auto;
}

.wb-stories--submit-form .wb-stories--button[type=button] svg,
.wb-stories--submit-form .wb-stories--button[type=submit] svg {
    fill: #fff;
    margin-right: 5px;
    width: 20px;
}

.wb-stories--submit-form .wb-stories--button[type=button]:hover,
.wb-stories--submit-form .wb-stories--button[type=submit]:hover {
    /* background-color: #f1f3f4;
    color: #5f6368; */
    border: 1px solid transparent !important;
}

/* Edit Story Model section removed - using wp-stories-editor-v2.css instead */

/*--------------------------------------------------------------

/* Edit Story Model section removed - using wp-stories-editor-v2.css instead */


/*--------------------------------------------------------------
# Public Story Model
--------------------------------------------------------------*/

.wb-stories--submit-form .wb-stories--form-row.wb-stories--form-row-center {
    text-align: center;
}

.filepond--root.wb-stories--story-circle-media {
    border-radius: 99999rem;
    overflow: hidden;
}

.wb-stories--story-circle-media {
    margin: 0 auto;
    width: 150px;
    min-height: 150px;
}

.wb-stories--story-circle-media label {
    font-size: 14px;
}

.filepond--root.wb-stories--story-circle-media .filepond--drop-label {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    bottom: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    height: auto;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    z-index: 7;
}

.filepond--root.wb-stories--story-circle-media>.filepond--panel {
    border-radius: inherit;
}

#zuck-modal-content .story-viewer .tip.muted {
    left: auto;
    right: 15px;
    cursor: pointer;
    transform: translateX(0%);
}

.story-viewer.muted {
    opacity: 1;
}

#zuck-modal-content .story-viewer .slides .item>.media {
    object-fit: contain;
}

#zuck-modal-content .story-viewer .slides .item>video.media {
    max-width: 100%;
}

/*--------------------------------------------------------------
# Story Modal Enhancements - Smooth Transitions & Modern UI
--------------------------------------------------------------*/

/* Enhanced Modal Backdrop with Blur */
#zuck-modal {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(0, 0, 0, 0.9) !important;
    animation: modalFadeIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}

/* Smooth Modal Scaling - Faster opening */
#zuck-modal.with-effects {
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

#zuck-modal.with-effects.animated {
    transform: scale(1);
    opacity: 1;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Smooth Story Transitions - Balanced for Navigation */
#zuck-modal-content {
    /* Keep content transition smooth but not too slow */
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

#zuck-modal-content .story-viewer {
    /* Fade between stories */
    transition: opacity 0.25s ease-in-out, transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

#zuck-modal .slider {
    /* Faster for better mobile response */
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

#zuck-modal .slider.animated {
    /* Match the base timing for consistency */
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Override Zuck.js cube effect transitions */
#zuck-modal.with-cube #zuck-modal-content {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

#zuck-modal.with-cube .slider {
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Story Viewer Depth Effect */
#zuck-modal-content .story-viewer.viewing {
    z-index: 10;
    transform: scale(1);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#zuck-modal-content .story-viewer.next,
#zuck-modal-content .story-viewer.previous {
    transform: scale(0.95);
    opacity: 0.4;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Disable depth effect on mobile for better performance */
@media (max-width: 768px) {
    #zuck-modal-content .story-viewer.next,
    #zuck-modal-content .story-viewer.previous {
        transform: scale(1);
        opacity: 0;
    }
}

/* Enhanced Progress Bars */
#zuck-modal-content .story-viewer .slides-pointers {
    top: 12px;
    z-index: 100030;
}

#zuck-modal-content .story-viewer .slides-pointers > * > * {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 3px;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

#zuck-modal-content .story-viewer .slides-pointers > * > * > b {
    background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.9) 100%);
    height: 3px;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
    border-radius: 2px;
}

/* Gradient Header for Better Readability */
#zuck-modal-content .story-viewer .head {
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 70%,
        transparent 100%);
    padding: 12px 16px;
    transition: opacity 0.3s ease-in-out;
}

/* Enhanced Close Button - Accessibility Optimized */
#zuck-modal-content .story-viewer .head .right .close {
    width: 48px; /* WCAG minimum touch target */
    height: 48px;
    line-height: 44px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: all var(--story-hover-transition) var(--story-transition-timing);
    margin: 4px;
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

#zuck-modal-content .story-viewer .head .right .close:hover,
#zuck-modal-content .story-viewer .head .right .close:focus {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Enhanced Loading Spinner */
#zuck-modal-content .story-viewer.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: modalSpinner var(--story-loading-duration) var(--story-transition-timing) infinite;
    z-index: 100040;
}

@keyframes modalSpinner {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Enhanced Tip Buttons */
#zuck-modal-content .story-viewer .tip {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--story-hover-transition) var(--story-transition-timing);
}

#zuck-modal-content .story-viewer .tip:hover {
    background: rgba(0, 0, 0, 0.85);
}

/* Navigation Arrows Enhancement */
#zuck-modal-content .story-viewer .slides-pagination span {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    transition: all var(--story-hover-transition) var(--story-transition-timing);
}

#zuck-modal-content .story-viewer .slides-pagination span:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.05);
}

/* Story Item Hover Effects - Consistent Transitions */
.stories.carousel .story > .item-link > .item-preview {
    transition: transform var(--story-hover-transition) var(--story-transition-timing) !important;
}

.stories.carousel .story > .item-link:active > .item-preview {
    transform: scale(0.95) !important;
    transition: transform var(--story-hover-transition) var(--story-transition-timing) !important;
}

/* Add Story Button Transitions - Already defined above, just add hover */
.wp-stories-add-stories:hover .wp-stories-add-image {
    transform: scale(1.05);
}

/* Mobile Optimizations for Modal */
@media (max-width: 768px) {
    #zuck-modal {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    #zuck-modal-content .story-viewer .head {
        padding: 8px 12px;
        min-height: 56px;
    }

    /* Larger close button for mobile - easier to tap */
    #zuck-modal-content .story-viewer .head .right .close {
        width: 56px;
        height: 56px;
        line-height: 53px;
        font-size: 32px;
        right: 10px;
        top: 10px;
    }

    #zuck-modal-content .story-viewer .slides .item > .media {
        object-fit: contain;
        max-height: calc(100vh - 140px);
    }

    /* Thicker progress bars for better visibility */
    #zuck-modal-content .story-viewer .slides-pointers {
        top: 8px;
    }

    #zuck-modal-content .story-viewer .slides-pointers > * > * {
        height: 4px !important;
        background: rgba(255, 255, 255, 0.4) !important;
    }

    #zuck-modal-content .story-viewer .slides-pointers > * > * > b {
        height: 4px !important;
    }

    #zuck-modal-content .story-viewer .slides-pagination {
        display: none;
    }

    /* Fix slider transition on mobile */
    #zuck-modal .slider {
        transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
        -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
        will-change: transform;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    /* Ensure smooth touch interactions */
    #zuck-modal-content .story-viewer {
        touch-action: pan-y pinch-zoom;
    }

    /* Tap zones for mobile navigation - invisible but functional */
    #zuck-modal-content .story-viewer .slides::before,
    #zuck-modal-content .story-viewer .slides::after {
        content: '';
        position: absolute;
        top: 80px;
        bottom: 80px;
        width: 30%;
        z-index: 10;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    #zuck-modal-content .story-viewer .slides::before {
        left: 0;
        /* Tap left side for previous */
    }

    #zuck-modal-content .story-viewer .slides::after {
        right: 0;
        /* Tap right side for next */
    }

    /* Larger tip buttons on mobile */
    #zuck-modal-content .story-viewer .tip {
        min-height: 48px !important;
        font-size: 16px !important;
        padding: 14px 24px !important;
    }

    #zuck-modal-content .story-viewer .tip.muted {
        text-indent: -9999px;
        white-space: nowrap;
        overflow: visible;
        width: 48px;
        height: 48px;
        padding: 14px !important;
        position: absolute;
        bottom: 20px;
    }

    #zuck-modal-content .story-viewer .tip.muted::before {
        content: '';
        background-image: url(../images/volume-up-line.svg);
        background-repeat: no-repeat;
        background-size: 24px;
        width: 24px;
        height: 24px;
        text-indent: 0;
        font-size: 16px;
        color: #fff;
        display: inline-block;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        filter: invert(1);
    }

    #zuck-modal-content .story-viewer:not(.muted) .tip.muted::before {
        background-image: url(../images/volume-mute-line.svg);
    }
}

/* Accessibility - Focus States */
#zuck-modal-content .story-viewer .head .close:focus,
#zuck-modal-content .story-viewer .tip:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* CRITICAL FIX: Force close button to be visible on ALL screen sizes */
@media (max-width: 1024px) {
    #zuck-modal-content .story-viewer .head .right .close {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute;
        right: 10px;
        top: 10px;
        z-index: 100040;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    #zuck-modal,
    #zuck-modal-content,
    #zuck-modal-content .story-viewer,
    #zuck-modal-content .story-viewer .tip {
        animation: none !important;
        transition: opacity 0.2s ease !important;
    }
}

/*--------------------------------------------------------------
# Story Instagram Style
--------------------------------------------------------------*/
.stories.carousel .story>.item-link>.item-preview {
    width: 18vw;
    max-width: 90px;
}

/*--------------------------------------------------------------
# Story Square Style
--------------------------------------------------------------*/
.wp-stories-user-stories-snapssenger .wp-stories-user-stories .wp-stories-add-stories {
    min-width: 100px;
    max-width: 130px;
    width: 25vw;
    max-height: 170px;
    height: 170px;
    margin: 4px 0;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px 1px rgb(229, 229, 229, 0.5);
}

body #buddypress .wp-stories-user-stories-snapssenger .wp-stories-user-stories .wp-stories-add-stories {
    box-shadow: 0 0 10px 1px rgb(229, 229, 229, 0.5);
}

.wp-stories-user-stories-snapssenger .wp-stories-add-stories .wp-stories-add-image {
    height: 135px;
    max-height: 135px;
    overflow: visible;
}

.wp-stories-user-stories-snapssenger .wp-stories-add-stories .wp-stories-add-icon svg {
    height: 30px;
    width: 30px;
}

.wp-stories-user-stories-snapssenger .wp-stories-add-stories .wp-stories-add-image img {
    width: 100%;
    height: 100%;
    border-radius: 10px !important;
}

.wp-stories-user-stories-snapssenger .wp-stories-add-stories .wp-stories-add-icon {
    bottom: -10px;
    position: absolute;
    right: 0;
    left: 0;
    line-height: initial;
}

.wp-stories-user-stories-snapssenger .wp-stories-add-stories .wp-stories-add-title {
    margin-top: 0.8em;
    font-size: 13px;
    font-weight: 500;
}

.stories.snapssenger.carousel .story {
    margin: 0 6px;
    max-width: 130px;
}

.stories.snapssenger.carousel .story,
.stories.snapssenger.carousel .story>.item-link {
    min-width: 130px;
    max-height: 170px;
}

.stories.snapssenger.carousel .story>.item-link>.item-preview {
    height: 170px;
    max-height: 170px;
}

.stories.snapssenger.carousel .story>.item-link>.item-preview>* {
    border-radius: 10px;
}

.stories.snapssenger.carousel .story>.item-link>.info {
    padding-left: 14px;
    padding-bottom: 10px;
    font-weight: normal;
    font-size: 14px;
    z-index: 11;
}

.stories.snapssenger.carousel .story>.item-link::after {
    background-image: -webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, .4)), to(transparent));
    background-image: -webkit-linear-gradient(bottom, rgba(0, 0, 0, .4), transparent);
    background-image: -webkit-linear-gradient(90deg, rgba(0, 0, 0, .4), transparent);
    background-image: linear-gradient(0deg, rgba(0, 0, 0, .4), transparent);
    border-radius: 7px;
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    -webkit-transform: translateZ(1px);
    transform: translateZ(1px);
    width: 100%;
    z-index: 10;
}


/* Story Card Width Adjustments - PC & Mobile Overrides */
@media screen and (min-width: 769px) {
    .wp-stories-user-stories-snapssenger .wp-stories-user-stories .wp-stories-add-stories,
    .stories.snapssenger.carousel .story,
    .stories.snapssenger.carousel .story>.item-link {
        width: calc((100% - 30px) / 3.3) !important;
        max-width: calc((100% - 30px) / 3.3) !important;
    }
}

@media screen and (max-width: 768px) {
    .wp-stories-user-stories-snapssenger .wp-stories-user-stories .wp-stories-add-stories,
    .stories.snapssenger.carousel .story,
    .stories.snapssenger.carousel .story>.item-link {
        width: calc((100% - 30px) / 2.3) !important;
        max-width: calc((100% - 30px) / 2.3) !important;
    }
}


.stories.snapssenger.carousel .story>.item-link>.info strong {
    color: #fff;
    font-weight: normal;
}

/*--------------------------------------------------------------
# Story List Style
--------------------------------------------------------------*/
.stories.list .story>.item-link,
.stories.list .story>.item-link>.info {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.stories.list.vemdezap .story {
    padding-bottom: 0;
    border: 0;
}

.stories.list .story>.item-link {
    background: #fff;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #eee;
    -webkit-transition: all var(--story-hover-transition, 0.4s) var(--story-transition-timing, ease);
    transition: all var(--story-hover-transition, 0.4s) var(--story-transition-timing, ease);
}

.stories.vemdezap .story.seen > .item-link > .item-preview {
    background: #999;
    opacity: .5;
}

.stories.list .story>.item-link:hover {
    box-shadow: 0 3px 12px rgba(0, 0, 0, .05) !important;
}

.stories.list .story>.item-link>.item-preview {
    border-radius: 10px;
}

.stories.vemdezap .story>.item-link>.item-preview>* {
    border-radius: 8px;
}

@media screen and (min-width: 768px) {
    .stories.list {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-flow: wrap;
        flex-flow: wrap;
        width: 100%;
    }

    .stories.list.vemdezap .story {
        width: -webkit-calc(50% - 12px);
        width: calc(50% - 12px);
    }
}

/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/

@media screen and (min-width: 768px) {

    .widget_wb-stories-activity-feed-widget .stories.list.vemdezap .story,
    .widget_wb-stories-user-public-stories-widget .stories.list.vemdezap .story,
    .widget_wb-stories-user-single-stories-widget .stories.list.vemdezap .story {
        width: 100%;
        min-width: 200px;
    }

    .widget_wb-stories-activity-feed-widget .stories.list .story>.item-link>.item-preview,
    .widget_wb-stories-user-public-stories-widget .stories.list .story>.item-link>.item-preview,
    .widget_wb-stories-user-single-stories-widget .stories.list .story>.item-link>.item-preview {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 auto;
        flex: 0 0 auto;
    }
}

.widget .wp-stories-user-stories,
.widget-area .wp-stories-user-stories {
    margin-bottom: 0;
}

.widget_wb-stories-activity-feed-widget .wp-stories-user-stories-vemdezap .wp-stories-user-stories,
.widget_wb-stories-user-public-stories-widget .wp-stories-user-stories-vemdezap .wp-stories-user-stories,
.widget_wb-stories-user-single-stories-widget .wp-stories-user-stories-vemdezap .wp-stories-user-stories {
    display: block;
}

.widget_wb-stories-activity-feed-widget .wp-stories-user-stories-vemdezap .wp-stories-user-stories .stories,
.widget_wb-stories-user-public-stories-widget .wp-stories-user-stories-vemdezap .wp-stories-user-stories .stories,
.widget_wb-stories-user-single-stories-widget .wp-stories-user-stories-vemdezap .wp-stories-user-stories .stories {
    max-height: 290px;
    overflow: hidden;
    overflow-y: auto;
}

.widget_wb-stories-activity-feed-widget .wp-stories-user-stories-vemdezap .wp-stories-user-stories .stories::-webkit-scrollbar,
.widget_wb-stories-user-public-stories-widget .wp-stories-user-stories-vemdezap .wp-stories-user-stories .stories::-webkit-scrollbar,
.widget_wb-stories-user-single-stories-widget .wp-stories-user-stories-vemdezap .wp-stories-user-stories .stories::-webkit-scrollbar {
    width: 7px;
}

.widget_wb-stories-activity-feed-widget .wp-stories-user-stories-vemdezap .wp-stories-user-stories .stories::-webkit-scrollbar-track,
.widget_wb-stories-user-public-stories-widget .wp-stories-user-stories-vemdezap .wp-stories-user-stories .stories::-webkit-scrollbar-track,
.widget_wb-stories-user-single-stories-widget .wp-stories-user-stories-vemdezap .wp-stories-user-stories .stories::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.widget_wb-stories-activity-feed-widget .wp-stories-user-stories-vemdezap .wp-stories-user-stories .stories::-webkit-scrollbar-thumb,
.widget_wb-stories-user-public-stories-widget .wp-stories-user-stories-vemdezap .wp-stories-user-stories .stories::-webkit-scrollbar-thumb,
.widget_wb-stories-user-single-stories-widget .wp-stories-user-stories-vemdezap .wp-stories-user-stories .stories::-webkit-scrollbar-thumb {
    background: #bdbdbd;
    border-radius: 3px;
}

/*--------------------------------------------------------------
# Scrollbar CSS
--------------------------------------------------------------*/
.stories.carousel {
    padding-bottom: 10px;
}

.stories::-webkit-scrollbar {
    height: 7px;
}

.stories::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.stories::-webkit-scrollbar-thumb {
    background: #bdbdbd;
    border-radius: 3px;
}

.stories::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Firefox */
.wp-stories-add-modal * {
    scrollbar-width: auto;
    scrollbar-color: #6d6d6d #ffffff;
}

/* Chrome, Edge, and Safari */
.wp-stories-add-modal *::-webkit-scrollbar {
    width: 10px;
    border-radius: 0 12px 12px 0;
}

.wp-stories-add-modal *::-webkit-scrollbar-track {
    background: #ffffff;
    border-radius: 0 12px 12px 0;
}

.wp-stories-add-modal *::-webkit-scrollbar-thumb {
    background-color: #6d6d6d;
    border-radius: 12px;
    border: 3px solid #ffffff;
}


/*--------------------------------------------------------------
# Skeleton Loader
--------------------------------------------------------------*/
/* snapgram */
.wb-story-shortcode {
    box-sizing: content-box;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    height: 100%;
    position: relative;
    -webkit-transition-property: -webkit-transform;
    transition-property: -webkit-transform;
    transition-property: transform;
    transition-property: transform, -webkit-transform, -moz-transform, -o-transform;
    -webkit-transition-timing-function: initial;
    transition-timing-function: ease;
    width: 100%;
    z-index: 1;
    padding: 5px;
    overflow: hidden;
}

.wb-story-shortcode[data-skin="snapgram"] .wb-stories-loader {
    -webkit-box-flex: 0;
    -moz-box-flex: 0;
    display: block;
    -ms-flex: 0 0 auto;
    -webkit-box-flex: 0;
    flex: 0 0 auto;
    margin-right: 15px;
    width: 90px;
}

@media(max-width:575px) {
    .wb-story-shortcode[data-skin="snapgram"] .wb-stories-loader {
        width: 75px;
    }
}

.wb-story-shortcode[data-skin="snapgram"] .wb-stories-loader span {
    -webkit-animation: wpstorySkeleton 1s infinite reverse;
    animation: wpstorySkeleton 1s infinite reverse;
    background: -webkit-gradient(linear, left top, right top, from(#dce0e5), color-stop(#f0f2f4), to(#dce0e5));
    background: -webkit-linear-gradient(left, #dce0e5, #f0f2f4, #dce0e5);
    background: -webkit-linear-gradient(0deg, #dce0e5, #f0f2f4, #dce0e5);
    background: linear-gradient(90deg, #dce0e5, #f0f2f4, #dce0e5);
    background-size: 200%;
}

.wb-story-shortcode[data-skin="snapgram"] .wb-stories-loader span:first-child {
    border-radius: 50%;
    display: block;
    height: 90px;
    margin: 0 0 10px;
    width: 90px;
}

@media(max-width:575px) {
    .wb-story-shortcode[data-skin="snapgram"] .wb-stories-loader span:first-child {
        height: 75px;
        width: 75px;
    }
}

.wb-story-shortcode[data-skin="snapgram"] .wb-stories-loader span:nth-child(2) {
    border-radius: 2px;
    display: block;
    height: 15px;
    width: 90px;
}

@media(max-width:575px) {
    .wb-story-shortcode[data-skin="snapgram"] .wb-stories-loader span:nth-child(2) {
        width: 75px;
    }
}

@-webkit-keyframes wpstorySkeleton {
    0% {
        background-position: -100% 0;
    }

    to {
        background-position: 100% 0;
    }
}

@keyframes wpstorySkeleton {
    0% {
        background-position: -100% 0;
    }

    to {
        background-position: 100% 0
    }
}

/* snapssenger */
.wb-story-shortcode[data-skin="snapssenger"] .wb-stories-loader {
    -webkit-box-flex: 0;
    -moz-box-flex: 0;
    background-color: #fafafa;
    border-radius: 7px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
    display: block;
    -ms-flex: 0 0 auto;
    -webkit-box-flex: 0;
    flex: 0 0 auto;
    height: 170px;
    margin-right: 15px;
    position: relative;
    width: 118px;
}

@media(max-width:575px) {
    .wb-story-shortcode[data-skin="snapssenger"] .wb-stories-loader {
        height: 160px;
        width: 90px;
    }
}

.wb-story-shortcode[data-skin="snapssenger"] .wb-stories-loader span {
    -webkit-animation: wpstorySkeleton 1s infinite reverse;
    animation: wpstorySkeleton 1s infinite reverse;
    background: -webkit-gradient(linear, left top, right top, from(#dce0e5), color-stop(#f0f2f4), to(#dce0e5));
    background: -webkit-linear-gradient(left, #dce0e5, #f0f2f4, #dce0e5);
    background: -webkit-linear-gradient(0deg, #dce0e5, #f0f2f4, #dce0e5);
    background: linear-gradient(90deg, #dce0e5, #f0f2f4, #dce0e5);
    background-size: 200%;
}

.wb-story-shortcode[data-skin="snapssenger"] .wb-stories-loader span:first-child {
    background-color: #fff;
    border-radius: 50%;
    height: 40px;
    left: 12px;
    position: absolute;
    top: 12px;
    width: 40px;
    z-index: 20;
}

.wb-story-shortcode[data-skin="snapssenger"] .wb-stories-loader span:nth-child(2) {
    border-radius: 2px;
    bottom: 28px;
    height: 10px;
    left: 12px;
    position: absolute;
    width: 94px;
}

@media(max-width:575px) {
    .wb-story-shortcode[data-skin="snapssenger"] .wb-stories-loader span:nth-child(2) {
        width: 66px
    }
}

.wb-story-shortcode[data-skin="snapssenger"] .wb-stories-loader span:nth-child(3) {
    border-radius: 2px;
    bottom: 12px;
    height: 10px;
    left: 12px;
    position: absolute;
    width: 70px;
}

@media(max-width:575px) {
    .wb-story-shortcode[data-skin="snapssenger"] .wb-stories-loader span:nth-child(3) {
        width: 45px;
    }
}

/* vemdezap */
.wb-story-shortcode[data-skin="vemdezap"] .wb-stories-loader {
    -webkit-box-flex: 0;
    -moz-box-flex: 0;
    background-color: #fafafa;
    border-radius: 7px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
    display: block;
    -ms-flex: 0 0 auto;
    -webkit-box-flex: 0;
    flex: 0 0 auto;
    height: 60px;
    margin-right: 15px;
    position: relative;
    width: 49%;
}

@media(max-width:575px) {
    .wb-story-shortcode[data-skin="vemdezap"] .wb-stories-loader {
        width: 100%;
    }
}

.wb-story-shortcode[data-skin="vemdezap"] .wb-stories-loader span {
    -webkit-animation: wpstorySkeleton 1s infinite reverse;
    animation: wpstorySkeleton 1s infinite reverse;
    background: -webkit-gradient(linear, left top, right top, from(#dce0e5), color-stop(#f0f2f4), to(#dce0e5));
    background: -webkit-linear-gradient(left, #dce0e5, #f0f2f4, #dce0e5);
    background: -webkit-linear-gradient(0deg, #dce0e5, #f0f2f4, #dce0e5);
    background: linear-gradient(90deg, #dce0e5, #f0f2f4, #dce0e5);
    background-size: 200%;
}

.wb-story-shortcode[data-skin="vemdezap"] .wb-stories-loader span:first-child {
    background-color: #fff;
    border-radius: 50%;
    height: 40px;
    left: 12px;
    position: absolute;
    top: 12px;
    width: 40px;
    z-index: 20;
}

.wb-story-shortcode[data-skin="vemdezap"] .wb-stories-loader span:nth-child(2) {
    border-radius: 2px;
    bottom: 28px;
    height: 10px;
    left: 62px;
    position: absolute;
    width: 94px;
}

@media(max-width:575px) {
    .wb-story-shortcode[data-skin="vemdezap"] .wb-stories-loader span:nth-child(2) {
        width: 66px
    }
}

.wb-story-shortcode[data-skin="vemdezap"] .wb-stories-loader span:nth-child(3) {
    border-radius: 2px;
    bottom: 12px;
    height: 10px;
    left: 62px;
    position: absolute;
    width: 70px;
}

@media(max-width:575px) {
    .wb-story-shortcode[data-skin="vemdezap"] .wb-stories-loader span:nth-child(3) {
        width: 45px;
    }
}

/* TUI Image Editor section removed - using wp-stories-editor-v2.css instead */


/*--------------------------------------------------------------
# View Count & Like Button
--------------------------------------------------------------*/
#zuck-modal-content .story-viewer .tip.view-link {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 5px;
    height: 40px;
    font-weight: normal;
    text-transform: capitalize;
    position: absolute;
}

#zuck-modal-content .story-viewer .tip.view-link svg {
    width: 20px;
    height: 20px;
}

/* Story viewer like button styles */
#zuck-modal-content .story-viewer .tip.story-like-btn {
    cursor: pointer;
    transition: background 0.3s ease, opacity 0.3s ease, border 0.3s ease;
    background: rgba(0, 0, 0, 0.75);
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 5px;
    height: 40px;
    border: 2px solid transparent;
}

/* Unliked state - outline heart */
#zuck-modal-content .story-viewer .tip.story-like-btn:not([data-liked="true"]) svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

#zuck-modal-content .story-viewer .tip.story-like-btn:not([data-liked="true"]):hover {
    background: rgba(0, 0, 0, 0.85);
    border-color: rgba(255, 255, 255, 0.2);
}

#zuck-modal-content .story-viewer .tip.story-like-btn svg {
    transition: fill 0.3s ease, stroke 0.3s ease;
    width: 20px;
    height: 20px;
}

/* Liked state - filled red heart with background */
#zuck-modal-content .story-viewer .tip.story-like-btn[data-liked="true"] {
    background: rgba(220, 20, 60, 0.9); /* Crimson red background */
    border: 2px solid rgba(255, 255, 255, 0.3);
}

#zuck-modal-content .story-viewer .tip.story-like-btn[data-liked="true"] svg {
    fill: #ffffff; /* White heart when liked */
    stroke: none;
}

#zuck-modal-content .story-viewer .tip.story-like-btn[data-liked="true"]:hover {
    background: rgba(220, 20, 60, 1);
    border-color: rgba(255, 255, 255, 0.5);
}

#zuck-modal-content .story-viewer .tip.story-like-btn .like-count {
    font-weight: 500;
}

#zuck-modal-content .story-viewer .tip.story-like-btn.processing {
    pointer-events: none;
    opacity: 0.6;
}

/* Button positioning - centered as a group */
#zuck-modal-content .story-viewer .item:has(.story-like-btn + a.view-link) .story-like-btn {
    position: absolute;
    bottom: 20px;
    left: calc(50% - 70px);
}

#zuck-modal-content .story-viewer .tip.story-like-btn + .tip.view-link {
    position: absolute;
    bottom: 20px;
    left: calc(50% - -50px); /* Center position */
}

#zuck-modal-content .story-viewer .tip.story-like-btn + .tip.view-link + .tip.view-link {
    position: absolute;
    bottom: 20px;
    left: calc(50% + 60px); /* Right position */
}

/* Link button positioning if exists */
#zuck-modal-content .story-viewer .tip.link {
    bottom: 80px; /* Move link button to second row if needed */
}

/* Viewer item layout */
.wp-story-viewer-item .list-wrap-inner {
    display: flex;
    align-items: center;
    width: 100%;
}

.wp-story-viewer-item .item {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.wp-story-viewer-item .item .item-block {
    flex: 1;
}

/* Container for viewer icons (heart and message) */
.wp_story_viewer_icons {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Heart indicator for viewers who liked the story */
.wp_story_viewer_liked_icon {
    width: 35px;
    height: 35px;
    line-height: 1;
    padding-top: 2px;
    background: rgba(0, 0, 0, 0.05);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    border-radius: 100% !important;
    cursor: pointer;
}

.wp_story_viewer_liked_icon svg {
    width: 20px;
    height: 20px;
}

/* Not liked state - gray outline heart */
.wp_story_viewer_liked_icon.not-liked svg {
    opacity: 0.3;
    stroke: #aaa;
}

/* Liked state - red filled heart */
.wp_story_viewer_liked_icon.liked svg {
    opacity: 1;
}

/* Message icon inline with heart */
.wp-story-viewer-item .wp_story_msg_icon,
.wp_story_viewer_icons .wp_story_msg_icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

/*--------------------------------------------------------------
# View Stories Slider
--------------------------------------------------------------*/
.wp-story-view-main-wrapper {
    position: relative;
}

.wp-story-view-slider-wrapper,
.wp-story-viewer-wrapper {
    opacity: 1;
}

.wp-story-view-slider-wrapper {
    position: relative;
    max-width: 100%;
    margin: 30px auto;
}

.wp-story-slider {
    width: calc(100% - 70px);
    overflow: hidden;
}

.wp-story-view-slider-wrapper:has(.swiper-button-lock) .wp-story-slider {
    width: 100%;
}

.swiper-wrapper {
    display: flex;
}

.swiper-slide {
    flex: 0 0 auto;
    width: auto;
}

.wp-story-view-slider-wrapper .wp-story-view-list-item.active .wp-story-image img {
    border: 2px solid var(--wbs-primary-color);
}

.wp-story-view-slider-wrapper .wp-story-image img {
    width: 100px;
    height: 100px;
    border-radius: 100%;
    object-fit: cover;
}

.wp-story-view-slider-wrapper button.wp-story-view-slider-btn {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 30px !important;
    height: 30px !important;
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.2);
    color: #fff;
    border: none;
    font-size: 14px;
    margin: 0;
    padding: 0 !important;
    cursor: pointer;
    z-index: 10;
    border-radius: 100px !important;
}

.wp-story-view-slider-wrapper .wp-story-slider:not(.swiper-initialized) button.wp-story-view-slider-btn {
    opacity: 0;
}

.wp-story-view-slider-wrapper .swiper-initialized .button.wp-story-view-slider-btn {
    opacity: 1;
}

.wp-story-view-slider-wrapper button.prev {
    left: 0;
}

.wp-story-view-slider-wrapper button.next {
    right: 0;
}

[dir='rtl'] .wp-story-view-slider-wrapper button.wp-story-view-slider-btn {
    transform: rotate(-180deg) translateY(50%);
}

.wp-story-view-slider-wrapper button.wp-story-view-slider-btn:focus,
.wp-story-view-slider-wrapper button.wp-story-view-slider-btn:hover {
    background-color: var(--wbs-primary-color);
}

.wp-story-view-slider-wrapper button.wp-story-view-slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wp-story-view-slider-wrapper button.wp-story-view-slider-btn.swiper-button-lock {
    display: none;
    opacity: 0;
}

/*--------------------------------------------------------------
# View Stories
--------------------------------------------------------------*/
.wp-story-view-list-wrapper ul.wp-story-view-list,
.wp-story-viewer-wrapper ul.wp-story-viewer-list,
.wp-story-viewer-wrapper li.wp-story-viewer-item {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wp-story-viewer-wrapper li.wp-story-viewer-item .list-wrap {
    background-color: var(--wbs-content-background-color);
    border: 1px solid var(--wbs-global-border-color);
    margin: 0 0 -1px;
    overflow: visible;
    padding: 15px 20px;
    position: relative;
    -webkit-transition: box-shadow linear .2s;
    transition: box-shadow linear .2s;
}

.wp-story-viewer-wrapper li.wp-story-viewer-item-header .list-wrap {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    justify-content: space-between;
    flex-flow: wrap;
    gap: 15px;
}

.wp-story-viewer-wrapper li.wp-story-viewer-item-header .list-wrap h2.list-title.member-name {
    margin: 0 !important;
    font-size: 20px;
}

.wp-story-viewer-wrapper li.wp-story-viewer-item-header .list-wrap .member-buttons-wrap {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    flex-flow: wrap;
    gap: 15px;
}

.wp-story-viewer-wrapper li.wp-story-viewer-item-header .list-wrap .wp_story_msg_icon,
.wp-story-viewer-wrapper li.wp-story-viewer-item-header .list-wrap .wp_story_like_icon,
.wp-story-viewer-wrapper li.wp-story-viewer-item-header .list-wrap .wp-story-view-link {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex !important;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 2px;
    border-radius: 100px !important;
}

.wp-story-viewer-wrapper li.wp-story-viewer-item-header .list-wrap .wp_story_msg_icon,
.wp-story-viewer-wrapper li.wp-story-viewer-item-header .list-wrap .wp_story_like_icon {
    background-color: rgba(0, 0, 0, 0.05);
    justify-content: center;
    padding: 10px 20px;
    gap: 5px;
}

.wp-story-viewer-wrapper li.wp-story-viewer-item-header .list-wrap .wp_story_like_icon {
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease, border 0.3s ease;
    position: relative;
    border-radius: 100px;
}

/* Unliked state */
.wp-story-viewer-wrapper li.wp-story-viewer-item-header .list-wrap .wp_story_like_icon:not(.liked) {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

.wp-story-viewer-wrapper li.wp-story-viewer-item-header .list-wrap .wp_story_like_icon:not(.liked):hover {
    background-color: rgba(0, 0, 0, 0.08);
    border-color: rgba(220, 20, 60, 0.3);
}

/* Liked state - strong red background */
.wp-story-viewer-wrapper li.wp-story-viewer-item-header .list-wrap .wp_story_like_icon.liked {
    background-color: rgba(220, 20, 60, 0.9);
    border-color: rgba(220, 20, 60, 1);
    color: #ffffff;
}

.wp-story-viewer-wrapper li.wp-story-viewer-item-header .list-wrap .wp_story_like_icon.liked:hover {
    background-color: rgba(220, 20, 60, 1);
    border-color: rgba(180, 10, 40, 1);
}

.wp-story-viewer-wrapper li.wp-story-viewer-item-header .list-wrap .wp_story_like_icon.liked svg {
    fill: #ffffff !important; /* White heart when liked */
}

.wp-story-viewer-wrapper li.wp-story-viewer-item-header .list-wrap .wp_story_like_icon.liked .like-count {
    color: #ffffff;
    font-weight: 600;
}

.wp-story-viewer-wrapper li.wp-story-viewer-item-header .list-wrap .wp_story_like_icon.processing {
    pointer-events: none;
    opacity: 0.6;
}

.wp-story-viewer-wrapper li.wp-story-viewer-item-header .list-wrap .wp_story_like_icon svg {
    transition: fill 0.3s ease;
}

.wp-story-viewer-wrapper li.wp-story-viewer-item-header .list-wrap .wp_story_like_icon svg.like-animation {
    animation: likeHeart 0.3s ease;
}

@keyframes likeHeart {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.wp-story-viewer-wrapper li.wp-story-viewer-item-header .list-wrap .wp_story_like_icon .like-count {
    font-weight: 500;
    margin-left: 2px;
}

.wp-story-viewer-wrapper li.wp-story-viewer-item-header .list-wrap .wp_story_msg_icon svg,
.wp-story-viewer-wrapper li.wp-story-viewer-item-header .list-wrap .wp_story_like_icon svg,
.wp-story-viewer-wrapper li.wp-story-viewer-item-header .list-wrap .wp-story-view-link svg,
.wp-story-viewer-wrapper .wp_story_delete_icon svg {
    width: 18px;
    height: 18px;
}

.wp-story-viewer-wrapper .wp_story_delete_icon button:hover {
    color: #cd476b;
}

.wp_story_delete_icon button#wb-stories-delete-story-item {
    /* width: 30px;
    height: 30px; */
    padding: 10px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.05);
    color: inherit;
    border-radius: 100px !important;
}

.wp_story_delete_icon button#wb-stories-delete-story-item:hover,
.wp_story_delete_icon button#wb-stories-delete-story-item:focus {
    background: #ef3e46;
    border-color: #ef3e46;
    color: #fff;
}


.wp-story-viewer-wrapper li.wp-story-viewer-item .list-wrap-inner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.wp-story-viewer-wrapper li.wp-story-viewer-item:first-child .list-wrap {
    border-top-left-radius: var(--wbs-global-border-radius) !important;
    border-top-right-radius: var(--wbs-global-border-radius) !important;
}

.wp-story-viewer-wrapper li.wp-story-viewer-item:last-child .list-wrap {
    border-bottom-left-radius: var(--wbs-global-border-radius) !important;
    border-bottom-right-radius: var(--wbs-global-border-radius) !important;
}

.wp-story-viewer-wrapper li.wp-story-viewer-item .item-avatar {
    margin-right: 15px;
}

.bp-nouveau .buddypress-wrap li.wp-story-viewer-item .item-avatar .avatar,
.wp-story-viewer-wrapper li.wp-story-viewer-item .item-avatar img {
    max-width: 60px;
    border-radius: 100%;
}

.wp-story-viewer-wrapper li.wp-story-viewer-item .list-wrap-inner .item {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-flow: row wrap;
    flex-flow: row wrap;
}

.wp-story-viewer-wrapper li.wp-story-viewer-item .list-wrap-inner .wp_story_msg_icon {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.wp-story-viewer-wrapper li.wp-story-viewer-item .list-wrap-inner .wp_story_msg_icon>a {
    width: 35px;
    height: 35px;
    line-height: 1;
    background: rgba(0, 0, 0, 0.05);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    border-radius: 100%;
}

.wp-story-viewer-wrapper li.wp-story-viewer-item .list-wrap-inner .wp_story_msg_icon svg {
    width: 20px;
    height: 20px;
}

.wp-story-viewer-wrapper li.wp-story-viewer-item .list-wrap-inner .item .item-block {
    -webkit-box-flex: unset;
    -ms-flex: unset;
    flex: unset;
    width: -webkit-calc(100% - 80px);
    width: calc(100% - 80px);
}

.wp-story-viewer-wrapper li.wp-story-viewer-item .list-wrap-inner .item .item-block .last-activity {
    font-size: 14px;
}

.wp-story-viewer-wrapper li.wp-story-viewer-item .list-wrap-inner .member-name {
    font-size: 18px;
    margin: 0;
    padding: 0;
}

.wp-story-viewer-wrapper li.wp-story-viewer-item .list-wrap-inner .item p {
    margin: 0;
}

.wp-story-viewer-wrapper li.wp-story-viewer-item .list-wrap-inner .member-buttons-wrap {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
}

.wp-story-viewer-wrapper li.wp-story-viewer-item .list-wrap-inner .member-buttons-wrap .generic-button a {
    border-radius: 100px !important;
}

.wp-story-viewer-wrapper li#load-more-stories {
    margin: 20px auto 0;
    text-align: center;
}

.wp-story-view-slider-wrapper p.info.bp-feedback .bp-icon,
.wp-story-viewer-wrapper p.info.bp-feedback .bp-icon {
    margin-right: 10px;
}

@media screen and (max-width: 767px) {
    .wp-story-viewer-wrapper li.wp-story-viewer-item .list-wrap-inner {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .wp-story-viewer-wrapper li.wp-story-viewer-item .item-avatar {
        margin: 0 0 15px;
    }

    .wp-story-viewer-wrapper li.wp-story-viewer-item .list-wrap-inner .item {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .wp-story-viewer-wrapper li.wp-story-viewer-item .list-wrap-inner .item .item-block {
        width: 100%;
    }

    .wp-story-viewer-wrapper li.wp-story-viewer-item .list-wrap-inner .member-buttons-wrap {
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        margin: 15px 0 0;
    }
}

/*--------------------------------------------------------------
# PeepSo
--------------------------------------------------------------*/
.wp-story-view-slider-wrapper .ps-posts__empty,
.wp-story-viewer-wrapper .ps-posts__empty {
    display: block;
}

#peepso-wrap .wp_story_delete_icon button#wb-stories-delete-story-item {
    width: auto;
    height: auto;
    padding: 10px !important;
}

#peepso-load-more-stories {
    margin: 30px auto;
    text-align: center;
}

#peepso-wrap .wp_story_delete_icon button#wb-stories-delete-story-item:hover,
#peepso-wrap .wp_story_delete_icon button#wb-stories-delete-story-item:focus {
    background: #ef3e46 !important;
    border-color: #ef3e46 !important;
    color: #fff !important;
}