/* STz Reviews Frontend Styles */
.stz-reviews-wrapper {
    font-family: Arial, sans-serif;
    color: #333;
    margin-top: 30px;
}

.stz-tabs {
    display: flex;
    border-bottom: 2px solid #eaeaea;
    margin-bottom: 20px;
}

.stz-tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: #777;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.stz-tab-btn.active {
    color: #d10024;
    border-bottom-color: #d10024;
}

/* Summary Box */
.stz-reviews-summary {
    display: flex;
    flex-wrap: wrap;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    align-items: center;
}

.stz-summary-score {
    flex: 1;
    min-width: 150px;
    text-align: center;
}

.stz-score-number {
    font-size: 48px;
    font-weight: 700;
    color: #d10024;
    line-height: 1;
}

.stz-score-text {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.stz-summary-bars {
    flex: 2;
    min-width: 250px;
    padding: 0 20px;
}

.stz-bar-row {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.stz-bar-star {
    width: 50px;
    font-size: 14px;
    color: #555;
}

.stz-bar-track {
    flex: 1;
    height: 8px;
    background: #eaeaea;
    border-radius: 4px;
    overflow: hidden;
    margin: 0 10px;
}

.stz-bar-fill {
    height: 100%;
    background: #ffb800; /* Star yellow */
}

.stz-bar-count {
    width: 30px;
    text-align: right;
    font-size: 12px;
    color: #777;
}

.stz-summary-action {
    flex: 1;
    min-width: 150px;
    text-align: center;
}

/* Base Buttons */
.stz-btn {
    background: #d10024;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.stz-btn:hover {
    background: #b0001e;
}

.stz-btn-outline {
    background: transparent;
    color: #d10024;
    border: 1px solid #d10024;
}

.stz-btn-outline:hover {
    background: #d10024;
    color: #fff;
}

/* Filters */
.stz-reviews-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.stz-filter-btn {
    background: #fff;
    border: 1px solid #ddd;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}

.stz-filter-btn.active {
    background: #ffebee;
    border-color: #d10024;
    color: #d10024;
}

/* Reviews List */
.stz-reviews-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stz-review-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.stz-review-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.stz-review-header img {
    border-radius: 50%;
    margin-right: 15px;
}

.stz-review-author {
    font-size: 15px;
    display: block;
}

.stz-review-date {
    font-size: 12px;
    color: #999;
    display: block;
}

/* Star Rating Visualizer */
.stz-star-rating {
    font-family: WooCommerce;
    font-size: 14px;
    line-height: 1;
    overflow: hidden;
    position: relative;
    height: 14px;
    width: 70px;
    display: inline-block;
}

.stz-star-rating::before {
    content: "\e021\e021\e021\e021\e021";
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    color: #ccc;
}

.stz-star-rating span {
    overflow: hidden;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    padding-top: 1.5em;
}

.stz-star-rating span::before {
    content: "\e020\e020\e020\e020\e020";
    top: 0;
    position: absolute;
    left: 0;
    color: #ffb800;
}

.stz-review-images {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.stz-review-images img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #ddd;
}

.stz-load-more-wrapper {
    text-align: center;
    margin-top: 20px;
}

/* QA section */
.stz-qa-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.stz-qa-list {
    list-style: none;
    padding: 0;
}

.stz-qa-item {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
}

.stz-qa-replies {
    list-style: none;
    margin-top: 10px;
    padding-left: 20px;
    border-left: 3px solid #d10024;
}

.admin-reply {
    background: #fff;
    padding: 10px;
    border-radius: 4px;
    color: #333;
}

/* Admin Reply Box Styling (Both Reviews & Q&A) */
.stz-admin-reply-box {
    background-color: #fffafb !important;
    border: 1px solid #ffe6e9;
    border-left: 4px solid #d10024;
    padding: 15px 20px;
    margin-top: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(209, 0, 36, 0.06);
}

.stz-qa-replies .stz-admin-reply-box {
    border-left: none;
    border-top: 3px solid #d10024;
}

ul.children .stz-admin-reply-box {
    margin-left: 40px;
}

.stz-qa-message.success { color: green; }
.stz-qa-message.error { color: red; }

/* Customer Photo Gallery */
.stz-customer-gallery {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 15px;
    scrollbar-width: thin;
    scrollbar-color: #d10024 #f1f1f1;
}

.stz-customer-gallery::-webkit-scrollbar {
    height: 8px;
}
.stz-customer-gallery::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.stz-customer-gallery::-webkit-scrollbar-thumb {
    background: #d10024;
    border-radius: 4px;
}
.stz-customer-gallery::-webkit-scrollbar-thumb:hover {
    background: #b0001e;
}

.stz-gallery-item {
    width: 100px;
    height: 100px;
    display: block;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
    padding: 2px;
    border: 1px solid #eaeaea;
}

.stz-gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #d10024;
}

.stz-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}
