/* jamon_reviews front-end styles */
.jr-reviews-shop,
.jr-reviews-product { margin: 1.5rem 0; }

.jr-reviews__header { margin-bottom: 1rem; font-size: 1.1rem; }
.jr-reviews__avg    { font-weight: 700; font-size: 1.4rem; }

.jr-review-card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    background: #fafafa;
}
.jr-review-card__header { display: flex; gap: 1rem; align-items: center; margin-bottom: .4rem; flex-wrap: wrap; }
.jr-review-card__author { font-weight: 600; }
.jr-review-card__grade  { color: #f5a623; letter-spacing: 2px; }
.jr-review-card__date   { color: #888; font-size: .85rem; margin-left: auto; }
.jr-review-card__title  { font-weight: 600; margin-bottom: .3rem; }
.jr-review-card__content{ color: #333; line-height: 1.5; }
.jr-review-card__source { margin-top: .5rem; font-size: .8rem; color: #888; }
.jr-review-card__source a { color: #888; text-decoration: underline; }

.jr-badge { display: inline-flex; align-items: center; gap: .25rem; font-size: .85rem; }
.jr-badge__stars { color: #f5a623; letter-spacing: 1px; }
.jr-badge__count { color: #888; }

/* ---- product page: inline summary badge (next to manufacturer link) ---- */
.jr-summary-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    text-decoration: none;
    color: inherit;
    vertical-align: middle;
}
.jr-summary-badge:hover { text-decoration: underline; }
.jr-summary-badge__score { font-weight: 600; }
.jr-summary-badge__count { color: #888; font-size: .85rem; }

/* ---- product page: full review list (after the accordion) ---- */
/* border-top here doubles as the divider between the accordion and this
   section, matching the theme's own accordion group dividers
   (.block_accordion .btn-link: border-top 1px solid #e8e8e8, padding-top 14px) */
.jr-product-reviews {
    margin: 14px 0 2rem;
    border-top: 1px solid #e8e8e8;
    padding-top: 14px;
}
.jr-product-reviews__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1.2rem;
}
/* typography matched to .block_accordion .btn-link, minus the collapse
   chevron (this heading isn't collapsible) */
.jr-product-reviews__heading {
    margin: 0;
    font-size: 1.563rem;
    font-weight: 400;
    color: #909090;
    text-transform: uppercase;
}
.jr-product-reviews__aggregate { display: flex; align-items: center; gap: .4rem; }
.jr-product-reviews__avg { font-weight: 700; }
.jr-product-reviews__count { color: #888; font-size: .9rem; }

.jr-product-review {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}
.jr-product-review:last-child { border-bottom: none; }
.jr-product-review__meta {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .4rem;
}
.jr-product-review__date { color: #888; font-size: .85rem; }
.jr-product-review__body { color: #333; line-height: 1.5; margin: 0 0 .4rem; }
.jr-product-review__translate {
    display: inline-block;
    font-size: .8rem;
    margin-bottom: .4rem;
    cursor: pointer;
}
.jr-product-review__translate .translation { display: none; }
.jr-product-review__translate .original { display: inline; }
.jr-product-review__translate.is-original .translation { display: inline; }
.jr-product-review__translate.is-original .original { display: none; }
.jr-product-review__source { font-size: .8rem; color: #888; }
.jr-product-review__source a { color: #888; text-decoration: underline; }

.jr-product-reviews__footer { text-align: center; margin-top: 1.2rem; }
.jr-load-more-btn {
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 4px;
    padding: .6rem 1.4rem;
    cursor: pointer;
    font-size: .9rem;
}
.jr-load-more-btn:hover { background: #f5f5f5; }
.jr-load-more-btn[disabled] { opacity: .5; cursor: default; }

/* ---- product page: featured review (position 0 only, featured=1 only) ---- */
/* Same accent/badge recipe as the shop page's .card-featured/.badge-pick,
   replicated here rather than reused because those theme classes are scoped
   under .reviews-section, which this markup doesn't live inside. */
.jr-product-review--featured {
    border: 2px solid #534AB7;
    border-radius: 6px;
    padding: 1.2rem;
    background: #fff;
}
.jr-product-review--featured .jr-product-review__body {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
}
.jr-badge-pick {
    display: inline-block;
    font-size: .68rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
    background: #EEEDFE;
    color: #3C3489;
    margin-bottom: .5rem;
}
