/**
 * Theme colours for the Avis Garantis widgets.
 *
 * The widgets paint themselves from the palette stored on the Avis Garantis account, which
 * the subscription does not let us edit, and they do it with inline styles — hence the
 * !important on every rule that fights one.
 */

:root {
    --mtp-reviews-brand: #1227BE;
    --mtp-reviews-stars: #EB562E;
    --mtp-reviews-shade: #F2F2F2;
    --mtp-reviews-border: #d1d3d4;
}

/* Product header summary */

.grc-product-summary .grc-widget-product-summary-stars,
.grc-category-stars .grc-widget-category-stars-stars {
    --grc-stars-color: var(--mtp-reviews-stars) !important;
}

.grc-product-summary .grc-widget-product-summary p {
    color: var(--mtp-reviews-brand) !important;
}

/* The widget opens the reviews accordion on click, so the counter is given a link look. */
.grc-product-summary .grc-widget-product-summary-link p {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

/* Reviews panel */

.grc-product-reviews .grc-widget-product-rating,
.grc-product-reviews .grc-review-item-author {
    color: var(--mtp-reviews-brand) !important;
}

.grc-product-reviews .grc-review-item-stars {
    --grc-stars-color: var(--mtp-reviews-stars) !important;
}

.grc-product-reviews .grc-stats-item-rating,
.grc-product-reviews .grc-lightbox-review-stars {
    color: var(--mtp-reviews-stars) !important;
    --grc-stars-color: var(--mtp-reviews-stars) !important;
}

.grc-product-reviews .grc-stats-item-bar-value {
    background: var(--mtp-reviews-brand) !important;
}

.grc-product-reviews .grc-review-item-answer {
    background: var(--mtp-reviews-shade) !important;
    border-left: 3px solid var(--mtp-reviews-brand);
}

.grc-product-reviews .grc-review-list > li {
    border-color: var(--mtp-reviews-border) !important;
}

.grc-product-reviews .grc-widget-product-button {
    background: var(--mtp-reviews-brand) !important;
    color: #fff !important;
}
