/**
 * Product Reviews Widget — Frontend Styles.
 *
 * @package Custom_Elementor_Widgets
 */

/* ── Widget Container ── */
.cew-product-reviews-widget {
    display: inline-flex;
    align-items: center;
    gap: 0;
    line-height: 1;
}

/* ── Link Reset ── */
.cew-product-reviews-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.cew-product-reviews-link:hover {
    opacity: 0.8;
}

/* ── Stars Container ── */
.cew-product-reviews-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
    line-height: 1;
}

/* ── Individual Stars ── */
.cew-star-full,
.cew-star-empty,
.cew-star-half {
    display: inline-block;
    line-height: 1;
    font-style: normal;
    font-weight: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.cew-star-full {
    color: #FFB800;
}

.cew-star-empty {
    color: #CCCCCC;
}

.cew-star-half {
    color: #FFB800;
    position: relative;
}

.cew-star-half::after {
    content: "★";
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: #CCCCCC;
}

/* ── Review Count ── */
.cew-product-reviews-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    white-space: nowrap;
    font-size: 14px;
    color: #555555;
    line-height: 1;
}

/* ── Schema.org Hidden Meta ── */
.cew-product-reviews-widget meta {
    display: none;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .cew-product-reviews-widget {
        flex-wrap: wrap;
    }
    .cew-product-reviews-count {
        font-size: 12px;
    }
}
