/**
 * 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) — style4 layout
   ══════════════════════════════════════════════════════════════════════════════ */

.affiliate-coupon-wrapper.style4,
.wp-block-affiliate-booster-ab-coupon4 {
    font-family: var(--ab-font);
    margin: 24px 0;
}

.affiliate-coupon-wrapper.style4 .affiliate-coupon-inner {
    background: #fff;
    border: 1px solid var(--ab-border);
    border-radius: var(--ab-radius);
    box-shadow: var(--ab-shadow);
    overflow: hidden;
}

.affiliate-coupon-wrapper.style4 .affiliate-coupon-content-wrapper {
    padding: 20px 24px;
}

.affiliate-coupon-wrapper.style4 .affiliate-coupon-content-inner {
    display: flex;
    align-items: stretch;
}

/* Column 1 — Image (22%) */
.affiliate-coupon-wrapper.style4 .affiliate-col.firstcol {
    flex: 0 0 22%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.affiliate-coupon-wrapper.style4 .affiliate-coupon-image {
    margin-bottom: 10px;
}

.affiliate-coupon-wrapper.style4 .affiliate-coupon-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

/* Column 2 — Content (45%) */
.affiliate-coupon-wrapper.style4 .affiliate-col.seccol {
    flex: 0 0 45%;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.affiliate-coupon-wrapper.style4 .affiliate-coupon-Verified,
.affiliate-coupon-wrapper.style4 .affiliate-coupon-StaffPick {
    display: inline-block;
    margin-bottom: 6px;
}

.affiliate-coupon-wrapper.style4 .affiliate-coupon-Verified {
    position: relative;
    padding-left: 1.3em;
    margin-right: 12px;
    color: #02bb8c;
    font-size: 13px;
    font-weight: 600;
}

.affiliate-coupon-wrapper.style4 .affiliate-coupon-StaffPick {
    background: #e9385a;
    color: #fff;
    text-transform: uppercase;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 3px;
    letter-spacing: 0.03em;
}

.affiliate-coupon-wrapper.style4 .affiliate-coupon-maintitle {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin: 6px 0 4px;
    line-height: 1.4;
    word-break: break-word;
}

.affiliate-coupon-wrapper.style4 .affiliate-coupon-content {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin: 6px 0 8px;
    word-break: break-word;
}

.affiliate-coupon-wrapper.style4 .affiliate-coupon-PeopleUsed,
.affiliate-coupon-wrapper.style4 .affiliate-coupon-onlyLeft {
    display: inline-block;
    font-size: 13px;
    color: #666;
    margin-right: 16px;
}

/* All columns — prevent vertical text wrapping from word-break */
.affiliate-coupon-wrapper.style4 .affiliate-col {
    word-break: normal !important;
    overflow-wrap: break-word;
    min-width: 0;
}

/* Column 3 — Rating + Button (29%) */
.affiliate-coupon-wrapper.style4 .affiliate-col.thirdcol {
    flex: 0 0 29%;
    min-width: 180px;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    padding: 10px 0;
}

.affiliate-coupon-wrapper.style4 .affiliate-coupon-starrating-outer {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.affiliate-coupon-wrapper.style4 .affiliate-coupon-starratingTitle {
    flex: 0 0 100%;
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: visible;
}

.affiliate-coupon-wrapper.style4 .affiliate-coupon-ratingnumber {
    font-size: 16px;
    font-weight: 700;
    color: var(--ab-star);
    margin-right: 8px;
    line-height: 36px;
    white-space: nowrap;
}

.affiliate-coupon-wrapper.style4 .affiliate-coupon-starrating {
    display: flex;
    align-items: center;
    gap: 1px;
    flex-wrap: nowrap;
}

.affiliate-coupon-wrapper.style4 .affiliate-coupon-starrating .affiliate-star-item {
    display: inline-flex;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.affiliate-coupon-wrapper.style4 .affiliate-coupon-starrating .affiliate-star-item svg {
    width: 20px;
    height: 20px;
}

.affiliate-coupon-wrapper.style4 .affiliate-coupon-btn {
    width: 100%;
    padding: 0;
    margin-top: 12px;
}

.affiliate-coupon-wrapper.style4 .affiliate-coupon-btn-wrapper {
    max-width: 100%;
    display: flex;
}

.affiliate-coupon-wrapper.style4 .affiliate-coupon-btn .affiliate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #000;
    text-align: center;
    text-decoration: none !important;
    background-color: #ffc207;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: color 0.2s, background-color 0.2s, box-shadow 0.2s;
    word-break: break-word;
    font-weight: 600;
    font-size: 14px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.affiliate-coupon-wrapper.style4 .affiliate-coupon-btn .affiliate-btn:hover {
    background-color: #e6af06;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.affiliate-coupon-wrapper.style4 .affiliate-coupon-btn .btn-is-small { padding: 10px; width: 153px; }
.affiliate-coupon-wrapper.style4 .affiliate-coupon-btn .btn-is-medium { padding: 15px; width: 158px; }
.affiliate-coupon-wrapper.style4 .affiliate-coupon-btn .btn-is-large { padding: 20px; width: 163px; }
.affiliate-coupon-wrapper.style4 .affiliate-coupon-btn .btn-is-fullw { width: 100% !important; }
.affiliate-coupon-wrapper.style4 .btn-is-rounded { border-radius: 60px; }

.affiliate-coupon-wrapper.style4 .affiliate-coupon-onGoingOffer {
    display: inline-block;
    font-size: 12px;
    color: #888;
    margin-top: 8px;
    width: 100%;
}

/* Ensure coupon-specific inline styles from AB's dynamic CSS don't break layout */
.affiliate-coupon-wrapper.style4 .affiliate-coupon-starrating-outer {
    justify-content: flex-start !important;
}

.affiliate-coupon-wrapper.style4 .affiliate-col.thirdcol > * {
    width: 100%;
}

/* Responsive: tablet */
@media (max-width: 991px) {
    .affiliate-coupon-wrapper.style4 .affiliate-coupon-content-inner {
        flex-wrap: wrap;
    }
    .affiliate-coupon-wrapper.style4 .affiliate-col.firstcol {
        flex: 0 0 40%;
    }
    .affiliate-coupon-wrapper.style4 .affiliate-col.seccol {
        flex: 0 0 60%;
    }
    .affiliate-coupon-wrapper.style4 .affiliate-col.thirdcol {
        flex: 0 0 100%;
        margin-top: 16px;
        align-items: center;
        text-align: center;
    }
}

/* Responsive: mobile */
@media (max-width: 767px) {
    .affiliate-coupon-wrapper.style4 .affiliate-coupon-content-inner {
        display: block;
    }
    .affiliate-coupon-wrapper.style4 .affiliate-col {
        padding: 12px 0;
        width: 100%;
    }
    .affiliate-coupon-wrapper.style4 .affiliate-coupon-maintitle,
    .affiliate-coupon-wrapper.style4 .affiliate-coupon-content {
        text-align: center;
    }
    .affiliate-coupon-wrapper.style4 .affiliate-coupon-starrating {
        justify-content: center;
    }
    .affiliate-coupon-wrapper.style4 .affiliate-coupon-btn-wrapper {
        justify-content: center;
    }
    .affiliate-coupon-wrapper.style4 .affiliate-coupon-onGoingOffer {
        text-align: center;
    }
    .affiliate-coupon-wrapper.style4 .affiliate-col.seccol {
        align-items: center;
    }
}

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

.wp-block-affiliate-booster-propsandcons {
    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;
}

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

.affiliate-props-list {
    padding: 24px;
    background: #ecfdf5;
    border-right: 1px solid var(--ab-border);
}

.affiliate-cons-list {
    padding: 24px;
    background: #fef2f2;
}

.affiliate-propcon-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid;
}

.affiliate-props-title { color: var(--ab-green); border-color: var(--ab-green); }
.affiliate-const-title { color: var(--ab-red); border-color: var(--ab-red); }

.affiliate-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.affiliate-list li {
    position: relative;
    padding: 6px 0 6px 28px;
    font-size: 14px;
    line-height: 1.6;
    color: #1a1a2e;
}

.affiliate-list li::before {
    position: absolute;
    left: 0;
    top: 8px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
}

.affiliate-list-bullet-check-circle li::before {
    content: "\2713";
    background: #ecfdf5;
    color: var(--ab-green);
    border: 1px solid #a7f3d0;
}

.affiliate-list-bullet-times-circle li::before,
.affiliate-list-bullet-times li::before {
    content: "\2717";
    background: #fef2f2;
    color: var(--ab-red);
    border: 1px solid #fecaca;
}

@media (max-width: 640px) {
    .affiliate-d-table {
        grid-template-columns: 1fr;
    }
    .affiliate-props-list {
        border-right: none;
        border-bottom: 1px solid var(--ab-border);
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   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)
   ══════════════════════════════════════════════════════════════════════════════ */

.ab-versus-block {
    font-family: var(--ab-font);
    border: 1px solid var(--ab-border);
    border-radius: var(--ab-radius);
    box-shadow: var(--ab-shadow);
    overflow: hidden;
    overflow-x: auto;
    margin: 24px 0;
}

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

.ab-versus-block table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.ab-versus-block th,
.ab-versus-block td {
    padding: 14px 18px;
    text-align: center;
    vertical-align: middle;
    font-size: 14px;
    border-bottom: 1px solid var(--ab-border);
}

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

.ab-versus-block th {
    background: #f8f9fb;
    padding: 20px 18px;
}

.ab-versus-block .affiliate-sp-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.ab-versus-block .affiliate-sp-image img,
.ab-versus-block .affiliate-sp-image1 img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--ab-border);
    padding: 4px;
}

.ab-versus-block p[class*="affiliate-sp-title"] {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.ab-versus-block .affiliate-sp-row3 {
    font-weight: 600;
    color: #1a1a2e;
    text-align: left;
    background: #f8f9fb;
    border-right: 1px solid var(--ab-border);
}

.affiliate-sp-row1 { background: #fff; }
.affiliate-sp-row2 { background: #f8f9fb; }

/* ══════════════════════════════════════════════════════════════════════════════
   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 var(--ab-border);
    border-radius: var(--ab-radius);
    box-shadow: var(--ab-shadow);
    overflow: hidden;
    margin: 24px 0;
}

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

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

.affiliate-productverdict-inner {
    border-bottom: 1px solid var(--ab-border);
}

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

.affiliate-productverdict-img-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: #f8f9fb;
    border-right: 1px solid var(--ab-border);
    text-align: center;
}

.affiliate-productverdict-image img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: 8px;
}

p.affiliate-productverdict {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.affiliate-productverdict-cntn-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.affiliate-productverdict-left {
    padding: 24px;
    background: #ecfdf5;
    border-right: 1px solid var(--ab-border);
}

.affiliate-productverdict-right {
    padding: 24px;
    background: #fef2f2;
}

.affiliate-productverdict-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ab-green);
    margin: 0 0 12px;
}

.affiliate-productverdict-subtitle {
    font-size: 15px;
    font-weight: 700;
    color: var(--ab-red);
    margin: 0 0 12px;
}

.affiliate-productverdict-bottom-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    background: #f8f9fb;
    flex-wrap: wrap;
}

.affiliate-productverdict-starrating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
}

p.affiliate-productverdict-cntn {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.affiliate-productverdict-btn-wrapper {
    display: flex;
}

@media (max-width: 768px) {
    .affiliate-productverdict-content {
        grid-template-columns: 1fr;
    }
    .affiliate-productverdict-img-wrapper {
        border-right: none;
        border-bottom: 1px solid var(--ab-border);
    }
    .affiliate-productverdict-cntn-wrapper {
        grid-template-columns: 1fr;
    }
    .affiliate-productverdict-left {
        border-right: none;
        border-bottom: 1px solid var(--ab-border);
    }
    .affiliate-productverdict-bottom-wrapper {
        flex-direction: column;
        align-items: stretch;
        text-align: 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;
    }
}
