/* Beedigital Google Reviews - Frontend */

/* Base: mobile */
.bdgr-section {
    position: relative;
    background: #ffffff;
    overflow: hidden;
    isolation: isolate;
}

.bdgr-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.bdgr-header {
    text-align: center;
    margin-bottom: 28px;
}

.bdgr-title {
    margin: 0;
    color: #141513;
    font-size: 28px;
    font-weight: 700;
    line-height: 140%;
}

.bdgr-title mark {
    background: transparent;
    position: relative;
}

.bdgr-title mark::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 15px;
    background: url('/wp-content/themes/beedigital/assets/images/mark-3.svg');
}

.bdgr-subtitle {
    max-width: 760px;
    margin: 12px auto 0;
    color: #757e8c;
    font-size: 15px;
    font-weight: 300;
    line-height: 150%;
}

/* Summary pill */
.bdgr-summary-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 22px auto 0;
    padding: 10px 14px 10px 10px;
    border: 4px solid rgb(233 92 29 / 23%);
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.035);
}

.bdgr-summary-pill__icon-wrap {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #e7e7e7;
}

.bdgr-summary-pill__icon {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.bdgr-summary-pill__content {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.bdgr-summary-pill__name {
    color: #252d3d;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.bdgr-summary-pill__rating-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.bdgr-summary-pill__stars {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #f6a313;
}

.bdgr-summary-pill__meta {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}

.bdgr-summary-pill__score {
    color: #30394a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.bdgr-summary-pill__count {
    color: #7b8493;
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.bdgr-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 26px;
}

.bdgr-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 170px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    background: #ebedef;
    box-shadow: 0 10px 22px rgba(2, 6, 23, 0.06);
    backdrop-filter: blur(6px);
}

.bdgr-card-text {
    margin: 0 0 18px;
    overflow: hidden;
    color: #3a475b;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 7;
}

.bdgr-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.bdgr-author {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.bdgr-avatar {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 999px;
    object-fit: cover;
}

.bdgr-avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 999px;
    background: #eef2ff;
}

.bdgr-user {
    width: 18px;
    height: 18px;
    fill: #4f46e5;
}

.bdgr-author-name {
    max-width: 140px;
    overflow: hidden;
    color: #0f172a;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.bdgr-stars {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bdgr-star {
    display: inline-block;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    color: #f6a313;
}

.bdgr-star--outline path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
}

.bdgr-summary-pill .bdgr-star {
    flex-basis: 12px;
    width: 12px;
    height: 12px;
}

/* Mobile: show only 3 reviews */
.bdgr-grid .bdgr-card:nth-child(n+4) {
    display: none;
}

/* Tablet */
@media (min-width: 720px) {
    .bdgr-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bdgr-grid .bdgr-card:nth-child(n+4) {
        display: flex;
    }
}

/* Desktop */
@media (min-width: 768px) {
    .bdgr-title {
        font-size: 32px;
    }

    .bdgr-subtitle {
        font-size: 16px;
    }

    .bdgr-summary-pill {
        gap: 16px;
        padding: 14px 20px 14px 14px;
        border-radius: 18px;
    }

    .bdgr-summary-pill__icon-wrap {
        flex-basis: 56px;
        width: 56px;
        height: 56px;
    }

    .bdgr-summary-pill__icon {
        width: 35px;
        height: 35px;
    }

    .bdgr-summary-pill__content {
        gap: 22px;
    }

    .bdgr-summary-pill__name {
        font-size: 19px;
    }

    .bdgr-summary-pill__rating-block {
        gap: 6px;
    }

    .bdgr-summary-pill__score {
        font-size: 15px;
    }

    .bdgr-summary-pill__count {
        font-size: 13px;
    }

    .bdgr-summary-pill .bdgr-star {
        flex-basis: 14px;
        width: 14px;
        height: 14px;
    }
}

@media (min-width: 1024px) {
    .bdgr-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}