@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

/* ── Wrapper ───────────────────────────────────────────── */
.grs-wrapper {
    display: flex;
    align-items: center;
    gap: 32px;
    font-family: 'Poppins', sans-serif;
    padding: 24px 0;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* ── Summary (left) ────────────────────────────────────── */
.grs-summary {
    flex: 0 0 160px;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.grs-summary__label {
    font-size: 22px;
    font-weight: 700;
    color: #202124;
    font-family: 'Poppins', sans-serif;
}

.grs-summary__stars {
    display: flex;
    gap: 2px;
}

.grs-summary__stars svg {
    width: 28px;
    height: 28px;
}

.grs-summary__count {
    font-size: 13px;
    color: #5f6368;
    line-height: 1.4;
    font-family: 'Poppins', sans-serif;
}

.grs-summary__count strong {
    color: #202124;
    font-weight: 600;
}

.grs-summary__google {
    margin-top: 4px;
}

/* ── Slider area (right) ───────────────────────────────── */
.grs-slider-area {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    position: relative;
}

.grs-track-wrapper {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.grs-track {
    display: flex;
    gap: 16px;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* ── Card ──────────────────────────────────────────────── */
.grs-card {
    flex: 0 0 calc((100% - 32px) / 3);
    background: #f8f9fa;
    border-radius: 10px;
    padding: 18px 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.grs-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Avatar */
.grs-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}

.grs-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.grs-card__meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.grs-card__name {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Poppins', sans-serif;
}

.grs-card__date {
    font-size: 12px;
    color: #5f6368;
    font-family: 'Poppins', sans-serif;
}

.grs-card__gicon {
    flex-shrink: 0;
}

.grs-card__stars {
    display: flex;
    gap: 2px;
}

.grs-card__text {
    font-size: 14px;
    color: #3c4043;
    line-height: 1.6;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

/* ── Arrows ────────────────────────────────────────────── */
.grs-arrow {
    background: none;
    border: none;
    font-size: 28px;
    color: #80868b;
    cursor: pointer;
    padding: 6px 8px;
    line-height: 1;
    transition: color 0.2s;
    flex-shrink: 0;
    user-select: none;
}

.grs-arrow:hover {
    color: #202124;
}

.grs-arrow:disabled {
    opacity: 0.25;
    cursor: default;
}

/* ── Responsive: mobile ────────────────────────────────── */
@media (max-width: 768px) {
    .grs-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .grs-summary {
        flex: none;
    }

    .grs-slider-area {
        width: 100%;
    }

    .grs-card {
        flex: 0 0 100%;
    }
}
