/* DcaShop product reviews: scoped to the review module; Q&A stays independent. */


/*    Main Reviews Layout*/
#reviews.dcqa-reviews {
    background:#fff;
    border-radius:14px;
    padding-top:0;
    padding-bottom:0;
}
.dcqa-reviews.dc-reviews-layout {
    display:flex;
    flex-direction:row-reverse;
    gap:40px;
}
.dcqa-reviews.dc-reviews-layout #comments {
    flex:1;
    padding: 0px;
}
/* Title */

#reviews.dcqa-reviews .woocommerce-Reviews-title {
    font-size:20px !important;
    font-weight:700;
    color:#333;
    margin-bottom:25px;
}
#reviews.dcqa-reviews .woocommerce-Reviews-title.normal {
    padding-bottom:0;
    margin-bottom:20px;
}

/* Review Cards */
#reviews.dcqa-reviews ol.commentlist li.review {
    list-style:none;
    background:#fff;
    border:1px solid #eee;
    border-radius:14px;
    padding:20px;
    margin-bottom:15px;
}
#reviews.dcqa-reviews ul.children {
    margin-right:30px;
    margin-top:15px;
}
#reviews.dcqa-reviews ul.children li {
    background:#fafafa;
    border-radius:12px;
    padding:15px;
}
/* Avatar */
#reviews.dcqa-reviews .avatar {
   display:none;
}
/* Stars */
#reviews.dcqa-reviews .star-rating {
    margin-bottom:10px;
}
.dcqa-reviews .dc-review-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:0px;
}

.dcqa-reviews .dc-review-header .meta{
    margin:0;
}

.dcqa-reviews .dc-review-header .star-rating{
    margin:0;
    flex-shrink:0;
}
/* Author */
#reviews.dcqa-reviews .woocommerce-review__author {
    font-size:15px;
    font-weight:700;
    color:#333;
}
/* Date */
#reviews.dcqa-reviews .woocommerce-review__published-date {
    color:#888;
    font-size:13px;
}
/* Text */
#reviews.dcqa-reviews .description {
    margin-top:5px;
    font-size:15px;
    line-height:2;
    color:#444;
}
.dcqa-reviews .woocommerce-noreviews {
    background:#fafafa;
    border-radius:12px;
    padding:40px;
    text-align:center;
    font-size: 16px;
    font-weight: normal;
    color: #777777;
}
/* Hide Extra Reviews */
@media (min-width:769px) {
.dcqa-reviews .dc-commentlist > li.review:nth-child(n+3){
    display:none;
}

.dcqa-reviews .dc-commentlist.dc-show-all > li.review:nth-child(n+3){
    display:block;
}
}
/* More Reviews */
.dcqa-reviews .dc-more-reviews-text {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    margin:20px 0;
    color:#446084;
    cursor:pointer;
    font-size:14px;
    font-weight:500;
}
.dcqa-reviews .dc-more-reviews-text svg {
    width:16px;
    height:16px;
    fill:#446084;
}
/* Sidebar Desktop */
.dcqa-reviews .dc-review-sidebar {
    width:250px;
    flex:0 0 250px;
    height:max-content;
    position:sticky;
    top:120px;
    text-align:center;
}
.dcqa-reviews .dc-review-desktop-box {
    display:block;
    padding-left: 20px;
}
.dcqa-reviews .dc-review-desktop-box p {
    font-size:14px;
    color:#555;
    margin-bottom:15px;
    text-align: right;
}
/* Add Review Button */
.dcqa-reviews .dc-review-open-button {
    width:100%;
    display:flex !important;
    align-items:center;
    justify-content:center;
    gap:8px;
    background:#fff !important;
    color:#446084 !important;
    border:1px solid #446084 !important;
    border-radius:8px;
    padding:4px 22px !important;
    font-size:15px;
    transition:.2s;
}
.dcqa-reviews .dc-review-open-button:hover {
    background:#446084 !important;
    color:#fff !important;
}
.dcqa-reviews .dc-review-open-button img {
    width:22px;
    height:22px;
}
/* Mobile CTA */
.dcqa-reviews .dc-review-mobile-cta {
    display:none;
}
/* Popup */
#dcqa-review-modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    z-index:99999;
    justify-content:center;
    align-items:center;
    padding:20px;
    box-sizing:border-box;
}
.dcqa-review-popup{
    background:#fff;
    border:1px solid #ddd;
    border-radius:14px;
    width:90%;
    max-width:600px;
}
#dcqa-review-modal .comment-reply-title{
    display:flex;
    align-items:center;
    justify-content:space-between;
}
#dcqa-review-modal .comment-reply-title .dcqa-review-close{
    min-height: 23px;
    min-width: 22px !important;
    color:#446084;
    font-size:25px;
    cursor:pointer;
    padding:0;
    line-height:1;
    margin: 0;
    margin-right:auto;
}
#dcqa-review-modal .review-form-inner.has-border {
    padding: 0 !important;
    border: 0 !important;
}
#dcqa-review-modal form#commentform {
    margin-bottom:0px !important;
    padding: 15px;
}

/* Form */

#dcqa-review-modal div#review_form_wrapper {
    padding:0px !important;
}

#dcqa-review-modal #reply-title {
    font-size:18px;
    font-weight:700;
    padding: 20px;
    border-bottom: 1px solid #eee;
}
#dcqa-review-modal #comment {
    border-radius:10px;
    border:1px solid #ddd;
}
#dcqa-review-modal #submit {
    background:#446084 !important;
    border-radius:8px !important;
    color:#fff !important;
    padding:3px 30px !important;
    margin-bottom: 0px;
}
/* Rating */
#dcqa-review-modal .comment-form-rating .stars {
    display:flex;
    gap:5px;
}

/* Review Mobile */

@media(max-width:768px){

.dcqa-reviews .comment-text.flex-col.flex-grow{
    padding: 0 5px !important;
}
.dcqa-reviews .comment-text.flex-col.flex-grow .description{
margin-bottom: 0 !important;
text-align: justify;
}
.dcqa-reviews ol.commentlist.dc-commentlist ul.children {
    margin: 0 !important;
}
.dcqa-reviews ol.commentlist.dc-commentlist li.children {
    margin-right: 0 !important;
    padding: 15px 0px !important;
}
#reviews.dcqa-reviews ul.children li {
    margin-right: 0px !important;
}
#reviews.dcqa-reviews {
    padding:0 15px;
}
#dcqa-review-modal #reply-title {
    font-size:15px;
    font-weight:700;
}
.dcqa-reviews.dc-reviews-layout {
    display:block;
}
.dcqa-reviews .dc-review-sidebar {
    width:100%;
    flex:auto;
    position:static;
    margin-top:30px;
}
.dcqa-reviews .dc-review-desktop-box {
    display:none;
}
.dcqa-reviews .dc-review-mobile-cta {
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:100%;
    padding:12px 15px;
    background:#fff;
    border:1px solid #446084;
    border-radius:8px;
    color:#446084;
}
.dcqa-reviews .dc-review-mobile-icon {
    font-size:20px;
}
.dcqa-reviews .dc-review-mobile-title {
    flex:1;
    text-align:right;
    font-size:14px;
    color:#333;
    margin:0 10px;
    font-weight:400;
}
.dcqa-reviews .dc-review-mobile-arrow {
    font-size:25px;
    font-weight:400;
}
#reviews.dcqa-reviews ol.commentlist li.review {
    padding:15px;
}
#reviews.dcqa-reviews ul.children {
    margin-right:10px;
}
.dcqa-reviews .dc-commentlist{
    display:flex !important;
    flex-wrap:nowrap;
    overflow-x:auto;
    gap:12px;
    padding-bottom:10px;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    margin-bottom: 0px !important;
}
.dcqa-reviews .dc-commentlist::-webkit-scrollbar{
    display:none;
}
.dcqa-reviews .dc-commentlist > li.review {
    min-width:85%;
    flex:0 0 85%;
    height:320px;
    overflow:hidden;
    margin-bottom:0 !important;
    scroll-snap-align:start;
}

.dcqa-reviews .dc-commentlist > li.review .description {
        max-height:90px;
        overflow-y:auto;
        padding-left:5px;
    }
    .dcqa-reviews .dc-commentlist > li.review .description::-webkit-scrollbar {
        width:4px;
    }
    
    .dcqa-reviews .dc-desktop-only-more{
        display:none !important;
    }
}
/* Popup stays in the body, above Flatsome content and other fixed elements. */
body.dcqa-review-open { overflow: hidden; }
#dcqa-review-modal { z-index: 999999; }
#dcqa-review-modal .dcqa-review-popup {
    max-height: min(90vh, 760px);
    overflow-y: auto;
    overscroll-behavior: contain;
}
#dcqa-review-modal .dcqa-review-notice { padding: 20px; }
#dcqa-review-modal .dcqa-review-notice .dcqa-review-close { float: left; }
#dcqa-review-modal #commentform label { display: block; }
#dcqa-review-modal #commentform textarea { width: 100%; box-sizing: border-box; }
.dcqa-reviews .dc-more-reviews-text { border: 0; background: transparent; width: 100%; min-height: 32px; padding: 0; }
.dcqa-reviews .dc-review-mobile-cta { cursor: pointer; font-family: inherit; }
.dcqa-reviews .dc-review-open-button { cursor: pointer; font-family: inherit; }
@media (max-width:768px) {
    .dcqa-reviews .dc-commentlist > li.review { display: block; }
    #dcqa-review-modal .dcqa-review-popup { width: 100%; }
}

/* Mobile only: no "no reviews yet" placeholder, keep heading and add-review CTA. */
@media (max-width: 768px) {
    #reviews.dcqa-reviews.dcqa-reviews--empty .woocommerce-noreviews {
        display: none !important;
    }

    #reviews.dcqa-reviews.dcqa-reviews--empty .dc-review-sidebar {
        margin-top: 0;
    }
}
