/**
 * Lucky WP Blocks — Legacy Styles
 * Provides styling for existing posts that use the old Affiliate Booster
 * and Ultimate Blocks HTML class names. These styles ensure backward
 * compatibility so old posts render correctly after migrating to Lucky WP.
 *
 * New posts use lwp-* classes from blocks.css.
 * Old posts use affiliate-* and ub-* classes from this file.
 */

/* ══════════════════════════════════════════════════════════════════════════════
   SHARED LEGACY TOKENS
   ══════════════════════════════════════════════════════════════════════════════ */

:root {
    --ab-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    --ab-radius: 10px;
    --ab-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --ab-border: #e5e7eb;
    --ab-green: #10b981;
    --ab-red: #ef4444;
    --ab-star: #ffa500;
    --ab-btn-bg: #e7163a;
}

/* ══════════════════════════════════════════════════════════════════════════════
   SHARED — Buttons, Stars, Glimmer
   ══════════════════════════════════════════════════════════════════════════════ */

.affiliate-abbtn,
.affiliate-sp-btn,
.affiliate-productverdict-btn,
.affiliate-coupon-btn a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--ab-font);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: var(--ab-btn-bg);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.affiliate-abbtn:hover,
.affiliate-sp-btn:hover,
.affiliate-productverdict-btn:hover,
.affiliate-coupon-btn a:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(231, 22, 58, 0.3);
    color: #fff;
    text-decoration: none;
}

.btn-is-small { font-size: 14px; padding: 10px 20px; }
.btn-is-fullw { width: 100%; text-align: center; }
.btn-is-rounded { border-radius: 50px; }

.glimmer-effect::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.25) 50%, transparent 100%);
    animation: ab-glimmer 3s ease-in-out infinite;
}

@keyframes ab-glimmer {
    0% { left: -100%; }
    50% { left: 120%; }
    100% { left: 120%; }
}

.affiliate-abbtn-icon {
    font-size: 12px;
}

.af-icon-is-left { margin-right: 4px; }
.af-icon-is-right { margin-left: 4px; }

.affiliate-star-item {
    display: inline-block;
    width: 18px;
    height: 18px;
}

.affiliate-star-item svg {
    width: 100%;
    height: 100%;
}

/* ══════════════════════════════════════════════════════════════════════════════
   COUPON BLOCK (affiliate-booster/ab-coupon4) — v2 Premium Ticket Redesign
   Selectors work with AND without .style4 wrapper.
   ══════════════════════════════════════════════════════════════════════════════ */

.affiliate-coupon-wrapper.style4,
.affiliate-coupon-wrapper,
div[id^="affiliate-style-"]:has(.affiliate-coupon-inner),
.wp-block-affiliate-booster-ab-coupon4 {
    font-family: var(--ab-font);
    margin: 32px 0;
}

/* ── Card container ──────────────────────────────────────────────────── */
.affiliate-coupon-wrapper.style4 .affiliate-coupon-inner,
div[id^="affiliate-style-"] .affiliate-coupon-inner,
.affiliate-coupon-inner .affiliate-coupon-inner,
div[id^="affiliate-style-"] > .affiliate-coupon-inner,
.affiliate-coupon-inner {
    background: #fff;
    border: 1px solid #edf0f4;
    border-radius: 20px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 36px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    transition: box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s;
    position: relative;
}

/* Kill the old top gradient bar — the new design uses a hover-glow instead */
.affiliate-coupon-wrapper.style4 .affiliate-coupon-inner::before,
div[id^="affiliate-style-"] .affiliate-coupon-inner::before,
.affiliate-coupon-inner .affiliate-coupon-inner::before,
div[id^="affiliate-style-"] > .affiliate-coupon-inner::before,
.affiliate-coupon-inner::before {
    content: none;
    display: none;
}

.affiliate-coupon-wrapper.style4 .affiliate-coupon-inner:hover,
div[id^="affiliate-style-"] .affiliate-coupon-inner:hover,
.affiliate-coupon-inner .affiliate-coupon-inner:hover {
    border-color: #fde4b5;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05), 0 22px 56px rgba(234, 88, 12, 0.14);
    transform: translateY(-3px);
}

/* ── Content wrapper — no padding; each column owns its space ─────── */
.affiliate-coupon-wrapper.style4 .affiliate-coupon-content-wrapper,
div[id^="affiliate-style-"] .affiliate-coupon-content-wrapper,
.affiliate-coupon-inner .affiliate-coupon-content-wrapper {
    padding: 0;
}

/* ── 3-column grid — Image | Content | CTA ─────────────────────────── */
.affiliate-coupon-wrapper.style4 .affiliate-coupon-content-inner,
div[id^="affiliate-style-"] .affiliate-coupon-content-inner,
.affiliate-coupon-inner .affiliate-coupon-content-inner {
    display: grid;
    grid-template-columns: 180px 1fr 240px;
    align-items: stretch;
}

.affiliate-coupon-wrapper.style4 .affiliate-col,
div[id^="affiliate-style-"] .affiliate-col,
.affiliate-coupon-inner .affiliate-col {
    word-break: normal !important;
    overflow-wrap: break-word;
    min-width: 0;
}

/* ── Column 1 — Image (light neutral backdrop, matches stub) ───────── */
.affiliate-coupon-wrapper.style4 .affiliate-col.firstcol,
div[id^="affiliate-style-"] .affiliate-col.firstcol,
.affiliate-coupon-inner .affiliate-col.firstcol {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 18px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
    border-right: 1px solid #e5e7eb;
}
/* Kill any leftover padding from the original Affiliate Booster plugin CSS */
.affiliate-coupon-wrapper.style4 .affiliate-coupon-image,
div[id^="affiliate-style-"] .affiliate-coupon-image,
.affiliate-coupon-inner .affiliate-coupon-image,
div[class^="affiliate-coupon-image"],
div[class*=" affiliate-coupon-image"] {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    border: 0 !important;
}
.affiliate-coupon-wrapper.style4 .affiliate-coupon-image img,
div[id^="affiliate-style-"] .affiliate-coupon-image img,
.affiliate-coupon-inner .affiliate-coupon-image img {
    width: 144px !important;
    height: 144px !important;
    border-radius: 18px !important;
    object-fit: contain !important;
    background: #fff !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid #edf0f4 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 10px 24px rgba(15, 23, 42, 0.07) !important;
}

/* ── Column 2 — Content ─────────────────────────────────────────────── */
.affiliate-coupon-wrapper.style4 .affiliate-col.seccol,
div[id^="affiliate-style-"] .affiliate-col.seccol,
.affiliate-coupon-inner .affiliate-col.seccol {
    padding: 28px 28px 28px 24px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: center;
    border-right: none;
    gap: 0;
}

.affiliate-coupon-wrapper.style4 .affiliate-coupon-maintitle,
div[id^="affiliate-style-"] .affiliate-coupon-maintitle,
.affiliate-coupon-inner .affiliate-coupon-maintitle,
.affiliate-coupon-wrapper.style4 .affiliate-coupon-content,
div[id^="affiliate-style-"] .affiliate-coupon-content,
.affiliate-coupon-inner .affiliate-coupon-content {
    width: 100%;
}

/* Badge wrapper divs */
.affiliate-coupon-wrapper.style4 .affiliate-col.seccol > div.affiliate-coupon-Verified,
div[id^="affiliate-style-"] .affiliate-col.seccol > div.affiliate-coupon-Verified,
.affiliate-coupon-inner .affiliate-col.seccol > div.affiliate-coupon-Verified,
.affiliate-coupon-wrapper.style4 .affiliate-col.seccol > div.affiliate-coupon-StaffPick,
div[id^="affiliate-style-"] .affiliate-col.seccol > div.affiliate-coupon-StaffPick,
.affiliate-coupon-inner .affiliate-col.seccol > div.affiliate-coupon-StaffPick {
    width: auto !important;
    max-width: none !important;
    margin: 0 8px 10px 0;
}

.affiliate-coupon-wrapper.style4 .affiliate-coupon-Verified,
div[id^="affiliate-style-"] .affiliate-coupon-Verified,
.affiliate-coupon-inner .affiliate-coupon-Verified,
.affiliate-coupon-wrapper.style4 .affiliate-coupon-StaffPick,
div[id^="affiliate-style-"] .affiliate-coupon-StaffPick,
.affiliate-coupon-inner .affiliate-coupon-StaffPick {
    display: inline-flex !important;
    align-items: center;
    width: auto !important;
    max-width: none !important;
    vertical-align: middle;
    line-height: 1;
}

/* Verified — green pill with filled check circle */
.affiliate-coupon-wrapper.style4 .affiliate-coupon-Verified,
div[id^="affiliate-style-"] .affiliate-coupon-Verified,
.affiliate-coupon-inner .affiliate-coupon-Verified {
    position: relative;
    padding: 6px 14px 6px 30px;
    color: #047857;
    font-size: 11px;
    font-weight: 800;
    background: linear-gradient(135deg, #ecfdf5, #f0fdf6);
    border: 1px solid #a7f3d0;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 1px 2px rgba(5, 150, 105, 0.08);
}
.affiliate-coupon-wrapper.style4 .affiliate-coupon-Verified::before,
div[id^="affiliate-style-"] .affiliate-coupon-Verified::before,
.affiliate-coupon-inner .affiliate-coupon-Verified::before {
    content: "\2713";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: #10b981;
    color: #fff;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.35);
}

/* Staff Pick — gradient with inline star icon */
.affiliate-coupon-wrapper.style4 .affiliate-coupon-StaffPick,
div[id^="affiliate-style-"] .affiliate-coupon-StaffPick,
.affiliate-coupon-inner .affiliate-coupon-StaffPick {
    position: relative;
    padding: 6px 14px 6px 28px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 800;
    border-radius: 50px;
    letter-spacing: 0.08em;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.4), inset 0 1px 0 rgba(255,255,255,0.22);
}
.affiliate-coupon-wrapper.style4 .affiliate-coupon-StaffPick::before,
div[id^="affiliate-style-"] .affiliate-coupon-StaffPick::before,
.affiliate-coupon-inner .affiliate-coupon-StaffPick::before {
    content: "\2605";
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    line-height: 1;
    color: #fff;
}

/* Title — larger, tighter */
.affiliate-coupon-wrapper.style4 .affiliate-coupon-maintitle,
div[id^="affiliate-style-"] .affiliate-coupon-maintitle,
.affiliate-coupon-inner .affiliate-coupon-maintitle {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 10px 0 4px;
    line-height: 1.25;
    word-break: break-word;
    letter-spacing: -0.02em;
}

.affiliate-coupon-wrapper.style4 .affiliate-coupon-content,
div[id^="affiliate-style-"] .affiliate-coupon-content,
.affiliate-coupon-inner .affiliate-coupon-content {
    font-size: 14.5px;
    color: #64748b;
    line-height: 1.6;
    margin: 4px 0 0;
    word-break: break-word;
}

.affiliate-coupon-wrapper.style4 .affiliate-coupon-PeopleUsed,
div[id^="affiliate-style-"] .affiliate-coupon-PeopleUsed,
.affiliate-coupon-inner .affiliate-coupon-PeopleUsed,
.affiliate-coupon-wrapper.style4 .affiliate-coupon-onlyLeft,
div[id^="affiliate-style-"] .affiliate-coupon-onlyLeft,
.affiliate-coupon-inner .affiliate-coupon-onlyLeft {
    display: none !important;
}

/* ── Column 3 — Rating + CTA (neutral stub, perforation divider) ───── */
.affiliate-coupon-wrapper.style4 .affiliate-col.thirdcol,
div[id^="affiliate-style-"] .affiliate-col.thirdcol,
.affiliate-coupon-inner .affiliate-col.thirdcol {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 24px;
    text-align: center;
    gap: 14px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
    position: relative;
}

/* Dashed vertical perforation divider */
.affiliate-coupon-wrapper.style4 .affiliate-col.thirdcol::before,
div[id^="affiliate-style-"] .affiliate-col.thirdcol::before,
.affiliate-coupon-inner .affiliate-col.thirdcol::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 0;
    border-left: 2px dashed #cbd5e1;
    pointer-events: none;
}

/* Rating cluster — inline, no chip, sits on the stub */
.affiliate-coupon-wrapper.style4 .affiliate-coupon-starrating-outer,
div[id^="affiliate-style-"] .affiliate-coupon-starrating-outer,
.affiliate-coupon-inner .affiliate-coupon-starrating-outer {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    width: auto;
    flex-wrap: nowrap;
}

.affiliate-coupon-wrapper.style4 .affiliate-coupon-starratingTitle,
div[id^="affiliate-style-"] .affiliate-coupon-starratingTitle,
.affiliate-coupon-inner .affiliate-coupon-starratingTitle {
    font-size: 10px;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    white-space: nowrap;
    line-height: 1;
}

.affiliate-coupon-wrapper.style4 .affiliate-coupon-ratingnumber,
div[id^="affiliate-style-"] .affiliate-coupon-ratingnumber,
.affiliate-coupon-inner .affiliate-coupon-ratingnumber {
    font-size: 15px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.affiliate-coupon-wrapper.style4 .affiliate-coupon-starrating,
div[id^="affiliate-style-"] .affiliate-coupon-starrating,
.affiliate-coupon-inner .affiliate-coupon-starrating {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    flex-wrap: nowrap;
}

.affiliate-coupon-wrapper.style4 .affiliate-coupon-starrating .affiliate-star-item,
div[id^="affiliate-style-"] .affiliate-coupon-starrating .affiliate-star-item,
.affiliate-coupon-inner .affiliate-coupon-starrating .affiliate-star-item {
    display: inline-flex;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}
.affiliate-coupon-wrapper.style4 .affiliate-coupon-starrating .affiliate-star-item svg,
div[id^="affiliate-style-"] .affiliate-coupon-starrating .affiliate-star-item svg,
.affiliate-coupon-inner .affiliate-coupon-starrating .affiliate-star-item svg {
    width: 15px;
    height: 15px;
    fill: #f59e0b;
    filter: drop-shadow(0 1px 1px rgba(180,83,9,0.25));
}

/* CTA Button — premium with arrow + shine sweep */
.affiliate-coupon-wrapper.style4 .affiliate-coupon-btn,
div[id^="affiliate-style-"] .affiliate-coupon-btn,
.affiliate-coupon-inner .affiliate-coupon-btn {
    width: 100%;
    padding: 0;
}
.affiliate-coupon-wrapper.style4 .affiliate-coupon-btn-wrapper,
div[id^="affiliate-style-"] .affiliate-coupon-btn-wrapper,
.affiliate-coupon-inner .affiliate-coupon-btn-wrapper {
    width: 100%;
    display: flex;
}

.affiliate-coupon-wrapper.style4 .affiliate-coupon-btn .affiliate-btn,
div[id^="affiliate-style-"] .affiliate-coupon-btn .affiliate-btn,
.affiliate-coupon-inner .affiliate-coupon-btn .affiliate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    color: #fff !important;
    text-align: center;
    text-decoration: none !important;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    word-break: normal;
    font-weight: 800;
    font-size: 15px;
    padding: 14px 26px;
    border-radius: 50px;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35), inset 0 1px 0 rgba(255,255,255,0.25);
    letter-spacing: 0.02em;
    white-space: nowrap;
}
/* Arrow → */
.affiliate-coupon-wrapper.style4 .affiliate-coupon-btn .affiliate-btn::after,
div[id^="affiliate-style-"] .affiliate-coupon-btn .affiliate-btn::after,
.affiliate-coupon-inner .affiliate-coupon-btn .affiliate-btn::after {
    content: "\2192";
    font-size: 17px;
    font-weight: 700;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
    display: inline-block;
}
/* Shine sweep */
.affiliate-coupon-wrapper.style4 .affiliate-coupon-btn .affiliate-btn::before,
div[id^="affiliate-style-"] .affiliate-coupon-btn .affiliate-btn::before,
.affiliate-coupon-inner .affiliate-coupon-btn .affiliate-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
    transform: skewX(-20deg);
    transition: left 0.75s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    pointer-events: none;
}
.affiliate-coupon-wrapper.style4 .affiliate-coupon-btn .affiliate-btn:hover,
div[id^="affiliate-style-"] .affiliate-coupon-btn .affiliate-btn:hover,
.affiliate-coupon-inner .affiliate-coupon-btn .affiliate-btn:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    box-shadow: 0 8px 24px rgba(234, 88, 12, 0.48), inset 0 1px 0 rgba(255,255,255,0.3);
    transform: translateY(-2px);
    color: #fff !important;
}
.affiliate-coupon-wrapper.style4 .affiliate-coupon-btn .affiliate-btn:hover::after,
div[id^="affiliate-style-"] .affiliate-coupon-btn .affiliate-btn:hover::after,
.affiliate-coupon-inner .affiliate-coupon-btn .affiliate-btn:hover::after {
    transform: translateX(4px);
}
.affiliate-coupon-wrapper.style4 .affiliate-coupon-btn .affiliate-btn:hover::before,
div[id^="affiliate-style-"] .affiliate-coupon-btn .affiliate-btn:hover::before,
.affiliate-coupon-inner .affiliate-coupon-btn .affiliate-btn:hover::before {
    left: 140%;
}

.affiliate-coupon-wrapper.style4 .affiliate-coupon-btn .btn-is-small,
div[id^="affiliate-style-"] .affiliate-coupon-btn .btn-is-small,
.affiliate-coupon-inner .affiliate-coupon-btn .btn-is-small { padding: 11px 20px; }
.affiliate-coupon-wrapper.style4 .affiliate-coupon-btn .btn-is-medium,
div[id^="affiliate-style-"] .affiliate-coupon-btn .btn-is-medium,
.affiliate-coupon-inner .affiliate-coupon-btn .btn-is-medium { padding: 13px 24px; }
.affiliate-coupon-wrapper.style4 .affiliate-coupon-btn .btn-is-large,
div[id^="affiliate-style-"] .affiliate-coupon-btn .btn-is-large,
.affiliate-coupon-inner .affiliate-coupon-btn .btn-is-large { padding: 15px 28px; }
.affiliate-coupon-wrapper.style4 .affiliate-coupon-btn .btn-is-fullw,
div[id^="affiliate-style-"] .affiliate-coupon-btn .btn-is-fullw,
.affiliate-coupon-inner .affiliate-coupon-btn .btn-is-fullw { width: 100% !important; }
.affiliate-coupon-wrapper.style4 .btn-is-rounded,
div[id^="affiliate-style-"] .btn-is-rounded,
.affiliate-coupon-inner .btn-is-rounded { border-radius: 50px; }

/* On-Going Offer pill */
.affiliate-coupon-wrapper.style4 .affiliate-coupon-onGoingOffer,
div[id^="affiliate-style-"] .affiliate-coupon-onGoingOffer,
.affiliate-coupon-inner .affiliate-coupon-onGoingOffer {
    font-size: 10px;
    color: #334155;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-align: center;
    text-transform: uppercase;
    padding: 4px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    margin-top: 0;
    opacity: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.affiliate-coupon-wrapper.style4 .affiliate-coupon-onGoingOffer::before,
div[id^="affiliate-style-"] .affiliate-coupon-onGoingOffer::before,
.affiliate-coupon-inner .affiliate-coupon-onGoingOffer::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.22);
    animation: lwp-pulse 2s ease-in-out infinite;
}
@keyframes lwp-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.22); }
    50%      { box-shadow: 0 0 0 6px rgba(234, 88, 12, 0.05); }
}

/* ── Responsive: tablet (≤991px) — two rows, ticket stub on the bottom */
@media (max-width: 991px) {
    .affiliate-coupon-wrapper.style4 .affiliate-coupon-content-inner,
    div[id^="affiliate-style-"] .affiliate-coupon-content-inner,
    .affiliate-coupon-inner .affiliate-coupon-content-inner {
        grid-template-columns: 140px 1fr;
    }
    .affiliate-coupon-wrapper.style4 .affiliate-col.firstcol,
    div[id^="affiliate-style-"] .affiliate-col.firstcol,
    .affiliate-coupon-inner .affiliate-col.firstcol {
        padding: 22px 0 22px 22px;
    }
    .affiliate-coupon-wrapper.style4 .affiliate-coupon-image img,
    div[id^="affiliate-style-"] .affiliate-coupon-image img,
    .affiliate-coupon-inner .affiliate-coupon-image img {
        width: 112px !important;
        height: 112px !important;
        border-radius: 16px !important;
        padding: 0 !important;
    }
    .affiliate-coupon-wrapper.style4 .affiliate-col.seccol,
    div[id^="affiliate-style-"] .affiliate-col.seccol,
    .affiliate-coupon-inner .affiliate-col.seccol {
        padding: 24px 22px 0;
    }
    .affiliate-coupon-wrapper.style4 .affiliate-col.thirdcol,
    div[id^="affiliate-style-"] .affiliate-col.thirdcol,
    .affiliate-coupon-inner .affiliate-col.thirdcol {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 14px;
        padding: 18px 22px;
        background: linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
    }
    .affiliate-coupon-wrapper.style4 .affiliate-col.thirdcol::before,
    div[id^="affiliate-style-"] .affiliate-col.thirdcol::before,
    .affiliate-coupon-inner .affiliate-col.thirdcol::before {
        left: 14px;
        right: 14px;
        top: 0;
        bottom: auto;
        width: auto;
        border-left: none;
        border-top: 2px dashed #cbd5e1;
    }
    .affiliate-coupon-wrapper.style4 .affiliate-coupon-maintitle,
    div[id^="affiliate-style-"] .affiliate-coupon-maintitle,
    .affiliate-coupon-inner .affiliate-coupon-maintitle {
        font-size: 19px;
    }
    .affiliate-coupon-wrapper.style4 .affiliate-coupon-btn,
    div[id^="affiliate-style-"] .affiliate-coupon-btn,
    .affiliate-coupon-inner .affiliate-coupon-btn {
        width: auto;
        flex: 1;
        min-width: 180px;
    }
    .affiliate-coupon-wrapper.style4 .affiliate-coupon-onGoingOffer,
    div[id^="affiliate-style-"] .affiliate-coupon-onGoingOffer,
    .affiliate-coupon-inner .affiliate-coupon-onGoingOffer {
        display: none;
    }
}

/* ── Responsive: mobile (≤600px) — single column stack ───────────────── */
@media (max-width: 600px) {
    .affiliate-coupon-wrapper.style4 .affiliate-coupon-content-inner,
    div[id^="affiliate-style-"] .affiliate-coupon-content-inner,
    .affiliate-coupon-inner .affiliate-coupon-content-inner {
        grid-template-columns: 1fr;
    }
    .affiliate-coupon-wrapper.style4 .affiliate-col.firstcol,
    div[id^="affiliate-style-"] .affiliate-col.firstcol,
    .affiliate-coupon-inner .affiliate-col.firstcol {
        justify-content: flex-start;
        padding: 22px 22px 0;
    }
    .affiliate-coupon-wrapper.style4 .affiliate-coupon-image img,
    div[id^="affiliate-style-"] .affiliate-coupon-image img,
    .affiliate-coupon-inner .affiliate-coupon-image img {
        width: 96px !important;
        height: 96px !important;
        padding: 0 !important;
    }
    .affiliate-coupon-wrapper.style4 .affiliate-col.seccol,
    div[id^="affiliate-style-"] .affiliate-col.seccol,
    .affiliate-coupon-inner .affiliate-col.seccol {
        padding: 16px 22px 22px;
        align-items: flex-start;
    }
    .affiliate-coupon-wrapper.style4 .affiliate-col.thirdcol,
    div[id^="affiliate-style-"] .affiliate-col.thirdcol,
    .affiliate-coupon-inner .affiliate-col.thirdcol {
        flex-direction: column;
        padding: 20px 22px;
        gap: 12px;
    }
    .affiliate-coupon-wrapper.style4 .affiliate-coupon-maintitle,
    div[id^="affiliate-style-"] .affiliate-coupon-maintitle,
    .affiliate-coupon-inner .affiliate-coupon-maintitle {
        font-size: 18px;
    }
    .affiliate-coupon-wrapper.style4 .affiliate-coupon-Verified,
    div[id^="affiliate-style-"] .affiliate-coupon-Verified,
    .affiliate-coupon-inner .affiliate-coupon-Verified,
    .affiliate-coupon-wrapper.style4 .affiliate-coupon-StaffPick,
    div[id^="affiliate-style-"] .affiliate-coupon-StaffPick,
    .affiliate-coupon-inner .affiliate-coupon-StaffPick {
        margin-right: 6px;
    }
    .affiliate-coupon-wrapper.style4 .affiliate-coupon-btn,
    div[id^="affiliate-style-"] .affiliate-coupon-btn,
    .affiliate-coupon-inner .affiliate-coupon-btn {
        width: 100%;
    }
    .affiliate-coupon-wrapper.style4 .affiliate-coupon-btn .affiliate-btn,
    div[id^="affiliate-style-"] .affiliate-coupon-btn .affiliate-btn,
    .affiliate-coupon-inner .affiliate-coupon-btn .affiliate-btn {
        padding: 14px 24px;
        font-size: 15px;
    }
    .affiliate-coupon-wrapper.style4 .affiliate-coupon-onGoingOffer,
    div[id^="affiliate-style-"] .affiliate-coupon-onGoingOffer,
    .affiliate-coupon-inner .affiliate-coupon-onGoingOffer {
        display: inline-flex;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   PROS & CONS BLOCK (affiliate-booster/propsandcons)
   ══════════════════════════════════════════════════════════════════════════════ */

.wp-block-affiliate-booster-propsandcons {
    font-family: var(--ab-font);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
    overflow: hidden;
    margin: 28px 0;
    transition: box-shadow 0.25s ease;
}
.wp-block-affiliate-booster-propsandcons:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.05), 0 8px 28px rgba(0,0,0,0.06);
}

.affiliate-d-table.affiliate-procon-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

/* ── Pros column ─────────────────────────────────────────────────────── */
.affiliate-props-list {
    padding: 28px 32px;
    background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf6 100%);
    border-right: 1px solid #d1fae5;
}

/* ── Cons column ─────────────────────────────────────────────────────── */
.affiliate-cons-list {
    padding: 28px 32px;
    background: linear-gradient(180deg, #fef2f2 0%, #fff5f5 100%);
}

/* ── Column headings ─────────────────────────────────────────────────── */
.affiliate-propcon-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 20px;
    padding-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}

/* Heading icon circles */
.affiliate-propcon-title::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 900;
    flex-shrink: 0;
    line-height: 1;
}

.affiliate-props-title {
    color: #059669;
    border-bottom: 2px solid #a7f3d0;
}
.affiliate-props-title::before {
    content: "\2713";
    background: #059669;
    color: #fff;
    box-shadow: 0 2px 6px rgba(5,150,105,0.3);
}

.affiliate-const-title {
    color: #dc2626;
    border-bottom: 2px solid #fecaca;
}
.affiliate-const-title::before {
    content: "\2717";
    background: #dc2626;
    color: #fff;
    box-shadow: 0 2px 6px rgba(220,38,38,0.3);
}

/* ── List items ──────────────────────────────────────────────────────── */
.affiliate-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.affiliate-list li {
    position: relative;
    padding: 10px 0 10px 34px;
    font-size: 15px;
    line-height: 1.55;
    color: #1e293b;
    border-bottom: 1px solid transparent;
    transition: background 0.15s ease;
}

.affiliate-list li:last-child {
    padding-bottom: 0;
}

/* Icon circles on each item */
.affiliate-list li::before {
    position: absolute;
    left: 0;
    top: 12px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.affiliate-list-bullet-check-circle li::before {
    content: "\2713";
    background: #d1fae5;
    color: #059669;
    border: 1.5px solid #a7f3d0;
}

.affiliate-list-bullet-times-circle li::before,
.affiliate-list-bullet-times li::before {
    content: "\2717";
    background: #fee2e2;
    color: #dc2626;
    border: 1.5px solid #fecaca;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .affiliate-d-table.affiliate-procon-inner {
        grid-template-columns: 1fr;
    }
    .affiliate-props-list {
        border-right: none;
        border-bottom: 1px solid #d1fae5;
        padding: 24px;
    }
    .affiliate-cons-list {
        padding: 24px;
    }
    .affiliate-propcon-title {
        font-size: 16px;
    }
    .affiliate-list li {
        font-size: 14px;
        padding: 8px 0 8px 30px;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   ADVANCE BUTTON BLOCK (affiliate-booster/ab-advance-button)
   ══════════════════════════════════════════════════════════════════════════════ */

.affiliate-abbtn-wrapper {
    text-align: center;
    margin: 28px 0;
}

.affiliate-abbtn-inner {
    display: inline-block;
}

/* ══════════════════════════════════════════════════════════════════════════════
   FAQ BLOCK (ub/content-toggle-block)
   ══════════════════════════════════════════════════════════════════════════════ */

.wp-block-ub-content-toggle {
    font-family: var(--ab-font);
    border: 1px solid var(--ab-border);
    border-radius: var(--ab-radius);
    box-shadow: var(--ab-shadow);
    overflow: hidden;
    margin: 24px 0;
}

.wp-block-ub-content-toggle-panel {
    border-bottom: 1px solid var(--ab-border);
}

.wp-block-ub-content-toggle-panel:last-child {
    border-bottom: none;
}

.wp-block-ub-content-toggle-panel .wp-block-ub-content-toggle-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 24px;
    background: #fff;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--ab-font);
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    transition: background 0.25s ease;
}

.wp-block-ub-content-toggle-panel .wp-block-ub-content-toggle-panel-title:hover {
    background: #f8f9fb;
}

.wp-block-ub-content-toggle-panel .wp-block-ub-content-toggle-panel-content {
    padding: 0 24px 20px;
    font-size: 15px;
    line-height: 1.7;
    color: #64748b;
}

/* ══════════════════════════════════════════════════════════════════════════════
   VERSUS BLOCK (affiliate-booster/ab-versus-block)
   Premium comparison table with rigid column layout, consistent spacing,
   polished product card tops, and universally styled CTA buttons.

   DESIGN STRATEGY: AB's legacy markup has DIFFERENT HTML structures per
   column (product 1 has more nested divs than product 2+). To make columns
   look identical, we:
   1. Use table-layout: fixed to force equal-width columns
   2. Strip ALL AB inner container styling (backgrounds/borders/padding)
   3. Let our flex layout on .affiliate-sp-inner reassemble content uniformly
   4. Hide empty/placeholder-only elements to prevent column-specific gaps
   ══════════════════════════════════════════════════════════════════════════════ */

/* Focus ring via CSS class (set/removed by JS) — no inline styles that stick */
.ab-versus-block .lwp-focused {
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.35) !important;
    border-radius: 3px;
}

.ab-versus-block {
    font-family: var(--ab-font);
    border: none;
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04), 0 6px 20px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    overflow-x: auto;
    margin: 28px 0;
    background: #fff;
    position: relative;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Gradient accent bar at top */
.ab-versus-block::before {
    content: "";
    display: block;
    height: 5px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #6366f1 100%);
}

.ab-versus-block:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 12px 40px rgba(0, 0, 0, 0.1);
}

.ab-versus-block .affiliate-sp-wrapper {
    width: 100%;
}

/* ── Table: FIXED column layout so both product columns are identical width ─ */
.ab-versus-block table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 560px;
    table-layout: fixed !important;
}

/* Force label column to 160px, remaining columns split equally */
.ab-versus-block table col:first-child,
.ab-versus-block th:first-child,
.ab-versus-block td.affiliate-sp-row3,
.ab-versus-block td:first-child {
    width: 160px !important;
}

.ab-versus-block th,
.ab-versus-block td {
    padding: 14px 18px;
    text-align: center;
    vertical-align: middle;
    font-size: 14px;
    border-bottom: 1px solid #eef2f7;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Product header columns — equal width (split remaining space evenly) */
.ab-versus-block th:not(:first-child) {
    width: auto !important;
}

.ab-versus-block tr:last-child td {
    border-bottom: none;
}

/* ── Product header cells — premium polished tops ─────────────────── */
/* Vertical-align: top keeps content aligned regardless of row height.
   CRITICAL: force identical background on BOTH product columns so AB's
   :nth-child / legacy column-specific styling doesn't tint one side. */
.ab-versus-block th,
.ab-versus-block thead th,
.ab-versus-block tr:first-child th {
    background: linear-gradient(180deg, #fafbfc 0%, #f5f7fa 100%) !important;
    background-color: #fafbfc !important;
    padding: 32px 20px 28px !important;
    border-bottom: 2px solid #e2e8f0 !important;
    vertical-align: top !important;
}

.ab-versus-block th:first-child,
.ab-versus-block thead th:first-child,
.ab-versus-block tr:first-child th:first-child {
    width: 160px !important;
    background: linear-gradient(180deg, #eef2f7 0%, #e2e8f0 100%) !important;
    background-color: #eef2f7 !important;
    border-bottom: 2px solid #cbd5e1 !important;
    padding: 0 !important;
}

/* Force inner container backgrounds to be transparent so the cell's
   background isn't overridden by AB's nested container styling. */
.ab-versus-block th > *,
.ab-versus-block th .affiliate-sp-inner,
.ab-versus-block th .affiliate-sp-content,
.ab-versus-block th div[class*="affiliate-sp"]:not([class*="image"]):not([class*="btn"]) {
    background: transparent !important;
    background-color: transparent !important;
}

/* Vertical separators between product columns — crisp and consistent */
.ab-versus-block th + th,
.ab-versus-block td + td {
    border-left: 1px solid #e2e8f0 !important;
}

.ab-versus-block td.affiliate-sp-row3 + td,
.ab-versus-block .affiliate-sp-row3 + td {
    border-left: 1px solid #e2e8f0 !important;
}

/* Ensure each product column has equal horizontal padding so content
   doesn't feel offset — applies the same 32px breathing room on both sides */
.ab-versus-block th:not(:first-child) {
    padding-left: 32px !important;
    padding-right: 32px !important;
}

/* ── Product header inner layout — RIGID column with equal spacing ──
   Use flex `gap` (NOT margin) for spacing so empty children don't bloat
   the rhythm. Empty elements are hidden below so gap between visible
   elements is always identical regardless of AB's injected wrappers. */
.ab-versus-block .affiliate-sp-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 18px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Every direct child of .affiliate-sp-inner has zero margin — spacing
   is entirely controlled by the `gap` above for perfect symmetry. */
.ab-versus-block .affiliate-sp-inner > * {
    margin: 0 !important;
}

/* Hide empty elements so the `gap` never reserves space for "nothing".
   AB's HTML frequently has an extra empty <p>/<div> in one column but
   not the other — that asymmetry was the root of the spacing mismatch. */
.ab-versus-block .affiliate-sp-inner > p:empty,
.ab-versus-block .affiliate-sp-inner > div:empty,
.ab-versus-block .affiliate-sp-inner > span:empty,
.ab-versus-block .affiliate-sp-content > div:empty,
.ab-versus-block .affiliate-sp-content > p:empty,
.ab-versus-block .affiliate-sp-content:empty,
.ab-versus-block p.affiliate-sp-subtitle:empty,
.ab-versus-block .affiliate-sp-img-wrapper:empty {
    display: none !important;
}

/* Elements that contain only a <br> are effectively empty — hide them */
.ab-versus-block .affiliate-sp-inner > p:has(> br:only-child),
.ab-versus-block .affiliate-sp-inner > div:has(> br:only-child),
.ab-versus-block .affiliate-sp-content > p:has(> br:only-child) {
    display: none !important;
}

/* Strip all nested container chrome + spacing that AB injects around content */
.ab-versus-block .affiliate-sp-inner > div,
.ab-versus-block .affiliate-sp-content > div {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
}

/* The inner content/discount+button wrapper — same flex gap rhythm as
   .affiliate-sp-inner so nested AB wrappers inherit consistent spacing. */
.ab-versus-block .affiliate-sp-content,
.ab-versus-block .affiliate-sp-cntn-wrapper,
.ab-versus-block div[class*="affiliate-sp-cntn"] {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 18px !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Zero out margins on nested content children too */
.ab-versus-block .affiliate-sp-content > *,
.ab-versus-block .affiliate-sp-cntn-wrapper > *,
.ab-versus-block div[class*="affiliate-sp-cntn"] > * {
    margin: 0 !important;
}

/* Re-apply styling for the image wrapper only (the exception) */
.ab-versus-block .affiliate-sp-image,
.ab-versus-block .affiliate-sp-image1,
.ab-versus-block div[class*="affiliate-sp-image"] {
    background: #fff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 8px 20px rgba(0, 0, 0, 0.04) !important;
    padding: 10px !important;
    width: 96px !important;
    max-width: 96px !important;
}

/* Hide empty elements (description/subtitle/content when blank) so they
   don't create awkward gaps between title and button */
.ab-versus-block .affiliate-sp-inner > p:empty,
.ab-versus-block .affiliate-sp-inner > div:empty,
.ab-versus-block .affiliate-sp-content > div:empty,
.ab-versus-block .affiliate-sp-cntn-wrapper:empty,
.ab-versus-block p.affiliate-sp-subtitle:empty,
.ab-versus-block .affiliate-sp-img-wrapper:empty {
    display: none !important;
}

/* AB sometimes uses <br> or zero-width text to "fake" content — hide nodes
   that contain only whitespace/br */
.ab-versus-block .affiliate-sp-inner > p > br:only-child,
.ab-versus-block .affiliate-sp-content > p > br:only-child {
    display: none;
}

/* Product image wrapper — unified white card, same shape in every column.
   Uses :not(:empty) to ensure we only style wrappers that actually contain an img. */
.ab-versus-block .affiliate-sp-image,
.ab-versus-block .affiliate-sp-image1,
.ab-versus-block div[class*="affiliate-sp-image"]:not([class*="-wrapper"]) {
    margin: 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 110px !important;
    height: 110px !important;
    padding: 12px !important;
    background: #fff !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 8px 20px rgba(0, 0, 0, 0.04) !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    border: none !important;
}

.ab-versus-block .affiliate-sp-image img,
.ab-versus-block .affiliate-sp-image1 img,
.ab-versus-block div[class*="affiliate-sp-image"] img {
    width: 100% !important;
    height: 100% !important;
    max-width: 86px !important;
    max-height: 86px !important;
    object-fit: contain !important;
    border-radius: 6px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.04));
}

/* Hide empty image-wrapper div that sometimes appears in only one column */
.ab-versus-block .affiliate-sp-img-wrapper:empty,
.ab-versus-block div[class*="affiliate-sp-img-wrapper"]:empty {
    display: none !important;
}

/* Product titles — bold, uniform, with a symmetric divider beneath */
.ab-versus-block .affiliate-sp-inner > p,
.ab-versus-block p[class*="affiliate-sp-title"] {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 auto !important;
    letter-spacing: -0.01em !important;
    line-height: 1.3 !important;
    text-align: center !important;
    width: 100% !important;
    padding: 0 0 16px 0 !important;
    position: relative !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* Consistent divider under EVERY product title — guarantees both columns
   match regardless of whether AB injected an <hr> in one but not the other. */
.ab-versus-block .affiliate-sp-inner > p::after,
.ab-versus-block p[class*="affiliate-sp-title"]::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    bottom: 0 !important;
    transform: translateX(-50%) !important;
    width: 70% !important;
    max-width: 180px !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent 0%, #cbd5e1 50%, transparent 100%) !important;
}

/* Kill any stray horizontal rules / dividers AB injected into ONE column
   (they were the root cause of asymmetry). Our ::after replaces them. */
.ab-versus-block hr,
.ab-versus-block .affiliate-sp-inner hr,
.ab-versus-block .affiliate-sp-inner > div[class*="divider"],
.ab-versus-block .affiliate-sp-inner > div[class*="separator"] {
    display: none !important;
}

/* Strip top/bottom borders from nested AB containers that create
   rogue divider lines in only one column */
.ab-versus-block .affiliate-sp-inner *,
.ab-versus-block .affiliate-sp-content *,
.ab-versus-block th > div,
.ab-versus-block th > div * {
    border-top: none !important;
    border-bottom: none !important;
}

/* Re-allow our divider (the ::after above doesn't use borders, so this
   blanket rule doesn't affect it). Re-allow image wrapper borders if any. */

/* Content / button wrapper — sits right below title, not stretched */
.ab-versus-block .affiliate-sp-content,
.ab-versus-block div[class*="affiliate-sp-content"] {
    width: 100%;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin: 0;
}

/* Discount text + button pair — grouped visually */
.ab-versus-block .affiliate-sp-cntn-wrapper,
.ab-versus-block div[class*="affiliate-sp-cntn-wrapper"] {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.ab-versus-block .affiliate-sp-btn-wrapper,
.ab-versus-block div[class*="affiliate-sp-btn-wrapper"] {
    width: 100%;
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
}

/* ── Buttons — CTA styling for product-column anchors only ──────────── */
/* Strictly scoped to product headers (<th>) and known button classes.
   Comparison data cells (<td>) are EXCLUDED so inline decorations inside
   pros/cons lists and feature cells (e.g. <a>✅</a> emoji wrappers) are
   never forced into pill buttons. */
.ab-versus-block th a[class*="affiliate-sp-btn"],
.ab-versus-block th a[class*="affiliate-compr-btn"],
.ab-versus-block th .affiliate-sp-inner > a[href],
.ab-versus-block th .affiliate-sp-inner > div > a[href],
.ab-versus-block th .affiliate-sp-content > a[href],
.ab-versus-block a[class*="affiliate-sp-btn"]:not(td a),
.ab-versus-block a[class*="affiliate-compr-btn"]:not(td a),
.ab-versus-block th .affiliate-sp-btn,
.ab-versus-block th .affiliate-sp-btn1,
.ab-versus-block th .affiliate-sp-btn2 {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 200px !important;
    padding: 12px 22px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #fff !important;
    text-align: center !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    border: none !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.28) !important;
    letter-spacing: 0.01em !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    transition: all 0.25s ease !important;
    position: relative !important;
    overflow: hidden !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    min-height: 42px !important;
}

.ab-versus-block th a[class*="affiliate-sp-btn"]:hover,
.ab-versus-block th a[class*="affiliate-compr-btn"]:hover,
.ab-versus-block th .affiliate-sp-inner > a[href]:hover,
.ab-versus-block th .affiliate-sp-inner > div > a[href]:hover,
.ab-versus-block th .affiliate-sp-content > a[href]:hover,
.ab-versus-block th .affiliate-sp-btn:hover,
.ab-versus-block th .affiliate-sp-btn1:hover,
.ab-versus-block th .affiliate-sp-btn2:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4) !important;
    transform: translateY(-1px) !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* Hide empty decorative icons in AB buttons */
.ab-versus-block a i.affiliate-abbtn-icon:empty,
.ab-versus-block a i[class*="af-icon"]:empty,
.ab-versus-block a i.dashicons:empty {
    display: none !important;
}

/* ── Data-cell anchor reset ─────────────────────────────────────────
   Anchors that live inside comparison data cells (pros/cons/features)
   are inline decorations or inline links — NEVER CTA buttons. This
   reset makes sure nothing in this stylesheet (or any overly broad
   selector) accidentally renders them as purple pills. */
.ab-versus-block td a[href],
.ab-versus-block td.affiliate-sp-row3 a[href],
.ab-versus-block .affiliate-compr-conts a[href],
.ab-versus-block td a[class*="affiliate-sp-btn"],
.ab-versus-block td a[class*="affiliate-compr-btn"] {
    display: inline !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    color: inherit !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    width: auto !important;
    min-width: 0 !important;
    font-weight: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    letter-spacing: normal !important;
    text-align: inherit !important;
    text-decoration: underline;
    text-transform: none !important;
    white-space: normal !important;
    gap: 0 !important;
    transform: none !important;
    transition: none !important;
    overflow: visible !important;
    cursor: pointer !important;
}

/* Emoji-only anchors inside data cells should render as plain text
   (no underline at all). We can't detect "emoji-only" in CSS, but
   anchors marked by our JS sanitizer get `data-lwp-icon` so we can
   strip the underline cleanly. The JS sanitizer also unwraps these
   entirely so this rule is mostly a safety net for older content. */
.ab-versus-block td a[href][data-lwp-icon] {
    text-decoration: none !important;
}

/* ── Discount text: "Get X% OFF Now!" — styled pill badge ──────── */
.ab-versus-block th p:not([class*="affiliate-sp-title"]):not([class*="title"]):not(:empty) {
    font-size: 13px;
    font-weight: 700;
    color: #c2410c !important;
    margin: 0 !important;
    padding: 8px 16px;
    line-height: 1.4;
    text-align: center;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-radius: 50px;
    border: 1px solid #fed7aa;
    width: auto;
    max-width: 100%;
    align-self: center;
    display: inline-block;
    letter-spacing: 0.01em;
}

.ab-versus-block th p strong,
.ab-versus-block th p b {
    color: #9a3412;
    font-weight: 800;
}

/* Hide stray divider elements AB sometimes injects between sections.
   This is critical — AB's default CSS adds a vertical pipe divider that
   looks odd in our layout. */
.ab-versus-block hr,
.ab-versus-block .affiliate-sp-inner > hr,
.ab-versus-block .affiliate-sp-content > hr,
.ab-versus-block .affiliate-sp-inner::after,
.ab-versus-block .affiliate-sp-inner::before {
    display: none !important;
}

/* AB plugin default adds a vertical-line divider via pseudo-element
   on .affiliate-sp-content in some themes — suppress it */
.ab-versus-block .affiliate-sp-content::before,
.ab-versus-block .affiliate-sp-content::after,
.ab-versus-block div[class*="affiliate-sp-cntn"]::before,
.ab-versus-block div[class*="affiliate-sp-cntn"]::after {
    display: none !important;
    content: none !important;
}

/* ── Row label (first cell of each comparison row) ───────────────── */
.ab-versus-block .affiliate-sp-row3 {
    font-weight: 700 !important;
    color: #0f172a !important;
    text-align: left !important;
    background: #f8fafc !important;
    border-right: 1px solid #e2e8f0;
    font-size: 14px;
    letter-spacing: -0.005em;
    padding-left: 24px !important;
}

.ab-versus-block .affiliate-sp-row3 p {
    margin: 0 !important;
    color: inherit !important;
    font-weight: inherit !important;
}

/* ── Row values (comparison cells) ───────────────────────────────── */
.ab-versus-block td:not(.affiliate-sp-row3) {
    color: #334155;
    font-weight: 500;
}

.ab-versus-block td p {
    margin: 0 !important;
}

/* Hide empty <p> inside <td> — creates phantom gray rectangles otherwise.
   This is the root cause of "empty gray rectangle" in ZonGuru column. */
.ab-versus-block td p:empty,
.ab-versus-block td p > br:only-child,
.ab-versus-block td:empty {
    display: none !important;
}

/* If a <td> contains only whitespace or a single <br>, collapse it */
.ab-versus-block td > p:only-child:empty {
    display: none;
}

/* Neutralize nested container backgrounds in data cells that create
   phantom rectangles — AB sometimes wraps text in styled divs */
.ab-versus-block td > div {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Ensure data cells have a minimum consistent visual */
.ab-versus-block tbody td {
    min-height: 48px;
}

/* ── Alternating row backgrounds — subtle, modern ────────────────── */
.affiliate-sp-row1,
.ab-versus-block .affiliate-sp-row1 {
    background: #fff;
}

.affiliate-sp-row2,
.ab-versus-block .affiliate-sp-row2 {
    background: #fafbfc;
}

.ab-versus-block tr.affiliate-sp-row1:hover td:not(.affiliate-sp-row3),
.ab-versus-block tr.affiliate-sp-row2:hover td:not(.affiliate-sp-row3) {
    background: #f5f7ff;
    transition: background 0.2s ease;
}

/* ── Responsive: tablet ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .ab-versus-block th,
    .ab-versus-block td {
        padding: 12px 14px;
    }
    .ab-versus-block th {
        padding: 22px 12px;
    }
    .ab-versus-block .affiliate-sp-image,
    .ab-versus-block .affiliate-sp-image1,
    .ab-versus-block div[class*="affiliate-sp-image"] {
        width: 76px;
        height: 76px;
        padding: 8px;
        border-radius: 12px;
    }
    .ab-versus-block .affiliate-sp-image img,
    .ab-versus-block .affiliate-sp-image1 img,
    .ab-versus-block div[class*="affiliate-sp-image"] img {
        max-width: 60px;
        max-height: 60px;
    }
    .ab-versus-block .affiliate-sp-inner > p,
    .ab-versus-block p[class*="affiliate-sp-title"] {
        font-size: 14px;
    }
    .ab-versus-block th a,
    .ab-versus-block .affiliate-sp-inner a {
        padding: 10px 16px !important;
        font-size: 13px !important;
        max-width: none !important;
        min-height: 38px !important;
    }
    .ab-versus-block th p:not([class*="affiliate-sp-title"]):not([class*="title"]) {
        font-size: 12px;
        padding: 4px 10px;
    }
}

/* ── Responsive: mobile ──────────────────────────────────────────── */
@media (max-width: 480px) {
    .ab-versus-block {
        margin: 20px 0;
        border-radius: 12px;
    }
    .ab-versus-block th,
    .ab-versus-block td {
        padding: 10px 10px;
        font-size: 12px;
    }
    .ab-versus-block th:first-child,
    .ab-versus-block .affiliate-sp-row3 {
        width: 90px;
        padding-left: 12px !important;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   SINGLE PRODUCT BLOCK (affiliate-booster/ab-single-product)
   ══════════════════════════════════════════════════════════════════════════════ */

div[id^="affiliate-style-"] > .affiliate-sp-wrapper {
    font-family: var(--ab-font);
    background: #fff;
    border: 1px solid var(--ab-border);
    border-radius: var(--ab-radius);
    box-shadow: var(--ab-shadow);
    overflow: hidden;
    margin: 24px 0;
}

.affiliate-sp-wrapper .affiliate-sp-inner {
    padding: 0;
}

.affiliate-sp-wrapper .affiliate-sp-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    padding: 20px 24px;
    border-bottom: 1px solid var(--ab-border);
    background: #f8f9fb;
}

.affiliate-sp-wrapper .affiliate-sp-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
}

.affiliate-sp-wrapper .affiliate-sp-img-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px;
    border-right: 1px solid var(--ab-border);
    background: #f8f9fb;
}

.affiliate-sp-wrapper .affiliate-sp-image img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    border-radius: 8px;
}

.affiliate-sp-wrapper .affiliate-sp-cntn-wrapper {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.affiliate-sp-wrapper .affiliate-sp-subtitle {
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    margin: 0;
}

.affiliate-sp-wrapper .affiliate-sp-btn-wrapper {
    margin-top: 4px;
}

.affiliate-sp-amzon-price,
.affiliate-sp-amzon-rating {
    display: none;
}

@media (max-width: 640px) {
    .affiliate-sp-wrapper .affiliate-sp-content {
        grid-template-columns: 1fr;
    }
    .affiliate-sp-wrapper .affiliate-sp-img-wrapper {
        border-right: none;
        border-bottom: 1px solid var(--ab-border);
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   PRODUCT VERDICT BLOCK (affiliate-booster/ab-product-verdict)
   ══════════════════════════════════════════════════════════════════════════════ */

.affiliate-productverdict {
    font-family: var(--ab-font);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 10px 30px rgba(0,0,0,0.04);
    overflow: hidden;
    margin: 28px 0;
    transition: box-shadow 0.25s ease;
}
.affiliate-productverdict:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.05), 0 14px 40px rgba(0,0,0,0.07);
}

.affiliate-productverdict-main {
    padding: 0;
}

.affiliate-productverdict-wrapper {
    display: flex;
    flex-direction: column;
}

.affiliate-productverdict-inner {
    border-bottom: 1px solid #f1f5f9;
}

.affiliate-productverdict-content {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
}

/* ── Left media column ─────────────────────────────────────────────────── */
.affiliate-productverdict-img-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 32px 24px;
    background: linear-gradient(180deg, #fafbfc 0%, #f1f5f9 100%);
    border-right: 1px solid #e5e7eb;
    text-align: center;
}

.affiliate-productverdict-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 160px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 6px 16px rgba(0,0,0,0.05);
    padding: 18px;
}
.affiliate-productverdict-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    background: transparent;
}

/* Description paragraph — fully reset so no theme 'card' styling bleeds in */
p.affiliate-productverdict,
.affiliate-productverdict-img-wrapper > p {
    all: unset;
    display: block;
    font-family: var(--ab-font);
    font-size: 14px;
    font-weight: 400;
    color: #475569;
    line-height: 1.65;
    text-align: center;
    margin: 0;
    padding: 0;
    background: transparent !important;
    border: 0;
    box-shadow: none;
    border-radius: 0;
}

/* ── Right pros/cons columns ───────────────────────────────────────────── */
.affiliate-productverdict-cntn-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.affiliate-productverdict-left {
    padding: 28px 28px 26px;
    background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf6 100%);
    border-right: 1px solid #d1fae5;
}

.affiliate-productverdict-right {
    padding: 28px 28px 26px;
    background: linear-gradient(180deg, #fef2f2 0%, #fff5f5 100%);
}

.affiliate-productverdict-title,
.affiliate-productverdict-subtitle {
    font-family: var(--ab-font);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 16px;
    padding: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.2;
}
.affiliate-productverdict-title {
    color: #059669;
    border-bottom: 2px solid #a7f3d0;
}
.affiliate-productverdict-title::before {
    content: "\2713";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #059669;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(5,150,105,0.3);
    flex-shrink: 0;
}
.affiliate-productverdict-subtitle {
    color: #dc2626;
    border-bottom: 2px solid #fecaca;
}
.affiliate-productverdict-subtitle::before {
    content: "\2717";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #dc2626;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(220,38,38,0.3);
    flex-shrink: 0;
}

/* ── Lists inside the verdict — strong reset so icons never overlap ──── */
.affiliate-productverdict-left ul,
.affiliate-productverdict-right ul,
.affiliate-productverdict-cntn-wrapper ul.affiliate-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.affiliate-productverdict-left ul li,
.affiliate-productverdict-right ul li,
.affiliate-productverdict-cntn-wrapper ul.affiliate-list li {
    position: relative;
    margin: 0;
    padding: 9px 0 9px 34px !important;
    font-size: 15px;
    line-height: 1.55;
    color: #1e293b;
    list-style: none;
    background: transparent;
    border: 0;
}

.affiliate-productverdict-left ul li::before,
.affiliate-productverdict-right ul li::before,
.affiliate-productverdict-cntn-wrapper ul.affiliate-list li::before {
    position: absolute;
    left: 0;
    top: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    box-sizing: border-box;
}

/* Pros icon — green check */
.affiliate-productverdict-left ul li::before,
.affiliate-productverdict-cntn-wrapper ul.affiliate-list-pros li::before,
.affiliate-productverdict-cntn-wrapper ul.affiliate-list-bullet-check-circle li::before {
    content: "\2713";
    background: #d1fae5;
    color: #059669;
    border: 1.5px solid #a7f3d0;
}

/* Cons icon — red x */
.affiliate-productverdict-right ul li::before,
.affiliate-productverdict-cntn-wrapper ul.affiliate-list-cons li::before,
.affiliate-productverdict-cntn-wrapper ul.affiliate-list-bullet-times li::before,
.affiliate-productverdict-cntn-wrapper ul.affiliate-list-bullet-times-circle li::before {
    content: "\2717";
    background: #fee2e2;
    color: #dc2626;
    border: 1.5px solid #fecaca;
}

/* ── Bottom bar (rating + price + cta) ─────────────────────────────────── */
.affiliate-productverdict-bottom-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 28px;
    background: linear-gradient(180deg, #fafbfc 0%, #f1f5f9 100%);
    flex-wrap: wrap;
}

.affiliate-productverdict-starrating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.affiliate-productverdict-starrating svg {
    width: 18px;
    height: 18px;
}

p.affiliate-productverdict-cntn {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.01em;
    background: transparent;
}

.affiliate-productverdict-btn-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .affiliate-productverdict-content {
        grid-template-columns: 1fr;
    }
    .affiliate-productverdict-img-wrapper {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding: 28px 20px;
    }
    .affiliate-productverdict-cntn-wrapper {
        grid-template-columns: 1fr;
    }
    .affiliate-productverdict-left {
        border-right: none;
        border-bottom: 1px solid #d1fae5;
        padding: 24px;
    }
    .affiliate-productverdict-right {
        padding: 24px;
    }
    .affiliate-productverdict-bottom-wrapper {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 14px;
        padding: 20px;
    }
    .affiliate-productverdict-starrating {
        justify-content: center;
    }
    .affiliate-productverdict-btn-wrapper {
        justify-content: center;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   COMPARISON TABLE BLOCK (affiliate-booster/ab-comparison-table)
   ══════════════════════════════════════════════════════════════════════════════ */

.wp-block-affiliate-booster-ab-comparison-table,
div[id^="affiliate-style-"]:has(.affiliate-cmpr-inner) {
    font-family: var(--ab-font);
    margin: 24px 0;
    overflow-x: auto;
}

.affiliate-cmpr-inner {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--ab-border);
    border-radius: var(--ab-radius);
    overflow: hidden;
    box-shadow: var(--ab-shadow);
}

.affiliate-cmpr-inner th {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-align: left;
    padding: 14px 18px;
    border-bottom: 2px solid var(--ab-border);
}

.affiliate-cmpr-inner td {
    padding: 14px 18px;
    font-size: 14px;
    color: #1a1a2e;
    border-bottom: 1px solid var(--ab-border);
    vertical-align: middle;
}

.affiliate-cmpr-inner tr:last-child td {
    border-bottom: none;
}

.affiliate-cmpr-inner tr:nth-of-type(odd) td {
    background: #fff;
}

.affiliate-cmpr-inner tr:nth-of-type(even) td {
    background: #f8f9fb;
}

.affiliate-cmpr-inner td img,
.affiliate-col-img img,
.affiliate-img {
    max-width: 120px;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

.affiliate-txtbox-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    display: block;
    word-break: break-word;
    margin-bottom: 4px;
}

.affiliate-item-badge {
    display: inline-block;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 50px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
    margin-left: 6px;
    vertical-align: middle;
}

.affiliate-img-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 6px;
}

.affiliate-col-ct1,
.affiliate-col-ct2 {
    line-height: 1.6;
}

.affiliate-col-ct1 ul,
.affiliate-col-ct2 ul {
    margin: 4px 0 0 18px;
    padding: 0;
    list-style: disc;
    font-size: 13px;
    color: #475569;
}

.affiliate-col-ct1 ul li,
.affiliate-col-ct2 ul li {
    margin-bottom: 4px;
}

.affiliate-compr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: var(--ab-btn-bg);
    border-radius: 6px;
    transition: all 0.25s ease;
    box-shadow: var(--ab-shadow);
}

.affiliate-compr-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #fff;
    text-decoration: none;
}

.affiliate-compr-btn.af-is-fullw {
    width: 100%;
    text-align: center;
}

.affiliate-cmpr-readmore {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #6366f1;
}

@media (max-width: 640px) {
    .affiliate-cmpr-inner,
    .affiliate-cmpr-inner thead,
    .affiliate-cmpr-inner tbody,
    .affiliate-cmpr-inner th,
    .affiliate-cmpr-inner td,
    .affiliate-cmpr-inner tr {
        display: block;
    }
    .affiliate-cmpr-inner thead {
        display: none;
    }
    .affiliate-cmpr-inner td {
        position: relative;
        padding-left: 40%;
        text-align: left;
        border-bottom: 1px solid var(--ab-border);
    }
    .affiliate-cmpr-inner td::before {
        content: attr(data-column);
        position: absolute;
        left: 14px;
        font-weight: 600;
        color: #64748b;
        font-size: 12px;
        text-transform: uppercase;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   PRODUCTS COLUMN BLOCK (affiliate-booster/ab-coupon2)
   ══════════════════════════════════════════════════════════════════════════════ */

.affiliate-coupon-wrapper.style2 {
    font-family: var(--ab-font);
    margin: 24px 0;
}

.affiliate-coupon-inner.style2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.affiliate-coupon-inner.style2 li.affiliate-block-col {
    flex: 1;
    min-width: 260px;
    max-width: 340px;
    background: #fff;
    border: 1px solid var(--ab-border);
    border-radius: var(--ab-radius);
    box-shadow: var(--ab-shadow);
    overflow: hidden;
    padding: 0;
    text-align: center;
    position: relative;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    list-style: none;
}

.affiliate-coupon-inner.style2 li.affiliate-block-col:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Flag / Badge ribbon */
div[class^="triangle"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    overflow: visible;
    z-index: 2;
}

div[class^="triangle"].flag1,
div[class^="triangle"].flag2,
div[class^="triangle"].flag3 {
    width: 100px;
    height: 100px;
    overflow: hidden;
}

div[class^="triangle"] span {
    display: block;
    position: absolute;
    top: 16px;
    left: -24px;
    width: 140px;
    padding: 4px 0;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(-45deg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    line-height: 1.4;
}

div[class^="triangle"] span p {
    margin: 0;
    font-size: 10px;
    line-height: 1.3;
}

div[class^="triangle"] span i {
    font-size: 10px;
    margin-left: 2px;
}

/* Star rating */
div[class^="affiliate-coupon-starrating"] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 16px 20px 0;
}

/* Title */
[class^="affiliate-coupon-title"] {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    padding: 12px 20px 4px;
    margin: 0;
}

/* Image */
div[class^="affiliate-coupon-image"] {
    padding: 12px 20px;
}

div[class^="affiliate-coupon-image"] img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

/* Content list */
.affiliate-coupon-wrapper.style2 .affiliate-block-advanced-list {
    text-align: left;
    padding: 0 20px;
}

.affiliate-coupon-wrapper.style2 .affiliate-block-advanced-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.affiliate-coupon-wrapper.style2 .affiliate-block-advanced-list ul li {
    position: relative;
    padding: 5px 0 5px 24px;
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}

.affiliate-coupon-wrapper.style2 .affiliate-block-advanced-list ul.affiliate-list-bullet-check-circle li::before,
.affiliate-coupon-wrapper.style2 .affiliate-block-advanced-list ul[class*="affiliate-list-bullet-check"] li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 7px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    background: #ecfdf5;
    color: var(--ab-green);
    border: 1px solid #a7f3d0;
}

/* Amazon price/rating */
div[class*="amzon-price"],
div[class*="amzon-rating"] {
    display: none;
}

/* Button */
.affiliate-coupon-wrapper.style2 .affiliate-coupon-btn {
    padding: 16px 20px;
}

.affiliate-coupon-wrapper.style2 .affiliate-coupon-btn-wrapper,
div[class^="affiliate-coupon-btn-wrapper"] {
    width: 100%;
}

/* Bottom text */
div[class^="affiliate-coupon-bottomtext"] {
    padding: 0 20px 16px;
    font-size: 12px;
    color: #94a3b8;
}

@media (max-width: 640px) {
    .affiliate-coupon-inner.style2 {
        flex-direction: column;
        align-items: stretch;
    }
    .affiliate-coupon-inner.style2 li.affiliate-block-col {
        max-width: 100%;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   ADDITIONAL LEGACY BLOCKS
   ══════════════════════════════════════════════════════════════════════════════ */

/* AB Notice Block */
div[id^="affiliate-style-"].wp-block-affiliate-booster-ab-notice-box,
div[id^="affiliate-style-"]:has(.affiliate-notice) {
    font-family: var(--ab-font);
    border-left: 4px solid #6366f1;
    background: #f8f9fb;
    border-radius: 0 var(--ab-radius) var(--ab-radius) 0;
    padding: 16px 20px;
    margin: 24px 0;
    box-shadow: var(--ab-shadow);
}

/* AB Notification Block */
div[id^="affiliate-style-"].wp-block-affiliate-booster-ab-notification-box {
    font-family: var(--ab-font);
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--ab-radius);
    padding: 16px 20px;
    margin: 24px 0;
    box-shadow: var(--ab-shadow);
}

/* AB Icon List */
.wp-block-affiliate-booster-ab-icon-list {
    font-family: var(--ab-font);
    margin: 24px 0;
}

.wp-block-affiliate-booster-ab-icon-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wp-block-affiliate-booster-ab-icon-list li {
    padding: 6px 0 6px 28px;
    position: relative;
    font-size: 14px;
    line-height: 1.6;
}

/* AB Call to Action */
.wp-block-affiliate-booster-ab-callto-action,
div[id^="affiliate-style-"]:has(.affiliate-cta) {
    font-family: var(--ab-font);
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border-radius: var(--ab-radius);
    padding: 32px;
    margin: 24px 0;
    text-align: center;
    box-shadow: var(--ab-shadow);
}

/* AB Star Rating standalone */
.wp-block-affiliate-booster-ab-star-rating {
    font-family: var(--ab-font);
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 12px 0;
}

/* ══════════════════════════════════════════════════════════════════════════════
   PRINT STYLES
   ══════════════════════════════════════════════════════════════════════════════ */

@media print {
    .wp-block-affiliate-booster-ab-coupon4,
    .wp-block-affiliate-booster-propsandcons,
    .wp-block-ub-content-toggle,
    .ab-versus-block,
    .affiliate-productverdict,
    .affiliate-cmpr-inner,
    .affiliate-coupon-wrapper.style2 {
        box-shadow: none;
        break-inside: avoid;
    }
    .glimmer-effect::after {
        display: none;
    }
}
