/* Woo Trust Reviews - frontend styles */

.wtr-wrapper {
    margin: 24px 0;
    font-family: inherit;
}

.wtr-section-title {
    margin: 0 0 20px;
    font-size: 1.5em;
    text-align: center;
}

.wtr-reviews-list {
    display: grid;
    gap: 20px;
}

.wtr-layout-grid .wtr-reviews-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.wtr-layout-list .wtr-reviews-list {
    grid-template-columns: 1fr;
}

.wtr-layout-carousel .wtr-reviews-list {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 8px;
}

.wtr-layout-carousel .wtr-review {
    flex: 0 0 320px;
    scroll-snap-align: start;
}

.wtr-review {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}

.wtr-review:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.wtr-review-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.wtr-avatar img {
    border-radius: 50%;
    width: 48px;
    height: 48px;
}

.wtr-author-info {
    flex: 1;
}

.wtr-author-name {
    font-weight: 600;
    font-size: 0.95em;
    margin-bottom: 2px;
}

.wtr-verified {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.75em;
    color: #2e7d32;
    background: #e8f5e9;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
}

.wtr-stars {
    display: inline-block;
    line-height: 1;
}

.wtr-star {
    font-size: 1.1em;
    letter-spacing: 1px;
}

.wtr-star-filled {
    color: #f5a623;
}

.wtr-star-empty {
    color: #d9d9d9;
}

.wtr-date {
    display: block;
    margin-top: 4px;
    font-size: 0.8em;
    color: #888;
}

.wtr-review-content {
    color: #333;
    line-height: 1.6;
    margin-bottom: 14px;
    font-size: 0.95em;
}

.wtr-review-content p {
    margin: 0 0 8px;
}

.wtr-product-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    font-size: 0.85em;
}

.wtr-product-link img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.wtr-product-name {
    color: #666;
    text-decoration: none;
}

.wtr-product-link:hover .wtr-product-name {
    color: #0073aa;
}

.wtr-empty {
    text-align: center;
    padding: 24px;
    color: #777;
    background: #fafafa;
    border-radius: 6px;
}

/* Rating summary */
.wtr-summary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: #fafafa;
    border-radius: 6px;
}

.wtr-summary-number {
    font-size: 1.8em;
    font-weight: 700;
    color: #f5a623;
}

.wtr-summary-count {
    color: #666;
    font-size: 0.9em;
}

@media (max-width: 600px) {
    .wtr-layout-grid .wtr-reviews-list {
        grid-template-columns: 1fr;
    }
}
