﻿.grw-widget,
.grw-widget * {
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.grw-widget {
    color: #1f1f1f;
    width: 100%;
}

.grw-shell {
    align-items: start;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
}

.grw-summary {
    background: #f8f8f8;
    border: 1px solid #dfdfdf;
    border-radius: 8px;
    padding: 1.25rem;
}

.grw-score-header {
    align-items: flex-start;
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.grw-score-value {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 0.9;
}

.grw-score-label {
    color: #4f4f4f;
    font-size: 1.12rem;
    line-height: 1.2;
    margin-top: 0.15rem;
}

.grw-summary-stars {
    margin-bottom: 0.75rem;
}

.grw-summary-total {
    color: #4f4f4f;
    font-size: 1rem;
    line-height: 1.4;
    margin: 0 0 1rem;
}

.grw-summary-total strong {
    color: #111;
}

.grw-google-link {
    color: #0078d4;
    text-decoration: none;
}

.grw-google-link:hover,
.grw-google-link:focus-visible {
    text-decoration: underline;
}

.grw-feedback-btn {
    align-items: center;
    background: #0078d4;
    border-radius: 6px;
    color: #fff;
    display: inline-flex;
    font-size: 1rem;
    font-weight: 600;
    justify-content: center;
    margin: 0 0 0.9rem;
    min-height: 48px;
    padding: 0.75rem 1rem;
    text-decoration: none;
    transition: background 0.15s ease-in-out;
    width: 100%;
}

.grw-feedback-btn:hover,
.grw-feedback-btn:focus-visible {
    background: #005caa;
}

.grw-filter-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: #454545;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.95rem;
    gap: 0.45rem;
    margin: 0;
    padding: 0.4rem 0;
}

.grw-filter-toggle .grw-chevron {
    font-size: 0.8rem;
    transition: transform 0.15s ease-in-out;
}

.grw-filter-toggle[aria-expanded="true"] .grw-chevron {
    transform: rotate(180deg);
}

.grw-filters {
    border-top: 1px solid #e1e1e1;
    display: grid;
    gap: 0.65rem;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
}

.grw-filter-item {
    display: grid;
    gap: 0.3rem;
}

.grw-filter-item label {
    color: #616161;
    font-size: 0.85rem;
    font-weight: 600;
}

.grw-filter-item select {
    border: 1px solid #cfcfcf;
    border-radius: 5px;
    font-size: 0.92rem;
    min-height: 36px;
    padding: 0.35rem 0.5rem;
}

.grw-review-region {
    min-height: 220px;
    position: relative;
}
.grw-nav {
    align-items: center;
    background: #fff;
    border: 1px solid #dadada;
    border-radius: 999px;
    color: #454545;
    cursor: pointer;
    display: inline-flex;
    font-size: 1.2rem;
    height: 40px;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    z-index: 2;
}

.grw-nav:hover:not([disabled]),
.grw-nav:focus-visible:not([disabled]) {
    background: #f1f1f1;
}

.grw-nav[disabled] {
    cursor: default;
    opacity: 0.45;
}

.grw-nav-prev {
    left: -20px;
}

.grw-nav-next {
    right: -20px;
}

.grw-viewport {
    overflow-x: auto;
    padding-bottom: 0.7rem;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

.grw-viewport::-webkit-scrollbar {
    height: 8px;
}

.grw-viewport::-webkit-scrollbar-thumb {
    background: #c4c4c4;
    border-radius: 12px;
}

.grw-track {
    display: flex;
    gap: 1rem;
}

.grw-card {
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    display: flex;
    flex: 0 0 min(315px, 84vw);
    flex-direction: column;
    min-height: 280px;
    padding: 1rem 1rem 0.85rem;
}

.grw-card-score {
    color: #333;
    font-size: 1.02rem;
    margin: 0.25rem 0 0.9rem;
}

.grw-card-author {
    color: #2a2a2a;
    font-size: 1.08rem;
    font-weight: 600;
}

.grw-card-date {
    color: #666;
    font-size: 0.96rem;
    font-style: italic;
    margin: 0.15rem 0 0.85rem;
}

.grw-card-text {
    color: #333;
    flex: 1;
    font-size: 1rem;
    line-height: 1.52;
    margin: 0;
    overflow-wrap: anywhere;
}

.grw-card-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.75rem;
}

.grw-card-link {
    color: #0078d4;
    font-size: 1.15rem;
    text-decoration: none;
}

.grw-card-link:hover,
.grw-card-link:focus-visible {
    color: #005caa;
}
.grw-empty {
    align-items: center;
    border: 1px dashed #cfcfcf;
    border-radius: 8px;
    color: #555;
    display: flex;
    flex: 0 0 min(315px, 84vw);
    justify-content: center;
    min-height: 220px;
    padding: 1.2rem;
    text-align: center;
}

.grw-error {
    background: #fff4f4;
    border: 1px solid #e2b7b7;
    border-radius: 8px;
    color: #7a1f1f;
    padding: 1rem;
}

.grw-loading {
    color: #555;
    margin: 0;
    padding: 0.9rem 0;
}

.grw-stars {
    --grw-rating: 0;
    display: inline-block;
    font-size: 2rem;
    letter-spacing: 0.1em;
    line-height: 1;
    position: relative;
}

.grw-stars::before {
    color: #d6d6d6;
    content: "\2605\2605\2605\2605\2605";
}

.grw-stars::after {
    color: #f4b400;
    content: "\2605\2605\2605\2605\2605";
    left: 0;
    overflow: hidden;
    position: absolute;
    top: 0;
    width: calc((var(--grw-rating) / 5) * 100%);
}

.grw-stars-small {
    font-size: 1.95rem;
}

.grw-stars-medium {
    font-size: 1.88rem;
}

.grw-visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

@media (max-width: 1024px) {
    .grw-shell {
        grid-template-columns: 1fr;
    }

    .grw-nav {
        display: none;
    }
}

@media (max-width: 680px) {
    .grw-summary {
        padding: 1rem;
    }

    .grw-score-value {
        font-size: 2.7rem;
    }

    .grw-score-label {
        font-size: 1rem;
    }

    .grw-card {
        flex-basis: min(285px, 88vw);
    }
}
