/* Ratings Pro — front-end shortcode styles */

.ar-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: inherit;
    line-height: 1;
    vertical-align: middle;
}

/* Star container — positions the two layers on top of each other */
.ar-stars-wrap {
    position: relative;
    display: inline-block;
    font-size: 1.2em;
    line-height: 1;
}

/* Background empty stars */
.ar-stars-bg {
    color: #d0d0d0;
    letter-spacing: 2px;
    display: block;
}

/* Foreground filled stars — clipped to % width */
.ar-stars-fg {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
    color: #f5a623;
    letter-spacing: 2px;
    display: block;
}

.ar-avg {
    font-weight: 600;
    color: #333;
    font-size: 0.9em;
}

.ar-count {
    color: #888;
    font-size: 0.85em;
}

.ar-no-ratings {
    color: #aaa;
    font-size: 0.9em;
    font-style: italic;
}


/* ── Auto-embed: employee reviews section ─────────────────────────────────── */

.ar-embed-wrap {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e8e8e8;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* Header row: avatar + name + summary */
.ar-embed-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.ar-embed-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #f0f0f0;
}

.ar-embed-name {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    color: #111;
}

.ar-embed-summary {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
}

/* Review cards grid */
.ar-embed-cards {
    display: grid;
    gap: 16px;
}

@media ( min-width: 640px ) {
    .ar-embed-cards {
        grid-template-columns: repeat( auto-fill, minmax( 280px, 1fr ) );
    }
}

.ar-embed-card {
    background: #fafafa;
    border: 1px solid #ebebeb;
    border-radius: 10px;
    padding: 18px 20px;
}

.ar-embed-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.ar-embed-reviewer {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ar-embed-reviewer-name {
    font-weight: 600;
    font-size: 14px;
    color: #111;
}

.ar-embed-date {
    font-size: 12px;
    color: #aaa;
}

.ar-embed-stars .ar-stars-wrap {
    font-size: 1em;
}

.ar-embed-comment {
    margin: 0;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}
