/* ─── Theme isolation reset (AAWP-style) ────────────────────────────────── */
/*
 * Every element inside .leanamz-box and .leanamz-list gets explicit values
 * for the properties themes most commonly override. This makes the boxes
 * render identically regardless of the active theme.
 */
.leanamz-box *,
.leanamz-box *::before,
.leanamz-box *::after,
.leanamz-list *,
.leanamz-list *::before,
.leanamz-list *::after {
    box-sizing: border-box !important;
    font-family: Arial, Helvetica, sans-serif !important;
    word-spacing: normal !important;
    text-transform: none !important;
    text-shadow: none !important;
    -webkit-font-smoothing: antialiased;
}

/* Reset block elements themes love to stomp */
.leanamz-box p,
.leanamz-box ul,
.leanamz-box li,
.leanamz-list p,
.leanamz-list ul,
.leanamz-list li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    border: none !important;
    background: none !important;
}

/* Reset headings (h1–h6) themes override aggressively */
.leanamz-box h1,
.leanamz-box h2,
.leanamz-box h3,
.leanamz-box h4,
.leanamz-box h5,
.leanamz-box h6,
.leanamz-list h1,
.leanamz-list h2,
.leanamz-list h3,
.leanamz-list h4,
.leanamz-list h5,
.leanamz-list h6 {
    margin: 0 !important;
    padding: 0 !important;
    font-weight: normal !important;
    font-size: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
    border: none !important;
    background: none !important;
}

/* Reset links — themes set colour/underline/hover on all <a> */
.leanamz-box a,
.leanamz-box a:link,
.leanamz-box a:visited,
.leanamz-box a:hover,
.leanamz-box a:focus,
.leanamz-box a:active,
.leanamz-list a,
.leanamz-list a:link,
.leanamz-list a:visited,
.leanamz-list a:hover,
.leanamz-list a:focus,
.leanamz-list a:active {
    text-decoration: none !important;
    box-shadow: none !important;
    outline: none;
    background: none;
    border: none;
}

/* Reset images — themes add borders, max-width, display overrides */
.leanamz-box img,
.leanamz-list img {
    border: none !important;
    outline: none !important;
    max-width: none !important;
    height: auto !important;
    display: block !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    float: none !important;
}

/* Reset buttons */
.leanamz-box button,
.leanamz-list button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
}

/* ─── Pending box: hidden until JS resolves ────────────────────────────── */
.leanamz-box--pending {
    visibility: hidden;
}

/* ─── Box shell ─────────────────────────────────────────────────────────── */
.leanamz-box {
    border: 1px solid #cbcbcb !important;
    background: #f7f4df !important;
    margin: 20px 0 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    color: #0f172a !important;
    overflow: hidden !important;
    display: block !important;
    float: none !important;
    clear: both;
    width: auto !important;
}

.leanamz-box-inner {
    display: block !important;
}

/* ─── Header row — hidden on mobile, shown on desktop ───────────────────── */
.leanamz-box-header {
    display: none !important;
    background: #e2e2e2 !important;
    border-bottom: 1px solid #cbcbcb !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    color: #1a2332 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    box-sizing: border-box !important;
}

.leanamz-box-header-preview,
.leanamz-box-header-product {
    padding: 8px 14px !important;
    vertical-align: middle !important;
}

.leanamz-box-header-preview {
    border-right: 1px solid #cbcbcb !important;
    white-space: nowrap !important;
}

/* ─── Content row — mobile-first: stacked block layout by default ────────── */
.leanamz-box-row {
    display: block !important;
    padding: 12px 14px !important;
    background: #f7f4df !important;
    box-sizing: border-box !important;
}

/* ─── Image / preview — mobile: full-width centered ─────────────────────── */
.leanamz-box-preview {
    display: block !important;
    float: none !important;
    width: 100% !important;
    text-align: center !important;
    padding-right: 0 !important;
    margin-bottom: 10px !important;
    box-sizing: border-box !important;
}

.leanamz-box-preview a {
    display: block !important;
    text-decoration: none !important;
}

@keyframes leanamz-img-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.leanamz-box-preview img {
    display: block !important;
    width: 110px !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 110px !important;
    object-fit: contain !important;
    background: #ffffff !important;
    border: 1px solid #dde2e8 !important;
    padding: 4px !important;
    box-sizing: border-box !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10) !important;
    transition: box-shadow 0.15s ease;
    border-radius: 0 !important;
    margin: 0 auto !important;
    animation: leanamz-img-in 0.25s ease both;
}

.leanamz-box-preview a:hover img,
.leanamz-box-preview a:focus img {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* ─── Product info — mobile: full-width block ────────────────────────────── */
.leanamz-box-product {
    display: block !important;
    float: none !important;
    width: 100% !important;
    vertical-align: middle !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

.leanamz-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #1a2332;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.leanamz-title {
    margin: 0 !important;
    font-size: 0.97rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: #0f172a !important;
    word-break: break-word !important;
}

.leanamz-title a,
.leanamz-title a:link,
.leanamz-title a:visited {
    color: #0f172a !important;
    text-decoration: none !important;
}

.leanamz-title a:hover,
.leanamz-title a:focus {
    color: #0f172a !important;
    text-decoration: none !important;
}

.leanamz-title-short { display: none; }
.leanamz-title-full  { display: inline; }

@media (max-width: 480px) {
    .leanamz-title-short { display: inline; }
    /* Only hide the full title when a short title span is actually rendered */
    .leanamz-title a:has(.leanamz-title-short) .leanamz-title-full { display: none; }
}

/* ─── Ratings ───────────────────────────────────────────────────────────── */
.leanamz-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.leanamz-rating-stars {
    position: relative;
    display: inline-block;
    font-size: 0.95rem;
    line-height: 1;
    letter-spacing: 1px;
}

.leanamz-rating-stars-base {
    color: #c9cdd4;
}

.leanamz-rating-stars-fill {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
    color: #d97706;
}

.leanamz-rating-text {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #334155;
}

.leanamz-rating-value {
    font-weight: 800;
    color: #0f172a;
}

.leanamz-rating-label {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 999px;
    background: #eef2f7;
    border: 1px solid #cdd5e0;
    font-size: 0.72rem;
    font-weight: 800;
    color: #1e3a5f;
}

.leanamz-rating-count {
    font-size: 0.82rem;
    color: #64748b;
}

.leanamz-rating--amazon .leanamz-rating-label {
    background: #fff6db;
    border-color: #e8c96a;
    color: #7c4e00;
}

.leanamz-rating--editorial .leanamz-rating-label {
    background: #edf6ff;
    border-color: #b8d5f5;
    color: #1a4a80;
}

/* ─── Feature bullets ───────────────────────────────────────────────────── */
.leanamz-features {
    margin: 6px 0 4px !important;
    padding-left: 16px !important;
    font-size: 0.8rem !important;
    color: #475569 !important;
    line-height: 1.5 !important;
    list-style: disc !important;
}

.leanamz-features li {
    margin-bottom: 2px !important;
    list-style: disc !important;
}

/* ─── Brand / Manufacturer ───────────────────────────────────────────────── */
.leanamz-brand,
.leanamz-manufacturer {
    margin: 3px 0 0;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

/* ─── Price ─────────────────────────────────────────────────────────────── */
.leanamz-price-area {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.leanamz-price-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.leanamz-price-original {
    font-size: 0.82rem;
    font-weight: 400;
    color: #94a3b8;
    text-decoration: line-through;
}

.leanamz-price-current {
    font-size: 0.93rem;
    font-weight: 800;
    color: #7c4600;
    animation: leanamz-price-pulse 2.4s ease-in-out infinite;
}

@keyframes leanamz-price-pulse {
    0%,100% { opacity: 1; }
    50%      { opacity: 0.72; }
}

.leanamz-savings-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 999px;
    background: #16a34a;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

/* ─── Prime badge ───────────────────────────────────────────────────────── */
.leanamz-prime-badge {
    display: inline-block;
    line-height: 0;
}

.leanamz-prime-badge img {
    display: block;
    width: 55px;
    height: 16px;
}

/* ─── Button area — mobile: full-width block ─────────────────────────────── */
.leanamz-box-actions {
    display: block !important;
    float: none !important;
    width: 100% !important;
    vertical-align: middle !important;
    padding: 10px 0 0 !important;
    text-align: center !important;
    white-space: normal !important;
    box-sizing: border-box !important;
}

.leanamz-button,
.leanamz-button:link,
.leanamz-button:visited {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    padding: 9px 14px !important;
    background: linear-gradient(to bottom, #f8d96e 0%, #e2b020 100%) !important;
    border: 1px solid #a07820 !important;
    border-radius: 4px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 1px 2px rgba(0, 0, 0, 0.10) !important;
    color: #0f172a !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    text-align: center !important;
    white-space: nowrap !important;
    margin: 0 !important;
    width: auto !important;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.leanamz-button:hover,
.leanamz-button:focus {
    background: linear-gradient(to bottom, #fae180 0%, #e8b82a 100%) !important;
    border-color: #8a6510 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 2px 5px rgba(0, 0, 0, 0.14) !important;
    color: #0f172a !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

.leanamz-button:focus {
    outline: 2px solid #1d4ed8;
    outline-offset: 2px;
}

.leanamz-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.leanamz-button-icon svg {
    display: block;
}

.leanamz-button-text {
    display: inline-block;
}

/* ─── Footer / disclosure ───────────────────────────────────────────────── */
.leanamz-footer-disclosure {
    margin-top: 14px;
    font-size: 0.84rem;
    color: #64748b;
}

/* ─── Error state ───────────────────────────────────────────────────────── */
.leanamz-error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
    padding: 10px 14px;
    border-radius: 6px;
    margin: 16px 0;
    font-size: 0.93rem;
}

/* ─── Narrow layout (sidebar / widget, JS-driven) ─────────────────── */
.leanamz-narrow .leanamz-box-header {
    display: none;
}

.leanamz-narrow .leanamz-box-row {
    display: block !important;
    padding: 12px;
}

.leanamz-narrow .leanamz-box-row::after {
    content: "";
    display: table;
    clear: both;
}

.leanamz-narrow .leanamz-box-preview {
    display: block !important;
    float: left !important;
    width: 78px !important;
    padding-right: 0 !important;
}

.leanamz-narrow .leanamz-box-preview img {
    width: 78px !important;
    max-height: 78px !important;
}

.leanamz-narrow .leanamz-box-product {
    display: block !important;
    margin-left: 88px !important;
    padding-right: 0 !important;
}

.leanamz-narrow .leanamz-box-actions {
    display: block !important;
    margin-left: 88px !important;
    padding: 8px 0 0 !important;
    text-align: left !important;
}

.leanamz-narrow .leanamz-button {
    width: 100%;
    max-width: none;
    justify-content: center;
}

/* ─── Desktop: viewport ≥ 701px — 3-column table layout ─────────────────── */
@media (min-width: 701px) {
    .leanamz-box-header {
        display: table !important;
        width: 100% !important;
    }

    .leanamz-box-header-preview,
    .leanamz-box-header-product {
        display: table-cell !important;
    }

    .leanamz-box-header-preview {
        width: 90px !important;
    }

    .leanamz-box-row {
        display: table !important;
        width: 100% !important;
    }

    .leanamz-box-preview {
        display: table-cell !important;
        float: none !important;
        width: 90px !important;
        text-align: left !important;
        padding-right: 12px !important;
        margin-bottom: 0 !important;
        vertical-align: middle !important;
    }

    .leanamz-box-preview img {
        width: 90px !important;
        max-height: 90px !important;
        margin: 0 !important;
    }

    .leanamz-box-product {
        display: table-cell !important;
        float: none !important;
        width: auto !important;
        padding-right: 16px !important;
        vertical-align: middle !important;
    }

    .leanamz-box-actions {
        display: table-cell !important;
        float: none !important;
        width: 1% !important;
        white-space: nowrap !important;
        padding: 0 0 0 12px !important;
        text-align: center !important;
        vertical-align: middle !important;
    }

    .leanamz-button {
        width: auto !important;
        max-width: none !important;
    }
}

/* ─── Sidebar variant (.leanamz-box--sidebar) ──────────────────────────── */
/* Used by [lean_amz_sidebar] shortcode. Stacked, centered, full-width btn. */
.leanamz-box--sidebar .leanamz-sidebar-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 14px 14px;
    gap: 12px;
}

.leanamz-box--sidebar .leanamz-sidebar-image {
    width: 100%;
    display: flex;
    justify-content: center;
}

.leanamz-box--sidebar .leanamz-sidebar-image a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.leanamz-box--sidebar .leanamz-sidebar-image img {
    display: block;
    width: 140px;
    max-width: 100%;
    height: auto;
    background: #ffffff;
    border: 1px solid #dde2e8;
    padding: 6px;
    box-sizing: border-box;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10);
    transition: box-shadow 0.15s ease;
}

.leanamz-box--sidebar .leanamz-sidebar-image a:hover img,
.leanamz-box--sidebar .leanamz-sidebar-image a:focus img {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.leanamz-box--sidebar .leanamz-sidebar-body {
    width: 100%;
}

.leanamz-box--sidebar .leanamz-title {
    font-size: 0.97rem;
}

.leanamz-box--sidebar .leanamz-rating {
    justify-content: center;
}

.leanamz-box--sidebar .leanamz-price {
    font-size: 1rem;
    margin-top: 4px;
}

.leanamz-box--sidebar .leanamz-sidebar-footer {
    width: 100%;
}

.leanamz-box--sidebar .leanamz-button {
    width: 100%;
    justify-content: center;
}


/* ─── List template ─────────────────────────────────────────────────────── */
.leanamz-list {
    display: block;
    border: 1px solid #cbcbcb;
    border-radius: 6px;
    overflow: hidden;
    margin: 20px 0 !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

.leanamz-list-item {
    position: relative;
    display: table;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    background: #f7f4df;
    border-bottom: 1px solid #e2e2e2;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.leanamz-list-item:last-child {
    border-bottom: none;
}

.leanamz-list-item:hover {
    background: #fdfcf3;
    box-shadow: inset 3px 0 0 #e2b020;
}

/* Sale tag — top-right corner */
.leanamz-list-sale-tag {
    position: absolute;
    top: 0;
    right: 0;
    background: #16a34a;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-bottom-left-radius: 4px;
    line-height: 1.4;
}

/* Thumbnail */
.leanamz-list-thumb {
    display: table-cell;
    width: 80px;
    vertical-align: middle;
    text-decoration: none;
    padding-right: 14px;
    box-sizing: border-box;
}

.leanamz-list-thumb img {
    display: block !important;
    width: 72px !important;
    height: 72px !important;
    object-fit: contain !important;
    background: #ffffff !important;
    border: 1px solid #dde2e8 !important;
    padding: 4px !important;
    box-sizing: border-box !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    border-radius: 0 !important;
}

.leanamz-list-item:hover .leanamz-list-thumb img {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
    transform: scale(1.03);
}

.leanamz-list-thumb .leanamz-image-placeholder {
    width: 72px;
    height: 72px;
}

/* Body */
.leanamz-list-body {
    display: table-cell;
    width: 100%;
    vertical-align: middle;
}

.leanamz-list-body .leanamz-title {
    font-size: 0.93rem;
    margin-bottom: 4px;
}

.leanamz-list-body .leanamz-rating {
    margin-top: 4px;
    margin-bottom: 4px;
}

.leanamz-list-body .leanamz-price-area {
    margin-top: 4px;
}

/* Action / button column */
.leanamz-list-action {
    display: table-cell;
    width: 1%;
    white-space: nowrap;
    vertical-align: middle;
    padding-left: 12px;
    text-align: right;
}

/* Compact button variant */
.leanamz-button--compact {
    padding: 7px 12px;
    font-size: 0.82rem;
    white-space: nowrap;
}

/* Responsive list: stack on narrow screens */
@media (max-width: 600px) {
    .leanamz-list-item {
        display: block;
        padding: 12px;
    }

    .leanamz-list-item::after {
        content: "";
        display: table;
        clear: both;
    }

    .leanamz-list-thumb {
        display: block;
        float: left;
        width: 64px;
        padding-right: 12px;
    }

    .leanamz-list-thumb img,
    .leanamz-list-thumb .leanamz-image-placeholder {
        width: 56px !important;
        height: 56px !important;
    }

    .leanamz-list-body {
        display: block;
        overflow: hidden;
    }

    .leanamz-list-action {
        display: block;
        clear: both;
        text-align: left;
        padding: 8px 0 0;
        white-space: normal;
    }

    .leanamz-button--compact {
        width: 100%;
        max-width: 240px;
        justify-content: center;
    }
}

/* ─── Pending / skeleton state ──────────────────────────────────────────── */
@keyframes leanamz-shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position:  400px 0; }
}

.leanamz-image-placeholder,
.leanamz-title-placeholder {
    background: linear-gradient( 90deg, #e8e8e8 25%, #d4d4d4 50%, #e8e8e8 75% );
    background-size: 800px 100%;
    animation: leanamz-shimmer 1.4s ease-in-out infinite;
    border-radius: 4px;
    display: block;
}

.leanamz-image-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
}

.leanamz-title-placeholder {
    height: 1em;
    width: 85%;
    margin: 4px 0;
}

/* ─── Comparison table ──────────────────────────────────────────────────── */
.leanamz-compare-wrap {
    margin: 20px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.leanamz-compare {
    display: grid;
    grid-template-columns: repeat( var(--leanamz-cols, 3), minmax(0, 1fr) );
    gap: 0;
    border: 1px solid #cbcbcb;
    background: #f7f4df;
    font-family: Arial, Helvetica, sans-serif;
    color: #0f172a;
    min-width: calc( var(--leanamz-cols, 3) * 160px );
}

.leanamz-compare > * {
    padding: 8px 14px;
    box-sizing: border-box;
    border-right: 1px solid #cbcbcb;
    border-bottom: 1px solid #e8e8e8;
}

/* Remove right border on last column — covers 2, 3, 4, 5 col layouts */
.leanamz-compare[style*="--leanamz-cols:2"] > *:nth-child(2n),
.leanamz-compare[style*="--leanamz-cols:3"] > *:nth-child(3n),
.leanamz-compare[style*="--leanamz-cols:4"] > *:nth-child(4n),
.leanamz-compare[style*="--leanamz-cols:5"] > *:nth-child(5n) {
    border-right: none;
}

/* Remove bottom border on last row of each layout */
.leanamz-compare[style*="--leanamz-cols:2"] > *:nth-last-child(-n+2),
.leanamz-compare[style*="--leanamz-cols:3"] > *:nth-last-child(-n+3),
.leanamz-compare[style*="--leanamz-cols:4"] > *:nth-last-child(-n+4),
.leanamz-compare[style*="--leanamz-cols:5"] > *:nth-last-child(-n+5) {
    border-bottom: none;
}

.leanamz-compare-image {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 130px;
    padding-top: 16px;
    padding-bottom: 12px;
}

.leanamz-compare-image a {
    display: inline-flex;
    align-items: center;
}

.leanamz-compare-image img {
    display: block;
    width: 120px;
    max-width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid #dde2e8;
    padding: 6px;
    box-sizing: border-box;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}

.leanamz-compare-title {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.leanamz-compare-title a {
    color: #0f172a;
    text-decoration: none;
}

.leanamz-compare-title a:hover {
    text-decoration: underline;
}

.leanamz-compare-rating {
    text-align: center;
}

.leanamz-compare-rating .leanamz-rating {
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
}

.leanamz-compare-price {
    text-align: center;
}

.leanamz-compare-price .leanamz-price-wrap {
    justify-content: center;
}

.leanamz-compare-action {
    padding-top: 6px;
    padding-bottom: 16px;
}

.leanamz-compare-action .leanamz-button {
    width: 100%;
    justify-content: center;
}

@media (max-width: 600px) {
    .leanamz-compare {
        grid-template-columns: repeat(3, minmax(140px, 1fr));
    }
}

.leanamz-compare-features-wrap {
    padding-top: 4px;
    padding-bottom: 4px;
}

.leanamz-compare-features {
    margin: 0;
    padding-left: 18px;
    font-size: 0.78rem;
    color: #475569;
    line-height: 1.5;
    text-align: left;
}

.leanamz-compare-features li {
    margin-bottom: 2px;
}

.leanamz-compare-meta-wrap {
    text-align: center;
}

.leanamz-compare-meta {
    margin: 2px 0 0;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.leanamz-compare-meta--mfr {
    color: #94a3b8;
}

@media (max-width: 480px) {
    .leanamz-compare {
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .leanamz-compare > * {
        border-right: none;
        border-bottom: 1px solid #e2e2e2;
    }

    .leanamz-compare > *:last-child {
        border-bottom: none;
    }
}

/* ─── Pending state inside compare cols ─────────────────────────────────── */
.leanamz-compare-col--pending .leanamz-compare-image .leanamz-image-placeholder {
    width: 120px;
    height: 120px;
    aspect-ratio: 1 / 1;
}

.leanamz-title-placeholder {
    height: 1em;
    width: 85%;
    margin: 4px 0;
}
/* --- Last updated disclosure (Lean AMZ API boxes only) --- */
.leanamz-last-updated {
    font-size: 11px;
    color: #9ca3af;
    text-align: right;
    margin: 4px 0 0;
    padding: 0 4px;
    font-family: Arial, Helvetica, sans-serif;
    line-height: normal;
}
