/* ============================================
   EZ Review Panel — Frontend Styles
   Visual language matched to EZ Product Box.
   ============================================ */

/* ── Theme bleed prevention ──────────────────── */
.erb-ratings a::after,.erb-ratings a::before,
.erb-specs a::after,.erb-specs a::before,
.erb-verdict a::after,.erb-verdict a::before,
.erb-team a::after,.erb-team a::before{display:none !important;content:none !important;border:none !important;}
.erb-ratings,.erb-ratings *,
.erb-specs,.erb-specs *,
.erb-verdict,.erb-verdict *,
.erb-team,.erb-team *{box-sizing:border-box;}



/* Ratings box — Style B (minimal editorial) */
.erb-ratings{
    position:relative;
    background:#fff;
    border-top:2px solid #0f172a;
    margin:2em 0;
    overflow:hidden;
}

/* Specs box — Style B (editorial, no card) */
.erb-specs{
    position:relative;
    background:#fff;
    border-top:3px solid #0f172a;
    margin:2em 0;
    overflow:hidden;
}


/* Stars */
.erb-stars{display:inline-flex;gap:2px;font-size:19px;line-height:1;}
.erb-star-full{color:#f59e0b !important;}
.erb-star-empty{color:#d1d5db !important;}
.erb-star-half{position:relative;display:inline-block;color:#d1d5db !important;}
.erb-star-half::before{content:'\2605';position:absolute;left:0;top:0;width:50%;overflow:hidden;color:#f59e0b;display:block;}


/* ══════════════════════════════════════════════
   RATINGS BOX — Style B (minimal editorial)
══════════════════════════════════════════════ */

/* Sub-ratings */
.erb-subratings{padding:8px 20px 2px;}

.erb-rating-row{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:10px;
    padding:6px 0;
    border-bottom:1px solid #e5e7eb;
    font-size:.82rem !important;
}

.erb-rating-label{flex:1;color:#1a1a1a;font-weight:600 !important;}
.erb-rating-val{font-size:.82rem;font-weight:700;color:#1a1a1a;min-width:24px;text-align:right;}
.erb-pip-row{display:flex;gap:3px;align-items:center;}
.erb-pip{width:9px;height:9px;border-radius:50%;background:#e5e7eb;}
.erb-pip-on{background:#f59e0b;}

/* Positives / Negatives */
.erb-pos-neg{display:flex;gap:32px;padding:14px 20px;border-bottom:1px solid #e5e7eb;}
.erb-positives,.erb-negatives{flex:1;}

.erb-pn-heading{font-size:.68rem !important;font-weight:800 !important;text-transform:uppercase !important;letter-spacing:.12em !important;margin:0 0 12px !important;padding:0 !important;border:none !important;}
.erb-pos-heading{color:#16a34a !important;}
.erb-neg-heading{color:#dc2626 !important;}

.erb-pn-item{display:flex;gap:8px;align-items:flex-start;font-size:.84rem !important;margin-bottom:8px;line-height:1.45;color:#374151 !important;}
.erb-arrow{font-style:normal;font-size:.75rem;margin-top:2px;flex-shrink:0;}
.erb-pos-item .erb-arrow{color:#16a34a;}
.erb-neg-item .erb-arrow{color:#dc2626;}

/* Bottom Line */
.erb-bottom-line{padding:14px 20px;}
.erb-bl-inner{display:flex;align-items:flex-start;gap:20px;}

.erb-bl-score{flex-shrink:0;text-align:center;}
.erb-bl-num{display:block;font-size:2.2rem;font-weight:800;color:#1a1a1a;line-height:1;}
.erb-bl-stars{display:flex;justify-content:center;gap:2px;font-size:13px;color:#f59e0b;margin-top:4px;}
.erb-bl-divider{width:1px;background:#e5e7eb;align-self:stretch;flex-shrink:0;}
.erb-bl-right{flex:1;padding-top:4px;}
.erb-bl-label{display:block;font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.12em;color:#1a1a1a;margin-bottom:6px;}
.erb-bl-text{font-size:.88rem !important;color:#374151 !important;line-height:1.7 !important;margin:0 !important;}
.erb-bl-text p{font-size:.88rem !important;color:#374151 !important;line-height:1.7 !important;margin:0 !important;}
.erb-bl-text p+p{margin-top:.6em !important;}


/* ══════════════════════════════════════════════
   SPECS TABLE  — Style B
══════════════════════════════════════════════ */

.erb-specs-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;}
.erb-specs-table{width:100%;border-collapse:collapse !important;font-size:.83rem !important;}
.erb-specs-table,.erb-specs-table tbody,.erb-specs-table tr,.erb-specs-table td,.erb-specs-table th{border:none !important;box-shadow:none !important;margin:0 !important;vertical-align:top;}
.erb-specs-table tr+tr td,.erb-specs-table tr+tr th{border-top:1px solid #e2e8f0 !important;}
.erb-specs-table .erb-spec-label{font-weight:700 !important;color:#475569 !important;font-size:.72rem !important;text-transform:uppercase !important;letter-spacing:.05em !important;padding:9px 10px 9px 14px !important;width:38%;text-align:left;background:#f5f5f5 !important;}
.erb-specs-table .erb-spec-val{color:#0f172a !important;font-size:.84rem !important;line-height:1.55 !important;padding:9px 14px 9px 14px !important;text-align:left;background:#fff !important;}
.erb-specs-table tr:hover .erb-spec-label,
.erb-specs-table tr:hover .erb-spec-val{background:#eeeeee !important;cursor:default;}

/* Competition link lists inside specs table */
.erb-spec-links{margin:0 !important;padding:0 0 0 14px !important;list-style:disc;}
.erb-spec-links li{margin:3px 0 !important;font-size:.84rem !important;}
.erb-spec-links a{color:#2271b1 !important;text-decoration:none !important;}
.erb-spec-links a:hover{text-decoration:underline !important;}
.erb-spec-link{color:#2271b1 !important;text-decoration:none !important;}
.erb-spec-link:hover{text-decoration:underline !important;}

/* Where to Buy — button row inside specs table */
.erb-wtb-btns{display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:2px 0;}
a.erb-wtb-btn{
    display:inline-flex;align-items:center;justify-content:center;
    padding:6px 16px;font-size:.8rem !important;font-weight:700;
    text-decoration:none !important;color:#fff !important;
    background:#a30000;border:2px solid #a30000;border-radius:8px;
    line-height:1.3;white-space:nowrap;
    transition:filter .2s,transform .15s;
}
a.erb-wtb-btn:hover{filter:brightness(1.3);transform:translateY(-1px);text-decoration:none !important;}


/* ══════════════════════════════════════════════
   VERDICT BOX — [erb_overview]
══════════════════════════════════════════════ */

.erb-verdict {
    border: 1px solid #e2e0db;
    background: #fff;
    margin: 2em 0;
    font-family: inherit;
}
.erb-verdict-head {
    background: #fffcf7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 22px;
    border-bottom: 1px solid #e2e0db;
}
.erb-verdict-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
}
.erb-verdict-product {
    font-style: italic;
    font-weight: 600;
    font-size: .88rem;
    color: #6b7280;
}
.erb-verdict-score {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.erb-verdict-num {
    font-size: 1.2rem;
    font-weight: 900;
    color: #f59e0b;
    line-height: 1;
}
.erb-verdict-body {
    padding: 18px 22px;
}
.erb-verdict-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 20px;
    background: #a30000;
    text-decoration: none !important;
    transition: filter .14s;
}
.erb-verdict-link:hover { filter: brightness(1.18); }
.erb-vl-label { font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.65); }
.erb-vl-sep { width: 1px; height: 10px; background: rgba(255,255,255,.3); flex-shrink: 0; }
.erb-vl-text { font-size: 1rem !important; font-weight: 600; color: #fff !important; }
.erb-vl-arr { font-size: .84rem; color: rgba(255,255,255,.65); }

.erb-ratings-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 20px;
    background: #a30000;
    text-decoration: none !important;
    transition: filter .14s;
}
.erb-ratings-link:hover { filter: brightness(1.18); }
.erb-rl-label { font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.65); }
.erb-rl-sep { width: 1px; height: 10px; background: rgba(255,255,255,.3); flex-shrink: 0; }
.erb-rl-text { font-size: 1rem !important; font-weight: 600; color: #fff !important; }
.erb-rl-arr { font-size: .72rem; color: rgba(255,255,255,.65); }

.erb-specs-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 20px;
    background: #a30000;
    text-decoration: none !important;
    transition: filter .14s;
}
.erb-specs-link:hover { filter: brightness(1.18); }
.erb-sl-label { font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.65); }
.erb-sl-sep { width: 1px; height: 10px; background: rgba(255,255,255,.3); flex-shrink: 0; }
.erb-sl-text { font-size: 1rem !important; font-weight: 600; color: #fff !important; }
.erb-sl-arr { font-size: .72rem; color: rgba(255,255,255,.65); }

.erb-verdict-body p {
    font-size: .9rem !important;
    line-height: 1.76 !important;
    color: #374151 !important;
    margin: 0 !important;
}
.erb-verdict-body p + p { margin-top: .75em !important; }


/* ══════════════════════════════════════════════
   STANDALONE BUTTON  [erb_button]
══════════════════════════════════════════════ */

a.erb-btn-inline{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:9px 22px;
    font-size:.95rem !important;
    font-weight:800;
    text-align:center;
    text-decoration:none !important;
    border-radius:10px;
    border:2px solid transparent;
    cursor:pointer;
    transition:filter .2s,transform .15s;
    letter-spacing:.025em;
    white-space:nowrap;
    line-height:1.3 !important;
    margin:4px 2px;
}
a.erb-btn-inline:hover{filter:brightness(1.2);transform:translateY(-2px);text-decoration:none !important;}


/* ══════════════════════════════════════════════
   RESPONSIVE — mirrors EZ Product Box breakpoints
══════════════════════════════════════════════ */

@media (max-width:47.99em){
    .erb-rating-label{flex:0 0 140px;font-size:.78rem;}
    .erb-pos-neg{flex-direction:column;gap:16px;}
    .erb-positives{border-right:none;border-bottom:1px solid #e2e8f0;padding-bottom:16px;}
}


/* ══════════════════════════════════════════════
   TEAM PANEL — [erb_team]
══════════════════════════════════════════════ */

.erb-team{border:1px solid #e2e0db;background:#fff;margin:2em 0;overflow:hidden;}

.erb-team-head{
    background:#fffcf7;
    padding:14px 22px;
    border-bottom:1px solid #e2e0db;
}
.erb-team-title{
    font-family:Georgia,'Times New Roman',serif;
    font-size:1rem;
    font-weight:700;
    color:#111;
}

/* Single-column layout (1–2 authors) */
.erb-team-authors{display:grid;grid-template-columns:1fr;}
.erb-team-author{border-bottom:1px solid #e2e0db;}
.erb-team-author:last-child{border-bottom:none;}

/* 2-column grid (3+ authors) */
.erb-team-authors.is-multi{grid-template-columns:1fr 1fr;}
.erb-team-authors.is-multi .erb-team-author{border-bottom:none;border-right:1px solid #e2e0db;}
.erb-team-authors.is-multi .erb-team-author:nth-child(even){border-right:none;}

.erb-team-author{
    display:flex;
    gap:14px;
    align-items:flex-start;
    padding:18px 20px;
}

.erb-author-av{
    width:56px;height:56px;border-radius:50%;flex-shrink:0;overflow:hidden;
    background:#f3ede3;color:#6b5c44;
    display:flex;align-items:center;justify-content:center;
    font-size:.88rem;font-weight:800;
}
.erb-author-av img{width:100%;height:100%;object-fit:cover;border-radius:50%;}

.erb-author-info{flex:1;min-width:0;}
.erb-author-name{font-size:.88rem;font-weight:800;color:#0f172a;margin-bottom:2px;line-height:1.3;}
.erb-author-job{font-size:.67rem;font-weight:800;color:#b5813e;text-transform:uppercase;letter-spacing:.1em;margin-bottom:7px;}
.erb-author-bio{font-size:.78rem;line-height:1.65;color:#374151;}

/* Bottom stripe */
a.erb-team-link{
    display:flex;align-items:center;justify-content:center;
    gap:7px;padding:9px 20px;
    background:#b5813e;
    text-decoration:none !important;
    transition:filter .14s;
    border-top:1px solid rgba(0,0,0,.06);
}
a.erb-team-link:hover{filter:brightness(1.12);}
.erb-tl-label{font-size:.6rem;font-weight:800;text-transform:uppercase;letter-spacing:.14em;color:rgba(255,255,255,.65);}
.erb-tl-sep{width:1px;height:10px;background:rgba(255,255,255,.3);flex-shrink:0;}
.erb-tl-text{font-size:.73rem !important;font-weight:600;color:#fff !important;}
.erb-tl-arr{font-size:.72rem;color:rgba(255,255,255,.65);}

/* Button stripe */
a.erb-btn-link{
    display:flex;align-items:center;justify-content:center;
    gap:7px;padding:9px 20px;
    background:#a30000;
    text-decoration:none !important;
    transition:filter .14s;
    border-radius:0;
    margin:8px 0;
}
a.erb-btn-link:hover{filter:brightness(1.12);}
.erb-btnl-label{font-size:.6rem;font-weight:800;text-transform:uppercase;letter-spacing:.14em;color:rgba(255,255,255,.65);}
.erb-btnl-sep{width:1px;height:10px;background:rgba(255,255,255,.3);flex-shrink:0;}
.erb-btnl-text{font-size:1rem !important;font-weight:600;color:#fff !important;}
.erb-btnl-arr{font-size:.84rem;color:rgba(255,255,255,.65);}

@media(max-width:47.99em){
    .erb-team-authors.is-multi{grid-template-columns:1fr;}
    .erb-team-authors.is-multi .erb-team-author{border-right:none;border-bottom:1px solid #e2e0db;}
    .erb-team-authors.is-multi .erb-team-author:last-child{border-bottom:none;}
}


/* ══════════════════════════════════════════════
   RELATED ARTICLES — [erb_related]
══════════════════════════════════════════════ */

.erb-related{background:#f7f5f0;border:1px solid #dad8d2;overflow:hidden;margin:16px 0;}
.erb-rel-head{font-size:22px;font-weight:900;color:#111;padding:22px 26px 18px;border-bottom:1px solid rgba(0,0,0,.09);letter-spacing:-.02em;}
.erb-rel-grid{display:grid;grid-template-columns:1fr 1fr;}
.erb-rel-cell{display:flex;align-items:center;gap:18px;padding:20px 26px;text-decoration:none !important;color:inherit;transition:background .15s;}
.erb-rel-cell:hover{background:rgba(0,0,0,.025);}
.erb-rel-cell:nth-child(odd){border-right:1px solid rgba(0,0,0,.09);}
.erb-rel-title{flex:1;font-size:16px !important;font-weight:600;color:#111 !important;line-height:1.45;}
.erb-rel-img{flex-shrink:0;width:120px;aspect-ratio:3/2;overflow:hidden;border-radius:3px;background:#e0ddd8;max-width:100%;}
.erb-rel-img img{width:100%;height:100%;object-fit:cover;display:block;}
.erb-rel-img-ph{background:linear-gradient(135deg,#dddad4 0%,#ccc9c2 100%);}

@media(max-width:47.99em){
    .erb-rel-grid{grid-template-columns:1fr;}
    .erb-rel-cell:nth-child(odd){border-right:none;border-bottom:1px solid rgba(0,0,0,.09);}
    .erb-rel-cell:last-child{border-bottom:none;}
    .erb-rel-img{width:90px;}
}

/* ══════════════════════════════════════════════
   COMPARISON TABLE — [erb_table]
══════════════════════════════════════════════ */

.erb-table{background:#fff;border-top:2.5px solid #111;margin:16px 0;}
.erb-table *{box-sizing:border-box;}
.erb-table a::after,.erb-table a::before{display:none !important;content:none !important;border:none !important;}

.erb-tbl-head{font-size:14px;font-weight:700;text-transform:uppercase;letter-spacing:.18em;color:#111;padding:16px 20px;border-bottom:1px solid #e6e6e6;}

.erb-tbl-row{display:flex;align-items:center;gap:14px;padding:14px 20px 14px 17px;border-bottom:1px solid #e6e6e6;border-left:3px solid transparent;transition:border-color .15s,background .15s;cursor:pointer;}
.erb-tbl-row:hover{border-left-color:#a30000;background:#fafafa;}
.erb-tbl-row[hidden]{display:none !important;}

.erb-tbl-imgbox{width:96px;height:96px;flex-shrink:0;overflow:hidden;background:#f0f0f0;}
.erb-tbl-imgbox img{width:100%;height:100%;object-fit:cover;display:block;}
.erb-tbl-imgbox-ph{background:linear-gradient(135deg,#e8e8e8 0%,#d5d5d5 100%);}

.erb-tbl-txt{flex:1;min-width:0;}
.erb-tbl-award{font-weight:700;font-size:15px;color:#111 !important;line-height:1.3;margin-bottom:3px;text-decoration:none !important;display:block;}
.erb-tbl-award:hover{text-decoration:none !important;}
.erb-tbl-name{font-size:13px;color:#777;margin-bottom:0;}

.erb-tbl-pill{flex-shrink:0;display:block;border:1.5px solid var(--tbl-pill-color,#a30000);border-radius:0;padding:4px 14px;text-align:center;text-decoration:none !important;width:200px;transition:background .15s,color .15s;}
.erb-tbl-pill:hover{background:var(--tbl-pill-color,#a30000) !important;}
.erb-tbl-pill:hover .erb-tbl-pill-price,.erb-tbl-pill:hover .erb-tbl-pill-ret{color:#fff !important;}
.erb-tbl-pill-price{display:block;font-size:11px;font-weight:700;color:#111;line-height:1.4;white-space:nowrap;}
.erb-tbl-pill-price s{font-weight:400;color:#999;font-size:10px;margin-right:2px;text-decoration:line-through;}
.erb-tbl-pill:hover .erb-tbl-pill-price s{color:rgba(255,255,255,.55);}
.erb-tbl-pill-ret{display:block;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.12em;color:#666;margin-top:2px;}
.erb-tbl-pill--solo{display:flex;align-items:center;justify-content:center;}
.erb-tbl-pill--solo .erb-tbl-pill-ret{font-size:13px;font-weight:700;text-transform:none;letter-spacing:0;color:#111;margin-top:0;}
.erb-tbl-pill--solo:hover .erb-tbl-pill-ret{color:#fff !important;}

.erb-tbl-foot{display:flex;justify-content:space-between;align-items:center;padding:11px 20px;cursor:pointer;user-select:none;}
.erb-tbl-foot:hover{background:#f5f5f5;}
.erb-tbl-toggle{font-size:12px;line-height:1;font-weight:700;text-transform:uppercase;letter-spacing:.12em;color:#111;border:none;background:none;cursor:pointer;padding:0;}
.erb-tbl-toggle:hover{color:#a30000;}
.erb-tbl-count{font-size:14px;line-height:1;color:#bbb;font-weight:600;font-variant-numeric:tabular-nums;}

@media(max-width:47.99em){
    .erb-tbl-row{flex-wrap:wrap;gap:10px;padding:12px 14px 12px 12px;}
    .erb-tbl-imgbox{width:72px;height:72px;}
    .erb-tbl-txt{flex:1;min-width:calc(100% - 86px);}
    .erb-tbl-pill{width:100%;flex:0 0 100%;min-width:0;}
    .erb-tbl-pill-price{white-space:normal;}
    .erb-tbl-award{font-size:14px;}
}
