/* ============================================================
   WP Review Blocks - Frontend CSS v3.0
   Font: fully inherited from theme (no font-family set)
   Sizing: em-based so it scales with theme font
   ============================================================ */

:root {
    --wrb-green:  #27ae60;
    --wrb-red:    #e74c3c;
    --wrb-blue:   #1a4f9c;
    --wrb-teal:   #2bbfa4;
    --wrb-border: #e0e6ed;
    --wrb-radius: 12px;
    --wrb-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ── Global font reset: inherit everything from theme ────────── */
.wrb-pros-cons,
.wrb-product-card,
.wrb-feature-box,
.wrb-product-vs,
.wrb-bottom-line,
.wrb-coupon-banner,
.wrb-comparison-table-wrap,
.wrb-pros-cons *,
.wrb-product-card *,
.wrb-feature-box *,
.wrb-product-vs *,
.wrb-bottom-line *,
.wrb-coupon-banner *,
.wrb-comparison-table-wrap * {
    font-family: inherit;
    box-sizing: border-box;
}

/* ── SVG icon base ───────────────────────────────────────────── */
.wrb-check-icon,
.wrb-x-icon,
.wrb-icon-check,
.wrb-icon-cross,
.wrb-icon-check-dark,
.wrb-btn-arrow,
.wrb-star,
.wrb-cb-fire,
.wrb-spec-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    vertical-align: middle;
}
.wrb-check-icon svg, .wrb-x-icon svg, .wrb-icon-check svg,
.wrb-icon-cross svg, .wrb-icon-check-dark svg, .wrb-btn-arrow svg,
.wrb-star svg, .wrb-cb-fire svg, .wrb-spec-icon svg { display: block; }

.wrb-check-icon {
    width: 18px; height: 18px; min-width: 18px;
    background: var(--wrb-green);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.wrb-check-icon svg {
    width: 11px; height: 11px;
    stroke-width: 3;
}

.wrb-x-icon {
    width: 18px; height: 18px; min-width: 18px;
    background: var(--wrb-red);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.wrb-x-icon svg {
    width: 9px; height: 9px;
    stroke-width: 3;
}

.wrb-icon-check {
    width: 18px; height: 18px; min-width: 18px;
    background: var(--wrb-green);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.wrb-icon-check svg {
    width: 11px; height: 11px;
    stroke-width: 3;
}

.wrb-icon-cross {
    width: 18px; height: 18px; min-width: 18px;
    background: var(--wrb-red);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.wrb-icon-cross svg {
    width: 9px; height: 9px;
    stroke-width: 3;
}

.wrb-icon-check-dark {
    width: 18px; height: 18px; min-width: 18px;
    background: #333;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.wrb-icon-check-dark svg {
    width: 11px; height: 11px;
    stroke-width: 3;
}
.wrb-star           { color: #f39c12; }
.wrb-cb-fire        { color: #ff7043; margin-right: 6px; }
.wrb-btn-arrow      { margin-left: 4px; opacity: .85; }
.wrb-spec-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    vertical-align: middle;
}
.wrb-spec-green .wrb-spec-icon-wrapper {
    width: 18px; height: 18px; min-width: 18px;
    background: var(--wrb-green);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.wrb-spec-green .wrb-spec-icon-wrapper svg {
    width: 11px; height: 11px;
    stroke-width: 3;
}
.wrb-spec-red .wrb-spec-icon-wrapper {
    width: 18px; height: 18px; min-width: 18px;
    background: var(--wrb-red);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.wrb-spec-red .wrb-spec-icon-wrapper svg {
    width: 11px; height: 11px;
    stroke-width: 3;
}

/* ── Shared list/title styles ────────────────────────────────── */
.wrb-pros-title {
    color: var(--wrb-green) !important;
    font-size: 1.1em; font-weight: 800; letter-spacing: 2px;
    text-align: center; margin: 10px 0 16px; text-transform: uppercase;
}
.wrb-cons-title {
    color: var(--wrb-red) !important;
    font-size: 1.1em; font-weight: 800; letter-spacing: 2px;
    text-align: center; margin: 10px 0 16px; text-transform: uppercase;
}
.wrb-list { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.wrb-list-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 6px 4px; line-height: 1.5; border: none !important;
}
.wrb-list-item::before { display: none !important; }

/* ============================================================
   WIDGET 1 — PROS & CONS
   ============================================================ */
.wrb-pros-cons {
    display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 24px 0;
}
.wrb-pros-box, .wrb-cons-box {
    position: relative; border-radius: var(--wrb-radius);
    padding: 40px 22px 22px; background: #fff;
}
.wrb-pros-box { border: 2px solid var(--wrb-green); }
.wrb-cons-box { border: 2px solid var(--wrb-red); }

.wrb-icon-badge {
    position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.15); color: #fff;
}
.wrb-icon-green { background: var(--wrb-green); }
.wrb-icon-red   { background: var(--wrb-red); }

@media (max-width: 600px) {
    .wrb-pros-cons { grid-template-columns: 1fr; gap: 36px; }
}

/* ============================================================
   WIDGET 2 — PRODUCT CARD
   ============================================================ */
.wrb-product-card {
    display: flex; border: 1px solid var(--wrb-border);
    border-radius: var(--wrb-radius); box-shadow: var(--wrb-shadow);
    overflow: hidden; background: #fff; margin: 24px 0;
}
.wrb-pc-left {
    width: 210px; min-width: 210px; display: flex; flex-direction: column;
    align-items: center; padding-bottom: 20px;
    border-right: 1px solid var(--wrb-border); background: #fff;
}
.wrb-pc-badge {
    background: var(--wrb-blue); color: #fff; font-weight: 700;
    font-size: .85em; padding: 10px 16px; width: 100%;
    text-align: center; letter-spacing: .5px;
}
.wrb-pc-image { padding: 18px; text-align: center; }
.wrb-pc-image img { max-width: 150px; max-height: 150px; object-fit: contain; }

.wrb-pc-score {
    display: flex; align-items: center; justify-content: center; gap: 8px; margin: 8px 0;
}
.wrb-pc-score-number {
    display: flex; flex-direction: column; align-items: center;
}
.wrb-pc-score-number strong { font-size: 1em; font-weight: 700; }
.wrb-pc-score-number span   { font-size: .8em; opacity: .7; }

.wrb-pc-btn {
    display: inline-block; margin-top: 12px; padding: 9px 16px;
    border: 2px solid currentColor; border-radius: 6px;
    font-weight: 700; font-size: .85em; text-decoration: none !important;
    transition: all .2s; text-align: center; background: transparent;
}
.wrb-pc-btn:hover { color: #fff !important; background: currentColor; }

.wrb-pc-right { flex: 1; padding: 22px; min-width: 0; }
.wrb-pc-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

@media (max-width: 700px) {
    .wrb-product-card { flex-direction: column; }
    .wrb-pc-left { width: 100%; min-width: unset; border-right: none; border-bottom: 1px solid var(--wrb-border); flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 16px; }
    .wrb-pc-badge { width: 100%; }
    .wrb-pc-image { padding: 8px; }
    .wrb-pc-right { padding: 16px; }
}
@media (max-width: 480px) {
    .wrb-pc-pros-cons { grid-template-columns: 1fr; }
}

/* ============================================================
   WIDGET 3 — PRODUCT FEATURE BOX (Redesigned)
   ============================================================ */
.wrb-feature-box {
    position: relative;
    border: 4px solid;
    border-image: linear-gradient(90deg, #e91e8c, #1a4f9c, #5c4db1, #3d3014) 1;
    border-radius: 10px;
    background: #fff;
    margin: 24px 0;
    padding: 30px 24px 24px;
}

/* Badge with pointer arrow at LEFT side */
.wrb-fb-badge {
    position: absolute;
    top: -20px;
    left: 30px;
    background: #3d4852;
    color: #fff;
    font-size: .82em;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 6px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.wrb-fb-badge::after {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #3d4852;
}

.wrb-fb-inner {
    display: flex;
    align-items: center;
    gap: 30px;
}

.wrb-fb-image {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #f5f5f5;
    border-radius: 8px;
}
.wrb-fb-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.wrb-fb-content {
    flex: 1;
    min-width: 0;
}

.wrb-fb-title {
    font-size: 1.35em;
    font-weight: 800;
    text-decoration: underline;
    margin: 0 0 20px;
    line-height: 1.3;
}

.wrb-fb-features-label {
    margin: 0 0 12px;
    font-weight: 600;
    font-size: 1em;
}

.wrb-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 18px !important;
}

.wrb-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    line-height: 1.6;
    border: none !important;
}
.wrb-feature-item::before {
    display: none !important;
}

.wrb-fb-desc {
    margin: 18px 0;
    line-height: 1.65;
    opacity: .85;
}

.wrb-fb-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.wrb-fb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 18px;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 700;
    font-size: .88em;
    text-decoration: none !important;
    transition: all .2s;
    white-space: nowrap;
}
.wrb-fb-btn:hover {
    opacity: .88;
    transform: translateY(-1px);
}

@media (max-width: 850px) {
    .wrb-fb-inner {
        flex-direction: column;
        gap: 24px;
    }
    .wrb-fb-image {
        width: 100%;
        min-width: unset;
        max-width: 320px;
        margin: 0 auto;
    }
    .wrb-feature-box {
        padding: 36px 24px 24px;
    }
}

@media (max-width: 540px) {
    .wrb-fb-buttons {
        grid-template-columns: 1fr;
    }
    .wrb-fb-image {
        max-width: 100%;
    }
}

/* ============================================================
   WIDGET 4 — PRODUCT VS
   ============================================================ */
.wrb-product-vs {
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: start; margin: 24px 0;
}
.wrb-vs-product {
    background: #fff; border: 1px solid var(--wrb-border);
    border-radius: var(--wrb-radius); padding: 18px;
    display: flex; flex-direction: column; align-items: center;
}
.wrb-vs-divider {
    display: flex; align-items: center; justify-content: center;
    padding: 0 12px; margin-top: 90px;
}
.wrb-vs-label { font-weight: 900; color: var(--wrb-teal); letter-spacing: -1px; }

.wrb-vs-badge { font-weight: 700; padding: 4px 12px; border-radius: 4px; color: #fff; margin-bottom: 12px; }
.wrb-vs-badge-green { background: var(--wrb-teal); }
.wrb-vs-badge-red   { background: var(--wrb-red); }

.wrb-vs-score {
    width: 50px; height: 50px; border-radius: 50%; border: 3px solid;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; margin-bottom: 12px;
}
.wrb-vs-image { margin-bottom: 10px; text-align: center; }
.wrb-vs-image img { max-width: 140px; max-height: 120px; object-fit: contain; }
.wrb-vs-name { font-weight: 700; margin: 0 0 12px; padding-bottom: 5px; border-bottom: 2px solid currentColor; text-align: center; }

.wrb-vs-specs { list-style: none !important; padding: 0 !important; margin: 0 0 14px !important; width: 100%; }
.wrb-vs-specs li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border: none !important;
    line-height: 1.5;
}
.wrb-vs-specs li::before { display: none !important; }
.wrb-vs-specs .wrb-spec-text {
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
}
.wrb-vs-specs .wrb-spec-text strong {
    font-weight: 700;
    margin-right: 4px;
}

.wrb-vs-buttons { display: flex; flex-direction: column; gap: 7px; width: 100%; }
.wrb-vs-btn {
    display: block; text-align: center; padding: 9px 12px; border-radius: 6px;
    font-weight: 700; text-decoration: none !important;
    transition: opacity .2s; color: #fff !important;
}
.wrb-vs-btn:hover { opacity: .85; }

@media (max-width: 640px) {
    .wrb-product-vs { grid-template-columns: 1fr; }
    .wrb-vs-divider { margin: 8px auto; padding: 0; }
}

/* ============================================================
   WIDGET 5 — BOTTOM LINE
   ============================================================ */
.wrb-bottom-line {
    border: 1px solid #cde8f5; border-radius: var(--wrb-radius);
    background: #f0f9ff; overflow: hidden; margin: 24px 0;
}
.wrb-bl-top { padding: 22px; }
.wrb-bl-header { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 18px; }
.wrb-bl-logo img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }
.wrb-bl-header-text { flex: 1; min-width: 0; }
.wrb-bl-title { font-size: 1.15em; font-weight: 800; margin: 0 0 6px; }
.wrb-bl-desc  { line-height: 1.65; margin: 0 0 6px; opacity: .8; }
.wrb-bl-price { color: #2980b9; font-style: italic; font-size: .9em; margin: 0; }

.wrb-bl-offer {
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    border-top: 1px dashed #aad4e8; border-bottom: 1px dashed #aad4e8;
    padding: 13px 0; margin-bottom: 10px;
}
.wrb-bl-offer-text { font-weight: 600; margin: 0; flex: 1; }
.wrb-bl-claim-btn {
    color: #fff !important; padding: 9px 18px; border-radius: 6px;
    font-weight: 700; font-size: .88em; text-decoration: none !important;
    white-space: nowrap; transition: opacity .2s; display: inline-block;
}
.wrb-bl-claim-btn:hover { opacity: .85; }
.wrb-bl-disclaimer { font-size: .76em; color: #888; margin: 0; line-height: 1.5; }

.wrb-bl-proscons {
    display: grid; grid-template-columns: 1fr 1fr;
    border-top: 1px dashed #aad4e8; padding: 18px 22px; background: #fff;
}
.wrb-bl-pros { border-right: 1px solid var(--wrb-border); padding-right: 14px; }
.wrb-bl-cons { padding-left: 14px; }
.wrb-bl-pros h4, .wrb-bl-cons h4 { margin: 0 0 8px; }

.wrb-bl-summary-btn {
    display: inline-block; margin: 0 22px 18px; padding: 9px 22px;
    color: #fff !important; border-radius: 6px; font-weight: 700;
    font-size: .88em; text-decoration: none !important; transition: opacity .2s;
}
.wrb-bl-summary-btn:hover { opacity: .85; }

@media (max-width: 600px) {
    .wrb-bl-header { flex-direction: column; }
    .wrb-bl-offer  { flex-direction: column; align-items: flex-start; gap: 10px; }
    .wrb-bl-proscons { grid-template-columns: 1fr; }
    .wrb-bl-pros { border-right: none; border-bottom: 1px solid var(--wrb-border); padding-right: 0; padding-bottom: 14px; margin-bottom: 14px; }
    .wrb-bl-cons { padding-left: 0; }
}

/* ============================================================
   WIDGET 6 — COUPON BANNER
   ============================================================ */
.wrb-coupon-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    padding: 16px 24px; border-radius: var(--wrb-radius); margin: 24px 0;
}
.wrb-cb-text { flex: 1; min-width: 0; }
.wrb-cb-headline {
    font-size: 1.1em; font-weight: 800; color: #fff; margin: 0 0 4px;
    display: flex; align-items: center; gap: 0;
}
.wrb-cb-subtitle { font-size: .86em; color: rgba(255,255,255,.88); margin: 0; }
.wrb-cb-btn {
    display: inline-block; padding: 10px 20px; border-radius: 6px;
    font-weight: 900; font-size: .86em; color: #1a1a1a !important;
    text-decoration: none !important; letter-spacing: .5px;
    transition: opacity .2s; white-space: nowrap;
}
.wrb-cb-btn:hover { opacity: .88; }

@media (max-width: 500px) {
    .wrb-coupon-banner { flex-direction: column; align-items: flex-start; }
    .wrb-cb-btn { width: 100%; text-align: center; }
}

/* ============================================================
   WIDGET 7 — COMPARISON TABLE
   ============================================================ */
/* ============================================================
   WIDGET 7 — COMPARISON TABLE
   ============================================================ */
.wrb-comparison-table-wrap {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: var(--wrb-radius);
    box-shadow: var(--wrb-shadow);
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e0e6ed;
}
.wrb-comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 480px;
    border: none !important;
    margin: 0 !important;
    display: table;
}
.wrb-comparison-table thead tr {
    background: #1a3d6b;
}
.wrb-comparison-table thead th {
    color: #fff;
    font-weight: 700;
    padding: 13px 16px;
    text-align: center;
    font-size: .85em;
    letter-spacing: .3px;
    border: none !important;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}
.wrb-comparison-table tbody td {
    padding: 13px 16px;
    text-align: center;
    border: 1px solid #e0e6ed !important;
    vertical-align: middle;
    line-height: 1.4;
}
.wrb-row-even { background: #fff; }
.wrb-row-odd  { background: #eaf0f8; }
.wrb-comparison-table tbody tr:hover { background: #dce9f5; }
.wrb-comparison-table tbody td:first-child {
    font-weight: 600;
    color: #1a3d6b;
}

/* ── Responsive images ───────────────────────────────────────── */
.wrb-pros-cons img, .wrb-product-card img, .wrb-feature-box img,
.wrb-product-vs img, .wrb-bottom-line img {
    max-width: 100%; height: auto; display: block;
}

/* ── Comparison Table Footer (Column Delete Buttons) ────────── */
.wrb-comparison-table tfoot td {
    padding: 8px;
    text-align: center;
    background: #f5f5f5;
    border: 1px solid;
}
