/* Universal Comments Modern Style */
.universal-comments-container {
    max-width: 100%;
    margin: 2rem 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    line-height: 1.6;
}
/* Rating Summary */
.star_box {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.star-average {
    flex: 0 0 200px;
}

.woocommerce-product-rating {
    text-align: center;
}

.star_average {
    font-size: 2.5rem;
    font-weight: 600;
    color: #f5a623;
    display: block;
    margin-bottom: 0.5rem;
}

.star_average i {
    font-size: 2.6rem;
    margin-left: 0.25rem;
}

.star_box_left {
    flex: 1;
    min-width: 300px;
}

.reviews_bar {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.universal_comments_review_row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.universal_comments_stars_value {
    flex: 0 0 40px;
    color: #666;
    font-size: 16px;
}

.universal_comments_stars_value i {
    color: #f5a623;
    margin-left: 0.25rem;
}

.universal_comments_rating_bar {
    flex: 1;
    max-width: 200px;
}

.universal_comments_scala_rating {
    display: block;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.universal_comments_perc_rating {
    display: block;
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.universal_comments_num_reviews {
    flex: 0 0 120px;
    font-size: 0.9rem;
    color: #666;
}

.star_box_right {
    flex: 0 0 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-reviews-now {
    display: inline-block;
    padding: 10px 15px;
    background: #f5a623;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn-reviews-now:hover {
    background: #e69500;
    color: #fff;
}

/* Comments List */
.universal-comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.universal-comment {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    flex-direction: row;
    align-items: flex-start;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 1rem;
}

.universal-comment:last-child {
    margin-bottom: 0;
}

.universal-comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.universal-comment-avatar {
    flex: 0 0 32px;
    position: relative;
}

.universal-comment-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.universal-comment-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.universal-comment-meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.15rem;
}
.universal-comment-author {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: capitalize;
}
.universal-comment-date {
    display: none;
    color: #666;
    font-size: 0.9rem;
    position: relative;
    padding-left: 0.75rem;
    margin-left: 0.5rem;
}
.universal-comment-date::before {
    content: '-';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}
.universal-comment-rating {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.universal-comment-star {
    color: #ddd;
    font-size: 1.1rem;
    transition: transform 0.2s ease, color 0.2s ease;
    position: relative;
    display: inline-block;
    width: 0.6em;
    height: 0.6em;
}

.universal-comment-star::before {
    content: '★';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.universal-comment-star.star-filled {
    color: #f5a623;
}

.universal-comment-star.star-empty {
    color: #ddd;
}

.universal-comment-text {
    margin: 0.35rem 0;
    color: #444;
    line-height: 1.4;
}

.universal-comment-text p {
    margin: 0 0 0.75rem;
}

.universal-comment-text p:last-child {
    margin-bottom: 0;
}

.universal-comment-phone {
    display: none;
}

.universal-comment-reply {
    margin-top: 0;
}

.universal-comment-reply-link {
    color: #f5a623;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(245, 166, 35, 0.1);
    transition: all 0.3s ease;
}

.universal-comment-reply-link:hover {
    background: #f5a623;
    color: #fff;
    transform: translateY(-1px);
}

.universal-comment-reply-link::before {
    content: '↩';
    font-size: 1.1rem;
}

/* Tree-like Comments */
.universal-comment-children {
    margin-top: 0;
    margin-left: 15px;
    position: relative;
    padding-left: 1.5rem;
    width: 100%;
    flex-basis: 100%;
    flex-shrink: 0;
    order: 999;
}

.universal-comment-children::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #f5a623, #ff6b6b);
    opacity: 0.3;
}

.universal-comment-children .universal-comments {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.universal-comment-children .universal-comment {
    position: relative;
    background: #fafafa;
    margin-bottom: 1rem;
}

.universal-comment-children .universal-comment:last-child {
    margin-bottom: 0;
}

.universal-comment-children .universal-comment::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 2rem;
    width: 1.5rem;
    height: 2px;
    background: linear-gradient(to right, #f5a623, #ff6b6b);
    opacity: 0.3;
}

/* Reply Form */
.uc-reply-form-container {
    position: relative;
    margin-top: 0;
    padding: 0 15px 0 15px;
    background-color: #dedede;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 5;
}

.uc-reply-form-inner {
    position: relative;
}

.uc-reply-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.uc-reply-form-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.uc-reply-form-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.uc-reply-form-close:hover {
    color: #f5a623;
}

.uc-reply-form-fields {
    display: grid;
    gap: 0;
}

.uc-reply-form-field {
    position: relative;
}

.uc-reply-form-field input,
.uc-reply-form-field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.uc-reply-form-field input:focus,
.uc-reply-form-field textarea:focus {
    outline: none;
    border-color: #f5a623;
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.1);
}

.uc-reply-form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.uc-reply-char-count {
    position: absolute;
    right: 0;
    bottom: -1.5rem;
    font-size: 0.85rem;
    color: #666;
}

.uc-reply-char-count.uc-error {
    color: #dc3545;
}

.uc-reply-form-submit {
    margin-top: 2rem;
    text-align: right;
}

.uc-reply-form-submit button {
    background-color: #f5a623;
    color: #fff;
    border: none;
    padding: 0px 30px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.uc-reply-form-submit button:hover {
    background: #e69500;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.uc-reply-form-submit button:disabled {
    background: #ddd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Reply Button */
.uc-reply-button {
    background-color: transparent;
    color: #f5a623;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: normal;
    text-transform: capitalize;
    cursor: pointer;
    border-radius: 5px 15px;
    min-height: auto;
    border: 1px solid #f47421;
    padding: 3px 10px;
    margin: 0;
    transition: color 0.2s ease;
}

.uc-reply-button:hover {
    background-color: #f5a623;
    color: #fff;
    text-decoration: none;
    border: none;
}

.uc-reply-button:disabled {
    color: #999;
    cursor: not-allowed;
    text-decoration: none;
}

/* Field Error */
.uc-field-error {
    display: block;
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

.uc-reply-form-field input.error,
.uc-reply-form-field textarea.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Loadmore Button */
.uc-loadmore-container {
    text-align: center;
    margin: 2rem 0;
}

.uc-loadmore-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #f5a623;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.uc-loadmore-button:hover {
    background: #e6951a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.uc-loadmore-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 768px) {
    .star_box {
        flex-direction: column;
        gap: 1rem;
    }
    
    .star-average {
        flex: 0 0 auto;
    }
    
    .star_box_left {
        min-width: auto;
    }
    
    .universal_comments_rating_bar {
        max-width: 150px;
    }
    
    .universal-comment {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .universal-comment-avatar {
        flex: 0 0 40px;
    }
    
    .universal-comment-avatar img {
        width: 40px;
        height: 40px;
    }
    
    .universal-comment-meta {
        gap: 0.5rem;
    }
    
    .universal-comment-author {
        font-size: 1rem;
    }
    
    .universal-comment-date {
        font-size: 0.85rem;
        padding-left: 0.5rem;
        margin-left: 0.25rem;
    }
    
    .universal-comment-star {
        font-size: 1rem;
    }
    
    .universal-comment-reply-link {
        width: 100%;
        justify-content: center;
    }
    
    .uc-reply-form-container {
        padding: 1rem;
    }
    
    .uc-reply-form-header h4 {
        font-size: 1rem;
    }
    
    .uc-reply-form-field input,
    .uc-reply-form-field textarea {
        font-size: 0.9rem;
    }
    
    .uc-reply-form-submit {
        margin-top: 1.5rem;
    }
    
    .uc-reply-form-submit button {
        width: 100%;
        padding: 0.75rem;
    }
    
    .universal-comment-children {
        margin-left: 0;
        padding-left: 1rem;
    }
    
    .universal-comment-children .universal-comment::before {
        left: -1rem;
        width: 1rem;
    }
    
    .uc-loadmore-button {
        width: 100%;
        padding: 1rem;
    }
} 