/* Review page + product-tab review enhancements. Birdie CI green on Woodmart neutrals. */
.brv-review-page { max-width: 640px; margin: 40px auto 64px; padding: 0 16px; }

.brv-page-head { text-align: center; margin: 0 0 24px; }
.brv-page-head h1 { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.5px; margin: 0 0 8px; }
.brv-page-head p { color: #777; margin: 0; }

.brv-card { background: #fff; border: 1px solid #e3e9e5; border-radius: 14px; padding: 32px; box-shadow: 0 4px 24px rgba(0,0,0,.05); }

.brv-product { display: flex; align-items: center; gap: 18px; margin: 0 0 24px; padding: 14px 16px; background: #f5f9f7; border: 1px solid #dde9e4; border-radius: 10px; }
.brv-product img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; flex: none; }
.brv-product-label { display: block; font-size: .7rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #2D6A4F; margin-bottom: 4px; }
.brv-product h1, .brv-product h2 { font-size: 1.15rem; margin: 0; line-height: 1.35; }

.brv-stars { display: flex; flex-direction: row-reverse; justify-content: center; gap: 8px; border: 0; padding: 0; margin: 4px 0 24px; }
.brv-stars input { position: absolute; opacity: 0; width: 0; }
.brv-stars label { font-size: 2.6rem; line-height: 1; color: #d9dedb; cursor: pointer; transition: color .15s, transform .1s; }
.brv-stars label:hover { transform: scale(1.08); }
.brv-stars label:hover,
.brv-stars label:hover ~ label,
.brv-stars input:checked ~ label { color: #f5a623; }

.brv-review-page label,
.brv-pdp-form label { display: block; font-weight: 600; margin: 16px 0 6px; }
.brv-review-page textarea,
.brv-review-page input[type="file"],
.brv-pdp-form textarea,
.brv-pdp-form input[type="file"] { width: 100%; border: 1px solid #d5ddd8; border-radius: 8px; padding: 12px 14px; font: inherit; background: #fff; }
.brv-review-page textarea:focus,
.brv-pdp-form textarea:focus { outline: none; border-color: #2D6A4F; box-shadow: 0 0 0 3px rgba(45,106,79,.12); }

.brv-btn, .brv-submit { display: inline-block; background: #2D6A4F; color: #fff !important; border: 0; border-radius: 9px; padding: 13px 28px; margin-top: 20px; font: inherit; font-weight: 700; letter-spacing: .2px; cursor: pointer; text-decoration: none; transition: background .15s; }
.brv-btn:hover, .brv-submit:hover { background: #24543f; }
.brv-submit { width: 100%; text-align: center; }
.brv-error { background: #fdecea; color: #b3261e; border-radius: 8px; padding: 10px 14px; }
.brv-note { font-size: .85rem; color: #888; margin-top: 12px; text-align: center; }
.brv-thanks { text-align: center; }
.brv-thanks h1 { font-size: 1.6rem; }

.brv-photo-preview { display: flex; gap: 8px; margin-top: 8px; }
.brv-photo-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid #e5e5e5; }

/* Product-tab enhancements */
/* Admin replies = native nested comments in the review list */
#reviews .comment .children { margin-left: 48px; padding: 12px 16px; background: #f7f7f7; border-left: 3px solid #111; border-radius: 0 8px 8px 0; list-style: none; }
#reviews .comment .children .comment-text { border: 0; padding: 0; }
.brv-verified-badge { display: inline-flex; align-items: center; gap: 4px; background: #e6f4ec; color: #1e6b30; font-size: .74rem; font-weight: 700; letter-spacing: .3px; border-radius: 6px; padding: 3px 9px; vertical-align: middle; }
.brv-verified-badge::before { content: '✓'; font-size: .8em; }
.brv-review-photos { display: flex; gap: 8px; margin-top: 8px; margin-bottom: 8px; }
.brv-review-photos img { width: 88px; height: 88px; object-fit: cover; border-radius: 6px; border: 1px solid #e5e5e5; }

/* ── Aggregate page (/atsauksmes) ─────────────────────────────── */
.brv-aggregate { max-width: 1080px; margin: 0 auto; padding: 8px 0 12px; }

.brv-breadcrumb { font-size: .85rem; color: #999; margin: 0 0 22px; }
.brv-breadcrumb a { color: #999; text-decoration: none; }
.brv-breadcrumb a:hover { color: #111; }
.brv-crumb-sep { margin: 0 8px; }
.brv-breadcrumb [aria-current] { color: #111; font-weight: 600; }

.brv-hero { text-align: center; padding: 40px 20px 36px; margin: 0 0 32px; background: linear-gradient(180deg, #f5f9f7 0%, rgba(245,249,247,0) 100%); border-radius: 16px; }
.brv-hero h1 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.5px; margin: 0 0 6px; }
.brv-hero-sub { color: #777; margin: 0 0 20px; }
.brv-hero-rating { display: inline-flex; align-items: center; gap: 12px; }
.brv-hero-avg { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.brv-hero-count { color: #777; font-size: .95rem; }

.brv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.brv-grid .brv-card { display: flex; flex-direction: column; padding: 24px; margin: 0; transition: box-shadow .15s; }
.brv-grid .brv-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.brv-card-stars { color: #f5a623; letter-spacing: 3px; font-size: 1.05rem; margin-bottom: 10px; }
.brv-card-text { flex: 1; color: #333; line-height: 1.65; margin: 0 0 14px; }
.brv-card-footer { display: flex; align-items: center; gap: 10px; border-top: 1px solid #f0f0f0; padding-top: 12px; font-size: .82rem; }
.brv-card-date { color: #bbb; margin-left: auto; }
.brv-card-product { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; text-decoration: none; color: #111; font-weight: 600; max-width: 55%; }
.brv-card-product img { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; flex: none; }
.brv-card-product span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brv-card-product:hover span { text-decoration: underline; }

.brv-agg-pagination { margin-top: 32px; text-align: center; }
.brv-agg-pagination ul { display: inline-flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.brv-agg-pagination a, .brv-agg-pagination span { display: inline-block; min-width: 38px; padding: 8px 10px; border: 1px solid #e5e5e5; border-radius: 8px; text-align: center; text-decoration: none; color: #111; }
.brv-agg-pagination .current { background: #111; color: #fff; border-color: #111; }

/* ── Rating badge shortcode ───────────────────────────────────── */
.brv-badge { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #111; }
.brv-badge-stars { position: relative; display: inline-block; color: #d5d5d5; letter-spacing: 2px; line-height: 1; }
.brv-badge-fill { position: absolute; left: 0; top: 0; overflow: hidden; color: #f5a623; white-space: nowrap; letter-spacing: 2px; }
.brv-badge-count { color: #888; font-size: .9rem; }
.brv-badge-empty { color: #999; font-size: .9rem; }

/* ── PDP review form shortcode ────────────────────────────────────────────── */

.brv-pdp-form { margin: 8px 0 0; }

.brv-pdp-form .brv-card {
    padding: 32px;
    border: none;
    border-radius: 22px;
    background: #fff;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 1px 3px rgba(0,0,0,.05),
        0 6px 20px rgba(45,106,79,.09),
        0 24px 56px rgba(45,106,79,.07);
    animation: brv-card-enter .4s ease-out both;
}

/* Gradient accent bar across top */
.brv-pdp-form .brv-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, #1a4a32 0%, #2D6A4F 38%, #52c98c 68%, #f0b429 100%);
    border-radius: 22px 22px 0 0;
}

/* Decorative radial glow top-right */
.brv-pdp-form .brv-card::after {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 300px; height: 300px;
    background: radial-gradient(circle at center, rgba(45,106,79,.06) 0%, transparent 65%);
    pointer-events: none;
}

/* Title */
.brv-pdp-form-title {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -.4px;
    color: #0a1f14;
    margin: 0 0 22px;
    line-height: 1.25;
}

/* Star rating fieldset */
.brv-pdp-form .brv-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 4px;
    border: 1.5px solid #d8ece1;
    border-radius: 16px;
    padding: 16px 12px;
    margin: 0 0 24px;
    background: linear-gradient(145deg, #f3faf6 0%, #fafefe 100%);
}

.brv-pdp-form .brv-stars label {
    font-size: 3rem;
    line-height: 1;
    color: #c8dbd2;
    cursor: pointer;
    transition: color .12s, transform .15s, filter .12s;
}

.brv-pdp-form .brv-stars label:hover {
    transform: scale(1.28) translateY(-4px);
    filter: drop-shadow(0 5px 10px rgba(245,161,0,.45));
}

.brv-pdp-form .brv-stars label:hover,
.brv-pdp-form .brv-stars label:hover ~ label,
.brv-pdp-form .brv-stars input:checked ~ label { color: #f5a100; }

/* Form labels */
.brv-pdp-form label[for="brv-text"],
.brv-pdp-form label[for="brv-photos"] {
    display: block;
    font-size: .73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .9px;
    color: #4a7a62;
    margin: 0 0 8px;
}

/* Textarea */
.brv-pdp-form textarea {
    width: 100%;
    border: 1.5px solid #d4e8dd;
    border-radius: 12px;
    padding: 14px 16px;
    font: inherit;
    font-size: .96rem;
    line-height: 1.65;
    color: #182e22;
    background: #f9fcfb;
    resize: vertical;
    transition: border-color .2s, box-shadow .2s, background .2s;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.brv-pdp-form textarea:focus {
    outline: none;
    border-color: #2D6A4F;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(45,106,79,.1);
}

.brv-pdp-form textarea::placeholder {
    color: #a8c0b4;
    font-style: italic;
}

/* File upload */
.brv-pdp-form input[type="file"] {
    display: block;
    width: 100%;
    border: 1.5px dashed #bcd8cb;
    border-radius: 11px;
    padding: 10px 14px 10px 10px;
    background: #f4faf6;
    color: #567a68;
    font: inherit;
    font-size: .88rem;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    box-sizing: border-box;
}

.brv-pdp-form input[type="file"]:hover {
    border-color: #2D6A4F;
    background: #ecf6f0;
}

.brv-pdp-form input[type="file"]::file-selector-button {
    background: #2D6A4F;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 6px 14px;
    font: inherit;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    margin-right: 12px;
    transition: background .15s;
}

.brv-pdp-form input[type="file"]:hover::file-selector-button {
    background: #255a42;
}

/* Photo previews */
.brv-pdp-form .brv-photo-preview {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.brv-pdp-form .brv-photo-preview img {
    width: 72px;
    height: 72px;
    border-radius: 11px;
    object-fit: cover;
    border: 2px solid #d5ebe1;
    transition: transform .15s, border-color .15s;
    cursor: pointer;
}

.brv-pdp-form .brv-photo-preview img:hover {
    transform: scale(1.06);
    border-color: #2D6A4F;
}

/* Submit button */
.brv-pdp-form .brv-submit {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 26px;
    padding: 16px 28px;
    background: linear-gradient(140deg, #255a42 0%, #2D6A4F 45%, #3a8f65 100%);
    color: #fff !important;
    border: 0;
    border-radius: 14px;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: .25px;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform .15s, box-shadow .2s;
    box-shadow: 0 4px 18px rgba(45,106,79,.38);
}

/* Sheen overlay */
.brv-pdp-form .brv-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(255,255,255,.18) 0%, transparent 55%);
    border-radius: inherit;
    pointer-events: none;
}

.brv-pdp-form .brv-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(45,106,79,.48);
}

.brv-pdp-form .brv-submit:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(45,106,79,.32);
}

/* Note below button */
.brv-pdp-form .brv-note {
    font-size: .78rem;
    color: #96b5a5;
    text-align: center;
    margin-top: 10px;
}

/* Empty badge — friendlier pill */
.brv-badge-empty {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f0f5f2;
    color: #7a9e8c;
    font-size: .82rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 99px;
    border: 1px solid #d8e9e1;
}

/* Aggregate empty note */
.brv-aggregate.brv-product-reviews .brv-note {
    color: #96b5a5;
    font-style: italic;
    text-align: center;
    font-size: .88rem;
}

/* Entry animation */
@keyframes brv-card-enter {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Mobile */
@media (max-width: 480px) {
    .brv-pdp-form .brv-card { padding: 24px 20px; }
    .brv-pdp-form .brv-stars label { font-size: 2.5rem; }
    .brv-pdp-form-title { font-size: 1.2rem; }
}
