/* 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%; }

/* SLG Reviews - Marketplace icons */

.slg-reviews__brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.slg-reviews__platform-icon {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

@media (min-width: 1024px) {

    .slg-reviews--header {
        padding: 8px 16px;
    }

    .slg-reviews--header .slg-reviews__items {
        gap: 6px 26px;
    }

    .slg-reviews--header .slg-reviews__item {
        gap: 7px;
        font-size: 13px;
    }

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

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

    .slg-reviews--header .slg-reviews__score {
        font-size: 14px;
    }

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

/* SLG Reviews - Compact header V2 */

@media (min-width: 1024px) {

    .slg-reviews--header {
        padding: 8px 16px;
    }

    .slg-reviews--header .slg-reviews__items {
        gap: 8px 32px;
    }

    .slg-reviews--header .slg-reviews__item {
        display: grid;
        grid-template-columns: 28px auto;
        grid-template-rows: auto auto;
        column-gap: 9px;
        row-gap: 2px;
        align-items: center;
    }

    .slg-reviews--header .slg-reviews__brand {
        grid-column: 1;
        grid-row: 1 / 3;
    }

    .slg-reviews--header .slg-reviews__platform-icon {
        width: 28px;
        height: 28px;
    }

    .slg-reviews--header .slg-reviews__rating {
        grid-column: 2;
        grid-row: 1;
        gap: 6px;
    }

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

    .slg-reviews--header .slg-reviews__score {
        font-size: 16px;
        line-height: 1.1;
    }

    .slg-reviews--header .slg-reviews__period {
        grid-column: 2;
        grid-row: 2;
        font-size: 11px;
        line-height: 1.2;
        white-space: nowrap;
    }
}

/* SLG Reviews - Product cards V2 */

.slg-reviews--product {
    padding: 16px;
    background: #f5f7fa;
    border-radius: 10px;
}

.slg-reviews--product .slg-reviews__heading {
    justify-content: center;
    font-size: 18px;
}

.slg-reviews--product .slg-reviews__subtitle {
    text-align: center;
    margin-bottom: 14px;
}

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

.slg-reviews--product .slg-reviews__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 calc((100% - 16px) / 3);
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 5px;
    gap: 6px;
    text-align: center;
}

.slg-reviews--product .slg-reviews__item:last-child {
    border-bottom: 1px solid #e2e8f0;
}

.slg-reviews--product .slg-reviews__item:hover {
    border-color: #164b88;
}

.slg-reviews--product .slg-reviews__brand {
    flex-direction: column;
    gap: 5px;
}

.slg-reviews--product .slg-reviews__platform-icon {
    width: 30px;
    height: 30px;
}

.slg-reviews--product .slg-reviews__rating {
    flex-direction: column;
    gap: 5px;
}

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

.slg-reviews--product .slg-reviews__score {
    font-size: 18px;
}

.slg-reviews--product .slg-reviews__count {
    font-size: 11px;
}

.slg-reviews--product .slg-reviews__period {
    display: none;
}

.slg-reviews--product
.slg-reviews__item[href*="ebay.it"]
.slg-reviews__period {
    display: block;
    font-size: 10px;
    text-align: center;
}

@media (max-width: 767px) {
    .slg-reviews--product .slg-reviews__item {
        flex-basis: calc((100% - 8px) / 2);
    }
}

/* SLG Reviews - Product compact V3 */

.slg-reviews--product {
    padding: 12px 10px;
    margin: 12px 0 0;
    border-radius: 8px;
}

.slg-reviews--product .slg-reviews__heading {
    font-size: 16px;
    gap: 6px;
}

.slg-reviews--product .slg-reviews__heading svg {
    width: 18px;
    height: 18px;
}

.slg-reviews--product .slg-reviews__subtitle {
    font-size: 11px;
    margin: 3px 0 12px;
}

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

.slg-reviews--product .slg-reviews__item {
    display: grid;
    grid-template-columns: 26px auto;
    grid-template-rows: auto auto;
    align-items: center;
    justify-content: center;
    flex: 0 0 calc((100% - 12px) / 3);
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 2px 0;
    column-gap: 5px;
    row-gap: 3px;
    text-align: left;
}

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

.slg-reviews--product .slg-reviews__brand {
    grid-column: 1;
    grid-row: 1 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slg-reviews--product .slg-reviews__platform-icon {
    width: 26px;
    height: 26px;
}

.slg-reviews--product .slg-reviews__name {
    display: none;
}

.slg-reviews--product .slg-reviews__rating {
    grid-column: 2;
    grid-row: 1;
    flex-direction: row;
    gap: 4px;
}

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

.slg-reviews--product .slg-reviews__score {
    font-size: 14px;
    line-height: 1.2;
}

.slg-reviews--product .slg-reviews__count {
    grid-column: 2;
    grid-row: 2;
    font-size: 10px;
    line-height: 1.2;
}

.slg-reviews--product .slg-reviews__period {
    display: none;
}

.slg-reviews--product
.slg-reviews__item[href*="ebay.it"]
.slg-reviews__period {
    display: block;
    grid-column: 2;
    grid-row: 3;
    font-size: 9px;
    text-align: left;
}

@media (max-width: 1199px) {
    .slg-reviews--product .slg-reviews__item {
        flex-basis: calc((100% - 6px) / 2);
    }
}

@media (max-width: 767px) {
    .slg-reviews--product .slg-reviews__item {
        flex-basis: calc((100% - 6px) / 2);
    }
}

@media (max-width: 360px) {
    .slg-reviews--product .slg-reviews__item {
        flex-basis: 100%;
    }
}

/* SLG Reviews - Dark footer V2 */

.slg-reviews--footer {
    background: transparent;
    border-top: 1px solid rgba(255,255,255,.15);
    padding: 20px 0;
    color: #ffffff;
}

.slg-reviews--footer .slg-reviews__heading {
    color: #ffffff;
    font-size: 18px;
    justify-content: center;
}

.slg-reviews--footer .slg-reviews__heading svg,
.slg-reviews--footer .slg-reviews__positive {
    color: #69d6a0;
}

.slg-reviews--footer .slg-reviews__subtitle {
    color: #b4c8d8;
    font-size: 12px;
    margin: 5px 0 16px;
}

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

.slg-reviews--footer .slg-reviews__item {
    background: transparent;
    border: 0;
    border-radius: 0;
    flex: 1 1 145px;
    max-width: 230px;
    padding: 6px;
    gap: 7px;
    color: #ffffff;
}

.slg-reviews--footer .slg-reviews__brand {
    flex-direction: column;
    gap: 7px;
}

.slg-reviews--footer .slg-reviews__platform-icon {
    width: 44px;
    height: 44px;
    padding: 6px;
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 8px;
}

.slg-reviews--footer .slg-reviews__name {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.slg-reviews--footer .slg-reviews__rating {
    flex-direction: column;
    gap: 5px;
}

.slg-reviews--footer .slg-reviews__score {
    color: #ffffff;
    font-size: 20px;
}

.slg-reviews--footer .slg-reviews__star {
    font-size: 18px;
    color: #52697c;
}

.slg-reviews--footer .slg-reviews__star-fill {
    color: #fbbf24;
}

.slg-reviews--footer .slg-reviews__count,
.slg-reviews--footer .slg-reviews__period {
    color: #b4c8d8;
    font-size: 12px;
}

.slg-reviews--footer .slg-reviews__period {
    display: none;
}

.slg-reviews--footer
.slg-reviews__item[href*="ebay.it"]
.slg-reviews__period {
    display: none;
}

.slg-reviews--footer .slg-reviews__item:focus-visible {
    outline-color: #ffffff;
}

@media (max-width: 767px) {

    .slg-reviews--footer .slg-reviews__item {
        flex: 0 0 calc((100% - 12px) / 2);
    }

    .slg-reviews--footer .slg-reviews__platform-icon {
        width: 38px;
        height: 38px;
    }
}
