.dsg-googlrev-widget {
    --dsg-googlrev-max-width: 1100px;
    --dsg-googlrev-card-max-height: 260px;
    --dsg-googlrev-button-bg: #1a73e8;
    --dsg-googlrev-button-text: #ffffff;
    --dsg-googlrev-button-hover: #1765c9;
    max-width: var(--dsg-googlrev-max-width);
    display: grid;
    grid-template-columns: minmax(220px, 260px) repeat(2, minmax(220px, 1fr));
    gap: 18px;
    align-items: stretch;
    margin: 0;
}

.dsg-googlrev-widget.dsg-googlrev-count-3 {
    grid-template-columns: minmax(220px, 260px) repeat(3, minmax(220px, 1fr));
}

.dsg-googlrev-summary,
.dsg-googlrev-card {
    border: 1px solid #e1e3e8;
    border-radius: 14px;
    background: #fff;
    box-sizing: border-box;
}

.dsg-googlrev-summary {
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dsg-googlrev-summary__brand-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dsg-googlrev-summary__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 44px;
    background: #f6f7f7;
}

.dsg-googlrev-summary__icon--fallback,
.dsg-googlrev-card__avatar--fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #1d2327;
}

.dsg-googlrev-summary__brand {
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    color: #1d2327;
}

.dsg-googlrev-summary__rating-line {
    margin-top: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.dsg-googlrev-summary__rating-value {
    font-size: 26px;
    line-height: 1;
    color: #ff8c00;
}

.dsg-googlrev-stars {
    color: #ff8c00;
    letter-spacing: 1px;
    font-size: 18px;
    line-height: 1;
}

.dsg-googlrev-stars--small {
    font-size: 15px;
}

.dsg-googlrev-summary__powered {
    margin-top: 8px;
    color: #5f6368;
    font-size: 14px;
}

.dsg-googlrev-summary__actions {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.dsg-googlrev-summary__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--dsg-googlrev-button-bg);
    color: var(--dsg-googlrev-button-text);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.dsg-googlrev-summary__button:hover,
.dsg-googlrev-summary__button:focus {
    color: var(--dsg-googlrev-button-text);
    background: var(--dsg-googlrev-button-hover);
}

.dsg-googlrev-summary__link {
    color: #1a73e8;
    text-decoration: none;
    font-size: 14px;
}

.dsg-googlrev-card {
    padding: 16px 16px 14px;
    max-height: var(--dsg-googlrev-card-max-height);
    overflow: hidden;
}

.dsg-googlrev-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.dsg-googlrev-card__identity {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.dsg-googlrev-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 44px;
    background: #f6f7f7;
}

.dsg-googlrev-card__meta {
    min-width: 0;
}

.dsg-googlrev-card__author {
    font-weight: 700;
    color: #1a4fb8;
    line-height: 1.35;
    margin-bottom: 6px;
    word-break: break-word;
}

.dsg-googlrev-card__stars-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.dsg-googlrev-card__date {
    color: #5f6368;
    font-size: 12px;
}

.dsg-googlrev-card__badge {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f6f7f7;
    color: #1a73e8;
    font-weight: 700;
    font-size: 13px;
    flex: 0 0 22px;
}

.dsg-googlrev-card__text {
    color: #1f1f1f;
    font-size: 15px;
    line-height: 1.6;
    overflow: hidden;
}

.dsg-googlrev-card__text p {
    margin: 0;
}

.dsg-googlrev-card__text p + p {
    margin-top: 10px;
}

@media (max-width: 1280px) {
    .dsg-googlrev-widget.dsg-googlrev-count-3 .dsg-googlrev-card--extra {
        display: none;
    }

    .dsg-googlrev-widget.dsg-googlrev-count-3 {
        grid-template-columns: minmax(220px, 260px) repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 900px) {
    .dsg-googlrev-widget,
    .dsg-googlrev-widget.dsg-googlrev-count-3 {
        grid-template-columns: 1fr;
    }

    .dsg-googlrev-card,
    .dsg-googlrev-summary {
        max-height: none;
    }

    .dsg-googlrev-widget.dsg-googlrev-count-3 .dsg-googlrev-card--extra {
        display: block;
    }
}

.dsg-googlrev-card a.dsg-googlrev-card__author {
    display: inline-block;
    text-decoration: none;
}

.dsg-googlrev-card a.dsg-googlrev-card__author:hover,
.dsg-googlrev-card a.dsg-googlrev-card__author:focus {
    text-decoration: underline;
}

.dsg-googlrev-card a.dsg-googlrev-card__badge {
    text-decoration: none;
}

.dsg-googlrev-card a.dsg-googlrev-card__badge:hover,
.dsg-googlrev-card a.dsg-googlrev-card__badge:focus {
    background: #eef3fe;
    color: #174ea6;
}
