/* Story Rating & Views | prgwebtech.com */

.srv-w {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
    font-family: inherit;
    flex-wrap: nowrap;
}

.srv-stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
}

.srv-stars span {
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    font-family: Arial, sans-serif;
    padding: 0 1px;
    color: #cccccc; /* default inactive — overridden by Elementor style control */
}

/* Active/voted star — default color, overridden by Elementor "Active Star Color" control */
.srv-stars span.srv-on,
.srv-w .srv-stars span.srv-on {
    color: #f5a623;
}

.srv-w.srv-locked .srv-stars span {
    cursor: default;
    pointer-events: none;
}

.srv-avg {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.srv-msg {
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

/* Views widget */
.srv-views {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1;
}
.srv-views svg path { fill: #4a90d9; }
.srv-views-count {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}


/* Rating confirmation toast */
.srv-rating-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999999;
    max-width: calc(100vw - 40px);
    padding: 14px 24px;
    border: 2px solid #2ecc71;
    border-radius: 8px;
    background: rgba(20, 20, 20, 0.94);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    opacity: 1;
    transition: opacity 250ms ease;
    pointer-events: none;
}

.srv-rating-toast-hide {
    opacity: 0;
}
