/* ============================================
   Tenda Reviews - Google Shopping Style
   ============================================ */

/* Container */
.tenda-reviews-container {
    margin-top: 40px;
    padding: 25px 30px;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-family: 'Google Sans', 'Roboto', Arial, Helvetica, sans-serif;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.tenda-reviews-container h3 {
    margin-bottom: 8px;
    border-bottom: none;
    padding-bottom: 0;
    font-size: 18px;
    font-weight: 500;
    color: #202124;
}

/* Aggregate Rating Summary - Google Shopping style */
.tenda-aggregate-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #e8eaed;
}
.tenda-aggregate-score {
    font-size: 48px;
    font-weight: 400;
    color: #202124;
    line-height: 1;
}
.tenda-aggregate-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.tenda-aggregate-stars {
    display: flex;
    gap: 1px;
}
.tenda-aggregate-stars .tenda-gs-star {
    font-size: 18px;
    color: #fbbc04;
    line-height: 1;
}
.tenda-aggregate-stars .tenda-gs-star.empty {
    color: #dadce0;
}
.tenda-aggregate-count {
    font-size: 13px;
    color: #70757a;
}

/* Review Items (List) - Google Shopping style */
.tenda-review-item {
    margin-bottom: 0;
    padding: 16px 0;
    border-bottom: 1px solid #e8eaed;
    display: flex;
    flex-direction: column;
}
.tenda-review-item:last-child {
    border-bottom: none;
}
.tenda-review-header {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.tenda-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    background: #e8eaed;
}
.tenda-meta {
    display: flex;
    flex-direction: column;
}
.tenda-meta strong {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
    line-height: 1.3;
}
.tenda-meta-bottom {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
/* Stars in existing reviews - Google Shopping SVG-like style */
.tenda-stars {
    display: inline-flex;
    gap: 1px;
}
.tenda-stars .tenda-gs-star {
    font-size: 14px;
    color: #fbbc04;
    line-height: 1;
}
.tenda-stars .tenda-gs-star.empty {
    color: #dadce0;
}
.tenda-meta small {
    color: #70757a;
    font-size: 12px;
}
.tenda-review-body {
    line-height: 1.58;
    color: #3c4043;
    font-size: 14px;
    padding-left: 44px;
}
.tenda-review-actions {
    margin-top: 10px;
    padding-left: 44px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.tenda-review-actions button {
    cursor: pointer;
    padding: 6px 16px;
    border: 1px solid #dadce0;
    border-radius: 16px;
    font-weight: 500;
    font-size: 13px;
    background: #fff;
    color: #1a73e8;
    transition: background 0.2s, box-shadow 0.2s;
}
.tenda-review-actions button:hover {
    background: #f1f3f4;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.tenda-review-actions .tenda-delete-btn {
    color: #d93025;
}

/* Review Form - Google Shopping style */
#tenda-review-form-wrapper {
    margin-top: 24px;
    padding: 20px 24px;
    background: #f8f9fa;
    border: 1px solid #e8eaed;
    border-radius: 8px;
}
#tenda-review-form-wrapper h4 {
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 500;
    color: #202124;
}
.tenda-rating-select, .tenda-review-text {
    margin-bottom: 16px;
}
.tenda-rating-select label, .tenda-review-text label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #3c4043;
}

/* Star Picker - Google Shopping interactive */
.tenda-star-picker {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    padding: 8px 0;
}
.tenda-star-icon {
    font-size: 40px;
    color: #dadce0;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.12s ease;
    line-height: 1;
    user-select: none;
    -webkit-user-select: none;
}
.tenda-star-icon:hover {
    transform: scale(1.15);
}
.tenda-star-icon.active {
    color: #fbbc04;
}
.tenda-star-icon.hover-preview {
    color: #fdd663;
}
.tenda-star-label {
    display: inline-block;
    font-size: 13px;
    color: #5f6368;
    min-height: 20px;
    padding: 4px 12px;
    background: #e8f0fe;
    border-radius: 12px;
    font-weight: 500;
}

/* Textarea */
.tenda-review-text textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
    background: #fff;
    min-height: 80px;
}
.tenda-review-text textarea:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.15);
}

/* Submit Button - Google Blue */
#tenda-submit-btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: auto;
    background: #1a73e8;
    color: #fff;
    transition: background 0.2s, box-shadow 0.2s;
    letter-spacing: 0.25px;
}
#tenda-submit-btn:hover {
    background: #1765cc;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
#tenda-submit-btn:disabled {
    background: #dadce0;
    color: #80868b;
    cursor: not-allowed;
}

#tenda-review-msg {
    margin-top: 12px;
    font-weight: 500;
    font-size: 14px;
}

/* Captcha field */
.tenda-captcha-field {
    margin: 16px 0 !important;
    border: 1px solid #dadce0 !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    background: #fff !important;
}
.tenda-captcha-field label {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #3c4043 !important;
}
.tenda-captcha-field input[type="number"] {
    border: 1px solid #dadce0 !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    transition: border-color 0.2s;
}
.tenda-captcha-field input[type="number"]:focus {
    outline: none;
    border-color: #1a73e8 !important;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.15);
}

/* Responsive (Mobile/HP View) */
@media screen and (max-width: 768px) {
    .tenda-reviews-container {
        padding: 16px;
        margin-top: 24px;
    }
    .tenda-review-body, .tenda-review-actions {
        padding-left: 0;
        margin-top: 8px;
    }
    .tenda-avatar {
        width: 28px;
        height: 28px;
        margin-right: 10px;
    }
    .tenda-meta-bottom {
        gap: 5px;
    }
    .tenda-star-icon {
        font-size: 36px;
    }
    .tenda-aggregate-score {
        font-size: 36px;
    }
    #tenda-submit-btn {
        width: 100%;
    }
    .tenda-review-actions button {
        flex: 1;
        text-align: center;
    }
    #tenda-review-form-wrapper {
        padding: 16px;
    }
}
