.np-rating,
.np-stars,
.np-star-rating,
.np-review-rating,
.np-product-rating,
.np-score-rating {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--np-rating-gap, 0.5rem);
    min-width: 0;
    color: var(--np-rating-color, #f59e0b);
    line-height: 1;
    vertical-align: middle;
}

.np-rating.is-block,
.np-stars.is-block,
.np-star-rating.is-block,
.np-review-rating.is-block,
.np-product-rating.is-block,
.np-score-rating.is-block {
    display: flex;
    width: 100%;
}

.np-rating.is-center,
.np-stars.is-center,
.np-star-rating.is-center,
.np-review-rating.is-center,
.np-product-rating.is-center,
.np-score-rating.is-center {
    justify-content: center;
}

.np-rating.is-end,
.np-stars.is-end,
.np-star-rating.is-end,
.np-review-rating.is-end,
.np-product-rating.is-end,
.np-score-rating.is-end {
    justify-content: flex-end;
}

.np-rating-stars,
.np-stars-list,
.np-star-rating-stars,
.np-review-rating-stars,
.np-product-rating-stars,
.np-score-rating-stars {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--np-rating-star-gap, 0.125rem);
    direction: ltr;
    color: var(--np-rating-empty-color, #e2e8f0);
    font-family: var(--np-rating-font-family, Arial, sans-serif);
    font-size: var(--np-rating-size, 1rem);
    line-height: 1;
    letter-spacing: var(--np-rating-letter-spacing, 0.02em);
    white-space: nowrap;
}

.np-rating-star {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--np-rating-star-size, 1em);
    min-width: var(--np-rating-star-size, 1em);
    height: var(--np-rating-star-size, 1em);
    color: var(--np-rating-empty-color, #e2e8f0);
    font-size: inherit;
    line-height: 1;
}

.np-rating-star::before {
    content: "★";
}

.np-rating-star.is-filled,
.np-rating-star.is-active,
.np-rating-star[aria-checked="true"] {
    color: var(--np-rating-color, #f59e0b);
}

.np-rating-star.is-half {
    color: var(--np-rating-empty-color, #e2e8f0);
}

.np-rating-star.is-half::after {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 50%;
    overflow: hidden;
    color: var(--np-rating-color, #f59e0b);
    content: "★";
}

[dir="rtl"] .np-rating-star.is-half::after,
.rtl .np-rating-star.is-half::after {
    inset-inline-start: auto;
    inset-inline-end: 0;
}

.np-rating-stars::before,
.np-stars-list::before,
.np-star-rating-stars::before,
.np-review-rating-stars::before,
.np-product-rating-stars::before,
.np-score-rating-stars::before {
    color: var(--np-rating-empty-color, #e2e8f0);
    content: "★★★★★";
}

.np-rating-stars::after,
.np-stars-list::after,
.np-star-rating-stars::after,
.np-review-rating-stars::after,
.np-product-rating-stars::after,
.np-score-rating-stars::after {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: var(--np-rating-value, 0%);
    max-width: 100%;
    overflow: hidden;
    color: var(--np-rating-color, #f59e0b);
    content: "★★★★★";
}

[dir="rtl"] .np-rating-stars::after,
[dir="rtl"] .np-stars-list::after,
[dir="rtl"] .np-star-rating-stars::after,
[dir="rtl"] .np-review-rating-stars::after,
[dir="rtl"] .np-product-rating-stars::after,
[dir="rtl"] .np-score-rating-stars::after,
.rtl .np-rating-stars::after,
.rtl .np-stars-list::after,
.rtl .np-star-rating-stars::after,
.rtl .np-review-rating-stars::after,
.rtl .np-product-rating-stars::after,
.rtl .np-score-rating-stars::after {
    inset-inline-start: auto;
    inset-inline-end: 0;
}

.np-rating-value,
.np-rating-count,
.np-rating-label,
.np-rating-meta,
.np-review-rating-count,
.np-product-rating-count,
.np-score-rating-label {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    color: var(--np-rating-text-color, #64748b);
    font-family: var(--np-font-heading, Tahoma, Arial, sans-serif);
    font-size: var(--np-rating-text-size, 0.8125rem);
    font-weight: var(--np-font-weight-bold, 700);
    line-height: var(--np-line-height-snug, 1.5);
}

.np-rating-value {
    color: var(--np-rating-value-color, #0f172a);
    font-weight: var(--np-font-weight-black, 900);
}

.np-rating-count,
.np-review-rating-count,
.np-product-rating-count {
    color: var(--np-color-text-muted, #64748b);
    font-weight: var(--np-font-weight-medium, 500);
}

.np-rating.is-xs,
.np-stars.is-xs,
.np-star-rating.is-xs,
.np-review-rating.is-xs,
.np-product-rating.is-xs,
.np-score-rating.is-xs {
    --np-rating-size: 0.75rem;
    --np-rating-text-size: 0.6875rem;
    --np-rating-gap: 0.375rem;
}

.np-rating.is-sm,
.np-stars.is-sm,
.np-star-rating.is-sm,
.np-review-rating.is-sm,
.np-product-rating.is-sm,
.np-score-rating.is-sm {
    --np-rating-size: 0.875rem;
    --np-rating-text-size: 0.75rem;
    --np-rating-gap: 0.375rem;
}

.np-rating.is-md,
.np-stars.is-md,
.np-star-rating.is-md,
.np-review-rating.is-md,
.np-product-rating.is-md,
.np-score-rating.is-md {
    --np-rating-size: 1rem;
    --np-rating-text-size: 0.8125rem;
}

.np-rating.is-lg,
.np-stars.is-lg,
.np-star-rating.is-lg,
.np-review-rating.is-lg,
.np-product-rating.is-lg,
.np-score-rating.is-lg {
    --np-rating-size: 1.25rem;
    --np-rating-text-size: 0.875rem;
}

.np-rating.is-xl,
.np-stars.is-xl,
.np-star-rating.is-xl,
.np-review-rating.is-xl,
.np-product-rating.is-xl,
.np-score-rating.is-xl {
    --np-rating-size: 1.5rem;
    --np-rating-text-size: 1rem;
}

.np-rating.is-2xl,
.np-stars.is-2xl,
.np-star-rating.is-2xl,
.np-review-rating.is-2xl,
.np-product-rating.is-2xl,
.np-score-rating.is-2xl {
    --np-rating-size: 2rem;
    --np-rating-text-size: 1.125rem;
}

.np-rating.is-primary,
.np-stars.is-primary,
.np-star-rating.is-primary,
.np-review-rating.is-primary,
.np-product-rating.is-primary,
.np-score-rating.is-primary {
    --np-rating-color: var(--np-color-primary, #4f46e5);
}

.np-rating.is-sky,
.np-stars.is-sky,
.np-star-rating.is-sky,
.np-review-rating.is-sky,
.np-product-rating.is-sky,
.np-score-rating.is-sky {
    --np-rating-color: var(--np-color-sky, #38bdf8);
}

.np-rating.is-teal,
.np-stars.is-teal,
.np-star-rating.is-teal,
.np-review-rating.is-teal,
.np-product-rating.is-teal,
.np-score-rating.is-teal {
    --np-rating-color: var(--np-color-teal, #2dd4bf);
}

.np-rating.is-lime,
.np-stars.is-lime,
.np-star-rating.is-lime,
.np-review-rating.is-lime,
.np-product-rating.is-lime,
.np-score-rating.is-lime {
    --np-rating-color: var(--np-color-lime, #a3e635);
}

.np-rating.is-gold,
.np-stars.is-gold,
.np-star-rating.is-gold,
.np-review-rating.is-gold,
.np-product-rating.is-gold,
.np-score-rating.is-gold {
    --np-rating-color: var(--np-color-warning, #f59e0b);
}

.np-rating.is-success,
.np-stars.is-success,
.np-star-rating.is-success,
.np-review-rating.is-success,
.np-product-rating.is-success,
.np-score-rating.is-success {
    --np-rating-color: var(--np-color-success, #16a34a);
}

.np-rating.is-danger,
.np-stars.is-danger,
.np-star-rating.is-danger,
.np-review-rating.is-danger,
.np-product-rating.is-danger,
.np-score-rating.is-danger {
    --np-rating-color: var(--np-color-danger, #dc2626);
}

.np-rating.is-muted,
.np-stars.is-muted,
.np-star-rating.is-muted,
.np-review-rating.is-muted,
.np-product-rating.is-muted,
.np-score-rating.is-muted {
    --np-rating-color: var(--np-color-text-muted, #64748b);
    --np-rating-empty-color: var(--np-color-border-soft, #e2e8f0);
}

.np-rating-input,
.np-stars-input,
.np-review-rating-input {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--np-rating-star-gap, 0.125rem);
    direction: rtl;
    color: var(--np-rating-empty-color, #e2e8f0);
    font-size: var(--np-rating-size, 1.5rem);
    line-height: 1;
}

.np-rating-input input,
.np-stars-input input,
.np-review-rating-input input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.np-rating-input label,
.np-stars-input label,
.np-review-rating-input label {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--np-rating-star-size, 1em);
    min-width: var(--np-rating-star-size, 1em);
    height: var(--np-rating-star-size, 1em);
    margin: 0;
    padding: 0;
    color: var(--np-rating-empty-color, #e2e8f0);
    font-family: var(--np-rating-font-family, Arial, sans-serif);
    font-size: inherit;
    line-height: 1;
    cursor: pointer;
    transition: color var(--np-transition-fast, 160ms ease), transform var(--np-transition-fast, 160ms ease);
}

.np-rating-input label::before,
.np-stars-input label::before,
.np-review-rating-input label::before {
    content: "★";
}

.np-rating-input label:hover,
.np-rating-input label:hover ~ label,
.np-rating-input input:checked ~ label,
.np-stars-input label:hover,
.np-stars-input label:hover ~ label,
.np-stars-input input:checked ~ label,
.np-review-rating-input label:hover,
.np-review-rating-input label:hover ~ label,
.np-review-rating-input input:checked ~ label {
    color: var(--np-rating-color, #f59e0b);
}

.np-rating-input label:hover,
.np-stars-input label:hover,
.np-review-rating-input label:hover {
    transform: scale(1.08);
}

.np-rating-input input:focus-visible + label,
.np-stars-input input:focus-visible + label,
.np-review-rating-input input:focus-visible + label {
    outline: var(--np-focus-outline-width, 3px) solid var(--np-focus-outline-color, #2dd4bf);
    outline-offset: var(--np-focus-outline-offset, 3px);
    border-radius: var(--np-radius-sm, 0.5rem);
}

.np-rating-input.is-disabled,
.np-stars-input.is-disabled,
.np-review-rating-input.is-disabled {
    opacity: 0.56;
    pointer-events: none;
}

.np-rating-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--np-rating-summary-gap, 1.5rem);
    align-items: center;
    width: 100%;
    padding: var(--np-rating-summary-padding, 1.5rem);
    background: var(--np-rating-summary-background, #ffffff);
    border: var(--np-border-width, 1px) solid var(--np-rating-summary-border-color, #e2e8f0);
    border-radius: var(--np-rating-summary-radius, 1.5rem);
    color: var(--np-color-text, #334155);
    box-shadow: var(--np-shadow-xs, 0 1px 3px rgba(15, 23, 42, 0.06));
}

.np-rating-summary.is-soft {
    background: var(--np-color-surface-muted, #f1f5f9);
}

.np-rating-summary.is-glass {
    background: var(--np-glass-background, rgba(255, 255, 255, 0.76));
    border-color: var(--np-glass-border-color, rgba(203, 213, 225, 0.62));
    box-shadow: var(--np-glass-shadow, 0 8px 24px rgba(15, 23, 42, 0.08));
    backdrop-filter: var(--np-glass-backdrop-filter, blur(16px));
}

.np-rating-summary-score {
    display: grid;
    justify-items: center;
    gap: var(--np-spacing-sm, 0.75rem);
    min-width: var(--np-rating-summary-score-width, 8rem);
    text-align: center;
}

.np-rating-summary-number {
    color: var(--np-rating-summary-number-color, #0f172a);
    font-family: var(--np-font-heading, Tahoma, Arial, sans-serif);
    font-size: var(--np-rating-summary-number-size, 3rem);
    font-weight: var(--np-font-weight-black, 900);
    line-height: 1;
    letter-spacing: var(--np-letter-spacing-tight, -0.04em);
}

.np-rating-summary-label {
    color: var(--np-color-text-muted, #64748b);
    font-size: var(--np-font-size-sm, 0.875rem);
    font-weight: var(--np-font-weight-medium, 500);
    line-height: var(--np-line-height-snug, 1.5);
}

.np-rating-breakdown,
.np-rating-bars,
.np-review-breakdown {
    display: grid;
    gap: var(--np-rating-breakdown-gap, 0.625rem);
    width: 100%;
    min-width: 0;
}

.np-rating-breakdown-row,
.np-rating-bar-row,
.np-review-breakdown-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--np-spacing-sm, 0.75rem);
    width: 100%;
    min-width: 0;
}

.np-rating-breakdown-label,
.np-rating-bar-label,
.np-review-breakdown-label {
    display: inline-flex;
    align-items: center;
    gap: var(--np-spacing-2xs, 0.25rem);
    min-width: var(--np-rating-breakdown-label-width, 3rem);
    color: var(--np-color-text-muted, #64748b);
    font-family: var(--np-font-heading, Tahoma, Arial, sans-serif);
    font-size: var(--np-font-size-xs, 0.75rem);
    font-weight: var(--np-font-weight-bold, 700);
    line-height: 1;
    white-space: nowrap;
}

.np-rating-breakdown-track,
.np-rating-bar-track,
.np-review-breakdown-track {
    position: relative;
    display: block;
    width: 100%;
    height: var(--np-rating-breakdown-height, 0.5rem);
    overflow: hidden;
    background: var(--np-rating-breakdown-track-background, #f1f5f9);
    border-radius: var(--np-radius-pill, 999px);
}

.np-rating-breakdown-fill,
.np-rating-bar-fill,
.np-review-breakdown-fill {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: var(--np-rating-breakdown-value, 0%);
    max-width: 100%;
    background: var(--np-rating-color, #f59e0b);
    border-radius: inherit;
}

[dir="rtl"] .np-rating-breakdown-fill,
[dir="rtl"] .np-rating-bar-fill,
[dir="rtl"] .np-review-breakdown-fill,
.rtl .np-rating-breakdown-fill,
.rtl .np-rating-bar-fill,
.rtl .np-review-breakdown-fill {
    inset-inline-start: auto;
    inset-inline-end: 0;
}

.np-rating-breakdown-count,
.np-rating-bar-count,
.np-review-breakdown-count {
    min-width: var(--np-rating-breakdown-count-width, 2.5rem);
    color: var(--np-color-text-muted, #64748b);
    font-size: var(--np-font-size-xs, 0.75rem);
    font-weight: var(--np-font-weight-bold, 700);
    line-height: 1;
    text-align: end;
    white-space: nowrap;
}

.np-review-card-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--np-spacing-sm, 0.75rem);
    margin-block-end: var(--np-spacing-sm, 0.75rem);
}

.np-review-card-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding-inline: 0.5rem;
    background: var(--np-rating-color, #f59e0b);
    border-radius: var(--np-radius-lg, 1rem);
    color: var(--np-color-white, #ffffff);
    font-family: var(--np-font-heading, Tahoma, Arial, sans-serif);
    font-size: var(--np-font-size-sm, 0.875rem);
    font-weight: var(--np-font-weight-black, 900);
    line-height: 1;
}

.np-score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--np-spacing-xs, 0.5rem);
    min-height: var(--np-score-badge-height, 2.25rem);
    padding-inline: var(--np-score-badge-padding-x, 0.875rem);
    background: var(--np-score-badge-background, #fef3c7);
    border: var(--np-border-width, 1px) solid var(--np-score-badge-border-color, rgba(245, 158, 11, 0.22));
    border-radius: var(--np-radius-pill, 999px);
    color: var(--np-score-badge-color, #d97706);
    font-family: var(--np-font-heading, Tahoma, Arial, sans-serif);
    font-size: var(--np-font-size-sm, 0.875rem);
    font-weight: var(--np-font-weight-black, 900);
    line-height: 1;
    white-space: nowrap;
}

.np-score-badge.is-primary {
    background: var(--np-color-primary-soft, #eef2ff);
    border-color: var(--np-color-primary-subtle, #e0e7ff);
    color: var(--np-color-primary, #4f46e5);
}

.np-score-badge.is-success {
    background: var(--np-color-success-soft, #dcfce7);
    border-color: rgba(var(--np-color-success-rgb), 0.22);
    color: var(--np-color-success, #16a34a);
}

.np-score-badge.is-danger {
    background: var(--np-color-danger-soft, #fee2e2);
    border-color: rgba(var(--np-color-danger-rgb), 0.22);
    color: var(--np-color-danger, #dc2626);
}

.np-score-badge.is-info {
    background: var(--np-color-info-soft, #dbeafe);
    border-color: rgba(var(--np-color-info-rgb), 0.22);
    color: var(--np-color-info, #2563eb);
}

.woocommerce .star-rating,
.woocommerce-page .star-rating,
.woocommerce ul.products li.product .star-rating,
.woocommerce div.product .woocommerce-product-rating .star-rating {
    position: relative;
    display: inline-block;
    float: none;
    width: 5.4em;
    height: 1.1em;
    overflow: hidden;
    color: var(--np-rating-empty-color, #e2e8f0);
    font-family: var(--np-rating-font-family, Arial, sans-serif);
    font-size: var(--np-woocommerce-rating-size, 0.875rem);
    line-height: 1;
    letter-spacing: 0.08em;
}

.woocommerce .star-rating::before,
.woocommerce-page .star-rating::before,
.woocommerce ul.products li.product .star-rating::before,
.woocommerce div.product .woocommerce-product-rating .star-rating::before {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    color: var(--np-rating-empty-color, #e2e8f0);
    content: "★★★★★";
}

.woocommerce .star-rating span,
.woocommerce-page .star-rating span,
.woocommerce ul.products li.product .star-rating span,
.woocommerce div.product .woocommerce-product-rating .star-rating span {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    height: 100%;
    overflow: hidden;
    color: var(--np-rating-color, #f59e0b);
    padding-top: 1.5em;
}

.woocommerce .star-rating span::before,
.woocommerce-page .star-rating span::before,
.woocommerce ul.products li.product .star-rating span::before,
.woocommerce div.product .woocommerce-product-rating .star-rating span::before {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    color: var(--np-rating-color, #f59e0b);
    content: "★★★★★";
}

[dir="rtl"] .woocommerce .star-rating::before,
[dir="rtl"] .woocommerce-page .star-rating::before,
[dir="rtl"] .woocommerce ul.products li.product .star-rating::before,
[dir="rtl"] .woocommerce div.product .woocommerce-product-rating .star-rating::before,
.rtl .woocommerce .star-rating::before,
.rtl .woocommerce-page .star-rating::before,
.rtl .woocommerce ul.products li.product .star-rating::before,
.rtl .woocommerce div.product .woocommerce-product-rating .star-rating::before,
[dir="rtl"] .woocommerce .star-rating span,
[dir="rtl"] .woocommerce-page .star-rating span,
[dir="rtl"] .woocommerce ul.products li.product .star-rating span,
[dir="rtl"] .woocommerce div.product .woocommerce-product-rating .star-rating span,
.rtl .woocommerce .star-rating span,
.rtl .woocommerce-page .star-rating span,
.rtl .woocommerce ul.products li.product .star-rating span,
.rtl .woocommerce div.product .woocommerce-product-rating .star-rating span,
[dir="rtl"] .woocommerce .star-rating span::before,
[dir="rtl"] .woocommerce-page .star-rating span::before,
[dir="rtl"] .woocommerce ul.products li.product .star-rating span::before,
[dir="rtl"] .woocommerce div.product .woocommerce-product-rating .star-rating span::before,
.rtl .woocommerce .star-rating span::before,
.rtl .woocommerce-page .star-rating span::before,
.rtl .woocommerce ul.products li.product .star-rating span::before,
.rtl .woocommerce div.product .woocommerce-product-rating .star-rating span::before {
    inset-inline-start: 0;
}

.woocommerce div.product .woocommerce-product-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--np-spacing-sm, 0.75rem);
    margin-block: var(--np-spacing-sm, 0.75rem);
}

.woocommerce div.product .woocommerce-product-rating::before,
.woocommerce div.product .woocommerce-product-rating::after {
    display: none;
}

.woocommerce-review-link,
.woocommerce .woocommerce-review-link,
.woocommerce-page .woocommerce-review-link {
    color: var(--np-color-text-muted, #64748b);
    font-size: var(--np-font-size-sm, 0.875rem);
    font-weight: var(--np-font-weight-medium, 500);
    line-height: var(--np-line-height-snug, 1.5);
    text-decoration: none;
}

.woocommerce-review-link:hover,
.woocommerce-review-link:focus,
.woocommerce .woocommerce-review-link:hover,
.woocommerce .woocommerce-review-link:focus,
.woocommerce-page .woocommerce-review-link:hover,
.woocommerce-page .woocommerce-review-link:focus {
    color: var(--np-color-primary, #4f46e5);
    text-decoration: none;
}

.woocommerce p.stars,
.woocommerce-page p.stars,
.woocommerce #review_form #respond p.stars {
    display: inline-flex;
    align-items: center;
    gap: var(--np-rating-star-gap, 0.125rem);
    margin: 0;
    direction: ltr;
    color: var(--np-rating-empty-color, #e2e8f0);
    font-size: var(--np-rating-input-size, 1.5rem);
    line-height: 1;
}

.woocommerce p.stars a,
.woocommerce-page p.stars a,
.woocommerce #review_form #respond p.stars a {
    position: relative;
    display: inline-flex;
    width: 1em;
    height: 1em;
    margin: 0;
    color: var(--np-rating-empty-color, #e2e8f0);
    font-size: inherit;
    line-height: 1;
    text-indent: -999em;
    overflow: hidden;
    text-decoration: none;
}

.woocommerce p.stars a::before,
.woocommerce-page p.stars a::before,
.woocommerce #review_form #respond p.stars a::before {
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    font-family: var(--np-rating-font-family, Arial, sans-serif);
    text-indent: 0;
    content: "★";
}

.woocommerce p.stars:hover a,
.woocommerce-page p.stars:hover a,
.woocommerce #review_form #respond p.stars:hover a {
    color: var(--np-rating-color, #f59e0b);
}

.woocommerce p.stars a:hover ~ a,
.woocommerce-page p.stars a:hover ~ a,
.woocommerce #review_form #respond p.stars a:hover ~ a {
    color: var(--np-rating-empty-color, #e2e8f0);
}

.woocommerce p.stars.selected a.active,
.woocommerce p.stars.selected a:not(.active),
.woocommerce-page p.stars.selected a.active,
.woocommerce-page p.stars.selected a:not(.active),
.woocommerce #review_form #respond p.stars.selected a.active,
.woocommerce #review_form #respond p.stars.selected a:not(.active) {
    color: var(--np-rating-color, #f59e0b);
}

.woocommerce p.stars.selected a.active ~ a,
.woocommerce-page p.stars.selected a.active ~ a,
.woocommerce #review_form #respond p.stars.selected a.active ~ a {
    color: var(--np-rating-empty-color, #e2e8f0);
}

.woocommerce #reviews #comments ol.commentlist li .comment-text .star-rating,
.woocommerce-page #reviews #comments ol.commentlist li .comment-text .star-rating {
    margin-block-end: var(--np-spacing-xs, 0.5rem);
}

.woocommerce #reviews #comments ol.commentlist li .comment-text .meta,
.woocommerce-page #reviews #comments ol.commentlist li .comment-text .meta {
    color: var(--np-color-text-muted, #64748b);
    font-size: var(--np-font-size-sm, 0.875rem);
    line-height: var(--np-line-height-snug, 1.5);
}

.dokan-rating,
.dokan-store-rating,
.dokan-dashboard .dokan-rating {
    display: inline-flex;
    align-items: center;
    gap: var(--np-rating-gap, 0.5rem);
    color: var(--np-rating-color, #f59e0b);
    line-height: 1;
}

.dokan-rating .star-rating,
.dokan-store-rating .star-rating {
    position: relative;
    display: inline-block;
    width: 5.4em;
    height: 1.1em;
    overflow: hidden;
    color: var(--np-rating-empty-color, #e2e8f0);
    font-family: var(--np-rating-font-family, Arial, sans-serif);
    font-size: var(--np-woocommerce-rating-size, 0.875rem);
    line-height: 1;
    letter-spacing: 0.08em;
}

.dokan-rating .star-rating::before,
.dokan-store-rating .star-rating::before {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    color: var(--np-rating-empty-color, #e2e8f0);
    content: "★★★★★";
}

.dokan-rating .star-rating span,
.dokan-store-rating .star-rating span {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    height: 100%;
    overflow: hidden;
    color: var(--np-rating-color, #f59e0b);
    padding-top: 1.5em;
}

.dokan-rating .star-rating span::before,
.dokan-store-rating .star-rating span::before {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    color: var(--np-rating-color, #f59e0b);
    content: "★★★★★";
}

.elementor-star-rating {
    display: inline-flex;
    align-items: center;
    gap: var(--np-rating-star-gap, 0.125rem);
    color: var(--np-rating-empty-color, #e2e8f0);
    font-size: var(--np-rating-size, 1rem);
    line-height: 1;
}

.elementor-star-rating i {
    color: var(--np-rating-empty-color, #e2e8f0);
    font-size: inherit;
    line-height: 1;
}

.elementor-star-rating i:before {
    color: currentColor;
}

.elementor-star-rating .elementor-star-full,
.elementor-star-rating .elementor-star-1,
.elementor-star-rating .elementor-star-2,
.elementor-star-rating .elementor-star-3,
.elementor-star-rating .elementor-star-4,
.elementor-star-rating .elementor-star-5,
.elementor-star-rating .elementor-star-6,
.elementor-star-rating .elementor-star-7,
.elementor-star-rating .elementor-star-8,
.elementor-star-rating .elementor-star-9,
.elementor-star-rating .elementor-star-10 {
    color: var(--np-rating-color, #f59e0b);
}

.np-section-dark .np-rating-value,
.np-section-dark .np-rating-summary-number,
.np-section-dark .np-rating-summary-score,
.np-section-dark .np-rating-breakdown-label,
.np-section-dark .np-rating-bar-label,
.np-section-dark .np-review-breakdown-label,
.np-section-dark .np-review-card-score,
.np-section-dark .np-cart-rating-value,
.np-layout-dark .np-rating-value,
.np-layout-dark .np-rating-summary-number,
.np-layout-dark .np-rating-summary-score,
.np-layout-dark .np-rating-breakdown-label,
.np-layout-dark .np-rating-bar-label,
.np-layout-dark .np-review-breakdown-label,
.np-layout-dark .np-review-card-score,
.np-layout-dark .np-cart-rating-value {
    color: var(--np-color-white, #ffffff);
}

.np-section-dark .np-rating-count,
.np-section-dark .np-rating-label,
.np-section-dark .np-rating-meta,
.np-section-dark .np-review-rating-count,
.np-section-dark .np-product-rating-count,
.np-section-dark .np-score-rating-label,
.np-section-dark .np-rating-summary-label,
.np-section-dark .np-rating-breakdown-count,
.np-section-dark .np-rating-bar-count,
.np-section-dark .np-review-breakdown-count,
.np-layout-dark .np-rating-count,
.np-layout-dark .np-rating-label,
.np-layout-dark .np-rating-meta,
.np-layout-dark .np-review-rating-count,
.np-layout-dark .np-product-rating-count,
.np-layout-dark .np-score-rating-label,
.np-layout-dark .np-rating-summary-label,
.np-layout-dark .np-rating-breakdown-count,
.np-layout-dark .np-rating-bar-count,
.np-layout-dark .np-review-breakdown-count {
    color: rgba(255, 255, 255, 0.68);
}

.np-section-dark .np-rating-summary,
.np-layout-dark .np-rating-summary {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.78);
    box-shadow: none;
}

.np-section-dark .np-rating-breakdown-track,
.np-section-dark .np-rating-bar-track,
.np-section-dark .np-review-breakdown-track,
.np-layout-dark .np-rating-breakdown-track,
.np-layout-dark .np-rating-bar-track,
.np-layout-dark .np-review-breakdown-track {
    background: rgba(255, 255, 255, 0.12);
}

.np-section-dark .np-rating-stars,
.np-section-dark .np-stars-list,
.np-section-dark .np-star-rating-stars,
.np-section-dark .np-review-rating-stars,
.np-section-dark .np-product-rating-stars,
.np-section-dark .np-score-rating-stars,
.np-layout-dark .np-rating-stars,
.np-layout-dark .np-stars-list,
.np-layout-dark .np-star-rating-stars,
.np-layout-dark .np-review-rating-stars,
.np-layout-dark .np-product-rating-stars,
.np-layout-dark .np-score-rating-stars {
    --np-rating-empty-color: rgba(255, 255, 255, 0.22);
}

@media (max-width: 782px) {
    .np-rating-summary {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: var(--np-rating-summary-gap-mobile, 1rem);
        padding: var(--np-rating-summary-padding-mobile, 1.25rem);
        border-radius: var(--np-radius-xl, 1.25rem);
        text-align: center;
    }

    .np-rating-summary-score {
        min-width: 0;
    }

    .np-rating-summary-number {
        font-size: var(--np-rating-summary-number-size-mobile, 2.5rem);
    }

    .np-rating-breakdown,
    .np-rating-bars,
    .np-review-breakdown {
        width: 100%;
    }

    .np-rating-breakdown-row,
    .np-rating-bar-row,
    .np-review-breakdown-row {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: var(--np-spacing-xs, 0.5rem);
    }

    .np-review-card-rating {
        gap: var(--np-spacing-xs, 0.5rem);
    }

    .woocommerce div.product .woocommerce-product-rating {
        gap: var(--np-spacing-xs, 0.5rem);
    }
}

@media (max-width: 480px) {
    .np-rating,
    .np-stars,
    .np-star-rating,
    .np-review-rating,
    .np-product-rating,
    .np-score-rating {
        gap: var(--np-rating-gap-small, 0.375rem);
    }

    .np-rating-stars,
    .np-stars-list,
    .np-star-rating-stars,
    .np-review-rating-stars,
    .np-product-rating-stars,
    .np-score-rating-stars {
        font-size: var(--np-rating-size-small, 0.875rem);
    }

    .np-rating-input,
    .np-stars-input,
    .np-review-rating-input {
        font-size: var(--np-rating-input-size-small, 1.25rem);
    }

    .np-rating-value,
    .np-rating-count,
    .np-rating-label,
    .np-rating-meta,
    .np-review-rating-count,
    .np-product-rating-count,
    .np-score-rating-label {
        font-size: var(--np-font-size-xs, 0.75rem);
    }

    .np-rating-summary {
        padding: var(--np-rating-summary-padding-small, 1rem);
        border-radius: var(--np-radius-lg, 1rem);
    }

    .np-rating-summary-number {
        font-size: var(--np-rating-summary-number-size-small, 2rem);
    }

    .np-rating-breakdown-row,
    .np-rating-bar-row,
    .np-review-breakdown-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .np-rating-breakdown-count,
    .np-rating-bar-count,
    .np-review-breakdown-count {
        grid-column: 2;
        text-align: start;
    }

    .woocommerce p.stars,
    .woocommerce-page p.stars,
    .woocommerce #review_form #respond p.stars {
        font-size: var(--np-rating-input-size-small, 1.25rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .np-rating-star,
    .np-rating-input label,
    .np-stars-input label,
    .np-review-rating-input label,
    .np-rating-breakdown-fill,
    .np-rating-bar-fill,
    .np-review-breakdown-fill {
        transition: none !important;
    }

    .np-rating-input label:hover,
    .np-stars-input label:hover,
    .np-review-rating-input label:hover {
        transform: none !important;
    }
}

@media print {
    .np-rating-summary,
    .np-score-badge,
    .np-review-card-score {
        background: #ffffff !important;
        border: 1px solid #000000 !important;
        color: #000000 !important;
        box-shadow: none !important;
    }

    .np-rating-stars,
    .np-stars-list,
    .np-star-rating-stars,
    .np-review-rating-stars,
    .np-product-rating-stars,
    .np-score-rating-stars,
    .woocommerce .star-rating,
    .woocommerce-page .star-rating,
    .dokan-rating .star-rating,
    .dokan-store-rating .star-rating {
        color: #000000 !important;
    }

    .np-rating-breakdown-track,
    .np-rating-bar-track,
    .np-review-breakdown-track {
        background: #ffffff !important;
        border: 1px solid #000000 !important;
    }

    .np-rating-breakdown-fill,
    .np-rating-bar-fill,
    .np-review-breakdown-fill {
        background: #000000 !important;
    }
}