
.snp-review {
    --blue: #0756d9;
    --blue-dark: #0344b4;
    --navy: #101a2b;
    --text: #273449;
    --muted: #7a8596;
    --border: #e5eaf1;

    width: 100%;
    padding: 80px 0;
    background: #f8fafc;
    font-family: "Manrope", Arial, sans-serif;
    box-sizing: border-box;
}

.snp-review *,
.snp-review *::before,
.snp-review *::after {
    box-sizing: border-box;
}

.snp-review-container {
    width: min(1000px, calc(100% - 35px));
    margin: auto;
}

.snp-review-header {
    text-align: center;
    margin-bottom: 35px;
}

.snp-review-header > span {
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.snp-review-header h2 {
    margin: 10px 0 8px;
    color: var(--navy);
    font-size: 38px;
    line-height: 1.2;
    font-weight: 800;
}

.snp-review-header h2 strong {
    color: var(--blue);
}

.snp-review-header p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.snp-write-review {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(16, 26, 43, .05);
}

.snp-rating-title {
    margin: 20px 0 10px;
    color: var(--navy);
    font-size: 13px;
    font-weight: 800;
}

.snp-write-review > .snp-rating-title:first-child {
    margin-top: 0;
}

.snp-write-review label {
    display: block;
    margin: 0 0 8px;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

#reviewName,
#reviewText {
    display: block;
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 13px;
    transition: border-color .2s, box-shadow .2s;
}

#reviewName {
    min-height: 45px;
}

#reviewText {
    min-height: 115px;
    line-height: 1.6;
    resize: vertical;
}

#reviewName:focus,
#reviewText:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(7, 86, 217, .07);
}

#reviewName::placeholder,
#reviewText::placeholder {
    color: #a1aab7;
}

.snp-stars {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.snp-stars button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #cbd2dc;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
    transition: color .2s, transform .2s;
}

.snp-stars button.active,
.snp-stars button:hover {
    color: #ffb900;
}

.snp-stars button:hover {
    transform: scale(1.08);
}

.snp-review-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 16px;
}

.snp-review-bottom > span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

#submitReview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 10px 12px 10px 18px;
    border: 0;
    border-radius: 8px;
    background: var(--blue);
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    transition: background .2s, transform .2s;
}

#submitReview:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
}

#submitReview:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}

#submitReview span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 16px;
}

.snp-reviews {
    margin-top: 45px;
}

.snp-reviews-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.snp-reviews-title h3 {
    margin: 0;
    color: var(--navy);
    font-size: 20px;
    font-weight: 800;
}

.snp-reviews-title > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.snp-reviews-title strong {
    color: var(--navy);
    font-size: 20px;
}

.snp-reviews-title #averageStars {
    color: #ffb900;
    font-size: 15px;
    letter-spacing: 1px;
}

.snp-reviews-title small {
    color: var(--muted);
    font-size: 11px;
}

.snp-carousel {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 12px;
}

.snp-carousel-viewport {
    min-width: 0;
    overflow: hidden;
}

.snp-review-track {
    display: flex;
    align-items: stretch;
    gap: 16px;
    transition: transform .45s ease;
    will-change: transform;
}

.snp-single-review {
    flex: 0 0 calc((100% - 32px) / 3);
    min-width: 0;
    min-height: 200px;
    padding: 21px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 13px;
    box-shadow: 0 5px 20px rgba(16, 26, 43, .035);
    overflow-wrap: anywhere;
}

.snp-single-review-top {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 13px;
}

.snp-review-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #eaf1ff;
    color: var(--blue);
    font-size: 14px;
    font-weight: 800;
}

.snp-single-review-name {
    color: var(--navy);
    font-size: 13px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.snp-single-review-stars {
    margin-top: 4px;
    color: #ffb900;
    font-size: 12px;
    letter-spacing: 1px;
}

.snp-single-review p {
    margin: 0;
    color: #657185;
    font-size: 12px;
    line-height: 1.8;
    white-space: pre-wrap;
}

.snp-carousel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #fff;
    color: var(--blue);
    cursor: pointer;
    font-size: 27px;
    line-height: 1;
    transition: background .2s, color .2s;
}

.snp-carousel-btn:hover {
    background: var(--blue);
    color: #fff;
}

.snp-carousel-btn:disabled {
    opacity: .35;
    cursor: default;
}

.snp-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 20px;
}

.snp-carousel-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #cbd2dc;
    cursor: pointer;
}

.snp-carousel-dots button.active {
    width: 22px;
    border-radius: 8px;
    background: var(--blue);
}

.snp-no-review {
    flex: 0 0 100%;
    padding: 30px;
    text-align: center;
    border: 1px dashed #d8dfe8;
    border-radius: 12px;
    color: var(--muted);
    background: #fff;
    font-size: 12px;
}

@media (max-width: 760px) {
    .snp-single-review {
        flex-basis: calc((100% - 16px) / 2);
    }

    .snp-review-header h2 {
        font-size: 33px;
    }
}

@media (max-width: 520px) {
    .snp-review {
        padding: 55px 0;
    }

    .snp-review-container {
        width: calc(100% - 25px);
    }

    .snp-review-header h2 {
        font-size: 29px;
    }

    .snp-write-review {
        padding: 20px;
    }

    .snp-review-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    #submitReview {
        width: 100%;
    }

    .snp-reviews-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .snp-carousel {
        grid-template-columns: 30px minmax(0, 1fr) 30px;
        gap: 6px;
    }

    .snp-carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 22px;
    }

    .snp-single-review {
        flex-basis: 100%;
        min-height: 175px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .snp-review-track {
        transition: none;
    }
}
