
/* NUJIZ PREMIUM RATING V372 */

html body .hlg-rating-box.hlg-rating-box[data-tool-rating]{

    --nr-bg:#ffffff;
    --nr-text:#172033;
    --nr-muted:#475569;
    --nr-border:#dce3ed;
    --nr-star-bg:#fff8e7;
    --nr-star:#b77900;
    --nr-accent:#6d28d9;

    display:flex!important;
    flex-direction:column!important;

    align-items:center!important;
    justify-content:center!important;

    position:relative!important;
    float:none!important;

    width:calc(100% - 32px)!important;
    max-width:760px!important;
    min-width:0!important;

    height:auto!important;
    min-height:0!important;

    margin:36px auto 42px!important;
    padding:32px 24px!important;

    box-sizing:border-box!important;

    background:var(--nr-bg)!important;
    border:1px solid var(--nr-border)!important;
    border-radius:24px!important;

    box-shadow:0 12px 36px rgba(15,23,42,.07)!important;

    font-family:"Tajawal",Arial,sans-serif!important;
    text-align:center!important;

    color:var(--nr-text)!important;
    gap:14px!important;

    overflow:visible!important;
}

/* Dark mode */

html[data-theme="dark"] body
.hlg-rating-box.hlg-rating-box[data-tool-rating],

html body.dark
.hlg-rating-box.hlg-rating-box[data-tool-rating],

html body.dark-mode
.hlg-rating-box.hlg-rating-box[data-tool-rating]{

    --nr-bg:#171b25;
    --nr-text:#f8fafc;
    --nr-muted:#cbd5e1;
    --nr-border:#394253;
    --nr-star-bg:#302a21;
    --nr-star:#fbbf24;
    --nr-accent:#c4b5fd;
}

/* Decorative rating icon */

html body .hlg-rating-box.hlg-rating-box[data-tool-rating]::before{

    content:"★"!important;

    display:flex!important;
    align-items:center!important;
    justify-content:center!important;

    position:static!important;

    width:60px!important;
    height:60px!important;

    margin:0 auto 4px!important;

    background:#7c3aed20!important;
    color:var(--nr-accent)!important;
    -webkit-text-fill-color:var(--nr-accent)!important;

    border-radius:18px!important;

    font-size:34px!important;
    line-height:1!important;
}

/* Title */

html body .hlg-rating-box.hlg-rating-box
.hlg-rating-title{

    font-family:"Tajawal",Arial,sans-serif!important;

    font-size:30px!important;
    font-weight:800!important;
    line-height:1.55!important;

    color:var(--nr-text)!important;
    -webkit-text-fill-color:var(--nr-text)!important;

    text-align:center!important;
    margin:0!important;
    padding:0!important;

    opacity:1!important;
}

/* Description */

html body .hlg-rating-box.hlg-rating-box
.hlg-rating-subtitle{

    font-family:"Tajawal",Arial,sans-serif!important;

    font-size:22px!important;
    font-weight:500!important;
    line-height:1.8!important;

    color:var(--nr-muted)!important;
    -webkit-text-fill-color:var(--nr-muted)!important;

    text-align:center!important;
    margin:0!important;
    padding:0!important;

    opacity:1!important;
}

/* Star container */

html body .hlg-rating-box.hlg-rating-box
.hlg-rating-stars{

    display:flex!important;

    align-items:center!important;
    justify-content:center!important;

    flex-direction:row!important;
    flex-wrap:nowrap!important;

    gap:12px!important;

    width:100%!important;

    margin:12px auto!important;
    padding:0!important;
}

/* Star buttons */

html body .hlg-rating-box.hlg-rating-box
button.hlg-rating-star{

    display:inline-flex!important;

    align-items:center!important;
    justify-content:center!important;

    position:relative!important;
    float:none!important;

    width:64px!important;
    height:64px!important;

    min-width:0!important;
    max-width:64px!important;

    flex:0 1 64px!important;

    padding:0!important;
    margin:0!important;

    border:1px solid var(--nr-border)!important;
    border-radius:16px!important;

    background:var(--nr-star-bg)!important;

    font-family:Arial,sans-serif!important;
    font-size:42px!important;
    font-weight:400!important;
    line-height:1!important;

    color:var(--nr-star)!important;
    -webkit-text-fill-color:var(--nr-star)!important;

    text-shadow:none!important;
    box-shadow:none!important;

    cursor:pointer;
    opacity:1!important;

    transition:
        transform .16s ease,
        background-color .16s ease,
        border-color .16s ease;
}

/* Hover */

@media(hover:hover){

    html body .hlg-rating-box.hlg-rating-box
    button.hlg-rating-star:not(:disabled):hover{

        background:#fbbf24!important;
        color:#422006!important;
        -webkit-text-fill-color:#422006!important;

        border-color:#f59e0b!important;
        transform:translateY(-4px) scale(1.06);
    }
}

/* Preserve common existing selection states */

html body .hlg-rating-box.hlg-rating-box
button.hlg-rating-star:is(
    .active,
    .selected,
    .filled,
    .is-active,
    .is-selected,
    .on,
    [aria-pressed="true"]
){

    background:#fbbf24!important;
    border-color:#f59e0b!important;

    color:#422006!important;
    -webkit-text-fill-color:#422006!important;

    box-shadow:0 4px 14px #f59e0b30!important;
}

html body .hlg-rating-box.hlg-rating-box
button.hlg-rating-star:focus-visible{

    outline:3px solid var(--nr-accent)!important;
    outline-offset:4px!important;
}

html body .hlg-rating-box.hlg-rating-box
button.hlg-rating-star:disabled{

    cursor:default!important;
}

/* Rating summary */

html body .hlg-rating-box.hlg-rating-box
.hlg-rating-summary{

    display:flex!important;
    align-items:center!important;
    justify-content:center!important;

    flex-wrap:wrap!important;
    gap:8px!important;

    width:100%!important;

    padding:18px 0 0!important;
    margin:4px 0 0!important;

    border-top:1px solid var(--nr-border)!important;

    font-family:"Tajawal",Arial,sans-serif!important;

    font-size:20px!important;
    font-weight:600!important;
    line-height:1.7!important;

    text-align:center!important;
}

html body .hlg-rating-box.hlg-rating-box
.hlg-rating-summary span{

    color:var(--nr-muted)!important;
    -webkit-text-fill-color:var(--nr-muted)!important;

    font-size:20px!important;
    opacity:1!important;
}

html body .hlg-rating-box.hlg-rating-box
.hlg-rating-summary .hlg-rating-value{

    font-size:28px!important;
    font-weight:800!important;

    color:var(--nr-star)!important;
    -webkit-text-fill-color:var(--nr-star)!important;
}

/* Existing status messages */

html body .hlg-rating-box.hlg-rating-box
.hlg-rating-message{

    font-family:"Tajawal",Arial,sans-serif!important;

    font-size:20px!important;
    font-weight:700!important;
    line-height:1.8!important;

    text-align:center!important;
    overflow-wrap:anywhere!important;

    margin:0!important;
}

html body .hlg-rating-box.hlg-rating-box
.hlg-rating-message:empty{

    display:none!important;
}

/* Mobile */

@media(max-width:600px){

    html body .hlg-rating-box.hlg-rating-box[data-tool-rating]{

        width:calc(100% - 24px)!important;

        padding:24px 14px!important;
        margin:26px auto!important;

        border-radius:20px!important;
        gap:12px!important;
    }

    html body .hlg-rating-box.hlg-rating-box
    .hlg-rating-title{

        font-size:25px!important;
    }

    html body .hlg-rating-box.hlg-rating-box
    .hlg-rating-subtitle{

        font-size:20px!important;
    }

    html body .hlg-rating-box.hlg-rating-box
    .hlg-rating-stars{

        gap:7px!important;
    }

    html body .hlg-rating-box.hlg-rating-box
    button.hlg-rating-star{

        width:50px!important;
        height:52px!important;
        max-width:50px!important;

        flex:0 1 50px!important;

        font-size:34px!important;
        border-radius:12px!important;
    }

    html body .hlg-rating-box.hlg-rating-box
    .hlg-rating-summary span{

        font-size:18px!important;
    }
}

@media(prefers-reduced-motion:reduce){

    html body .hlg-rating-box.hlg-rating-box
    button.hlg-rating-star{

        transition:none!important;
        transform:none!important;
    }
}
