/* ═══════════════════════════════════════════════════════════════════════════
   VaperBG — Review Mission UX (single-product CusRev modal)
   Fixes CusRev floating labels + aligns copy with /cusrev/ aggregated form
   ═══════════════════════════════════════════════════════════════════════════ */

html body.single-product #reviews {
    --vg-rev-accent: #e11d48;
    --vg-rev-muted: #a1a1aa;
    --vg-rev-heading: #ffffff;
}

/* ── Back nav (not the CTA button) ───────────────────────────────────────── */
html body.single-product #reviews .cr-review-form-nav .cr-nav-left {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
}

html body.single-product #reviews .cr-review-form-nav .cr-nav-left span {
    color: var(--vg-rev-muted) !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
}

html body.single-product #reviews .cr-review-form-nav .cr-nav-left:hover span {
    color: #fda4af !important;
}

html body.single-product #reviews .cr-review-form-nav .cr-nav-left svg path {
    stroke: #a1a1aa !important;
}

html body.single-product #reviews .cr-review-form-nav .cr-nav-left:hover svg path {
    stroke: var(--vg-rev-accent) !important;
}

/* ── Block labels (override CusRev 12px absolute floating labels) ────────── */
html body.single-product #reviews .cr-review-form-comment,
html body.single-product #reviews .cr-review-form-name,
html body.single-product #reviews .cr-review-form-email {
    position: relative !important;
    overflow: visible !important;
    padding: 0 0 18px !important;
    margin: 0 auto 4px !important;
}

html body.single-product #reviews .cr-review-form-comment .cr-review-form-lbl,
html body.single-product #reviews .cr-review-form-name .cr-review-form-lbl,
html body.single-product #reviews .cr-review-form-email .cr-review-form-lbl {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: auto !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    background: transparent !important;
    color: var(--vg-rev-heading) !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    letter-spacing: 0.02em !important;
}

html body.single-product #reviews .cr-review-form-rating-label {
    color: var(--vg-rev-heading) !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    margin-bottom: 6px !important;
}

html body.single-product #reviews .cr-review-form-rating-label .required {
    color: var(--vg-rev-accent) !important;
}

html body.single-product #reviews .cr-review-form-rating-label::after {
    content: "Всяка звезда помага на стотици вейпъри — и ти вдигаш XP.";
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--vg-rev-muted);
    line-height: 1.45;
}

html body.single-product #reviews .cr-review-form-comment .cr-review-form-lbl::after {
    content: "Няколко реда от теб = огромна помощ за други. Гордей се с приноса си.";
    display: block;
    margin-top: 4px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--vg-rev-muted);
    line-height: 1.45;
}

html body.single-product #reviews .cr-review-form-comment .cr-review-form-comment-txt {
    margin-top: 8px !important;
    min-height: 72px !important;
    max-height: 240px !important;
    resize: none !important;
    overflow: hidden !important;
    overflow-y: hidden !important;
    line-height: 1.55 !important;
    padding: 12px 14px !important;
}

html body.single-product #reviews .cr-review-form-comment-txt.vg-rev-autogrow,
html body.single-product #reviews .cr-review-form-comment .cr-review-form-comment-txt.vg-rev-autogrow {
    min-height: 72px !important;
    max-height: 240px !important;
    resize: none !important;
    overflow: hidden !important;
}

html body.single-product #reviews .cr-review-form-comment-txt.vg-rev-autogrow.vg-rev-autogrow-scroll,
html body.single-product #reviews .cr-review-form-comment .cr-review-form-comment-txt.vg-rev-autogrow-scroll {
    overflow-y: auto !important;
    scrollbar-width: thin !important;
    scrollbar-color: #52525b transparent !important;
}

html body.single-product #reviews .cr-review-form-comment-txt::placeholder,
html body.single-product #reviews .cr-review-form-comment .cr-review-form-comment-txt::placeholder {
    color: #71717a !important;
    opacity: 1 !important;
    line-height: 1.55 !important;
}

html body.single-product #reviews .cr-review-form-name .cr-review-form-txt,
html body.single-product #reviews .cr-review-form-email .cr-review-form-txt {
    margin-top: 4px !important;
}

html body.single-product #reviews .cr-review-form-ne {
    margin-top: 4px !important;
    margin-bottom: 8px !important;
}

html body.single-product #reviews .cr-review-form-wrap.vg-rev-logged-in .cr-review-form-name {
    width: 100% !important;
    max-width: 100% !important;
}

html body.single-product #reviews .cr-review-form-wrap.vg-rev-logged-in .cr-review-form-email {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

html body.single-product #reviews .cr-review-form-wrap .cr-review-form-buttons .cr-review-form-submit,
html body.single-product #reviews .cr-review-form-wrap .cr-review-form-buttons .cr-review-form-cancel {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 5 !important;
}

html body.single-product #reviews .cr-review-form-wrap .cr-review-form-terms {
    display: block !important;
    margin: 12px 0 8px !important;
    padding: 10px 12px !important;
    border: 1px solid #3f3f46 !important;
    border-radius: 10px !important;
    background: #0f0f12 !important;
}

html body.single-product #reviews .cr-review-form-wrap .cr-review-form-terms.cr-review-form-error {
    border-color: rgba(248, 113, 113, 0.65) !important;
}

/* ── Star rating panel (match /cusrev/ aggregated form) ─────────────────── */
html body.single-product #reviews .cr-review-form-rating {
    margin: 8px auto 22px !important;
    overflow: visible !important;
    max-width: 500px !important;
}

html body.single-product #reviews .cr-review-form-rating-cont {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px 6px !important;
    margin-top: 10px !important;
    padding: 12px 10px 10px !important;
    border-radius: 12px !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.22) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    position: relative !important;
    overflow: visible !important;
}

html body.single-product #reviews .cr-review-form-rating-cont::before {
    content: "⚡" !important;
    flex: 0 0 38px !important;
    width: 38px !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: rgba(113, 113, 122, 0.2) !important;
    border: 1px solid rgba(161, 161, 170, 0.55) !important;
    font-size: 1.25rem !important;
    line-height: 1 !important;
    box-shadow: 0 0 14px rgba(161, 161, 170, 0.2) !important;
}

html body.single-product #reviews .cr-review-form-rating-cont::after {
    content: "Избери от ⚡ (слабо) до 🔥 (легенда)" !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    margin-top: 8px !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    color: #71717a !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    text-align: center !important;
    line-height: 1.4 !important;
}

html body.single-product #reviews .cr-review-form-rating-inner {
    cursor: pointer !important;
    flex: 0 0 32px !important;
    transition: transform 0.18s ease !important;
}

html body.single-product #reviews .cr-review-form-rating-inner svg {
    width: 30px !important;
    height: 28px !important;
    transition: fill 0.18s ease, filter 0.18s ease, transform 0.18s ease !important;
}

html body.single-product #reviews .cr-review-form-rating-inner svg path {
    fill: #3f3f46 !important;
}

html body.single-product #reviews .cr-review-form-rating-inner.vg-star-lit svg path,
html body.single-product #reviews .cr-review-form-rating-inner.cr-review-form-rating-actv svg path {
    fill: #fb7185 !important;
}

html body.single-product #reviews .cr-review-form-rating-inner.vg-star-lit svg,
html body.single-product #reviews .cr-review-form-rating-inner.cr-review-form-rating-actv svg {
    filter: drop-shadow(0 0 10px rgba(225, 29, 72, 0.55)) !important;
    transform: scale(1.06) !important;
}

html body.single-product #reviews .cr-review-form-rating-inner.vg-star-selected svg path {
    fill: #e11d48 !important;
}

html body.single-product #reviews .cr-review-form-rating-inner.vg-star-selected svg {
    filter: drop-shadow(0 0 14px rgba(225, 29, 72, 0.75)) !important;
    transform: scale(1.1) !important;
}

html body.single-product #reviews .cr-review-form-rating-nbr {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-left: 4px !important;
    flex: 0 0 auto !important;
    color: var(--vg-rev-muted) !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    order: 0 !important;
}

html body.single-product #reviews .cr-review-form-rating-nbr::before {
    content: "🔥" !important;
    flex: 0 0 38px !important;
    width: 38px !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: rgba(225, 29, 72, 0.16) !important;
    border: 1px solid rgba(225, 29, 72, 0.65) !important;
    font-size: 1.25rem !important;
    line-height: 1 !important;
    box-shadow: 0 0 16px rgba(225, 29, 72, 0.45) !important;
}

/* ── Media upload block ─────────────────────────────────────────────────── */
html body.single-product #reviews .cr-form-item-media {
    margin-top: 12px !important;
    padding-top: 4px !important;
}

html body.single-product #reviews .cr-form-item-media::before {
    content: "Покажи арсенала в действие 📸";
    display: block;
    margin-bottom: 6px;
    color: var(--vg-rev-heading);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
}

html body.single-product #reviews .cr-form-item-media::after {
    content: "Снимка или видео карат отзива ти да изглежда по-реален и полезен.";
    display: block;
    margin-bottom: 10px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--vg-rev-muted);
    line-height: 1.45;
}

/* ── Modal shell + CTA ───────────────────────────────────────────────────── */
html body.single-product #reviews .cr-review-form-wrap {
    border-radius: 16px !important;
    overflow: visible !important;
}

html body.single-product #reviews .cr-review-form-comment-txt::placeholder {
    color: #71717a !important;
    opacity: 1 !important;
}

html body.single-product #reviews .cr-ajax-reviews-add-review,
html body.single-product #reviews .cr-summaryBox-wrap .cr-add-review-wrap .cr-all-reviews-add-review,
html body.single-product #reviews .cr-all-reviews-new-review-button {
    letter-spacing: 0.05em !important;
    box-shadow: 0 8px 28px rgba(225, 29, 72, 0.38) !important;
}

@media (max-width: 767px) {
    html body.single-product #reviews .cr-review-form-nav .cr-nav-left span {
        font-size: 0.82rem !important;
        white-space: normal !important;
    }

    html body.single-product #reviews .cr-ajax-reviews-add-review,
    html body.single-product #reviews .cr-summaryBox-wrap .cr-add-review-wrap .cr-all-reviews-add-review {
        font-size: 0.82rem !important;
        padding: 0 14px !important;
    }
}

/* Helpful / not-helpful votes + onsite validation errors */
html body.single-product #reviews .cr-voting-cont-uni {
    position: relative !important;
    z-index: 2 !important;
}

html body.single-product #reviews .cr-voting-cont-uni .cr-voting-a {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 3 !important;
}

html body.single-product #reviews .cr-voting-cont-uni .cr-voting-upvote-count,
html body.single-product #reviews .cr-voting-cont-uni .cr-voting-downvote-count {
    pointer-events: none !important;
}

html body.single-product #reviews .cr-review-form-wrap.cr-review-form-res .cr-review-form-result {
    color: #f4f4f5 !important;
    margin: 12px 0 !important;
}

html body.single-product #reviews .cr-review-form-wrap .cr-review-form-field-error {
    display: none;
}

html body.single-product #reviews .cr-review-form-wrap .cr-review-form-error .cr-review-form-field-error {
    display: block !important;
    color: #fca5a5 !important;
    font-size: 0.82rem !important;
    margin-top: 6px !important;
}
