/* SLG Reviews - Shared */

.slg-reviews {
    --slg-review-blue: #164b88;
    --slg-review-green: #16803c;
    --slg-review-gold: #e9a000;
    --slg-review-border: #e2e8f0;
    color: #334155;
    font-size: 13px;
    line-height: 1.4;
}

.slg-reviews__heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--slg-review-blue);
}

.slg-reviews__heading svg,
.slg-reviews__positive {
    color: var(--slg-review-green);
    flex-shrink: 0;
}

.slg-reviews__subtitle {
    color: #64748b;
    font-size: 12px;
    margin: 4px 0 12px;
}

.slg-reviews__items {
    display: grid;
    gap: 8px;
}

.slg-reviews__item {
    color: inherit;
    text-decoration: none;
    min-width: 0;
}

.slg-reviews__item:hover .slg-reviews__name {
    text-decoration: underline;
}

.slg-reviews__item:focus-visible {
    outline: 2px solid var(--slg-review-blue);
    outline-offset: 3px;
}

.slg-reviews__name {
    font-weight: 600;
}

.slg-reviews__rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.slg-reviews__score {
    color: var(--slg-review-blue);
    white-space: nowrap;
    font-weight: 700;
}

.slg-reviews__stars {
    display: inline-flex;
    gap: 1px;
    white-space: nowrap;
}

.slg-reviews__star {
    position: relative;
    display: inline-block;
    font-size: 16px;
    line-height: 1;
    color: #cbd5e1;
}

.slg-reviews__star-fill {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
    color: var(--slg-review-gold);
}

.slg-reviews__count,
.slg-reviews__period {
    font-size: 11px;
    color: #64748b;
}

/* Desktop header */

.slg-reviews--header {
    display: none;
}

@media (min-width: 1024px) {

    .slg-reviews--header {
        display: block;
        background: #f5f7fa;
        border-bottom: 1px solid var(--slg-review-border);
        padding: 7px 16px;
    }

    .slg-reviews--header .slg-reviews__items {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px 20px;
    }

    .slg-reviews--header .slg-reviews__item {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
    }

    .slg-reviews--header .slg-reviews__star {
        font-size: 13px;
    }

    .slg-reviews--header .slg-reviews__count {
        display: none;
    }

    .slg-reviews--header .slg-reviews__period {
        font-size: 10px;
    }
}

/* Product page */

.slg-reviews--product {
    width: 100%;
    margin: 16px 0;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid var(--slg-review-border);
    border-radius: 8px;
}

.slg-reviews--product .slg-reviews__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 3px 8px;
    padding: 7px 0;
    border-bottom: 1px solid var(--slg-review-border);
}

.slg-reviews--product .slg-reviews__item:last-child {
    border-bottom: 0;
}

.slg-reviews--product .slg-reviews__period {
    text-align: right;
}

/* Footer */

.slg-reviews--footer {
    background: #f8fafc;
    border-top: 1px solid var(--slg-review-border);
    padding: 24px 16px;
}

.slg-reviews--footer .slg-reviews__inner {
    max-width: 1280px;
    margin: 0 auto;
}

.slg-reviews--footer .slg-reviews__heading {
    justify-content: center;
}

.slg-reviews--footer .slg-reviews__subtitle {
    text-align: center;
}

.slg-reviews--footer .slg-reviews__items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.slg-reviews--footer .slg-reviews__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 1 1 145px;
    max-width: 230px;
    background: #fff;
    border: 1px solid var(--slg-review-border);
    border-radius: 8px;
    padding: 14px 8px;
    text-align: center;
}

.slg-reviews--footer .slg-reviews__score {
    font-size: 19px;
}

@media (max-width: 480px) {

    .slg-reviews--product {
        padding: 10px;
    }

    .slg-reviews--product .slg-reviews__star {
        font-size: 14px;
    }

    .slg-reviews--footer .slg-reviews__item {
        flex-basis: 130px;
    }
}

/* SLG Reviews - CSP safe star fills */
.slg-reviews__fill-0 { width: 0%; }
.slg-reviews__fill-1 { width: 1%; }
.slg-reviews__fill-2 { width: 2%; }
.slg-reviews__fill-3 { width: 3%; }
.slg-reviews__fill-4 { width: 4%; }
.slg-reviews__fill-5 { width: 5%; }
.slg-reviews__fill-6 { width: 6%; }
.slg-reviews__fill-7 { width: 7%; }
.slg-reviews__fill-8 { width: 8%; }
.slg-reviews__fill-9 { width: 9%; }
.slg-reviews__fill-10 { width: 10%; }
.slg-reviews__fill-11 { width: 11%; }
.slg-reviews__fill-12 { width: 12%; }
.slg-reviews__fill-13 { width: 13%; }
.slg-reviews__fill-14 { width: 14%; }
.slg-reviews__fill-15 { width: 15%; }
.slg-reviews__fill-16 { width: 16%; }
.slg-reviews__fill-17 { width: 17%; }
.slg-reviews__fill-18 { width: 18%; }
.slg-reviews__fill-19 { width: 19%; }
.slg-reviews__fill-20 { width: 20%; }
.slg-reviews__fill-21 { width: 21%; }
.slg-reviews__fill-22 { width: 22%; }
.slg-reviews__fill-23 { width: 23%; }
.slg-reviews__fill-24 { width: 24%; }
.slg-reviews__fill-25 { width: 25%; }
.slg-reviews__fill-26 { width: 26%; }
.slg-reviews__fill-27 { width: 27%; }
.slg-reviews__fill-28 { width: 28%; }
.slg-reviews__fill-29 { width: 29%; }
.slg-reviews__fill-30 { width: 30%; }
.slg-reviews__fill-31 { width: 31%; }
.slg-reviews__fill-32 { width: 32%; }
.slg-reviews__fill-33 { width: 33%; }
.slg-reviews__fill-34 { width: 34%; }
.slg-reviews__fill-35 { width: 35%; }
.slg-reviews__fill-36 { width: 36%; }
.slg-reviews__fill-37 { width: 37%; }
.slg-reviews__fill-38 { width: 38%; }
.slg-reviews__fill-39 { width: 39%; }
.slg-reviews__fill-40 { width: 40%; }
.slg-reviews__fill-41 { width: 41%; }
.slg-reviews__fill-42 { width: 42%; }
.slg-reviews__fill-43 { width: 43%; }
.slg-reviews__fill-44 { width: 44%; }
.slg-reviews__fill-45 { width: 45%; }
.slg-reviews__fill-46 { width: 46%; }
.slg-reviews__fill-47 { width: 47%; }
.slg-reviews__fill-48 { width: 48%; }
.slg-reviews__fill-49 { width: 49%; }
.slg-reviews__fill-50 { width: 50%; }
.slg-reviews__fill-51 { width: 51%; }
.slg-reviews__fill-52 { width: 52%; }
.slg-reviews__fill-53 { width: 53%; }
.slg-reviews__fill-54 { width: 54%; }
.slg-reviews__fill-55 { width: 55%; }
.slg-reviews__fill-56 { width: 56%; }
.slg-reviews__fill-57 { width: 57%; }
.slg-reviews__fill-58 { width: 58%; }
.slg-reviews__fill-59 { width: 59%; }
.slg-reviews__fill-60 { width: 60%; }
.slg-reviews__fill-61 { width: 61%; }
.slg-reviews__fill-62 { width: 62%; }
.slg-reviews__fill-63 { width: 63%; }
.slg-reviews__fill-64 { width: 64%; }
.slg-reviews__fill-65 { width: 65%; }
.slg-reviews__fill-66 { width: 66%; }
.slg-reviews__fill-67 { width: 67%; }
.slg-reviews__fill-68 { width: 68%; }
.slg-reviews__fill-69 { width: 69%; }
.slg-reviews__fill-70 { width: 70%; }
.slg-reviews__fill-71 { width: 71%; }
.slg-reviews__fill-72 { width: 72%; }
.slg-reviews__fill-73 { width: 73%; }
.slg-reviews__fill-74 { width: 74%; }
.slg-reviews__fill-75 { width: 75%; }
.slg-reviews__fill-76 { width: 76%; }
.slg-reviews__fill-77 { width: 77%; }
.slg-reviews__fill-78 { width: 78%; }
.slg-reviews__fill-79 { width: 79%; }
.slg-reviews__fill-80 { width: 80%; }
.slg-reviews__fill-81 { width: 81%; }
.slg-reviews__fill-82 { width: 82%; }
.slg-reviews__fill-83 { width: 83%; }
.slg-reviews__fill-84 { width: 84%; }
.slg-reviews__fill-85 { width: 85%; }
.slg-reviews__fill-86 { width: 86%; }
.slg-reviews__fill-87 { width: 87%; }
.slg-reviews__fill-88 { width: 88%; }
.slg-reviews__fill-89 { width: 89%; }
.slg-reviews__fill-90 { width: 90%; }
.slg-reviews__fill-91 { width: 91%; }
.slg-reviews__fill-92 { width: 92%; }
.slg-reviews__fill-93 { width: 93%; }
.slg-reviews__fill-94 { width: 94%; }
.slg-reviews__fill-95 { width: 95%; }
.slg-reviews__fill-96 { width: 96%; }
.slg-reviews__fill-97 { width: 97%; }
.slg-reviews__fill-98 { width: 98%; }
.slg-reviews__fill-99 { width: 99%; }
.slg-reviews__fill-100 { width: 100%; }
