/* Site-wide customer rating summary (WI 5231) — the one rating block on the storefront, replacing the
   Trustpilot widget and every hardcoded 4.9. Deliberately its own file, linked from _Layout, so it does not
   depend on the VS Bundler extension pipeline that dotnet build does not regenerate. */

.review-summary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #e8a33d;
    text-decoration: none;
}

.review-summary__stars {
    display: block;
    flex: none;
    line-height: 0;
}

.review-summary__stars svg {
    display: block;
    width: 100px;
    height: 20px;
}

.review-summary__text {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

.review-summary__score {
    color: #3d3d3d;
    font-size: var(--txt-sm);
    font-weight: 700;
}

.review-summary__count {
    color: #6b6b6b;
    font-size: var(--txt-xs);
}

/* Card — sidebar, Contact Us, category and search. Was the Trustpilot aside. */
.review-summary--card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #ece4d9;
    border-radius: 10px;
}

.review-summary--card .review-summary__stars svg {
    width: 120px;
    height: 24px;
}

.review-summary--card .review-summary__text {
    flex-wrap: wrap;
}

.review-summary--card .review-summary__score {
    font-size: var(--txt-md);
}

/* Compact — the header USP bar, where it sits beside the other reassurance items. */
.review-summary--compact {
    gap: 8px;
}

.review-summary--compact .review-summary__stars svg {
    width: 88px;
    height: 17px;
}

.review-summary--compact .review-summary__text {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
}

.review-summary--compact .review-summary__count {
    white-space: nowrap;
}

/* Inline — basket order summary and the product info card. */
.review-summary--inline .review-summary__stars svg {
    width: 84px;
    height: 17px;
}

@media (max-width: 767px) {
    .review-summary--card {
        padding: 16px;
    }

    .review-summary--compact .review-summary__count {
        display: none;
    }
}

/* "Read reviews" — added by WI 5232 once /customer-reviews existed. */
.review-summary__link {
    flex: none;
    color: #c2255c;
    font-size: var(--txt-xs);
    text-decoration: underline;
    white-space: nowrap;
}

.review-summary__link:hover,
.review-summary__link:focus-visible {
    color: #a01b4a;
}

.review-summary--card .review-summary__link {
    margin-top: 2px;
}

@media (max-width: 767px) {
    .review-summary--compact .review-summary__link {
        display: none;
    }
}
