.ts-product-reviews {
    --ts-review-ink: #172033;
    --ts-review-muted: #687386;
    --ts-review-border: #e7ebf1;
    --ts-review-blue: #2457d6;
    --ts-review-gold: #f5a623;
    color: var(--ts-review-ink);
    direction: rtl;
    text-align: right;
}

.ts-product-reviews *,
.ts-product-reviews *::before,
.ts-product-reviews *::after {
    box-sizing: border-box;
}

.ts-reviews-heading,
.ts-reviews-list-heading,
.ts-review-author-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ts-reviews-heading {
    margin-bottom: 24px;
}

.ts-reviews-heading h2,
.ts-review-form-heading h3 {
    margin: 4px 0 6px;
    color: var(--ts-review-ink);
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 800;
}

.ts-reviews-heading p,
.ts-review-form-heading p {
    margin: 0;
    color: var(--ts-review-muted);
}

.ts-reviews-eyebrow {
    color: var(--ts-review-blue);
    font-size: 13px;
    font-weight: 800;
}

.ts-write-review-link,
.ts-review-submit {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: var(--ts-review-blue);
    color: #fff !important;
    font-weight: 800;
    padding: 10px 18px;
    text-decoration: none;
    transition: background-color .2s ease, transform .2s ease;
}

.ts-write-review-link:hover,
.ts-review-submit:hover {
    background: #1744b4;
    color: #fff !important;
    transform: translateY(-1px);
}

.ts-rating-overview {
    display: grid;
    grid-template-columns: minmax(180px, .7fr) minmax(280px, 1.3fr);
    gap: clamp(22px, 5vw, 64px);
    align-items: center;
    margin: 0 0 34px;
    padding: 28px;
    border: 1px solid var(--ts-review-border);
    border-radius: 18px;
    background: linear-gradient(135deg, #fff 0%, #f8faff 100%);
}

.ts-rating-score {
    display: grid;
    justify-items: center;
    gap: 7px;
}

.ts-rating-score strong {
    font-size: 52px;
    line-height: 1;
    letter-spacing: -2px;
}

.ts-rating-score > span:last-child {
    color: var(--ts-review-muted);
    font-size: 14px;
}

.ts-rating-stars {
    position: relative;
    display: inline-block;
    direction: ltr;
    overflow: hidden;
    color: var(--ts-review-gold);
    font-size: 22px;
    letter-spacing: 3px;
    line-height: 1;
}

.ts-rating-stars-empty {
    display: block;
    color: #e3e7ed;
    white-space: nowrap;
}

.ts-rating-stars-filled {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    color: var(--ts-review-gold);
    white-space: nowrap;
}

.ts-rating-distribution {
    display: grid;
    gap: 8px;
}

.ts-rating-filter {
    display: grid;
    grid-template-columns: 54px minmax(50px, 1fr) 36px;
    gap: 10px;
    align-items: center;
    width: 100%;
    padding: 4px 6px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #465267;
    cursor: pointer;
    text-align: right;
}

.ts-rating-filter:hover,
.ts-rating-filter[aria-pressed="true"] {
    background: #eaf0ff;
    color: var(--ts-review-blue);
}

.ts-rating-filter-label,
.ts-rating-filter-count {
    font-size: 13px;
    white-space: nowrap;
}

.ts-rating-filter-count {
    text-align: left;
}

.ts-rating-meter {
    display: block;
    height: 9px;
    overflow: hidden;
    border-radius: 99px;
    background: #e6e9ef;
}

.ts-rating-meter > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--ts-review-gold);
}

.ts-reviews-list-heading {
    margin: 0 0 16px;
}

.ts-reviews-list-heading h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
}

.ts-reviews-sort {
    max-width: 100%;
    min-height: 40px;
    padding: 7px 34px 7px 12px;
    border: 1px solid var(--ts-review-border);
    border-radius: 9px;
    background-color: #fff;
    color: var(--ts-review-ink);
}

.ts-review-list {
    display: grid;
    gap: 14px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

.ts-review-card,
.ts-review-reply {
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid var(--ts-review-border);
    border-radius: 15px;
    background: #fff;
    list-style: none;
}

.ts-review-entry {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    border: 0 !important;
    background: transparent !important;
}

.ts-review-avatar {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border: 1px solid #edf0f5;
    border-radius: 50%;
    background: #f7f8fb;
    object-fit: cover;
}

.ts-review-body {
    min-width: 0;
    flex: 1;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.ts-review-author-row {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px 12px;
}

.ts-review-author {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.ts-review-author strong {
    color: var(--ts-review-ink);
    font-size: 15px;
}

.ts-review-author-row time {
    margin-inline-start: auto;
    color: #8791a1;
    font-size: 12px;
}

.ts-review-verified,
.ts-store-reply-label {
    display: inline-flex;
    align-items: center;
    border-radius: 99px;
    background: #e9f7ef;
    color: #187344;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 9px;
}

.ts-review-stars {
    margin-top: 8px;
}

.ts-review-stars .star-rating {
    float: none !important;
    margin: 0 !important;
    color: var(--ts-review-gold) !important;
    font-size: 15px !important;
    letter-spacing: 1px;
}

.ts-review-stars .star-rating::before {
    color: #dce1e9 !important;
}

.ts-review-stars .star-rating span {
    color: var(--ts-review-gold) !important;
}

.ts-review-description {
    margin-top: 9px;
    color: #465267;
    font-size: 15px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.ts-review-description p:last-child {
    margin-bottom: 0;
}

.ts-review-actions {
    margin-top: 10px;
}

.ts-review-actions .ts-review-admin-reply {
    color: var(--ts-review-blue);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.ts-review-actions .ts-review-admin-reply:hover {
    text-decoration: underline;
}

.ts-review-reply {
    margin: 12px 0 0 58px !important;
    border-color: #dce7ff;
    background: #f8faff;
}

.ts-review-reply .ts-review-entry {
    padding: 15px;
}

.ts-review-reply .ts-review-avatar {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
}

.ts-review-reply .comment-reply-link {
    display: none;
}

.ts-store-reply-label {
    margin-top: 10px;
    background: #eaf0ff;
    color: var(--ts-review-blue);
}

.ts-review-form-card {
    margin-top: 34px;
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid var(--ts-review-border);
    border-radius: 18px;
    background: #f9fafc;
}

.ts-review-form-heading {
    margin-bottom: 18px;
}

.ts-review-form-heading h3 {
    font-size: 22px;
}

.ts-review-form-card #respond {
    margin: 0;
    padding: 0;
}

.ts-review-form-card #reply-title {
    display: none;
}

.ts-review-form-card .comment-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ts-review-form-card .comment-form > * {
    min-width: 0;
    margin: 0 !important;
}

.ts-review-form-card .comment-form-rating,
.ts-review-form-card .comment-form-comment,
.ts-review-form-card .comment-form-cookies-consent,
.ts-review-form-card .form-submit,
.ts-review-form-card .comment-notes,
.ts-review-form-card .logged-in-as {
    grid-column: 1 / -1;
}

.ts-review-form-card label {
    display: block;
    margin-bottom: 7px;
    color: #344054;
    font-size: 14px;
    font-weight: 700;
}

.ts-review-form-card input[type="text"],
.ts-review-form-card input[type="email"],
.ts-review-form-card select,
.ts-review-form-card textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #d8dee8;
    border-radius: 9px;
    background: #fff;
    color: var(--ts-review-ink);
    font: inherit;
}

.ts-review-form-card textarea {
    min-height: 130px;
    resize: vertical;
}

.ts-review-form-card input:focus,
.ts-review-form-card select:focus,
.ts-review-form-card textarea:focus {
    border-color: var(--ts-review-blue);
    outline: 3px solid rgb(36 87 214 / 12%);
}

.ts-review-form-card .comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--ts-review-muted);
    font-size: 13px;
}

.ts-review-form-card .comment-form-cookies-consent label {
    margin: 0;
    font-weight: 400;
}

.ts-review-form-card .form-submit {
    display: flex;
}

.ts-review-form-card .ts-review-submit {
    min-height: 46px;
    margin: 0;
    padding-inline: 26px;
}

.ts-reviews-empty {
    padding: 36px 18px;
    border: 1px dashed #d9dfe9;
    border-radius: 15px;
    background: #fafbfc;
    text-align: center;
}

.ts-reviews-empty-icon {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    background: #fff4df;
    color: var(--ts-review-gold);
    font-size: 24px;
}

.ts-reviews-empty h3 {
    margin: 12px 0 5px;
}

.ts-reviews-empty p,
.ts-reviews-empty-filter {
    margin: 0;
    color: var(--ts-review-muted);
}

.ts-reviews-empty-filter:not([hidden]) {
    margin: 12px 0;
    padding: 14px;
    border-radius: 10px;
    background: #fff8e8;
    color: #805d19;
}

.ts-reviews-pagination {
    margin-top: 20px;
}

.ts-reviews-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ts-reviews-pagination a,
.ts-reviews-pagination span {
    display: inline-grid;
    min-width: 38px;
    min-height: 38px;
    place-items: center;
    border: 1px solid var(--ts-review-border);
    border-radius: 8px;
    color: var(--ts-review-ink);
    text-decoration: none;
}

.ts-reviews-pagination .current {
    border-color: var(--ts-review-blue);
    background: var(--ts-review-blue);
    color: #fff;
}

@media (max-width: 700px) {
    .ts-rating-overview {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 20px 16px;
    }

    .ts-rating-score {
        padding-bottom: 18px;
        border-bottom: 1px solid var(--ts-review-border);
    }

    .ts-rating-score strong {
        font-size: 44px;
    }
}

@media (max-width: 520px) {
    .ts-reviews-heading,
    .ts-reviews-list-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .ts-write-review-link {
        width: 100%;
    }

    .ts-review-entry {
        gap: 10px;
        padding: 15px 12px;
    }

    .ts-review-avatar {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }

    .ts-review-reply {
        margin-right: 22px !important;
        margin-left: 0 !important;
    }

    .ts-review-form-card .comment-form {
        grid-template-columns: 1fr;
    }

    .ts-review-form-card .comment-form > * {
        grid-column: 1;
    }

    .ts-reviews-sort {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ts-product-reviews *,
    .ts-product-reviews *::before,
    .ts-product-reviews *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
