/* =========================================================
   REVIEWS - stars, review cards, summary, form, reviews page,
   product page tab and home page slider
   ========================================================= */

/* ---------- Stars ---------- */
.np-stars { display: inline-flex; gap: 2px; color: #f5a623; font-size: 14px; line-height: 1; vertical-align: middle; }
.np-stars .np-star-off { color: #d9dbe3; }
.np-stars-lg { font-size: 20px; gap: 3px; }

/* ---------- Review card ---------- */
.np-review {
    position: relative;
    background: #fff;
    border: 1px solid var(--np-border, #eceef4);
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 16px;
}
.np-review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.np-review-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.np-review-initial {
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--np-pink, #e7287c), var(--np-blue, #2873ba));
    color: #fff; font-weight: 700; font-size: 17px;
}
.np-review-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.np-review-name { font-weight: 700; color: var(--header, #09052f); font-size: 15px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.np-review-name:hover { color: var(--np-pink, #e7287c); }
.np-review-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: #8a8fa3; }
.np-review-verified { color: #1a9f5b; font-weight: 600; }
.np-review-source { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #f4f5f9; color: #4285f4; font-size: 14px; flex-shrink: 0; }
.np-review-title { font-size: 16px; margin: 10px 0 4px; }
.np-review-body { margin: 8px 0 0; color: var(--np-text, #555b6d); font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.np-review-body.is-clamped { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.np-review-more { border: 0; background: none; padding: 4px 0 0; color: var(--np-pink, #e7287c); font-size: 13px; font-weight: 600; }
.np-review-about { margin: 10px 0 0; font-size: 13px; color: #8a8fa3; }
.np-review-reply { margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--np-pink, #e7287c); background: #fdf3f8; border-radius: 0 10px 10px 0; font-size: 14px; }
.np-review-reply strong { display: block; margin-bottom: 4px; color: var(--header, #09052f); font-size: 13px; }
.np-review-reply p { margin: 0; color: var(--np-text, #555b6d); line-height: 1.6; }

/* ---------- Summary ---------- */
.np-rsum-score { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 16px; }
.np-rsum-score strong { font-size: 44px; line-height: 1; color: var(--header, #09052f); }
.np-rsum-score > span:not(.np-stars) { font-size: 13px; color: #8a8fa3; }
.np-rsum-bars { list-style: none; padding: 0; margin: 0; }
.np-rsum-bars li { margin-bottom: 6px; }
.np-rsum-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--np-text, #555b6d); text-decoration: none; border-radius: 6px; padding: 2px 4px; }
a.np-rsum-row:hover, .np-rsum-bars li.is-active .np-rsum-row { background: #fdf3f8; color: var(--header, #09052f); }
.np-rsum-n { width: 34px; white-space: nowrap; }
.np-rsum-n i { color: #f5a623; font-size: 11px; }
.np-rsum-bar { flex: 1; height: 8px; border-radius: 4px; background: #eef0f5; overflow: hidden; }
.np-rsum-bar span { display: block; height: 100%; border-radius: 4px; background: #f5a623; }
.np-rsum-c { width: 32px; text-align: right; color: #8a8fa3; }

/* ---------- Form ---------- */
.np-rform label, .np-rform legend { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; color: var(--header, #09052f); }
.np-rform label small { font-weight: 400; color: #8a8fa3; }
.np-rform-req { color: var(--np-pink, #e7287c); }
.np-rform-hint { display: block; margin-top: 4px; font-size: 12px; color: #8a8fa3; }
.np-rform-stars { margin: 0 0 18px; padding: 0; border: 0; }
.np-rform-stars legend { float: none; width: auto; }
.np-rate { display: inline-flex; flex-direction: row-reverse; gap: 4px; vertical-align: middle; }
.np-rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.np-rate label { margin: 0; font-size: 30px; line-height: 1; color: #d9dbe3; cursor: pointer; transition: transform .15s, color .15s; }
.np-rate label:hover, .np-rate label:hover ~ label, .np-rate input:checked ~ label { color: #f5a623; }
.np-rate label:hover { transform: scale(1.1); }
.np-rate input:focus-visible + label { outline: 2px solid var(--np-blue, #2873ba); outline-offset: 2px; border-radius: 4px; }
.np-rate-text { margin-left: 10px; font-size: 14px; color: #8a8fa3; vertical-align: middle; }
.np-rform .np-q-err { display: none; margin-top: 5px; color: #dc3545; font-size: 13px; }
.np-rform .np-q-err.show { display: block; }
.np-rform .np-q-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.np-rform-alert { margin-top: 16px; padding: 10px 14px; border-radius: 8px; background: #fdecee; color: #b02a37; font-size: 14px; }
.np-rform-alert.is-ok { background: #e8f7ef; color: #146c43; }
.np-rform [hidden] { display: none !important; }
.np-review [hidden], .np-pd-rform[hidden] { display: none !important; }
.np-rform .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Reviews page ---------- */
.np-reviews-page { background: var(--np-soft, #f8f9fc); }
.np-rv-card { display: block; background: #fff; border: 1px solid var(--np-border, #eceef4); border-radius: 16px; padding: 22px 24px; margin-bottom: 20px; }
.np-rv-side { position: sticky; top: 120px; }
.np-rv-card h2.h5 { margin-bottom: 16px; }
.np-rv-clear { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--np-pink, #e7287c); }
.np-rv-google { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.np-rv-google > i { font-size: 28px; color: #4285f4; }
.np-rv-google strong { font-size: 22px; margin-right: 6px; color: var(--header, #09052f); }
.np-rv-google small { display: block; margin-top: 4px; color: #8a8fa3; font-size: 12px; }
.np-rv-google:hover small { color: var(--np-pink, #e7287c); }
.np-rv-write { display: block; }
.np-rv-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.np-rv-list-head span { color: #8a8fa3; font-size: 14px; }
.np-rv-empty { text-align: center; color: #8a8fa3; padding: 40px 20px; }
.np-rv-empty i { font-size: 34px; margin-bottom: 10px; }
.np-rv-pages { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 30px; }
.np-rv-pages a { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--np-border, #eceef4); color: var(--header, #09052f); font-weight: 600; text-decoration: none; }
.np-rv-pages a.is-active, .np-rv-pages a:hover { background: var(--np-pink, #e7287c); border-color: var(--np-pink, #e7287c); color: #fff; }
.np-rv-form { margin-top: 10px; }
.np-rv-form > p { color: var(--np-text, #555b6d); margin-bottom: 18px; }

/* ---------- Product page ---------- */
.np-pd-rating { display: inline-flex; align-items: center; gap: 8px; margin: -6px 0 14px; font-size: 14px; color: var(--np-text, #555b6d); text-decoration: none; }
.np-pd-rating strong { color: var(--header, #09052f); }
.np-pd-rating span { text-decoration: underline; text-underline-offset: 3px; }
.np-pd-rating:hover span { color: var(--np-pink, #e7287c); }
.np-pd-rform { background: #fafbfd; border: 1px solid var(--np-border, #eceef4); border-radius: 16px; padding: 22px 24px; margin-bottom: 20px; }
.np-pd-rform h4 { font-size: 18px; margin-bottom: 16px; }
.np-pd-rempty { color: #8a8fa3; padding: 20px 0; }
.np-pd-rmore { border: 1px solid var(--np-border, #dfe2ea); background: #fff; border-radius: 10px; padding: 10px 20px; font-weight: 600; font-size: 14px; color: var(--header, #09052f); }
.np-pd-rmore:hover { border-color: var(--np-pink, #e7287c); color: var(--np-pink, #e7287c); }
.np-pd-rmore[disabled] { opacity: .6; }

/* ---------- Home page slider ---------- */
.np-hrev-section { background: linear-gradient(180deg, #fff 0%, var(--np-soft, #f8f9fc) 100%); }
.np-hrev-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.np-hrev-head .section-title { margin-bottom: 0; max-width: 640px; }
.np-hrev-sub { margin: 10px 0 0; color: var(--np-text, #555b6d); }
.np-hrev-side { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.np-hrev-google { display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px; background: #fff; border: 1px solid var(--np-border, #eceef4); border-radius: 14px; text-decoration: none; color: inherit; }
.np-hrev-google > i { font-size: 24px; color: #4285f4; }
.np-hrev-google strong { font-size: 18px; margin-right: 4px; color: var(--header, #09052f); }
.np-hrev-google small { display: block; font-size: 12px; color: #8a8fa3; }
.np-hrev-slider { padding-bottom: 6px; }
.np-hrev-slider .swiper-slide { height: auto; }
.np-hrev-slider .np-review { height: 100%; margin-bottom: 0; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(9, 5, 47, .05); }
.np-hrev-slider .np-review-about { margin-top: auto; padding-top: 12px; }
.np-hrev-foot { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; margin-top: 34px; }
.np-hrev-write { font-weight: 600; color: var(--header, #09052f); }
.np-hrev-write:hover { color: var(--np-pink, #e7287c); }

@media (max-width: 991px) {
    .np-rv-side { position: static; }
}
@media (max-width: 575px) {
    .np-review { padding: 16px; }
    .np-rv-card, .np-pd-rform { padding: 18px 16px; }
    .np-hrev-head { align-items: flex-start; }
}
