/**
 * Connect VouchedFor badge styles.
 *
 * Everything keys off CSS custom properties so you can recolour per placement
 * in Elementor without touching this file, e.g.
 *   .cvf-badge { --cvf-star: #f5a623; --cvf-text: #fff; --cvf-accent: #1f3a5f; }
 */

.cvf-badge {
    --cvf-star:   #f5a623;
    --cvf-text:   inherit;
    --cvf-muted:  #6b7280;
    --cvf-accent: #1f3a5f;
    --cvf-gap:    .45em;

    display: inline-flex;
    align-items: center;
    gap: var(--cvf-gap);
    flex-wrap: wrap;
    text-decoration: none;
    color: var(--cvf-text);
    font-size: 1rem;
    line-height: 1.3;
}
a.cvf-badge:hover .cvf-score,
a.cvf-badge:focus .cvf-score { text-decoration: underline; }

.cvf-badge-inner {
    display: inline-flex;
    align-items: center;
    gap: var(--cvf-gap);
    flex-wrap: wrap;
}

/* Stars */
.cvf-stars { display: inline-flex; align-items: center; color: var(--cvf-star); line-height: 0; font-size: 1em; }
/* flex:none + max-width stop a flex parent (or a missing stylesheet) ever
   blowing the stars up past text size. */
.cvf-star  { width: 1.05em; height: 1.05em; max-width: 1.05em; display: block; flex: none; }
.cvf-star + .cvf-star { margin-left: .08em; }

/* Numeric score */
.cvf-score  { font-weight: 700; font-size: 1.08em; }
.cvf-outof  { color: var(--cvf-muted); font-weight: 400; margin-left: -.15em; }

/* Secondary bits */
.cvf-count,
.cvf-type,
.cvf-firm,
.cvf-since   { color: var(--cvf-muted); font-size: .9em; }

.cvf-verified {
    color: #0f7b3f;
    font-size: .82em;
    font-weight: 600;
}
.cvf-verified::before { content: "✓ "; }

.cvf-toprated {
    background: var(--cvf-accent);
    color: #fff;
    font-size: .72em;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    padding: .18em .5em;
    border-radius: 4px;
}

.cvf-by {
    color: var(--cvf-muted);
    font-size: .72em;
    font-style: italic;
    margin-left: .15em;
}
.cvf-by::before { content: "· "; }

/* Recent reviews */
.cvf-reviews { display: grid; gap: 1em; margin: 1em 0; }
.cvf-review {
    margin: 0;
    padding: 1em 1.1em;
    border-left: 3px solid var(--cvf-star, #f5a623);
    background: rgba(0,0,0,.03);
    border-radius: 0 6px 6px 0;
}
.cvf-review-text { margin: 0 0 .5em; font-style: italic; }
.cvf-review-meta { color: #6b7280; font-size: .85em; font-style: normal; }
