/* Sekcja opinii Google — style dla Shopera (prefiks: emd-reviews-) */

.emd-reviews-root--loading {
    display: none;
}

.emd-reviews {
    max-width: 100%;
    margin: 0 auto 2.5rem;
    padding: 0 15px;
    box-sizing: border-box;
}

.emd-reviews__title {
    margin: 0 0 1rem;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-align: center;
    line-height: 1.2;
}

.emd-reviews__aggregate {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.85rem;
    margin-bottom: 1.75rem;
    font-size: 1rem;
}

.emd-reviews-google-logo {
    display: inline-flex;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.emd-reviews-google-logo__g--blue { color: #4285f4; }
.emd-reviews-google-logo__g--red { color: #ea4335; }
.emd-reviews-google-logo__g--yellow { color: #fbbc05; }
.emd-reviews-google-logo__g--green { color: #34a853; }

.emd-reviews__rating-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.emd-reviews__stars {
    display: inline-flex;
    gap: 0.1rem;
    line-height: 1;
}

.emd-reviews-star {
    font-size: 1.25rem;
    line-height: 1;
}

.emd-reviews-star--full {
    color: #f5b301;
}

.emd-reviews-star--empty {
    color: #ddd;
}

.emd-reviews-star--partial {
    position: relative;
    color: #ddd;
}

.emd-reviews-star--partial::before {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    width: var(--emd-fill, 50%);
    overflow: hidden;
    color: #f5b301;
}

.emd-reviews__count {
    color: #666;
    font-size: 0.95rem;
}

.emd-reviews__add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1rem;
    border: 1px solid #dadce0;
    border-radius: 4px;
    background: #fff;
    color: #1a73e8;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.emd-reviews__add-btn:hover {
    background: #f8f9fa;
    border-color: #1a73e8;
    text-decoration: none;
    color: #1a73e8;
}

.emd-reviews__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 1399px) {
    .emd-reviews__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1149px) {
    .emd-reviews__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 899px) {
    .emd-reviews__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 599px) {
    .emd-reviews__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.emd-reviews-card {
    display: flex;
    flex-direction: column;
    min-height: 200px;
    padding: 1.25rem 1rem 1rem;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.emd-reviews-card__quote {
    font-size: 2.5rem;
    line-height: 1;
    color: #c9a227;
    font-family: Georgia, 'Times New Roman', serif;
    margin-bottom: 0.35rem;
}

.emd-reviews-card__body {
    flex: 1 1 auto;
    margin-bottom: 0.85rem;
}

.emd-reviews-card__text {
    margin: 0;
    color: #666;
    font-size: 0.92rem;
    line-height: 1.55;
}

.emd-reviews-card__more {
    margin-top: 0.35rem;
    padding: 0;
    border: 0;
    background: none;
    color: #333;
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
}

.emd-reviews-card__rating-row {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
    margin-top: 0.5rem;
    text-align: right;
}

.emd-reviews-card__score {
    font-weight: 700;
    font-size: 0.9rem;
    color: #222;
    line-height: 1.3;
}

.emd-reviews-card__time {
    font-weight: 400;
    font-size: 0.85rem;
    color: #888;
    line-height: 1.3;
}

.emd-reviews-card__author {
    margin-bottom: 0.35rem;
    text-align: right;
}

.emd-reviews-card__author-link,
.emd-reviews-card__author-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #222;
    text-decoration: none;
}

.emd-reviews-card__author-link:hover {
    text-decoration: underline;
}

.emd-reviews-card__source {
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 0.25rem;
    text-align: right;
}

.emd-reviews-google-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1em;
    height: 1.1em;
    margin: 0 0.1em;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #4285f4;
    font-weight: 700;
    font-size: 0.85em;
    line-height: 1;
}
