.ut-gra,
.ut-gra * {
    box-sizing: border-box;
}

.ut-gra {
    --ut-gra-text: #172033;
    --ut-gra-muted: #667085;
    --ut-gra-border: #e7eaf0;
    --ut-gra-card: #f8f9fb;
    --ut-gra-star: #fbbf24;
    --ut-gra-star-empty: #d7dbe3;
    --ut-gra-blue: #1a73e8;
    display: grid;
    grid-template-columns: minmax(230px, 285px) minmax(0, 1fr);
    gap: clamp(22px, 3vw, 44px);
    align-items: center;
    width: 100%;
    color: var(--ut-gra-text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.5;
}

.ut-gra-summary {
    min-width: 0;
    padding: 8px 0;
}

.ut-gra-brand-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.ut-gra-logo {
    flex: 0 0 66px;
    width: 66px;
    height: 66px;
    border: 1px solid var(--ut-gra-border);
    border-radius: 12px;
    object-fit: contain;
    background: #fff;
    padding: 4px;
}

.ut-gra-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #fff;
    background: #1f4f3d;
    font-size: 27px;
    font-weight: 700;
}

.ut-gra-summary-copy {
    min-width: 0;
    text-align: left;
}

.ut-gra-summary h3 {
    margin: 0 0 7px;
    color: var(--ut-gra-text);
    font-size: clamp(18px, 1.5vw, 22px);
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.ut-gra-summary-rating {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 3px;
}

.ut-gra-rating-number {
    color: #475467;
    font-size: 13px;
    font-weight: 650;
}

.ut-gra-stars {
    position: relative;
    display: inline-grid;
    grid-template: 1fr / 1fr;
    width: max-content;
    font-size: 18px;
    line-height: 1;
    letter-spacing: 1px;
    white-space: nowrap;
    text-align: left !important;
}

.ut-gra-stars-base,
.ut-gra-stars-fill {
    grid-area: 1 / 1;
}

.ut-gra-stars-base {
    color: var(--ut-gra-star-empty);
}

.ut-gra-stars-fill {
    width: var(--ut-gra-rating-width, 100%);
    overflow: hidden;
    color: var(--ut-gra-star);
}

.ut-gra-total {
    display: block;
    width: fit-content;
    margin-top: 5px;
    color: var(--ut-gra-muted);
    font-size: 14px;
    line-height: 1.35;
    text-align: left;
    text-decoration: none;
}

a.ut-gra-total:hover,
a.ut-gra-total:focus-visible {
    color: var(--ut-gra-blue);
    text-decoration: underline;
}

.ut-gra-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 18px;
    padding: 9px 18px;
    border: 1px solid #cfd5df;
    border-radius: 8px;
    color: var(--ut-gra-text);
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ut-gra-button:hover,
.ut-gra-button:focus-visible {
    border-color: #98a2b3;
    color: var(--ut-gra-text);
    box-shadow: 0 5px 14px rgba(16, 24, 40, 0.08);
    transform: translateY(-1px);
}

.ut-gra-carousel-shell {
    position: relative;
    min-width: 0;
    padding: 0 54px 22px;
    container-type: inline-size;
}

.ut-gra-viewport {
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
}

.ut-gra-viewport::-webkit-scrollbar {
    display: none;
}

.ut-gra-track {
    display: flex;
    gap: 16px;
    width: 100%;
    min-width: 0;
    align-items: stretch;
}

.ut-gra-card {
    flex: 0 0 100%;
    min-width: 0;
    min-height: 246px;
    padding: 22px;
    border: 1px solid var(--ut-gra-border);
    border-radius: 14px;
    background: var(--ut-gra-card);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.02);
    scroll-snap-align: start;
    text-align: left;
}

.ut-gra-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    text-align: left;
}

.ut-gra-avatar {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    background: #e8edf5;
}

.ut-gra-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #2c6a58;
    font-size: 18px;
    font-weight: 700;
}

.ut-gra-author {
    flex: 0 1 auto;
    min-width: 0;
    margin-right: auto;
    text-align: left !important;
}

.ut-gra-author h4 {
    margin: 0;
    overflow: hidden;
    color: var(--ut-gra-text);
    font-size: 16px;
    font-weight: 750;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left !important;
}

.ut-gra-date {
    display: block;
    margin-top: 2px;
    color: var(--ut-gra-muted);
    font-size: 12px;
    line-height: 1.3;
    text-align: left !important;
}

.ut-gra-google-mark {
    flex: 0 0 28px;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    background-image: conic-gradient(from 30deg, #4285f4, #34a853, #fbbc05, #ea4335, #4285f4);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-size: 21px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.ut-gra-card-stars {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 15px 0 12px;
}

.ut-gra-card .ut-gra-stars {
    font-size: 17px;
}

.ut-gra-text {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #303846;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.62;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    text-align: left !important;
}

.ut-gra-text.is-expanded {
    display: block;
    overflow: visible;
}

.ut-gra-text-empty {
    color: var(--ut-gra-muted);
    font-style: italic;
}

.ut-gra-read {
    margin: 10px 0 0;
    padding: 0;
    border: 0;
    color: #5f6b7a;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.3;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ut-gra-read:hover,
.ut-gra-read:focus-visible {
    color: var(--ut-gra-blue);
}

.ut-gra-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0 0 2px;
    border: 1px solid #d7dce5;
    border-radius: 50%;
    color: #475467;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.08);
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 25px;
    line-height: 1;
    transform: translateY(-62%);
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ut-gra-arrow:hover,
.ut-gra-arrow:focus-visible {
    border-color: #98a2b3;
    color: #101828;
    transform: translateY(-62%) scale(1.04);
}

.ut-gra-prev {
    left: 6px;
}

.ut-gra-next {
    right: 6px;
}

.ut-gra-dots {
    position: absolute;
    right: 54px;
    bottom: 2px;
    left: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 12px;
}

.ut-gra-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #cfd5df;
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.ut-gra-dot.is-active {
    width: 19px;
    background: #667085;
}

.ut-gra-empty {
    padding: 26px;
    border: 1px dashed #d7dce5;
    border-radius: 14px;
    color: var(--ut-gra-muted);
    background: #fafbfc;
    font-size: 14px;
    text-align: center;
}

.ut-gra-error {
    margin: 0;
    padding: 12px 14px;
    border-left: 4px solid #b42318;
    color: #7a271a;
    background: #fef3f2;
    font-size: 14px;
}

@container (min-width: 620px) {
    .ut-gra-card {
        flex-basis: calc((100% - 16px) / 2);
    }
}

@container (min-width: 930px) {
    .ut-gra-card {
        flex-basis: calc((100% - 32px) / 3);
    }
}

@media (max-width: 820px) {
    .ut-gra {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ut-gra-summary {
        width: 100%;
        padding: 0;
        text-align: center;
    }

    .ut-gra-brand-row {
        align-items: center;
        justify-content: center;
    }

    .ut-gra-summary-copy {
        text-align: center;
    }

    .ut-gra-summary-rating {
        justify-content: center;
    }

    .ut-gra-total {
        margin-right: auto;
        margin-left: auto;
        text-align: center;
    }

    .ut-gra-button {
        margin-top: 15px;
    }

    .ut-gra-carousel-shell {
        padding-right: 50px;
        padding-left: 50px;
    }

    .ut-gra-prev {
        left: 4px;
    }

    .ut-gra-next {
        right: 4px;
    }

    .ut-gra-dots {
        right: 50px;
        left: 50px;
    }
}

@media (max-width: 520px) {
    .ut-gra {
        gap: 20px;
    }

    .ut-gra-logo {
        flex-basis: 58px;
        width: 58px;
        height: 58px;
        border-radius: 10px;
    }

    .ut-gra-summary h3 {
        font-size: 18px;
        text-align: center;
    }

    .ut-gra-carousel-shell {
        padding-right: 44px;
        padding-left: 44px;
    }

    .ut-gra-card {
        min-height: 230px;
        padding: 19px;
        border-radius: 12px;
    }

    .ut-gra-arrow {
        width: 32px;
        height: 32px;
        font-size: 22px;
    }

    .ut-gra-prev {
        left: 2px;
    }

    .ut-gra-next {
        right: 2px;
    }

    .ut-gra-dots {
        right: 44px;
        left: 44px;
    }
}

@media (max-width: 390px) {
    .ut-gra-brand-row {
        flex-direction: column;
        gap: 9px;
    }

    .ut-gra-carousel-shell {
        padding-right: 40px;
        padding-left: 40px;
    }

    .ut-gra-dots {
        right: 40px;
        left: 40px;
    }

    .ut-gra-card {
        padding: 17px;
    }

    .ut-gra-avatar {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }

    .ut-gra-author h4 {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ut-gra-viewport {
        scroll-behavior: auto;
    }

    .ut-gra-button,
    .ut-gra-arrow,
    .ut-gra-dot {
        transition: none;
    }
}
