#review-slideshow-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: none; /* Hidden initially, shown by jQuery */
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.slideshow-navigation {
    max-width: 65%;
    margin: 0 auto;
    background: #fff;
    margin-top: -22px;
    border-bottom-right-radius: 6px;
    border-bottom-left-radius: 6px;
}


#review-slideshow-popup #review-slideshow-popup {
    width: calc(80% - 100px); /* 80% of viewport width minus 100px */
    max-height: calc(100vh - 100px); /* Fit within viewport */
    background: #fff;
    border-radius: 8px;
    display: flex;
    flex-direction: column; /* Stack slideshow-container and navigation */
    gap: 20px;
    box-sizing: border-box;
    margin: 0 auto; /* Center horizontally */
    position: relative; /* For close button */
}

.slideshow-container.list {
    display: flex;
    flex-direction: row; /* Image on left, comment on right */
    gap: 20px;
    padding: 20px;
    width: 100%; /* Full width of inner popup */
    min-height: calc(100vh - 220px); /* Nearly full screen, accounting for padding and navigation */
    align-items: flex-start; /* Equal height for image and content */
}
#review-slideshow-popup-wrap {
	height: calc(100% - 0px);
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
}
#review-slideshow-image {
    width: 50%; /* Exactly half the popup width */
    flex: 0 0 50%; /* Fixed width, no growing */
    object-fit: contain;
    border-radius: 4px;
    max-height: 100%; /* Fill container height */
}

.slideshow-container-wrap-comment {
    flex: 0 0 50%; /* Exactly half the popup width */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 10px;
    box-sizing: border-box;
    overflow-y: auto; /* Scroll if content is too long */
}

.review-slideshow-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #333;
    font-size: 24px;
    cursor: pointer;
    font-weight: bold;
}

.slideshow-navigation {
    display: none; /* Hidden by default, shown by jQuery for multiple images */
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px 20px; /* Align with slideshow-container */
    width: 100%;
}

.slideshow-thumbnails {
    display: none; /* Hidden by default, shown by jQuery for multiple images */
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    padding: 5px;
    flex-grow: 1;
	        flex-wrap: wrap;
    max-width: fit-content;
    margin: 0 auto;
}




.thumbnail {
    width: 130px;
    height: 125px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.thumbnail.active {
    border: 2px solid #333;
}

.review-slideshow-prev,
.review-slideshow-next {
    background: #333;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.review-slideshow-prev:disabled,
.review-slideshow-next:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#review-slideshow-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background-color: #f1e4de;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
}

#review-slideshow-author-name {
    font-weight: 600;
    font-size: 14px;
    color: #000;
    margin: 0 0 5px;
}

#review-slideshow-verified {
    color: #fff;
    background: #1bc288;
    font-style: normal;
    padding: 0 2px;
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
    height: 20px;
	width:73px;
}

#review-slideshow-verified::after {
    content: "";
    display: inline-block;
    width: 25px;
    height: 25px;
    background: url(/wp-content/themes/botiga-1749475845-via-wpturbo/woocommerce/single-product/verified.svg) no-repeat center;
    background-size: contain;
    margin-left: 5px;
    vertical-align: middle;
    position: absolute;
	margin-top:-2px;
}

#review-slideshow-review-date-wraper {
    display: flex
;
    flex-direction: row;
    gap: 5px;
    justify-content: space-between;
    width: 100%;
}

#review-slideshow-rating {
    color: #f1e4de;
    font-size: 1.78em;
    margin: 0;
}

#review-slideshow-comment-date {
	font-size: 12px;
    color: #00000099;
    margin-right: 20px;
}

#review-slideshow-comment {
    font-size: 14px;
    color: #000;
    margin-top: 10px;
    line-height: 1.5;
    text-align: left;
}

#review-slideshow-social-share {
    margin-top: 15px;
}

#review-show-share-buttons {
    background: #f0f0f0;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 500;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
}

.nalino-social-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.nalino-social-buttons a {
    padding: 6px 10px;
    background: #ddd;
    color: #000;
    text-decoration: none;
    font-size: 13px;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
}

#review-slideshow-counter {
    font-size: 14px;
    color: #333;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    #review-slideshow-popup #review-slideshow-popup {
        width: calc(100% - 40px); /* Full width minus padding */
        padding: 10px;
    }

    .slideshow-container.list {
        flex-direction: column; /* Stack image and comment */
        min-height: auto; /* Let content dictate height */
        max-height: calc(100vh - 80px); /* Account for reduced padding */
    }

    #review-slideshow-image {
        width: 100%; /* Full width on mobile */
        max-height: 40vh; /* Limit image height */
    }

    .slideshow-container-wrap-comment {
        width: 100%; /* Full width on mobile */
        padding: 10px 0;
        overflow-y: visible; /* No scrolling on mobile */
    }

    .slideshow-navigation {
        flex-wrap: wrap;
        padding: 0 10px 10px;
    }



    .thumbnail {
        width: 100px;
        height: 95px;
    }

    .review-slideshow-prev,
    .review-slideshow-next {
        padding: 8px 12px;
        font-size: 16px;
    }
}


.slideshow-navigation-wrap {
       display: flex;
    align-items: center;
	 padding-top:20px;
}


.slideshow-navigation.style-2 {
    background: transparent;
}

.slideshow-container.list.style-2 {

background: transparent;
    background: transparent;
    background: transparent;
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    min-height: unset;
    padding: 0;
    align-items: flex-start;
}

#review-slideshow-popup-wrap {
    height: calc(100% - 0px);
    display: flex;
}
#review-slideshow-counter {
    color: #fff;
    left: 0;
    background: #000;
	margin-top: 0;
}

.wrap-images-woo {
    height: calc(100% - 42px);
}

span.review-slideshow-close.white {
    position: relative;
    margin-left: auto;
    margin-right: -24px;
	margin-top: -24px;
}


span.review-slideshow-close.white {
    color: #fff;
}

.style-2 #review-slideshow-image {
    width: 100%;
    flex: unset;
	min-height: 100%;
}