/* MACFaaast Module: Compare Table Base Styles (Extracted from style.css) */

/* --- PREMIUM COMPARE PAGE REDESIGN BY ANTIGRAVITY --- */

.ts-compare-table-wrapper {
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid #f0f0f4 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
    padding: 20px !important;
    margin: 40px auto !important;
    max-width: 1410px !important;
    overflow-x: auto !important;
    /* Enable horizontal scroll for safety on desktop */
}

.ts-compare-table-wrapper tr td {
    padding: 20px !important;
    border-bottom: 1px solid #f2f2f7 !important;
    vertical-align: middle !important;
    color: #53627b !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

/* Product Info in Compare */
.ts-compare-table-wrapper .product-name a {
    color: #53627b !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    text-decoration: none !important;
}

.ts-compare-table-wrapper .price .woocommerce-Price-amount {
    color: #56647A !important;
    font-weight: 600 !important;
    font-size: 16px !important;
}

/* ACTION BUTTONS */
.ts-compare-table-wrapper .add_to_cart_button,
.ts-compare-table-wrapper .ts-wishlist-add-to-cart {
    background-color: #53627B !important;
    color: #ffffff !important;
    border-radius: 980px !important;
    padding: 8px 20px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    transition: all 0.25s ease !important;
    border: none !important;
    display: inline-flex !important;
}

.ts-compare-table-wrapper .add_to_cart_button:hover {
    background-color: #53627b !important;
    transform: translateY(-1px) !important;
}

/* REMOVE BUTTON */
.ts-compare-table-wrapper .ts-remove-from-compare {
    position: relative !important;
    color: transparent !important;
    font-size: 0 !important;
    background: #f2f2f7 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    top: 0px !important;
    border-radius: 50% !important;
    transition: all 0.25s ease !important;
    border: 1px solid #e5e5ea !important;
}

.ts-compare-table-wrapper .ts-remove-from-compare::before {
    content: '✕' !important;
    color: #53627b !important;
    font-size: 12px !important;
    font-weight: 300 !important;
    visibility: visible !important;
    display: block !important;
    font-family: Arial, sans-serif !important;
}

.ts-compare-table-wrapper .ts-remove-from-compare:hover {
    background: #ff3b30 !important;
    border-color: #ff3b30 !important;
}

.ts-compare-table-wrapper .ts-remove-from-compare:hover::before {
    color: #ffffff !important;
}

/* MOBILE OPTIMIZATION (Horizontal Swiping Design) */
@media screen and (max-width: 991px) {
    .ts-compare-table-wrapper {
        padding: 5px !important;
        margin: 15px auto !important;
        border-radius: 12px !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        /* Enable horizontal swipe */
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Restore table display structure but enforce widths */
    .ts-compare-table-wrapper table {
        display: table !important;
        width: 100% !important;
        min-width: 650px !important;
        /* Force overall width so it scrolls instead of squishing */
    }

    .ts-compare-table-wrapper tbody {
        display: table-row-group !important;
    }

    .ts-compare-table-wrapper tr {
        display: table-row !important;
    }

    /* Give each product cell a decent minimum width */
    .ts-compare-table-wrapper tr td {
        display: table-cell !important;
        background: #ffffff !important;
        border-right: 1px solid #f0f0f4 !important;
        border-bottom: 1px solid #f0f0f4 !important;
        min-width: 220px !important;
        /* This prevents the horrendous squeezing */
        padding: 15px !important;
        vertical-align: middle !important;
    }

    .ts-compare-table-wrapper tr td:last-child {
        border-right: none !important;
    }

    /* Ensure buttons are visible on mobile */
    .ts-compare-table-wrapper .add_to_cart_button,
    .ts-compare-table-wrapper .ts-wishlist-add-to-cart {
        width: 100% !important;
        margin-top: 15px !important;
        padding: 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}



/* MacFaaast Modular Stylesheet: mf-compare.css (auto-extracted from style.css) */
/* ==========================================================================
   MACFAAAST ENHANCED APPLE-STYLE COMPARE PAGE, DOCK & FLOATING PILL
   ========================================================================== */
.mf-compare-app {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 44px 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    transition: opacity 0.2s ease !important;
}

.mf-compare-app button,
.mf-compare-app .button,
.mf-compare-app a.mf-cmp-cta-btn {
    text-transform: none !important;
    letter-spacing: -0.01em !important;
}

.mf-compare-app.is-loading {
    opacity: 0.55 !important;
    pointer-events: none !important;
}

.mf-cmp-toolbar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin: 0 0 18px 0 !important;
    padding: 20px 24px !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 20px !important;
    box-sizing: border-box !important;
}

.mf-cmp-eyebrow {
    display: inline-flex !important;
    align-items: center !important;
    padding: 4px 11px !important;
    border-radius: 999px !important;
    background: #e0f2fe !important;
    color: #0284c7 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em !important;
    margin-bottom: 6px !important;
    white-space: nowrap !important;
}

.mf-cmp-title {
    margin: 0 0 3px 0 !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #53627B !important;
    letter-spacing: -0.025em !important;
    line-height: 1.2 !important;
}

.mf-cmp-subtitle {
    margin: 0 !important;
    font-size: 13.5px !important;
    color: #64748b !important;
    line-height: 1.4 !important;
}

.mf-cmp-btn-primary-soft {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 9px 16px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    background: #53627B !important;
    border: 1.5px solid #53627B !important;
    color: #ffffff !important;
    transition: all 0.2s ease !important;
}

.mf-cmp-btn-primary-soft:hover {
    background: #00ade6 !important;
    border-color: #00ade6 !important;
}

/* Expandable Drawer Shelf for Adding Models */
.mf-cmp-drawer-shelf {
    margin: 0 0 18px 0 !important;
    padding: 18px 22px !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 18px !important;
    box-sizing: border-box !important;
}

.mf-cmp-drawer-shelf[hidden] {
    display: none !important;
}

.mf-cmp-drawer-head {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
}

.mf-cmp-drawer-head > div:first-child {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.mf-cmp-drawer-head strong {
    font-size: 14.5px !important;
    font-weight: 800 !important;
    color: #53627B !important;
}

.mf-cmp-drawer-head span {
    font-size: 12.5px !important;
    color: #64748b !important;
}

.mf-cmp-drawer-search {
    flex: 0 1 320px !important;
    width: 100% !important;
}

.mf-cmp-shelf-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
    transition: opacity 0.15s ease !important;
}

.mf-cmp-search-results.is-searching {
    opacity: 0.5 !important;
}

.mf-cmp-cat-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 0 14px 0 !important;
}

.mf-cmp-cat-pills-centered {
    justify-content: center !important;
    margin: 14px 0 0 0 !important;
}

.mf-cmp-cat-pill {
    padding: 6px 13px !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #53627B !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.mf-cmp-cat-pill:hover {
    border-color: #00ade6 !important;
    color: #0284c7 !important;
}

.mf-cmp-cat-pill.is-active {
    background: #53627B !important;
    border-color: #53627B !important;
    color: #ffffff !important;
}

.mf-cmp-no-results {
    grid-column: 1 / -1 !important;
    padding: 18px !important;
    text-align: center !important;
    font-size: 13.5px !important;
    color: #64748b !important;
    background: #ffffff !important;
    border: 1px dashed #cbd5e1 !important;
    border-radius: 12px !important;
}

/* CRITICAL FIX: override .mf-cmp-row display:grid !important when Solo Differenze is active */
.mf-compare-app.is-diff-only .mf-cmp-spec-row[data-diff="0"],
.mf-cmp-spec-row[hidden] {
    display: none !important;
}

.mf-cmp-no-diff-msg {
    padding: 20px 24px !important;
    text-align: center !important;
    font-size: 14px !important;
    color: #53627b !important;
    background: #f8fafc !important;
}

.mf-cmp-no-diff-msg[hidden] {
    display: none !important;
}

.mf-cmp-cell-label-inner {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    justify-content: space-between !important;
}

.mf-cmp-toolbar-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px !important;
}

/* Diff Switch */
.mf-cmp-diff-switch {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    padding: 8px 14px !important;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 999px !important;
    cursor: pointer !important;
    margin: 0 !important;
    user-select: none !important;
    transition: border-color 0.2s ease, background 0.2s ease !important;
}

.mf-cmp-diff-switch.is-active,
.mf-cmp-diff-switch:has(input:checked) {
    border-color: #00ade6 !important;
    background: #f0f9ff !important;
}

.mf-cmp-diff-switch input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    pointer-events: none !important;
}

.mf-cmp-diff-switch input:focus-visible + .mf-cmp-switch-track {
    box-shadow: 0 0 0 3px rgba(0, 173, 230, 0.28) !important;
}

.mf-cmp-switch-track {
    position: relative !important;
    width: 34px !important;
    height: 20px !important;
    border-radius: 999px !important;
    background: #cbd5e1 !important;
    transition: background 0.2s ease !important;
}

.mf-cmp-switch-track::after {
    content: "" !important;
    position: absolute !important;
    top: 2px !important;
    left: 2px !important;
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(83, 98, 123, 0.28) !important;
    transition: transform 0.2s ease !important;
}

.mf-cmp-diff-switch input:checked + .mf-cmp-switch-track {
    background: #00ade6 !important;
}

.mf-cmp-diff-switch input:checked + .mf-cmp-switch-track::after {
    transform: translateX(14px) !important;
}

.mf-cmp-switch-label {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #53627B !important;
}

.mf-cmp-diff-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 20px !important;
    height: 20px !important;
    padding: 0 6px !important;
    border-radius: 999px !important;
    background: #e2e8f0 !important;
    color: #53627b !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    transition: background 0.2s ease, color 0.2s ease !important;
}

.mf-cmp-diff-switch.is-active .mf-cmp-diff-badge,
.mf-cmp-diff-switch:has(input:checked) .mf-cmp-diff-badge {
    background: #00ade6 !important;
    color: #ffffff !important;
}

.mf-cmp-btn-ghost,
.mf-cmp-btn-danger-ghost {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 9px 15px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #53627B !important;
}

.mf-cmp-btn-ghost:hover {
    border-color: #00ade6 !important;
    color: #0284c7 !important;
}

.mf-cmp-share-btn.is-copied {
    border-color: #00ade6 !important;
    background: #f0f9ff !important;
    color: #0284c7 !important;
}

.mf-cmp-btn-danger-ghost {
    color: #dc2626 !important;
    border-color: #fecaca !important;
    background: #fef2f2 !important;
}

.mf-cmp-btn-danger-ghost:hover {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
}

/* Scroll & Matrix Grid */
.mf-cmp-scroll {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 22px !important;
    box-shadow: 0 10px 30px -12px rgba(83, 98, 123, 0.08) !important;
}

.mf-cmp-row {
    display: grid !important;
    grid-template-columns: 195px repeat(var(--mf-cols, 2), minmax(230px, 1fr)) !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.mf-cmp-row:last-child {
    border-bottom: 0 !important;
}

.mf-cmp-cell-label {
    padding: 16px 18px !important;
    background: #f8fafc !important;
    border-right: 1px solid #e2e8f0 !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #53627B !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    position: sticky !important;
    left: 0 !important;
    z-index: 2 !important;
}

.mf-cmp-label-corner {
    align-items: flex-start !important;
    padding-top: 22px !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.07em !important;
    color: #64748b !important;
}

.mf-cmp-diff-dot {
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    background: #00ade6 !important;
    flex: 0 0 7px !important;
}

.mf-cmp-spec-row.is-diff {
    background: #f8fcff !important;
}

.mf-cmp-spec-row.is-diff .mf-cmp-cell-label {
    background: #f0f9ff !important;
    color: #0369a1 !important;
}

.mf-cmp-cell-val {
    padding: 16px 18px !important;
    border-right: 1px solid #f1f5f9 !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #53627B !important;
    line-height: 1.45 !important;
    display: flex !important;
    align-items: center !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}

.mf-cmp-cell-val:last-child {
    border-right: 0 !important;
}

/* Shared Catalog Card Badges, Specs, Chips, Prices & Footer */
.mf-cmp-card-media {
    position: relative !important;
    width: 100% !important;
    background: #ffffff !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    margin-bottom: 4px !important;
}

.mf-cmp-card-badges {
    position: absolute !important;
    top: 4px !important;
    left: 4px !important;
    right: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    z-index: 4 !important;
    pointer-events: none !important;
}

.mf-cmp-card-top-right {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-left: auto !important;
    pointer-events: auto !important;
}

.mf-cmp-badge-spacer {
    display: inline-block !important;
    width: 1px !important;
    height: 1px !important;
}

.mf-cmp-sale-badge {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 3px 8px !important;
    border-radius: 999px !important;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25) !important;
    letter-spacing: -0.01em !important;
    line-height: 1.2 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
}

.mf-cmp-new-badge {
    background: linear-gradient(135deg, #00ade6 0%, #0284c7 100%) !important;
    color: #ffffff !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    padding: 3px 8px !important;
    border-radius: 999px !important;
    box-shadow: 0 2px 6px rgba(0, 173, 230, 0.25) !important;
    line-height: 1.2 !important;
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
}

.mf-cmp-badge-grade {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    border-radius: 999px !important;
    padding: 3px 8px !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    margin-left: auto !important;
    box-sizing: border-box !important;
}

.mf-cmp-badge-grade.grade-eccellente {
    background: #f0f9ff !important;
    border: 1px solid #bae6fd !important;
    color: #0369a1 !important;
}

.mf-cmp-badge-grade.grade-ottimo {
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    color: #15803d !important;
}

.mf-cmp-badge-grade.grade-buono {
    background: #fffbeb !important;
    border: 1px solid #fef3c7 !important;
    color: #b45309 !important;
}

.mf-cmp-badge-grade.grade-accettabile,
.mf-cmp-badge-grade.grade-discreto {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #53627B !important;
}

.mf-cmp-badge-grade.grade-nuovo {
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    color: #047857 !important;
}

.mf-cmp-card-specs {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    margin: 0 0 8px 0 !important;
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    overflow: hidden !important;
    align-items: center !important;
}

.mf-cmp-spec-chip {
    background: #ffffff !important;
    color: #53627B !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    padding: 2.5px 6.5px !important;
    border-radius: 6px !important;
    border: 1px solid #e2e8f0 !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    flex-shrink: 0 !important;
}

.mf-cmp-spec-chip.mf-cmp-chip-placeholder {
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    visibility: hidden !important;
}

.mf-cmp-catalog-bottom {
    margin-top: auto !important;
    padding-top: 8px !important;
    border-top: 1px solid rgba(226, 232, 240, 0.75) !important;
    display: flex !important;
    flex-direction: column !important;
}

.mf-cmp-saving-chip {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #059669 !important;
    background: rgba(16, 185, 129, 0.08) !important;
    border: 1px solid rgba(16, 185, 129, 0.22) !important;
    padding: 2px 6px !important;
    border-radius: 6px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

.mf-cmp-tax-info {
    font-size: 11px !important;
    color: #64748b !important;
    font-weight: 600 !important;
    margin: 2px 0 8px 0 !important;
    line-height: 1.3 !important;
}

.mf-cmp-card-trust-foot {
    margin-top: 8px !important;
    padding-top: 7px !important;
    border-top: 1px dashed rgba(226, 232, 240, 0.85) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.mf-cmp-rate-line {
    font-size: 10.5px !important;
    color: #64748b !important;
    line-height: 1.3 !important;
}

.mf-cmp-rate-line .pp-hook,
.mf-cmp-rate-line strong {
    color: #0284c7 !important;
    font-weight: 700 !important;
}

.mf-cmp-trust-line {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 4px 10px !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    color: #53627B !important;
    line-height: 1.25 !important;
}

/* Header Product Cards */
.mf-cmp-row-cards {
    border-bottom: 1.5px solid #e2e8f0 !important;
    background: #ffffff !important;
}

.mf-cmp-card {
    padding: 16px !important;
    border-right: 1px solid #e9edf3 !important;
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    transition: background-color 0.2s ease !important;
}

.mf-cmp-card:last-child {
    border-right: 0 !important;
}

.mf-cmp-cert-pill {
    display: inline-flex !important;
    align-items: center !important;
    padding: 3px 8px !important;
    border-radius: 999px !important;
    background: #f1f5f9 !important;
    color: #53627B !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

.mf-cmp-remove {
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    color: #53627B !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    flex: 0 0 26px !important;
    transition: all 0.2s ease !important;
}

.mf-cmp-remove:hover {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
}

.mf-cmp-card-thumb {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 185px !important;
    padding: 32px 10px 10px 10px !important;
    margin-bottom: 6px !important;
    background: #ffffff !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
}

.mf-cmp-card-thumb::after {
    content: "" !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 15% !important;
    right: 15% !important;
    height: 10px !important;
    background: radial-gradient(ellipse at center, rgba(83, 98, 123, 0.08) 0%, transparent 70%) !important;
    pointer-events: none !important;
}

.mf-cmp-card-thumb img {
    max-height: 140px !important;
    max-width: 100% !important;
    width: auto !important;
    object-fit: contain !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.mf-cmp-card:hover .mf-cmp-card-thumb img {
    transform: scale(1.04) !important;
}

.mf-cmp-card-name {
    margin: 0 0 6px 0 !important;
    font-size: 14.5px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    color: #53627B !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.mf-cmp-card-name a {
    color: #53627B !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.mf-cmp-card:hover .mf-cmp-card-name a,
.mf-cmp-card-name a:hover {
    color: #00ade6 !important;
}

.mf-cmp-card-price {
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 2px !important;
}

.mf-cmp-price-line {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 4px 6px !important;
    min-height: 26px !important;
}

.mf-cmp-price-line del {
    font-size: 12px !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
}

.mf-cmp-price-now {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #53627B !important;
    letter-spacing: -0.02em !important;
    line-height: 1.1 !important;
}

.mf-cmp-price-from {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #64748b !important;
}

.mf-cmp-card-cta {
    margin-top: 0 !important;
}

.mf-cmp-cta-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    width: 100% !important;
    height: 38px !important;
    padding: 0 12px !important;
    border-radius: 10px !important;
    background: #53627B !important;
    color: #ffffff !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border: 0 !important;
    box-shadow: 0 2px 8px rgba(83, 98, 123, 0.18) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
}

.mf-cmp-cta-btn::after {
    content: "›" !important;
    font-size: 16px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    transition: transform 0.2s ease !important;
}

.mf-cmp-card:hover .mf-cmp-cta-btn,
.mf-cmp-cta-btn:hover {
    background: #00ade6 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 173, 230, 0.28) !important;
    transform: translateY(-1px) !important;
}

.mf-cmp-card:hover .mf-cmp-cta-btn::after,
.mf-cmp-cta-btn:hover::after {
    transform: translateX(3px) !important;
}

/* Spec Pills & Color Swatches */
.mf-cmp-swatches,
.mf-cmp-grade-list,
.mf-cmp-cap-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}

.mf-cmp-swatch-pill,
.mf-cmp-grade-pill,
.mf-cmp-cap-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 4px 9px !important;
    border-radius: 999px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #53627B !important;
}

.mf-cmp-dot {
    width: 11px !important;
    height: 11px !important;
    border-radius: 50% !important;
    display: inline-block !important;
    flex: 0 0 11px !important;
}

.mf-cmp-stock.in {
    color: #15803d !important;
    font-weight: 700 !important;
}

.mf-cmp-stock.out {
    color: #dc2626 !important;
    font-weight: 700 !important;
}

.mf-cmp-warranty {
    color: #53627B !important;
    font-weight: 600 !important;
}

.mf-cmp-sku {
    background: #f1f5f9 !important;
    color: #53627B !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
}

/* Inline Picker Card & Empty State */
.mf-cmp-picker-card {
    background: #f8fafc !important;
}

.mf-cmp-picker-head {
    text-align: center !important;
    margin-bottom: 10px !important;
}

.mf-cmp-picker-plus {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: #e0f2fe !important;
    color: #0284c7 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 6px !important;
}

.mf-cmp-picker-head h4 {
    margin: 0 0 2px 0 !important;
    font-size: 14.5px !important;
    font-weight: 800 !important;
    color: #53627B !important;
}

.mf-cmp-picker-head p {
    margin: 0 !important;
    font-size: 12px !important;
    color: #64748b !important;
}

.mf-cmp-search-input {
    width: 100% !important;
    padding: 9px 13px !important;
    border-radius: 999px !important;
    border: 1.5px solid #cbd5e1 !important;
    background: #ffffff !important;
    font-size: 13px !important;
    color: #53627B !important;
    box-sizing: border-box !important;
}

.mf-cmp-search-input:focus {
    outline: none !important;
    border-color: #00ade6 !important;
}

.mf-cmp-mini-suggests {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
    margin-top: 10px !important;
}

.mf-cmp-mini-item {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    width: 100% !important;
    padding: 8px 10px !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: #53627B !important;
    border: 1.5px solid #e2e8f0 !important;
    text-align: left !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    box-sizing: border-box !important;
}

.mf-cmp-mini-item:hover {
    border-color: #00ade6 !important;
    background: #f0f9ff !important;
}

.mf-cmp-mini-item img {
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    object-fit: contain !important;
    background: #ffffff !important;
    flex: 0 0 36px !important;
}

.mf-cmp-mini-item > span {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.mf-cmp-mini-item strong {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #53627B !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.25 !important;
}

.mf-cmp-mini-item em {
    font-style: normal !important;
    font-size: 11px !important;
    color: #0284c7 !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

.mf-cmp-mini-item em del {
    color: #94a3b8 !important;
    font-weight: 500 !important;
    margin-right: 4px !important;
}

.mf-cmp-mini-item em ins {
    background: transparent !important;
    text-decoration: none !important;
    color: #0284c7 !important;
    font-weight: 800 !important;
}

.mf-cmp-mini-add {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    background: #e0f2fe !important;
    color: #0284c7 !important;
    font-style: normal !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 24px !important;
}

/* Empty State Suggestions Grid */
.mf-cmp-empty-panel {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 22px !important;
    padding: 32px 24px !important;
}

.mf-cmp-empty-hero {
    max-width: 560px !important;
    margin: 0 auto 28px auto !important;
    text-align: center !important;
}

.mf-cmp-empty-icon {
    width: 52px !important;
    height: 52px !important;
    border-radius: 16px !important;
    background: #e0f2fe !important;
    color: #0284c7 !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 12px !important;
}

.mf-cmp-empty-hero h3 {
    margin: 0 0 8px 0 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #53627B !important;
}

.mf-cmp-empty-hero p {
    margin: 0 0 18px 0 !important;
    font-size: 14px !important;
    color: #64748b !important;
}

.mf-cmp-suggestions-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 14px !important;
    align-items: stretch !important;
}

.mf-cmp-suggest-card {
    position: relative !important;
    background: #ffffff !important;
    border: 1px solid #e9edf3 !important;
    border-radius: 20px !important;
    padding: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    gap: 0 !important;
    box-shadow: 0 3px 12px rgba(83, 98, 123, 0.05) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.25s ease !important;
}

.mf-cmp-suggest-card:hover {
    border-color: #00ade6 !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 0 0 1px #00ade6, 0 14px 28px rgba(0, 173, 230, 0.12), 0 4px 10px rgba(83, 98, 123, 0.06) !important;
    z-index: 5 !important;
}

.mf-cmp-suggest-img {
    position: relative !important;
    height: 175px !important;
    background: #ffffff !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 28px 8px 8px 8px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.mf-cmp-suggest-img::after {
    content: "" !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 15% !important;
    right: 15% !important;
    height: 10px !important;
    background: radial-gradient(ellipse at center, rgba(83, 98, 123, 0.08) 0%, transparent 70%) !important;
    pointer-events: none !important;
}

.mf-cmp-suggest-img img {
    max-height: 132px !important;
    max-width: 100% !important;
    width: auto !important;
    object-fit: contain !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.mf-cmp-suggest-card:hover .mf-cmp-suggest-img img {
    transform: scale(1.04) !important;
}

.mf-cmp-suggest-body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    padding: 8px 2px 2px 2px !important;
    box-sizing: border-box !important;
}

.mf-cmp-suggest-title {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #53627B !important;
    text-decoration: none !important;
    line-height: 1.3 !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin-bottom: 6px !important;
    transition: color 0.2s ease !important;
}

.mf-cmp-suggest-card:hover .mf-cmp-suggest-title,
.mf-cmp-suggest-title:hover {
    color: #00ade6 !important;
}

.mf-cmp-suggest-price-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 4px 6px !important;
    min-height: 26px !important;
    margin-bottom: 2px !important;
}

.mf-cmp-price-cur {
    font-size: 16.5px !important;
    font-weight: 800 !important;
    color: #53627B !important;
    letter-spacing: -0.02em !important;
    line-height: 1.1 !important;
}

.mf-cmp-price-del {
    font-size: 11.5px !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
    text-decoration: line-through !important;
}

.mf-cmp-suggest-card .mf-cmp-add-direct {
    width: 100% !important;
    height: 38px !important;
    padding: 0 12px !important;
    border-radius: 10px !important;
    background: #53627B !important;
    color: #ffffff !important;
    border: 0 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    box-shadow: 0 2px 8px rgba(83, 98, 123, 0.18) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    white-space: nowrap !important;
}

.mf-cmp-suggest-card .mf-cmp-add-direct::after {
    content: "›" !important;
    font-size: 15px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    transition: transform 0.2s ease !important;
}

.mf-cmp-suggest-card:hover .mf-cmp-add-direct,
.mf-cmp-suggest-card .mf-cmp-add-direct:hover {
    background: #00ade6 !important;
    box-shadow: 0 4px 12px rgba(0, 173, 230, 0.28) !important;
    transform: translateY(-1px) !important;
}

.mf-cmp-suggest-card:hover .mf-cmp-add-direct::after,
.mf-cmp-suggest-card .mf-cmp-add-direct:hover::after {
    transform: translateX(3px) !important;
}

/* Toast Notification Palette (Zero Black -> Logo Dark Blue #53627B) */
body .mf-compare-toast,
body .mf-compare-toast.is-info {
    background: #53627B !important;
    color: #ffffff !important;
    box-shadow: 0 12px 28px rgba(83, 98, 123, 0.28) !important;
    width: max-content !important;
    max-width: calc(100vw - 24px) !important;
    white-space: normal !important;
    text-align: center !important;
    border-radius: 18px !important;
}

body .mf-compare-toast.is-ok {
    background: #0284c7 !important;
    color: #ffffff !important;
    box-shadow: 0 12px 28px rgba(2, 132, 199, 0.28) !important;
}

body .mf-compare-toast.is-warn {
    background: #d97706 !important;
    color: #ffffff !important;
    box-shadow: 0 12px 28px rgba(217, 119, 6, 0.28) !important;
}

/* Tablet & Mobile Responsive Matrix */
@media (max-width: 1360px) {
    .mf-cmp-suggestions-grid .mf-cmp-card-specs {
        gap: 3px !important;
    }
    .mf-cmp-suggestions-grid .mf-cmp-spec-chip {
        font-size: 9.2px !important;
        padding: 2px 4.5px !important;
    }
}

@media (max-width: 1140px) {
    .mf-cmp-suggestions-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 1024px) {
    .mf-cmp-shelf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    .mf-cmp-suggestions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
    .mf-compare-app {
        margin: 0 0 32px 0 !important;
    }
    .mf-cmp-toolbar {
        padding: 16px !important;
        margin-bottom: 14px !important;
        border-radius: 16px !important;
        gap: 12px !important;
    }
    .mf-cmp-title {
        font-size: 20px !important;
    }
    .mf-cmp-toolbar-actions {
        width: 100% !important;
        gap: 8px !important;
    }
    .mf-cmp-btn-primary-soft,
    .mf-cmp-diff-switch,
    .mf-cmp-btn-ghost,
    .mf-cmp-btn-danger-ghost {
        padding: 8px 12px !important;
        font-size: 12.5px !important;
    }
    .mf-cmp-drawer-shelf {
        padding: 14px 16px !important;
        margin-bottom: 14px !important;
    }
    .mf-cmp-shelf-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    .mf-cmp-scroll {
        border-radius: 16px !important;
        scroll-snap-type: x mandatory !important;
    }
    .mf-cmp-row {
        grid-template-columns: repeat(var(--mf-cols, 2), minmax(50%, 1fr)) !important;
    }
    .mf-cmp-row[style*="--mf-cols: 1"],
    .mf-cmp-scroll[style*="--mf-cols: 1"] .mf-cmp-row {
        grid-template-columns: 100% !important;
    }
    .mf-cmp-card {
        padding: 12px 10px !important;
        scroll-snap-align: start !important;
    }
    .mf-cmp-card-badges {
        top: 2px !important;
        left: 2px !important;
        right: 2px !important;
        gap: 4px !important;
    }
    .mf-cmp-sale-badge,
    .mf-cmp-new-badge {
        font-size: 10px !important;
        padding: 2px 6px !important;
    }
    .mf-cmp-badge-grade {
        font-size: 9.5px !important;
        padding: 2px 6px !important;
    }
    .mf-cmp-remove {
        width: 24px !important;
        height: 24px !important;
        flex: 0 0 24px !important;
        font-size: 10px !important;
    }
    .mf-cmp-card-thumb {
        height: 146px !important;
        padding: 30px 8px 8px 8px !important;
        margin-bottom: 6px !important;
    }
    .mf-cmp-card-thumb img {
        max-height: 106px !important;
    }
    .mf-cmp-card-name {
        font-size: 13px !important;
        height: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;
    }
    .mf-cmp-cta-btn {
        height: 36px !important;
        padding: 0 10px !important;
        font-size: 11.5px !important;
    }
    .mf-cmp-cell-label {
        grid-column: 1 / -1 !important;
        position: sticky !important;
        left: 0 !important;
        padding: 9px 14px !important;
        border-right: 0 !important;
        border-bottom: 1px solid #e2e8f0 !important;
        font-size: 11px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
    }
    .mf-cmp-cell-val {
        padding: 11px 12px !important;
        font-size: 12.5px !important;
    }
}

@media (max-width: 560px) {
    .mf-cmp-suggestions-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    .mf-cmp-empty-panel {
        padding: 22px 14px !important;
    }
}

/* Audit Fix 5: sopprimi FAB e Dock Confronta su Carrello, Checkout e 404 anche in pagine cached */
body.woocommerce-cart .ts-stick-compare-button,
body.woocommerce-cart .mf-compare-fab,
body.woocommerce-cart .ts-compare-popup,
body.woocommerce-cart .mf-compare-dock,
body.woocommerce-checkout .ts-stick-compare-button,
body.woocommerce-checkout .mf-compare-fab,
body.woocommerce-checkout .ts-compare-popup,
body.woocommerce-checkout .mf-compare-dock,
body.error404 .ts-stick-compare-button,
body.error404 .mf-compare-fab,
body.error404 .ts-compare-popup,
body.error404 .mf-compare-dock {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

