﻿/**
 * RW - Reviews : front styles.
 * Consumes Hummingbird/Bootstrap variables, falling back to La Good'as tokens.
 */
.rwr-block, .rwr-home, .rwr-order, .rwr-mini-rating, .rwr-header-rating, .rwr-account {
    --rwr-accent: var(--bs-primary, #3492f4);
    --rwr-ink: var(--bs-dark, #14110d);
    --rwr-muted: var(--bs-secondary-color, #8a8175);
    --rwr-line: var(--bs-border-color, #e8e1d3);
    --rwr-star: #f4b400;
    --rwr-star-empty: #d8cfbe;
}

/* ---- Stars ---- */
.rwr-stars { display: inline-flex; line-height: 1; white-space: nowrap; }
.rwr-star { color: var(--rwr-star-empty); font-size: 1em; }
.rwr-star.is-full { color: var(--rwr-star); }
.rwr-star.is-half {
    position: relative;
    color: var(--rwr-star-empty);
}
.rwr-star.is-half::before {
    content: "★";
    position: absolute;
    left: 0; top: 0;
    width: 50%;
    overflow: hidden;
    color: var(--rwr-star);
}

/* ---- Miniature & header ---- */
.rwr-mini-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; margin-top: 4px; }
.rwr-mini-count { color: #555; }

.rwr-header-link { color: var(--rwr-ink); text-decoration: none; font-size: 14px; }
.rwr-header-link:hover { text-decoration: underline; }
.rwr-header-count { color: #555; }
.rwr-header-link--empty { color: var(--rwr-accent); }

/* ---- Summary ---- */
.rwr-summary {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 16px 0 24px;
    border-bottom: 1px solid var(--rwr-line);
}
@media (max-width: 767.98px) { .rwr-summary { grid-template-columns: 1fr; } }

.rwr-summary__score { text-align: center; }
.rwr-summary__avg { font-size: 40px; font-weight: 700; color: var(--rwr-ink); }
.rwr-summary__out { color: #555; }
.rwr-summary__count { display: block; color: #555; font-size: 14px; margin-top: 4px; }

.rwr-summary__bars { display: flex; flex-direction: column; gap: 4px; }
.rwr-bar { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.rwr-bar__label { width: 28px; color: #555; }
.rwr-bar__track { flex: 1; height: 8px; background: var(--rwr-line); border-radius: 999px; overflow: hidden; }
.rwr-bar__fill { display: block; height: 100%; background: var(--rwr-star); }
.rwr-bar__nb { width: 24px; text-align: right; color: #555; }

/* ---- Form ---- */
.rwr-form { padding: 20px 0; border-bottom: 1px solid var(--rwr-line); }
.rwr-form__row { margin-bottom: 14px; }
.rwr-form__row--inline { display: flex; gap: 12px; flex-wrap: wrap; }
.rwr-form__row--inline .form-control { flex: 1; min-width: 180px; }
.rwr-form__label { display: block; font-weight: 600; margin-bottom: 4px; color: var(--rwr-ink); }
.rwr-form__criteria { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 24px; }
.rwr-form__actions { display: flex; align-items: center; gap: 16px; }
.rwr-form__msg.is-success { color: var(--bs-success, #2f7d4f); }
.rwr-form__msg.is-error { color: var(--bs-danger, #c64a3a); }

.rwr-star-input { display: inline-flex; gap: 4px; }
.rwr-star-btn {
    background: none; border: none; cursor: pointer; padding: 0 1px;
    font-size: 28px; line-height: 1;
    color: var(--rwr-star-empty, #d8cfbe);
    transition: color 0.1s ease, transform 0.1s ease;
}
.rwr-star-btn:hover,
.rwr-star-btn.is-on { color: var(--rwr-star, #f4b400); }
.rwr-star-btn:hover { transform: scale(1.15); }

/* ---- Review list ---- */
.rwr-review { padding: 18px 0; border-bottom: 1px solid var(--rwr-line); }
.rwr-review__head { display: flex; align-items: center; gap: 12px; }
.rwr-review__title { margin: 0; font-size: 16px; color: var(--rwr-ink); }
.rwr-review__meta { display: flex; gap: 12px; align-items: center; font-size: 13px; color: #555; margin: 6px 0; }
.rwr-review__verified {
    background: var(--rwr-accent); color: #fff; border-radius: 999px;
    padding: 1px 8px; font-size: 11px; font-weight: 600;
}
.rwr-review__content { margin: 6px 0; color: var(--rwr-ink); }
.rwr-review__criteria { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.rwr-review__criteria li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #555; }

.rwr-review__reply {
    margin-top: 12px; padding: 12px 16px;
    background: rgba(192, 132, 40, 0.06);
    border-left: 3px solid var(--rwr-accent);
    border-radius: 0 8px 8px 0;
}
.rwr-review__reply-label { display: block; font-weight: 600; font-size: 13px; color: var(--rwr-accent); margin-bottom: 4px; }
.rwr-review__reply p { margin: 0; font-size: 14px; color: var(--rwr-ink); }

.rwr-review__helpful { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; }
.rwr-review__helpful-q { color: #555; }
.rwr-helpful-btn {
    background: none; border: 1px solid var(--rwr-line); border-radius: 999px;
    padding: 2px 10px; cursor: pointer; font-size: 13px; color: var(--rwr-ink);
    transition: border-color 0.15s ease;
}
.rwr-helpful-btn:hover { border-color: var(--rwr-accent); }
.rwr-review__helpful-msg { color: var(--bs-success, #2f7d4f); font-size: 12px; }

/* ---- Account page ---- */
.rwr-account__hint { color: #555; font-size: 14px; }
.rwr-file-name { font-size: 13px; color: var(--rwr-muted, #8a8175); margin-top: 3px; }

.rwr-todo__name:hover { text-decoration: underline; }

.rwr-account__orders { list-style: none; padding: 0; margin: 0; }
.rwr-account__order { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--rwr-line); }
.rwr-account__order-ref { font-weight: 600; color: var(--rwr-ink); }
.rwr-account__order-date { color: #555; font-size: 14px; }
.rwr-account__order-status { font-size: 12px; color: #555; }
.rwr-account__order-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.rwr-resend-msg.is-success { color: var(--bs-success, #2f7d4f); font-size: 13px; }
.rwr-resend-msg.is-error { color: var(--bs-danger, #c64a3a); font-size: 13px; }

/* ---- Photos ---- */
.rwr-review__photos { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.rwr-review__photo {
    display: block; width: 84px; height: 84px; border-radius: 8px; overflow: hidden;
    border: 1px solid var(--rwr-line); cursor: zoom-in;
}
.rwr-review__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s ease; }
.rwr-review__photo:hover img { transform: scale(1.06); }

.rwr-form__photos { display: flex; flex-direction: column; gap: 6px; }
.rwr-form__hint { color: #555; font-size: 12px; }
.rwr-form__previews { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rwr-form__preview { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid var(--rwr-line); }

/* File input: hide the native control, show a styled label button */
.rwr-form__photos input[type="file"] {
    width: 0.1px; height: 0.1px; opacity: 0; overflow: hidden; position: absolute; z-index: -1;
}
.rwr-form__photos input[type="file"] + small::before { display: none; }
.rwr-form__photos .rwr-file-label {
    display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
    font-size: 14px; color: var(--rwr-ink, #14110d);
    border: 1px dashed var(--rwr-line, #e8e1d3); border-radius: 8px;
    padding: 7px 14px; transition: border-color 0.15s ease, color 0.15s ease;
}
.rwr-form__photos .rwr-file-label:hover { border-color: var(--rwr-accent, #c08428); color: var(--rwr-accent, #c08428); }

/* ---- Toolbar (sort + rating filter) ---- */
.rwr-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 12px; margin: 16px 0 8px; padding-bottom: 12px; border-bottom: 1px solid var(--rwr-line);
}
.rwr-toolbar__filters { display: flex; flex-wrap: wrap; gap: 6px; }
.rwr-chip {
    background: none; border: 1px solid var(--rwr-line); border-radius: 999px;
    padding: 3px 12px; cursor: pointer; font-size: 14px; color: var(--rwr-ink);
    transition: all 0.15s ease;
}
.rwr-chip:hover { border-color: var(--rwr-accent); }
.rwr-chip.is-active { background: var(--rwr-accent); border-color: var(--rwr-accent); color: #fff; }
.rwr-toolbar__sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #555; }
.rwr-toolbar__sort select { width: auto; }
.rwr-empty-filter { color: #555; padding: 16px 0; }

/* ---- Lightbox ---- */
.rwr-lightbox {
    position: fixed; inset: 0; z-index: 1080; display: flex; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, 0.82); padding: 32px; cursor: zoom-out;
}
.rwr-lightbox__img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.rwr-lightbox__close {
    position: absolute; top: 16px; right: 20px; background: none; border: 0; color: #fff;
    font-size: 40px; line-height: 1; cursor: pointer;
}

/* ---- Review submission page (order + account) ---- */
.rwr-rate { max-width: 760px; margin: 0 auto; }
.rwr-rate__hero { text-align: center; padding: 24px 16px 32px; }
.rwr-rate__hero-icon { color: var(--rwr-accent); display: inline-flex; }
.rwr-rate__hero-title { margin: 8px 0 6px; color: var(--rwr-ink); }
.rwr-rate__hero-sub { color: #555; margin: 0; }
.rwr-rate__section { margin-bottom: 28px; }
.rwr-rate__section-title { font-size: 17px; margin: 0 0 14px; color: var(--rwr-ink); }
.rwr-rate__hint { color: #555; font-size: 14px; margin: 0 0 12px; }

.rwr-rate__card {
    border: 1px solid var(--rwr-line); border-radius: 14px; padding: 18px 20px;
    margin-bottom: 16px; background: var(--bs-body-bg, #fff); transition: box-shadow 0.2s ease;
}
.rwr-rate__card:hover { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06); }
.rwr-rate__card.is-done { opacity: 0.75; background: var(--rwr-soft, #faf7f1); }
.rwr-rate__card-head { display: flex; align-items: center; gap: 14px; }
.rwr-rate__thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--rwr-line); }
.rwr-rate__card-title { display: flex; flex-direction: column; gap: 4px; }
.rwr-rate__name { font-weight: 600; color: var(--rwr-ink); }
.rwr-rate__badge {
    align-self: flex-start; font-size: 12px; padding: 2px 10px; border-radius: 999px;
    background: rgba(47, 125, 79, 0.12); color: #2f7d4f;
}
.rwr-rate__fields { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.rwr-rate__criteria { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; }
.rwr-rate__rating-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rwr-rate__section--global {
    border: 1px solid var(--rwr-line); border-radius: 14px; padding: 20px; background: var(--rwr-soft, #faf7f1);
}
.rwr-rate__locked { color: #555; }
.rwr-rate__footer {
    position: sticky; bottom: 0; display: flex; align-items: center; justify-content: flex-end; gap: 16px;
    padding: 16px 0; background: linear-gradient(to top, var(--bs-body-bg, #fff) 70%, transparent);
}

/* ---- Inline variant (order-detail hook) ---- */
.rwr-rate--inline { max-width: none; margin: 0; }
.rwr-rate__inline-title {
    display: flex; align-items: center; gap: 8px; color: var(--rwr-ink);
    font-size: 18px; margin: 0 0 16px;
}
.rwr-rate__inline-title svg { color: var(--rwr-accent); }
.rwr-rate--inline .rwr-rate__footer { position: static; background: none; }

/* ---- Thank-you page ---- */
.rwr-thanks { max-width: 560px; margin: 32px auto; text-align: center; }
.rwr-thanks__icon {
    width: 88px; height: 88px; margin: 0 auto 16px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(47, 125, 79, 0.12); color: #2f7d4f;
}
.rwr-thanks__title { color: var(--rwr-ink); margin-bottom: 8px; }
.rwr-thanks__text { color: #555; }
.rwr-thanks__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

.rwr-voucher {
    margin: 24px auto; padding: 24px; border-radius: 16px;
    border: 2px dashed var(--rwr-accent); background: var(--rwr-soft, #faf7f1);
}
.rwr-voucher__label { margin: 0 0 12px; color: var(--rwr-ink); font-weight: 600; }
.rwr-voucher__code {
    display: inline-flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 700;
    letter-spacing: 0.05em; color: var(--rwr-accent); background: #fff; border: 1px solid var(--rwr-line);
    padding: 8px 8px 8px 16px; border-radius: 10px;
}
.rwr-voucher__copy {
    border: 0; background: var(--rwr-accent); color: #fff; border-radius: 7px;
    padding: 6px 13px; font-size: 13px; cursor: pointer;
}
.rwr-voucher__value { margin: 12px 0 0; color: #555; font-size: 14px; }

/* ---- Account: published reviews ---- */
.rwr-account__myreviews { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.rwr-myreview {
    padding: 14px 18px;
    background: var(--bs-body-bg, #fff);
    border: 1px solid var(--rwr-line);
    border-radius: 12px;
}
.rwr-myreview__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}
.rwr-myreview__label {
    color: var(--rwr-ink);
    font-size: 14px;
    font-weight: 600;
}
.rwr-myreview__pending {
    padding: 2px 10px;
    color: #9a6516;
    font-size: 12px;
    background: rgba(192, 132, 40, 0.15);
    border-radius: 999px;
}
.rwr-myreview__content {
    margin: 8px 0 0;
    color: #555;
    font-size: 14px;
}
.rwr-myreview__date {
    margin-left: auto;
    color: #555;
    font-size: 13px;
}

.rwr-loadmore { text-align: center; margin-top: 20px; }
.rwr-empty, .rwr-note { color: #555; }

/* ---- Home carousel ---- */
.rwr-home { padding: 16px 0; overflow: hidden; }
.rwr-home__title { text-align: center; margin-bottom: 24px; color: var(--rwr-ink); }
.rwr-home__slide { height: auto; display: flex; padding: 16px 24px 32px; box-sizing: border-box; }
.rwr-home__swiper { overflow: visible; }
.rwr-card {
    display: flex; flex-direction: column; gap: 14px;
    background: #ffffff;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(20, 17, 13, 0.06);
    width: 100%;
}

.elementor-widget .swiper-slide > .rwr-card {
    padding: 26px 28px !important;
}
.rwr-card__head .rwr-stars { font-size: 14px; letter-spacing: 2px; }
.rwr-card__head .rwr-star.is-full, .rwr-card__head .rwr-star.is-half::before { color: var(--rwr-accent); }
.rwr-card__quote {
    margin: 0; flex: 1; color: var(--rwr-ink);
    font-size: 18px; line-height: 1.6; font-style: normal;
    border: 0; padding: 0; quotes: none;
}
.rwr-card__foot { display: flex; flex-direction: column; gap: 2px; }
.rwr-card__author { font-weight: 700; color: var(--rwr-ink); font-size: 14px; }
.rwr-card__meta { font-size: 12px; color: #555; }
.rwr-home__pagination { position: static; margin-top: 20px; text-align: center; }
.rwr-home__pagination .swiper-pagination-bullet-active { background: var(--rwr-accent); }

/* ---- Account dashboard link + badge ---- */
.rwr-account-link { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.rwr-account-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 22px; height: 22px; padding: 0 6px;
    font-size: 12px; font-weight: 700; line-height: 1; color: #fff;
    background: var(--bs-primary, #c08428);
    border-radius: 999px;
    box-shadow: 0 0 0 0 rgba(192, 132, 40, 0.55);
    animation: rwr-pulse 2s infinite;
}
.rwr-account-link--pending .account-menu__icon { color: var(--bs-primary, #c08428); }
@keyframes rwr-pulse {
    0% { box-shadow: 0 0 0 0 rgba(192, 132, 40, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(192, 132, 40, 0); }
    100% { box-shadow: 0 0 0 0 rgba(192, 132, 40, 0); }
}
@media (prefers-reduced-motion: reduce) { .rwr-account-badge { animation: none; } }

/* ---- Account "My reviews" page ---- */
.rwr-account__section { margin-bottom: 32px; }
.rwr-account__heading { font-size: 18px; color: var(--rwr-ink); margin-bottom: 16px; }
.rwr-account__item { border: 1px solid var(--rwr-line); border-radius: var(--bs-border-radius, 8px); padding: 16px 20px; margin-bottom: 16px; }
.rwr-account__item.is-done { opacity: 0.6; }
.rwr-account__product { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rwr-account__thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.rwr-account__thumb--sm { width: 36px; height: 36px; }
.rwr-account__product-info { display: flex; flex-direction: column; }
.rwr-account__name { font-weight: 600; color: var(--rwr-ink); text-decoration: none; }
.rwr-account__meta { font-size: 13px; color: #555; }
.rwr-account__done-list { list-style: none; padding: 0; margin: 0; }
.rwr-account__done-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rwr-line); }
.rwr-account__done-item a { color: var(--rwr-ink); text-decoration: none; }
.rwr-account__badge { margin-left: auto; font-size: 12px; font-weight: 600; color: #fff; background: var(--bs-success, #2f7d4f); border-radius: 999px; padding: 2px 10px; }

/* ---- Account: hero + tabs (redesign) ---- */
.rwr-acc-hero {
    margin-bottom: 24px;
}
.rwr-acc-hero__title {
    margin: 0 0 4px;
    color: var(--rwr-ink);
    font-size: 22px;
}
.rwr-acc-hero__sub {
    margin: 0;
    color: #555;
    font-size: 15px;
}
.rwr-acc-intro {
    margin: 0 0 16px;
    color: #555;
    font-size: 14px;
}

.rwr-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--rwr-line);
}
.rwr-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    appearance: none;
    padding: 11px 18px;
    color: #555;
    font-size: 13px;
    font-weight: 600;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    margin-bottom: -1px;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.rwr-tab:hover {
    color: var(--rwr-ink);
}
.rwr-tab.is-active {
    color: var(--rwr-accent);
    border-bottom-color: var(--rwr-accent);
}
.rwr-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 21px;
    height: 21px;
    padding: 0 6px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    background: var(--rwr-accent);
    border-radius: 999px;
}
.rwr-tab:not(.is-active) .rwr-tab__count { background: var(--rwr-line); color: #555; }

.rwr-tabs__panel {
    display: none;
}
.rwr-tabs__panel.is-active {
    display: block;
    animation: rwr-fade 0.2s ease;
}
@keyframes rwr-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.rwr-acc-empty {
    padding: 40px 16px;
    color: #555;
    text-align: center;
    background: #fff;
    border: 1px dashed var(--rwr-line);
    border-radius: 14px;
}
.rwr-acc-empty p { margin: 0; }

/* ---- Account: "to review" collapsible cards ---- */
.rwr-todo {
    border: 1px solid var(--rwr-line); border-radius: 14px; padding: 16px 20px;
    margin-bottom: 14px; background: var(--bs-body-bg, #fff); transition: box-shadow 0.2s ease;
}
.rwr-todo.is-open { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06); }
.rwr-todo.is-done {
    opacity: 0.6;
    pointer-events: none;
}
.rwr-todo__head {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px 0;
    border-bottom: 1px solid var(--rwr-line);
}
.rwr-todo__thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--rwr-line);
    flex-shrink: 0;
}
.rwr-todo__info {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}
.rwr-todo__name {
    display: block;
    font-weight: 600;
    color: var(--rwr-ink);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rwr-todo__meta {
    margin-top: 2px;
    font-size: 13px;
    color: #555;
}
.rwr-todo__toggle {
    margin-left: auto;
    flex-shrink: 0;
}
.rwr-todo .rwr-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rwr-line); }

/* ---- Order page ---- */
.rwr-order__product { padding: 16px 0; border-bottom: 1px solid var(--rwr-line); }
.rwr-order__product.is-done { opacity: 0.6; }
.rwr-order__product-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.rwr-order__thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.rwr-order__name { font-weight: 600; color: var(--rwr-ink); }
.rwr-order__fields .form-control { margin-bottom: 8px; }
.rwr-order__global { margin-top: 24px; }
.rwr-order__actions { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.rwr-order__msg.is-success { color: var(--bs-success, #2f7d4f); }
.rwr-order__msg.is-error { color: var(--bs-danger, #c64a3a); }