/* Woo Trust Reviews - Trustpilot-style compact carousel */

.wtr-wrapper {
    position: relative;
    margin: 16px auto;
    max-width: 1200px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wtr-section-title {
    margin: 0 0 12px;
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
    color: #1c1c1c;
}

/* ===== Trustpilot-style stars ===== */
.wtr-tp-stars {
    display: inline-flex;
    gap: 2px;
    vertical-align: middle;
}

.wtr-tp-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 2px;
    background: #dcdce6;
}

.wtr-tp-star--on {
    background: #00b67a;
}

.wtr-tp-star svg {
    width: 12px;
    height: 12px;
    fill: #fff;
}

/* ===== Compact review card ===== */
.wtr-compact .wtr-review {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 6px;
    padding: 12px 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wtr-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.wtr-date {
    font-size: 11px;
    color: #8a8a8a;
}

.wtr-review-content {
    color: #2b2b2b;
    line-height: 1.45;
    font-size: 13px;
}

.wtr-text {
    margin: 0;
}

.wtr-text-full {
    display: inline;
}

.wtr-toggle {
    background: none;
    border: none;
    color: #00b67a;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    padding: 0 0 0 4px;
    text-decoration: none;
}

.wtr-toggle:hover {
    text-decoration: underline;
}

.wtr-review-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 6px;
    border-top: 1px solid #f3f3f3;
    font-size: 12px;
}

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

.wtr-author-block {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.wtr-author-name {
    font-weight: 600;
    color: #1c1c1c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wtr-verified {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #00b67a;
    font-size: 11px;
    font-weight: 600;
}

.wtr-product-link {
    color: #888;
    text-decoration: none;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 40%;
}

.wtr-product-link:hover {
    color: #00b67a;
}

/* ===== Carousel ===== */
.wtr-layout-carousel .wtr-reviews-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 36px;
    scrollbar-width: none;
}

.wtr-layout-carousel .wtr-reviews-list::-webkit-scrollbar {
    display: none;
}

.wtr-layout-carousel .wtr-review {
    flex: 0 0 calc(25% - 12px);
    min-width: 240px;
    max-width: 300px;
    scroll-snap-align: start;
}

/* Nav buttons */
.wtr-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #444;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s;
}

.wtr-nav:hover {
    background: #00b67a;
    color: #fff;
    border-color: #00b67a;
}

.wtr-nav-prev { left: 2px; }
.wtr-nav-next { right: 2px; }

.wtr-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}

.wtr-dots .wtr-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d0d0d0;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s;
}

.wtr-dots .wtr-dot.is-active {
    background: #00b67a;
    width: 16px;
    border-radius: 3px;
}

/* ===== Grid / List ===== */
.wtr-layout-grid .wtr-reviews-list {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

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

/* ===== Summary badge ===== */
.wtr-summary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: #fafafa;
    border-radius: 6px;
    border: 1px solid #ececec;
}

.wtr-summary-number {
    font-size: 1.4em;
    font-weight: 700;
    color: #1c1c1c;
}

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

.wtr-empty {
    text-align: center;
    padding: 16px;
    color: #888;
    font-size: 13px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .wtr-layout-carousel .wtr-review {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 600px) {
    .wtr-layout-carousel .wtr-reviews-list {
        padding: 4px 12px;
    }
    .wtr-layout-carousel .wtr-review {
        flex: 0 0 85%;
    }
    .wtr-nav { display: none; }
    .wtr-layout-grid .wtr-reviews-list {
        grid-template-columns: 1fr;
    }
}
