/*
 * SiteLinx Reviews 1.51: "Match Website Style".
 * Loaded only when one of the two options is on. hcrp-match-site.js reads the page's font,
 * colors, sizes and button corners and sets the --hcrp-* variables on each review block / badge;
 * the fallbacks below keep things close to the page (inherited font and colors) if the script
 * has not run.
 *   body.hcrp-match-site   review cards: carousel and grid (option "Match Website Style")
 *   body.hcrp-match-badge  floating badge (option "Match Website Style" under Floating Badge)
 * Stars stay Google gold so they still read as ratings.
 */

/* Review blocks: site font and text color */
body.hcrp-match-site .hcrp-container { font-family: var(--hcrp-font, inherit) !important; color: var(--hcrp-text, inherit) !important; }

/* Cards */
body.hcrp-match-site .hcrp-review-card {
    background: var(--hcrp-surface, rgba(127,127,127,0.07)) !important;
    border: 1px solid var(--hcrp-border, rgba(127,127,127,0.15)) !important;
    border-radius: var(--hcrp-radius, 8px) !important;
    box-shadow: none !important;
}
body.hcrp-match-site .hcrp-reviewer-name {
    font-family: var(--hcrp-heading-font, inherit) !important;
    font-weight: var(--hcrp-heading-weight, 600) !important;
    color: var(--hcrp-heading, inherit) !important;
    font-size: calc(var(--hcrp-size, 16px) * 1.05) !important;
}
body.hcrp-match-site .hcrp-review-date { color: var(--hcrp-muted, inherit) !important; font-size: calc(var(--hcrp-size, 16px) * 0.85) !important; opacity: 1 !important; }
body.hcrp-match-site .hcrp-review-text {
    font-family: var(--hcrp-font, inherit) !important;
    color: var(--hcrp-text, inherit) !important;
    font-size: var(--hcrp-size, 1em) !important;
    line-height: var(--hcrp-line, 1.6) !important;
}
body.hcrp-match-site .hcrp-read-more { color: var(--hcrp-accent, inherit) !important; font-family: inherit !important; font-size: calc(var(--hcrp-size, 16px) * 0.95) !important; }
body.hcrp-match-site .hcrp-footer-text { font-size: calc(var(--hcrp-size, 16px) * 0.85) !important; }
body.hcrp-match-site .hcrp-footer-text span { color: var(--hcrp-muted, inherit) !important; }
body.hcrp-match-site .hcrp-footer-text strong { color: var(--hcrp-heading, inherit) !important; }

/* Grid tabs, filter and Load More */
body.hcrp-match-site .hcrp-tabs-container { background-color: var(--hcrp-surface, rgba(127,127,127,0.07)) !important; border-radius: var(--hcrp-radius, 8px) !important; }
body.hcrp-match-site .hcrp-tab { color: var(--hcrp-text, inherit) !important; font-family: inherit !important; font-size: calc(var(--hcrp-size, 16px) * 0.95) !important; border-radius: var(--hcrp-radius, 6px) !important; }
body.hcrp-match-site .hcrp-tab.active { background-color: var(--hcrp-bg, #fff) !important; color: var(--hcrp-heading, inherit) !important; border-color: var(--hcrp-border, rgba(127,127,127,0.2)) !important; }
body.hcrp-match-site .hcrp-tab:not(.active):hover { background-color: var(--hcrp-border, rgba(127,127,127,0.12)) !important; }
body.hcrp-match-site .hcrp-tab-rating { color: var(--hcrp-heading, inherit) !important; }
body.hcrp-match-site .hcrp-location-filter {
    font-family: inherit !important; color: var(--hcrp-text, inherit) !important; background-color: var(--hcrp-bg, #fff) !important;
    border-color: var(--hcrp-border, rgba(127,127,127,0.3)) !important; border-radius: var(--hcrp-radius, 6px) !important;
}
body.hcrp-match-site .hcrp-load-more {
    background: var(--hcrp-accent, #1D2327) !important; color: var(--hcrp-on-accent, #fff) !important; border: none !important;
    border-radius: var(--hcrp-radius, 6px) !important; font-family: inherit !important; font-size: var(--hcrp-size, 1em) !important;
}
body.hcrp-match-site .hcrp-load-more:hover { filter: brightness(0.92) !important; }

/* Carousel arrows */
body.hcrp-match-site .hcrp-swiper-nav { background-color: var(--hcrp-accent, rgb(17 17 17 / 50%)) !important; color: var(--hcrp-on-accent, #fff) !important; opacity: 0.9; }
body.hcrp-match-site .hcrp-swiper-nav:hover { background-color: var(--hcrp-accent, #000) !important; opacity: 1; filter: brightness(0.9) !important; }

/* Floating badge (its own option) */
body.hcrp-match-badge .hcrp-badge-wrapper {
    font-family: var(--hcrp-font, inherit) !important; color: var(--hcrp-text, inherit) !important;
    background-color: var(--hcrp-bg, #fff) !important; border-radius: calc(var(--hcrp-radius, 8px) + 4px) !important;
}
body.hcrp-match-badge .hcrp-badge-wrapper h4,
body.hcrp-match-badge .hcrp-badge-average { font-family: var(--hcrp-heading-font, inherit) !important; color: var(--hcrp-heading, inherit) !important; }
body.hcrp-match-badge .hcrp-badge-count { color: var(--hcrp-muted, inherit) !important; }
