/* MACFaaast Module: Single Product Core & Configurator (Extracted from style.css) */

/* ==========================================================================
   RELATED PRODUCTS: SHOWROOM APPLE-STYLE SLIDER (MACFAAAST)
   ========================================================================== */
.related-products-original {
    width: 100% !important;
    max-width: 1410px !important;
    margin: 50px auto 70px auto !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
    clear: both !important;
    position: relative !important;
    overflow: visible !important;
}

/* Header Showroom Apple-Style */
.mf-related-header {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin-bottom: 20px !important;
}

.mf-related-header .mf-bs-header-info {
    flex: 1 !important;
}

.mf-related-header .mf-bs-eyebrow {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 12px !important;
    background: rgba(0, 173, 230, 0.08) !important;
    border: 1px solid rgba(0, 173, 230, 0.2) !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #00ade6 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 6px !important;
}

.mf-related-header .mf-bs-pulse {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #00ade6 !important;
    box-shadow: 0 0 0 0 rgba(0, 173, 230, 0.7) !important;
    animation: mfBsPulse 2s infinite !important;
}

.mf-related-header .mf-bs-title {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #53627b !important;
    line-height: 1.25 !important;
    letter-spacing: -0.02em !important;
    margin: 0 0 4px 0 !important;
}

.mf-related-header .mf-bs-subtitle {
    font-size: 13px !important;
    color: #53627b !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

.mf-related-header .mf-bs-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
}

.mf-related-header .mf-bs-arrows {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.mf-related-header .mf-bs-arrow {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #53627b !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03) !important;
    padding: 0 !important;
    outline: none !important;
}

.mf-related-header .mf-bs-arrow:hover {
    border-color: #00ade6 !important;
    color: #00ade6 !important;
    background: #f0f9ff !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(0, 173, 230, 0.16) !important;
}

.mf-related-header .mf-bs-arrow svg {
    display: block !important;
}

.mf-related-header .mf-bs-view-all {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 9px 16px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #53627b !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    line-height: 1.2 !important;
}

.mf-related-header .mf-bs-view-all:hover {
    border-color: #00ade6 !important;
    color: #00ade6 !important;
    background: #f0f9ff !important;
}

/* Swiper Container: 4 colonne piene su desktop senza nessun taglio */
.related-products-original .products.swiper {
    position: relative !important;
    overflow: hidden !important;
    padding: 15px 0 30px 0 !important;
    margin: 0 -8px !important;
}

.related-products-original .swiper-wrapper {
    display: flex !important;
    box-sizing: border-box !important;
    align-items: stretch !important;
}

.related-products-original .products .product.swiper-slide {
    height: auto !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 8px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Esattamente 4 card su desktop (1100px+): nessuna card tagliata */
@media only screen and (min-width: 1100px) {
    .related-products-original .products .product.swiper-slide {
        width: 25% !important;
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }

    .related-products-original .products.swiper {
        overflow: hidden !important;
    }
}

/* Tablet orizzontale / schermi medi: 3 card */
@media only screen and (min-width: 768px) and (max-width: 1099px) {
    .related-products-original .products .product.swiper-slide {
        width: 33.333333% !important;
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
    }
}

/* Tablet verticale / mobile largo: 2 card */
@media only screen and (min-width: 480px) and (max-width: 767px) {
    .related-products-original .products .product.swiper-slide {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/* Mobile: 1 card intera */
@media only screen and (max-width: 479px) {
    .related-products-original .products.swiper {
        margin: 0 -6px !important;
    }

    .related-products-original .products .product.swiper-slide {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 0 6px !important;
    }
}

/* Hide default awkward side swiper arrows */
.related-products-original>.swiper-button-prev,
.related-products-original>.swiper-button-next,
.related-products-original .products>.swiper-button-prev,
.related-products-original .products>.swiper-button-next,
.related-products-original .ts-swiper-button-prev,
.related-products-original .ts-swiper-button-next {
    display: none !important;
}

/* Product Card (.product-wrapper) */
.related-products-original .products .product .product-wrapper {
    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;
    position: relative !important;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 3px 12px rgba(61, 75, 100, 0.04) !important;
    box-sizing: border-box !important;
    height: 100% !important;
    width: 100% !important;
}

.related-products-original .products .product .product-wrapper:hover {
    border-color: #00ade6 !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 14px 30px rgba(0, 173, 230, 0.12), 0 4px 10px rgba(61, 75, 100, 0.05) !important;
}

/* Badges Flottanti in Alto (.mf-product-label) */
.related-products-original .product-wrapper .mf-product-label {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    right: 10px !important;
    width: calc(100% - 20px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 !important;
    margin: 0 !important;
    pointer-events: none !important;
    z-index: 5 !important;
}

.related-products-original .mf-product-label .onsale.mf-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;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
}

.related-products-original .mf-product-label .mf-bs-badge-grade {
    margin-left: auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 3px 9px !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    line-height: 1.25 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    box-sizing: border-box !important;
}

.related-products-original .mf-product-label .mf-bs-badge-grade img.emoji {
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    max-width: 12px !important;
    max-height: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
    transform: none !important;
}

.related-products-original .mf-product-label .mf-bs-badge-grade.grade-eccellente {
    background: #f0f9ff !important;
    border: 1px solid #bae6fd !important;
    color: #0369a1 !important;
}

.related-products-original .mf-product-label .mf-bs-badge-grade.grade-ottimo {
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    color: #15803d !important;
}

.related-products-original .mf-product-label .mf-bs-badge-grade.grade-buono {
    background: #fffbeb !important;
    border: 1px solid #fde68a !important;
    color: #b45309 !important;
}

.related-products-original .mf-product-label .mf-bs-badge-grade.grade-accettabile,
.related-products-original .mf-product-label .mf-bs-badge-grade.grade-discreto {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #53627b !important;
}

.related-products-original .mf-product-label .mf-bs-badge-grade.grade-nuovo {
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    color: #047857 !important;
}

/* Stage Fotografico Pure White con Floor Glow (.thumbnail-wrapper) */
.related-products-original .thumbnail-wrapper {
    height: 165px !important;
    width: 100% !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    position: relative !important;
    padding: 6px !important;
    box-sizing: border-box !important;
    border-radius: 14px 14px 0 0 !important;
    margin: 0 !important;
}

.related-products-original .thumbnail-wrapper::after {
    content: '' !important;
    position: absolute !important;
    bottom: 2px !important;
    left: 15% !important;
    right: 15% !important;
    height: 8px !important;
    background: radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.07) 0%, rgba(255, 255, 255, 0) 75%) !important;
    border-radius: 50% !important;
    pointer-events: none !important;
    transition: transform 0.3s ease, opacity 0.3s ease !important;
}

.related-products-original .product-wrapper:hover .thumbnail-wrapper::after {
    transform: scaleX(0.85) !important;
    opacity: 0.6 !important;
}

.related-products-original .thumbnail-wrapper figure {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    width: 100% !important;
}

.related-products-original .thumbnail-wrapper img:not(.emoji) {
    max-height: 135px !important;
    max-width: 90% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    background: transparent !important;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: block !important;
    margin: auto !important;
    z-index: 1 !important;
}

.related-products-original .product-wrapper:hover .thumbnail-wrapper img:not(.emoji) {
    transform: scale(1.06) translateY(-2px) !important;
}

/* Nasconde bottoni sovrapposti alla foto per pulizia Apple */
.related-products-original .thumbnail-wrapper .product-group-button {
    display: none !important;
}

/* Box Sfumato Sotto per Specifiche, Prezzo e Azioni (.meta-wrapper) */
.related-products-original .meta-wrapper {
    background: #f8fafc !important;
    border: 1px solid #edf2f7 !important;
    border-radius: 14px !important;
    padding: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    margin-top: 6px !important;
    transition: background 0.2s ease, border-color 0.2s ease !important;
    box-sizing: border-box !important;
    flex: 1 !important;
}

.related-products-original .product-wrapper:hover .meta-wrapper {
    background: #f1f8fc !important;
    border-color: #e0f2fe !important;
}

.related-products-original .heading-title.product-name,
.related-products-original .woocommerce-loop-product__title {
    margin: 0 0 6px 0 !important;
    line-height: 1.25 !important;
}

.related-products-original .heading-title.product-name a,
.related-products-original .woocommerce-loop-product__title a {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #53627b !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.related-products-original .product-wrapper:hover .heading-title.product-name a {
    color: #00ade6 !important;
}

/* Chip Specifiche Tecniche */
.related-products-original .mf-cat-chips {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    margin-bottom: 10px !important;
}

.related-products-original .mf-cat-chip {
    background: #ffffff !important;
    color: #53627b !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    padding: 2.5px 7px !important;
    border-radius: 6px !important;
    border: 1px solid #e2e8f0 !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
}

.related-products-original .mf-cat-chip.mf-chip-year {
    background: #f0f9ff !important;
    color: #0369a1 !important;
    border-color: #bae6fd !important;
    font-weight: 700 !important;
}

/* Prezzo & Risparmio */
.related-products-original .price {
    border-top: 1px solid rgba(226, 232, 240, 0.7) !important;
    padding-top: 8px !important;
    margin-top: 2px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    gap: 6px !important;
    margin-bottom: 0 !important;
}

.related-products-original .price ins .woocommerce-Price-amount,
.related-products-original .price>.woocommerce-Price-amount {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #53627b !important;
    letter-spacing: -0.02em !important;
    line-height: 1 !important;
}

.related-products-original .price del {
    margin-right: 0 !important;
}

.related-products-original .price del .woocommerce-Price-amount {
    font-size: 12px !important;
    color: #94a3b8 !important;
    text-decoration: line-through !important;
    font-weight: 400 !important;
}

.related-products-original .mf-price-saving-chip {
    width: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #059669 !important;
    margin-top: 3px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.related-products-original .mf-price-saving-chip::before {
    content: '🏷️ ' !important;
    font-size: 10px !important;
}

/* Pulsante CTA Card */
.related-products-original .product-group-button-meta {
    margin-top: 10px !important;
    width: 100% !important;
}

.related-products-original .product-group-button-meta .button {
    width: 100% !important;
    padding: 8px 12px !important;
    border-radius: 9999px !important;
    background: #53627b !important;
    color: #ffffff !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    line-height: 1.3 !important;
}

.related-products-original .product-wrapper:hover .product-group-button-meta .button {
    background: #00ade6 !important;
    box-shadow: 0 4px 12px rgba(0, 173, 230, 0.28) !important;
    color: #ffffff !important;
}

.related-products-original .product-group-button-meta .button::after {
    content: ' ›' !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    transition: transform 0.2s ease !important;
}

.related-products-original .product-wrapper:hover .product-group-button-meta .button::after {
    transform: translateX(3px) !important;
}

/* Marketing Footer (PayPal & Trust) */
.related-products-original .loop-marketing-footer {
    margin-top: 8px !important;
}

.related-products-original .loop-paypal-preview {
    border-left: 2px solid #00ade6 !important;
    padding-left: 6px !important;
    font-size: 10.5px !important;
    color: #53627b !important;
    line-height: 1.3 !important;
}

.related-products-original .loop-trust-icons {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 10.5px !important;
    color: #53627b !important;
    margin-top: 5px !important;
}

.related-products-original .tax-info-loop {
    font-size: 10px !important;
    color: #94a3b8 !important;
    margin: 5px 0 0 0 !important;
}

/* Trust Bar a piè di sezione Showroom */
.mf-related-trust-bar {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 12px !important;
    margin-top: 24px !important;
    padding-top: 18px !important;
    border-top: 1px solid #e9edf3 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #53627b !important;
}

.mf-related-trust-bar .mf-bs-trust-item {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.mf-related-trust-bar .mf-bs-trust-item span {
    color: #00ade6 !important;
    font-weight: 800 !important;
}

/* Media Queries Tablet */
@media (max-width: 1199px) {
    .mf-related-trust-bar {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

/* Media Query Mobile Perfetta (<=640px) */
@media (max-width: 640px) {
    .related-products-original {
        margin: 35px auto 50px auto !important;
        padding: 0 12px !important;
    }

    .mf-related-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        margin-bottom: 14px !important;
    }

    .mf-related-header .mf-bs-title {
        font-size: 20px !important;
        line-height: 1.25 !important;
        margin-bottom: 2px !important;
    }

    .mf-related-header .mf-bs-subtitle {
        font-size: 12px !important;
        line-height: 1.35 !important;
    }

    .mf-related-header .mf-bs-actions {
        width: 100% !important;
        justify-content: space-between !important;
        margin-top: 2px !important;
    }

    .mf-related-header .mf-bs-arrow {
        width: 34px !important;
        height: 34px !important;
    }

    .mf-related-header .mf-bs-view-all {
        padding: 7px 13px !important;
        font-size: 12px !important;
    }

    .related-products-original .products .product .product-wrapper {
        padding: 10px !important;
        border-radius: 18px !important;
    }

    .related-products-original .thumbnail-wrapper {
        height: 135px !important;
        padding: 4px !important;
    }

    .related-products-original .thumbnail-wrapper img:not(.emoji) {
        max-height: 115px !important;
    }

    .related-products-original .meta-wrapper {
        padding: 10px !important;
        border-radius: 12px !important;
    }

    .related-products-original .heading-title.product-name a {
        font-size: 14px !important;
    }

    .related-products-original .price ins .woocommerce-Price-amount {
        font-size: 16px !important;
    }

    .mf-related-trust-bar {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
        font-size: 11.5px !important;
        margin-top: 14px !important;
        padding-top: 12px !important;
    }
}


@media (min-width: 1025px) {
    body .related-products-original {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

}

/* --- PREMIUM PRODUCT PAGE REDESIGN --- */

/* 1. GENERAL PRODUCT LAYOUT SPACING */
body.single-product .product_title {
    font-size: 1.85rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
    line-height: 1.2 !important;
    margin-bottom: 25px !important;
    color: #53627B !important;
}

/* Stock Badge Premium */
.availability.stock.in-stock {
    display: inline-flex !important;
    align-items: center;
    background-color: #28a745 !important;
    /* Verde Apple/Success */
    color: #ffffff !important;
    padding: 4px 12px !important;
    border-radius: 50px !important;
    /* Pill shape */
    font-weight: 700 !important;
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 25px !important;
}

.availability.stock.in-stock .label,
.availability.stock.in-stock .availability-text {
    color: #ffffff !important;
    margin-right: 4px;
}

.availability.stock.in-stock .label {
    opacity: 0.9;
    font-weight: 500 !important;
}

body.single-product .price {
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    color: #53627b !important;
    margin-bottom: 25px !important;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

body.single-product .price del {
    font-size: 1.1rem !important;
    color: #86868b !important;
    font-weight: 500 !important;
}

body.single-product .summary.entry-summary {
    padding-left: 30px !important;
}

@media only screen and (max-width: 991px) {
    body.single-product .summary.entry-summary {
        padding-left: 0 !important;
        margin-top: 30px !important;
    }
}

/* 2. TM EXTRA PRODUCT OPTIONS (MODERN APPLE-STYLE CARD REDESIGN) */
.tc-extra-product-options {
    margin: 0 !important;
}

/* Titolo Sezione Opzioni */
.tc-extra-product-options::before {
    content: "🛡️ Opzioni & Garanzia Aggiuntiva" !important;
    display: flex !important;
    align-items: center !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #53627b !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    margin-bottom: 12px !important;
}

/* Elimina il doppio box: il container esterno diventa l unica card elegante */
.tm-extra-product-options-fields>li {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 18px 20px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.tm-extra-product-options-fields>li:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

/* Stato Attivo / Checked */
.tm-extra-product-options-fields>li:has(input:checked),
.tm-extra-product-options-fields>li.tc-active {
    border-color: #00ade6 !important;
    background: #f0f9ff !important;
    box-shadow: 0 4px 20px rgba(0, 173, 230, 0.12) !important;
}

/* Reset del vecchio box interno duplicato */
.tm-extra-product-options li.tmcp-field-wrap {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    display: block !important;
    width: 100% !important;
}

.tm-extra-product-options li.tmcp-field-wrap:hover {
    background: transparent !important;
}

.tm-extra-product-options li.tmcp-field-wrap.tc-active {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* Riga titolo opzione e prezzo */
.tm-extra-product-options .tc-field-label-wrap label {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tm-extra-product-options .tc-label-wrap,
.tm-extra-product-options .tc-col.tc-label.tm-label,
.tm-extra-product-options .tc-label-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
}

.tm-extra-product-options .tc-label-text {
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: #53627b !important;
    letter-spacing: -0.2px !important;
    text-transform: none !important;
}

.tm-extra-product-options .tc-price,
.tm-extra-product-options .amount {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    padding: 4px 10px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
}

.tm-extra-product-options del,
.tm-extra-product-options .tc-price del,
.tm-extra-product-options .amount.old-price {
    display: none !important;
}

/* Descrizione interna dell estensione garanzia */
.tm-extra-product-options .tm-element-description {
    margin-top: 10px !important;
    padding-top: 10px !important;
    border-top: 1px dashed #e2e8f0 !important;
}

.tm-extra-product-options .tm-element-description p {
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: #64748b !important;
    margin: 0 0 6px 0 !important;
}

.tm-extra-product-options .tm-element-description a {
    color: #006b99 !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    text-decoration: none !important;
}

.tm-extra-product-options .tm-element-description a::after {
    content: " →" !important;
}

.tm-extra-product-options ul.tmcp-ul-wrap {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 3. FINAL TOTALS SUMMARY BOX (CLEAN LIGHT DESIGN) */
.tc-totals-form,
.tc-totals-form-main {
    margin: 0 !important;
}

.tc-epo-totals,
.tm-epo-totals,
.tm-totals-form-main {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 16px 20px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
    box-sizing: border-box !important;
}

.tc-epo-totals dl.tm-extra-product-options-totals,
.tm-extra-product-options-totals.tm-custom-price-totals {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    row-gap: 10px !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Riga Totale Opzioni */
.tc-epo-totals dt.tm-options-totals,
.tm-totals-form-main dt.tm-options-totals {
    grid-column: 1 !important;
    font-size: 12px !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    width: auto !important;
    line-height: normal !important;
}

.tc-epo-totals dd.tm-options-totals,
.tm-totals-form-main dd.tm-options-totals {
    grid-column: 2 !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    float: none !important;
    width: auto !important;
    text-align: right !important;
}

.tc-epo-totals dd.tm-options-totals .amount,
.tc-epo-totals dd.tm-options-totals bdi,
.tm-totals-form-main dd.tm-options-totals .amount {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #0284c7 !important;
    background: #e0f2fe !important;
    padding: 2px 8px !important;
    border-radius: 6px !important;
    display: inline-block !important;
    float: none !important;
}

/* Riga Totale Finale */
.tc-epo-totals dt.tm-final-totals,
.tm-totals-form-main dt.tm-final-totals {
    grid-column: 1 !important;
    border-top: 1px solid #e2e8f0 !important;
    padding-top: 10px !important;
    margin: 0 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #53627b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    opacity: 1 !important;
    float: none !important;
    width: auto !important;
    line-height: normal !important;
}

.tc-epo-totals dd.tm-final-totals,
.tm-totals-form-main dd.tm-final-totals {
    grid-column: 2 !important;
    border-top: 1px solid #e2e8f0 !important;
    padding-top: 10px !important;
    margin: 0 !important;
    float: none !important;
    width: auto !important;
    text-align: right !important;
}

.tc-epo-totals dd.tm-final-totals .amount,
.tc-epo-totals dd.tm-final-totals bdi,
.tc-epo-totals span.price.amount.final,
.tm-totals-form-main dd.tm-final-totals .amount {
    font-size: 26px !important;
    font-weight: 900 !important;
    color: #53627b !important;
    letter-spacing: -0.5px !important;
    display: inline-block !important;
    float: none !important;
}

.tc-epo-totals .amount,
.tc-epo-totals bdi,
.tm-totals-form-main .amount,
.tm-totals-form-main bdi {
    float: none !important;
}

/* 4. PREMIUM 'ADD TO CART' AND CTAs */
body.single-product form.cart {
    margin-top: 30px !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.single-product form.cart::before,
body.single-product form.cart::after {
    display: none !important;
}

body.single-product button.single_add_to_cart_button,
body.single-product .button.alt {
    background: #ffffff !important;
    color: #00ade6 !important;
    border-radius: 50px !important;
    /* Premium Pill Shape */
    padding: 17px 30px !important;
    /* Adjusted slightly for the 2px border */
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    border: 2px solid #00ade6 !important;
    width: 100% !important;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 6px 15px rgba(0, 173, 230, 0.08) !important;
    margin-bottom: 0 !important;
}

body.single-product button.single_add_to_cart_button:hover,
body.single-product .button.alt:hover {
    background: #00ade6 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(0, 173, 230, 0.35) !important;
}

/* Buy Now Button - Marketing Focused - SPECIFIC OVERRIDE */
.woocommerce div.product .summary a.button.ts-buy-now-button,
body.single-product .ts-buy-now-button {
    background: #00ade6 !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    padding: 18px 30px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    border: none !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 8px 24px rgba(0, 173, 230, 0.4) !important;
    animation: marketing-pulse 3s infinite;
}

.woocommerce div.product .summary a.button.ts-buy-now-button:hover,
body.single-product .ts-buy-now-button:hover {
    background: #0096c7 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 30px rgba(0, 173, 230, 0.55) !important;
    color: #ffffff !important;
}

/* ── REORDERING BUY BUTTONS AND PAYMENT METHODS ── */
.summary.entry-summary {
    display: flex !important;
    flex-direction: column !important;
}

/* 1. Add to Cart Section (Form) */
.summary.entry-summary form.cart {
    order: 10 !important;
    margin-bottom: 12px !important;
    padding-bottom: 0 !important;
}

.summary.entry-summary form.cart .woocommerce-variation-add-to-cart {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* 2. Buy Now Button - (Targeting specific override class) */
.summary.entry-summary .ts-buy-now-button {
    order: 12 !important;
    margin-bottom: 12px !important;
    margin-top: 0 !important;
}

/* 3. Stripe Payment Methods (GPay, ApplePay, Link) */
#wc-stripe-express-checkout-element {
    order: 15 !important;
    margin-top: 0 !important;
    margin-bottom: 25px !important;
}

/* 4. Wishlist & Compare side-by-side action bar (directly below CTAs / Express Pay) */
.summary.entry-summary .single-product-buttons {
    order: 18 !important;
    width: 100% !important;
    margin: 4px 0 !important;
    padding: 0 !important;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    gap: 10px !important;
    box-sizing: border-box !important;
}

.summary.entry-summary .single-product-buttons>div {
    flex: 1 1 calc(50% - 5px) !important;
    min-width: 170px !important;
    margin: 0 !important;
    display: flex !important;
}

/* 5. Transform links to cohesive Apple-clean secondary pills */
.summary.entry-summary .single-product-buttons a.button-in,
.single-product .summary .single-product-buttons .button-in a {
    width: 100% !important;
    flex: 1 1 auto !important;
    background: #ffffff !important;
    color: #53627b !important;
    padding: 11px 10px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    text-align: center !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 6px rgba(83, 98, 123, 0.03) !important;
    box-sizing: border-box !important;
}

.summary.entry-summary .single-product-buttons a.button-in:hover,
.single-product .summary .single-product-buttons .button-in a:hover {
    background: #f0f9ff !important;
    color: #0284c7 !important;
    border-color: #bae6fd !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 173, 230, 0.1) !important;
}

/* 6. "Cosa c'è nella scatola" & Trust Badges Box (Aligned 100% full summary width) */
.summary.entry-summary .mf-sp-in-the-box {
    order: 20 !important;
}

.summary.entry-summary .marketing-trust-badges-box {
    order: 22 !important;
}

/* Target the icons (TB Icons) — override parent theme's position:absolute;top:-1px;left:0 */
.woocommerce .summary.entry-summary .single-product-buttons a.button-in::before,
.woocommerce .summary.entry-summary .single-product-buttons a:where(.ts-add-to-wishlist, .ts-add-to-compare)::before {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 0 !important;
    font-family: 'tb-icon' !important;
    font-size: 15px !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

.woocommerce .summary.entry-summary .single-product-buttons a.button-in::after,
.woocommerce .summary.entry-summary .single-product-buttons a:where(.ts-add-to-wishlist, .ts-add-to-compare)::after {
    position: static !important;
    top: auto !important;
    left: auto !important;
    flex-shrink: 0 !important;
}

@media (max-width: 767px) {
    .summary.entry-summary .single-product-buttons {
        gap: 8px !important;
    }

    .summary.entry-summary .single-product-buttons>div {
        flex: 1 1 calc(50% - 4px) !important;
        min-width: 0 !important;
    }

    .summary.entry-summary .single-product-buttons a.button-in,
    .single-product .summary .single-product-buttons .button-in a {
        padding: 10px 8px !important;
        font-size: 11.5px !important;
        line-height: 1.25 !important;
        gap: 5px !important;
    }
}

/* Serial & Categories — Apple-clean Meta Card (see unified rules at bottom of file) */
.summary.entry-summary .meta-content {
    order: 31 !important;
    width: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 16px 22px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 20px rgba(83, 98, 123, 0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.summary.entry-summary .meta-content .product_meta,
.summary.entry-summary .meta-content .sku-wrapper.product_meta {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.summary.entry-summary .sku-wrapper,
.single-product .summary .sku-wrapper.product_meta {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px 12px !important;
    margin: 0 !important;
    padding: 0 0 10px 0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-size: 12px !important;
    color: #53627b !important;
}

.summary.entry-summary .sku-wrapper>span:first-child,
.single-product .summary .sku-wrapper span:first-child,
.summary.entry-summary .cats-link>span:first-child,
.single-product .summary .cats-link span:first-child {
    min-width: 84px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #64748b !important;
}

.summary.entry-summary .sku-wrapper .sku,
.single-product .summary .sku {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #ffffff !important;
    color: #53627b !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 4px 10px !important;
    margin: 0 !important;
    height: auto !important;
    font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    box-shadow: 0 1px 2px rgba(83, 98, 123, 0.05) !important;
}

.summary.entry-summary .sku-wrapper .sku::before,
.single-product .summary .sku::before {
    content: "" !important;
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #10b981 !important;
    flex-shrink: 0 !important;
}

/* Category pills */
.summary.entry-summary .cats-link,
.single-product .summary .cats-link {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    color: #53627b !important;
}

.summary.entry-summary .cats-link .cat-links,
.single-product .summary .cats-link .cat-links {
    display: inline-flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0 !important;
}

.summary.entry-summary .cats-link a,
.single-product .summary .cat-links a {
    display: inline-flex !important;
    align-items: center !important;
    padding: 4px 11px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #53627b !important;
    text-decoration: none !important;
    line-height: 1.3 !important;
    transition: all 0.2s ease !important;
}

.summary.entry-summary .cats-link a:hover,
.single-product .summary .cat-links a:hover {
    background: #f0f9ff !important;
    border-color: #00ade6 !important;
    color: #0284c7 !important;
    text-decoration: none !important;
}

/* Final cleanup for spacing */
#wc-stripe-express-checkout-element+.ts-buy-now-button {
    margin-top: 0 !important;
}

@keyframes marketing-pulse {
    0% {
        box-shadow: 0 8px 24px rgba(0, 173, 230, 0.4);
    }

    50% {
        box-shadow: 0 8px 35px rgba(0, 173, 230, 0.65);
    }

    100% {
        box-shadow: 0 8px 24px rgba(0, 173, 230, 0.4);
    }
}

/* Quantity Input */
body.single-product div.quantity {
    background: #f4f5f7 !important;
    border-radius: 50px !important;
    padding: 2px !important;
    margin-bottom: 10px !important;
    width: auto !important;
    display: inline-flex !important;
}

body.single-product div.quantity input.qty {
    background: transparent !important;
    border: none !important;
    font-weight: 700 !important;
}

/* 5. TABS (PREMIUM iOS 17 FLUID SEGMENTED CONTROL) */
.woocommerce-tabs.wc-tabs-wrapper {
    margin-top: 60px !important;
    border-top: none !important;
    background: transparent !important;
}

/* Desktop: Premium Horizontal Segmented Control */
.woocommerce .woocommerce-tabs ul.tabs {
    display: inline-flex !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    background: rgba(118, 118, 128, 0.12) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    padding: 5px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    margin: 0 0 45px 0 !important;
    width: auto !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    scrollbar-width: none;
    box-shadow: inset 0 0.5px 2px rgba(0, 0, 0, 0.05) !important;
}

.woocommerce-tabs ul.tabs::-webkit-scrollbar {
    display: none;
}

.woocommerce-tabs ul.tabs li {
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 10px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    flex: none !important;
    white-space: nowrap !important;
    position: relative !important;
}

.woocommerce-tabs ul.tabs li::before,
.woocommerce-tabs ul.tabs li::after {
    display: none !important;
}

.woocommerce-tabs ul.tabs li a {
    color: #6e6e73 !important;
    font-weight: 500 !important;
    font-size: 14.5px !important;
    padding: 11px 24px !important;
    display: block !important;
    border-radius: 10px !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    border-bottom: none !important;
    margin-bottom: 0 !important;
    letter-spacing: -0.01em !important;
}

.woocommerce-tabs ul.tabs li a:hover {
    color: #53627b !important;
}

.woocommerce-tabs ul.tabs li.active {
    background: #ffffff !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 3px 1px rgba(0, 0, 0, 0.04) !important;
    transform: scale(1.01) !important;
}

.woocommerce-tabs ul.tabs li.active a {
    color: #53627b !important;
    font-weight: 600 !important;
    border-bottom: none !important;
}

/* Tactile feedback on click */
.woocommerce-tabs ul.tabs li:active {
    transform: scale(0.96) !important;
    transition: transform 0.1s ease !important;
}

.woocommerce-tabs ul.tabs li:not(.active):hover {
    background: rgba(255, 255, 255, 0.4) !important;
}

/* Mobile: Premium Accordion (Apple Native Style) */
@media only screen and (max-width: 767px) {

    /* Full-width container breakout */
    .woocommerce-tabs.wc-tabs-wrapper {
        margin-left: -15px !important;
        margin-right: -15px !important;
        width: calc(100% + 30px) !important;
        border-radius: 0 !important;
    }

    /* Hide the segmented control on mobile */
    .woocommerce div.product .woocommerce-tabs ul.tabs {
        display: none !important;
    }

    /* Style the Accordion Buttons (H2 headers) */
    .woocommerce div.product.tabs-accordion .woocommerce-tabs .woocommerce-Tabs-panel>h2,
    .woocommerce div.product.tabs-accordion .woocommerce-tabs .woocommerce-Tabs-panel #reviews>h2 {
        display: block !important;
        background: #ffffff !important;
        border: 1px solid #f0f0f4 !important;
        border-left: none !important;
        border-right: none !important;
        border-radius: 0 !important;
        padding: 16px 20px !important;
        font-size: 14.5px !important;
        font-weight: 600 !important;
        color: #53627b !important;
        text-transform: none !important;
        letter-spacing: -0.01em !important;
        margin-bottom: 0 !important;
        /* Stacked look */
        position: relative !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        box-shadow: none !important;
    }

    /* Icon (Chevron) */
    .woocommerce div.product.tabs-accordion .woocommerce-tabs .woocommerce-Tabs-panel>h2::after,
    .woocommerce div.product.tabs-accordion .woocommerce-tabs .woocommerce-Tabs-panel #reviews>h2::after {
        content: "\f107" !important;
        font-family: "Font Awesome 5 Free" !important;
        font-weight: 900 !important;
        position: absolute !important;
        right: 20px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        font-size: 14px !important;
        color: #86868b !important;
        transition: transform 0.3s ease !important;
    }

    /* Active State (Open) */
    .woocommerce div.product.tabs-accordion .woocommerce-tabs .woocommerce-Tabs-panel>h2.active,
    .woocommerce div.product.tabs-accordion .woocommerce-tabs .woocommerce-Tabs-panel #reviews>h2.active {
        background: #fbfbfd !important;
        border-color: #e5e5e7 !important;
    }

    .woocommerce div.product.tabs-accordion .woocommerce-tabs .woocommerce-Tabs-panel>h2.active::after,
    .woocommerce div.product.tabs-accordion .woocommerce-tabs .woocommerce-Tabs-panel #reviews>h2.active::after {
        transform: translateY(-50%) rotate(180deg) !important;
        color: #53627b !important;
    }

    /* Content Panel Styling */
    .woocommerce div.product.tabs-accordion .woocommerce-tabs .panel {
        background: #ffffff !important;
        border: none !important;
        border-bottom: 1px solid #f0f0f4 !important;
        border-radius: 0 !important;
        padding: 20px !important;
        margin-bottom: 0 !important;
        box-shadow: none !important;
    }

    /* Ensure content is readable */
    .woocommerce div.product.tabs-accordion .woocommerce-tabs .panel>* {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: #53627b !important;
}


/* Contenuto delle Tab (Pannelli) */
.woocommerce-Tabs-panel {
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 40px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #f0f0f4 !important;
    margin-bottom: 20px !important;
}

@media only screen and (max-width: 767px) {
    .woocommerce-Tabs-panel {
        padding: 30px 20px !important;
        border-radius: 16px !important;
    }
}

.woocommerce-Tabs-panel h2 {
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    margin-top: 0 !important;
    margin-bottom: 25px !important;
    color: #53627b !important;
    letter-spacing: -0.5px !important;
}

@media only screen and (max-width: 767px) {
    .woocommerce-Tabs-panel {
        padding: 24px 20px !important;
    }
}

/* --- PREMIUM PRICE UI BY ANTIGRAVITY (V5 - VERTICAL LAYOUT FIX) --- */

/* Unified Container - Vertical Stack */
.single-product .summary .premium-price-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
    margin-top: 5px !important;
}

/* 1. TOP: High-Impact Savings Badge (STOCK-STYLE GREEN PILL) */
.single-product .summary .savings-badge.soft-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: #28a745 !important;
    /* Green */
    color: #ffffff !important;
    padding: 3px 10px !important;
    border-radius: 50px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
    line-height: 1.4 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.single-product .summary .savings-badge.hidden,
.single-product .summary .savings-badge:empty {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.single-product .summary .savings-badge.soft-badge .badge-label {
    opacity: 0.9;
    margin-right: 5px;
    font-weight: 800;
    color: #065f46 !important;
}

.single-product .summary .savings-badge.soft-badge .saving-text {
    color: #065f46 !important;
    font-weight: 700 !important;
}

.single-product .summary .savings-badge.soft-badge .saving-percent {
    margin-left: 6px;
    background: #d1fae5 !important;
    color: #065f46 !important;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 800 !important;
}

/* 2. Variation Form Layout Adjustment */
.single-product .summary .variations_form {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    border: none !important;
    padding-top: 0 !important;
}

.single-product .summary .woocommerce-product-details__short-description,
.single-product .summary .woocommerce-product-details__short-description p,
.single-product .summary .woocommerce-product-details__short-description strong {
    color: #53627b !important;
    line-height: 1.6 !important;
    font-size: 15px !important;
}

.single-product .summary .woocommerce-product-details__short-description {
    margin-top: -10px !important;
    margin-bottom: 15px !important;
}

.single-product .summary .personalize-selection-title {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #53627b !important;
    margin-top: -10px !important;
    margin-bottom: 25px !important;
    letter-spacing: -0.01em !important;
    display: block !important;
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* Apple Style Swatches Labels */
.single-product .summary .variations_form .label {
    text-transform: uppercase !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #53627b !important;
    letter-spacing: 0.1em !important;
    margin-bottom: 10px !important;
    display: block !important;
}

/* 3. MIDDLE: Base Price Styling */
.single-product .summary .main-price-container {
    width: 100%;
}

.single-product .summary .price {
    font-size: 3.4rem !important;
    /* Extremely impactful size for Sale Price */
    font-weight: 900 !important;
    color: #53627b !important;
    margin: 0 !important;
    display: flex !important;
    align-items: baseline !important;
    gap: 15px !important;
    line-height: 1.1 !important;
}

.single-product .summary .price del {
    font-size: 1.7rem !important;
    font-weight: 500 !important;
    color: #86868b !important;
    text-decoration: line-through !important;
    opacity: 0.5 !important;
}


/* 3. BOTTOM: Installments - Financial Anchor */
/* Cleaned up redundant styles */

/* Remove strong Pulse Animation for softer badge */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Trust Badges Area - Ultimate Premium Redesign */
.single-product .summary .marketing-trust-badges-box {
    background: #ffffff;
    border: 1px solid #f2f2f7;
    border-radius: 24px;
    padding: 35px !important;
    margin-top: 40px !important;
    width: 100%;
    box-sizing: border-box !important;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.single-product .summary .marketing-trust-badges-box:hover {
    box-shadow: 0 12px 60px rgba(0, 0, 0, 0.07);
    transform: translateY(-3px);
}

.single-product .summary .marketing-trust-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px 40px !important;
}

.single-product .summary .trust-item {
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.3s ease;
}

.single-product .summary .trust-icon-wrap {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #fbfbfd;
    border: 1px solid #f2f2f7;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Shimmer effect on icons */
.single-product .summary .trust-icon-wrap::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 50%;
    height: 200%;
    background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.8) 50%, transparent 100%);
    transform: rotate(30deg);
    transition: all 0.6s ease;
}

.single-product .summary .trust-item:hover .trust-icon-wrap::after {
    left: 150%;
}

.single-product .summary .trust-item:hover .trust-icon-wrap {
    background: #ffffff;
    border-color: #00ade6;
    box-shadow: 0 4px 15px rgba(0, 173, 230, 0.1);
    transform: scale(1.05);
}

.single-product .summary .trust-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.single-product .summary .trust-title {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #53627b !important;
    letter-spacing: -0.015em;
    line-height: 1.1;
}

.single-product .summary .trust-desc {
    font-size: 0.8rem !important;
    color: #86868b !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em;
}

.single-product .summary .whatsapp-concierge-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block !important;
    margin-top: 35px !important;
}

.single-product .summary .whatsapp-support {
    display: flex;
    align-items: center;
    gap: 22px !important;
    padding: 24px 28px !important;
    background: linear-gradient(135deg, #ffffff 0%, #fbfbfd 100%);
    border: 1px solid #f2f2f7;
    border-radius: 18px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.single-product .summary .whatsapp-concierge-link:hover .whatsapp-support {
    border-color: #25D366;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.1);
    transform: translateY(-2px);
}

.single-product .summary .wa-icon-pulse {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
}

.single-product .summary .wa-icon-pulse::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #25D366;
    border-radius: 50%;
    opacity: 0.15;
    animation: wa-pulse 3s infinite;
}

@keyframes wa-pulse {
    0% {
        transform: scale(1);
        opacity: 0.15;
    }

    50% {
        transform: scale(2.2);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.single-product .summary .wa-status-dot {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 12px;
    height: 12px;
    background: #25D366;
    border: 2px solid #ffffff;
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.single-product .summary .wa-concierge-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.single-product .summary .wa-label {
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.15em !important;
    color: #25D366 !important;
    text-transform: uppercase !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.single-product .summary .wa-label::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(37, 211, 102, 0.6);
}

.single-product .summary .wa-main-text {
    font-size: 0.92rem !important;
    color: #53627b !important;
    line-height: 1.5;
    font-weight: 500;
}

.single-product .summary .wa-main-text strong {
    font-weight: 700;
    color: #53627b;
}

@media (max-width: 768px) {
    .single-product .summary .marketing-trust-badges-box {
        padding: 24px !important;
    }

    .single-product .summary .marketing-trust-badges {
        grid-template-columns: 1fr;
        gap: 28px !important;
    }
}

.single-product .summary .whatsapp-support svg {
    flex-shrink: 0;
    margin-top: 0;
    width: 28px;
    height: 28px;
}

/* Variation Swatches Fix */
.vi-wpvs-option-wrap {
    overflow: visible !important;
    margin-bottom: 5px !important;
    padding-bottom: 2px !important;
}

.vi-wpvs-option-button {
    margin: 2px !important;
}

.vi-wpvs-option-tooltip {
    display: none !important;
    visibility: hidden !important;
}

/* Premium Tax Info */
.single-product .summary .premium-tax-info {
    font-size: 0.85rem !important;
    color: #53627b !important;
    font-weight: 500 !important;
    margin-top: 4px !important;
    margin-bottom: 8px !important;
    width: 100%;
}

/* Clean up legacy tax items */
.single-product .summary .shop-badge {
    display: none !important;
}

@media only screen and (max-width: 767px) {
    .single-product .summary .price {
        font-size: 2.8rem !important;
    }

    .single-product .summary .installments-preview {
        font-size: 0.88rem !important;
        padding: 8px 12px !important;
        width: 100% !important;
        /* Occupa tutto lo spazio su mobile */
        max-width: none !important;
        /* Rimosso limite per permettere allineamento fluido */
        justify-content: flex-start !important;
        margin-left: 0 !important;
    }

    .single-product .summary .installments-preview .inst-amount {
        font-size: 1rem !important;
    }
}


/* --- PRODUCT META AREA (Wishlist, Compare — handled cleanly above) --- */
.single-product .summary .single-product-buttons {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    padding: 0 !important;
}

@media (min-width: 992px) {
    body.single-product .woocommerce-product-gallery {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 140px !important;
        align-self: flex-start !important;
        z-index: 10;
        transition: top 0.3s ease;
    }
}

/* 7. CURSORE LENTE DI INGRANDIMENTO (Product Gallery) */
.woocommerce-product-gallery img {
    cursor: zoom-in !important;
}

/* ---------------------------------------------------------------- */
/* 8. PREMIUM VARIATION SWATCHES V3 — MINIMAL MODERN (2026)         */
/* ---------------------------------------------------------------- */

.premium-swatches-v2 {
    margin-bottom: 24px !important;
    padding: 0 !important;
}

/* Wrapper plugin: reset */
.premium-swatches-v2 .vi-wpvs-variation-wrap-wrap {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* Ogni gruppo attributo ha una separazione verticale netta */
.premium-swatches-v2 .vi-wpvs-variation-wrap {
    margin-bottom: 20px !important;
}

/* ---- LABEL ROW: "CAPACITÀ HD : 256 GB" ---- */
/* Label (CAPACITÀ HD) */
.premium-swatches-v2 .label label {
    font-weight: 700 !important;
    color: #86868b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    font-size: 0.72rem !important;
    display: inline !important;
    margin-bottom: 0 !important;
}

/* Valore selezionato accanto alla label (es: ": 256 GB") */
.premium-swatches-v2 .vi-wpvs-variation-value {
    font-weight: 600 !important;
    font-size: 0.72rem !important;
    color: #00ade6 !important;
    margin-left: 6px !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
}

/* Riga label + value insieme */
.premium-swatches-v2 .label {
    display: block !important;
    margin-bottom: 10px !important;
    line-height: 1.4 !important;
}

/* ---- OPTIONS GRID ---- */
.premium-swatches-v2 .vi-wpvs-options-wrap {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

/* Wrapper individuale del singolo chip */
.premium-swatches-v2 .vi-wpvs-option-wrap {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: none !important;
    position: relative !important;
    transition: transform 0.15s ease !important;
}

/* ---- CHIP BASE (non selezionato) ---- */
.premium-swatches-v2 .vi-wpvs-option.vi-wpvs-option-button {
    min-width: 72px !important;
    height: 40px !important;
    background: #f0f0f5 !important;
    border: 1.5px solid transparent !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 16px !important;
    font-weight: 600 !important;
    color: #53627b !important;
    font-size: 0.88rem !important;
    cursor: pointer !important;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: none !important;
    letter-spacing: 0.01em !important;
}

/* Hover: bordo azzurro sottile */
.premium-swatches-v2 .vi-wpvs-option.vi-wpvs-option-button:hover {
    background: #e8f6fc !important;
    border-color: #00ade6 !important;
    color: #00ade6 !important;
    transform: none !important;
}

/* ---- CHIP SELEZIONATO ---- */
.single-product .premium-swatches-v2 .vi-wpvs-option-wrap-selected .vi-wpvs-option-button,
.woocommerce .premium-swatches-v2 .vi-wpvs-option-wrap-selected .vi-wpvs-option-button {
    background: #ffffff !important;
    border: 1.5px solid #00ade6 !important;
    color: #00ade6 !important;
    box-shadow: none !important;
}

/* Checkmark badge nell'angolo in alto a destra del chip selezionato */
.single-product .premium-swatches-v2 .vi-wpvs-option-wrap-selected .vi-wpvs-option-button::after,
.woocommerce .premium-swatches-v2 .vi-wpvs-option-wrap-selected .vi-wpvs-option-button::after {
    content: "" !important;
    position: absolute !important;
    top: -6px !important;
    right: -6px !important;
    width: 16px !important;
    height: 16px !important;
    background: #00ade6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='2,6 5,9 10,3'/%3E%3C/svg%3E") center/10px no-repeat !important;
    border-radius: 50% !important;
    display: block !important;
    z-index: 2 !important;
    pointer-events: none !important;
}

/* ---- COLOR SWATCHES (cerchio colorato) ---- */
.premium-swatches-v2 .vi-wpvs-option.vi-wpvs-option-color {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(0, 0, 0, 0.08) !important;
    padding: 0 !important;
    overflow: visible !important;
    transition: transform 0.2s ease !important;
    position: relative !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Hover sui colori */
.premium-swatches-v2 .vi-wpvs-option-wrap:not(.vi-wpvs-option-wrap-selected) .vi-wpvs-option-color:hover {
    transform: scale(1.08) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}

/* Colore selezionato: anello azzurro Apple-style */
.premium-swatches-v2 .vi-wpvs-option-wrap-selected .vi-wpvs-option-color {
    transform: scale(1.0) !important;
    border-color: transparent !important;
    outline: 2px solid #ffffff !important;
    outline-offset: 0px !important;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #00ade6 !important;
}

/* Badge checkmark non appare sui cerchi colore (già distinto con il ring) */
.premium-swatches-v2 .vi-wpvs-option-wrap-selected .vi-wpvs-option-color::after {
    display: none !important;
}

/* ---- FUORI STOCK ---- */
.premium-swatches-v2 .vi-wpvs-option-wrap-disabled {
    opacity: 0.38 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Barra diagonale fuori stock */
.premium-swatches-v2 .vi-wpvs-option-wrap-disabled .vi-wpvs-option::after {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 8% !important;
    right: 8% !important;
    height: 1px !important;
    background: #aaa !important;
    transform: rotate(-35deg) !important;
    pointer-events: none !important;
    display: block !important;
}

/* ---- TOOLTIP ---- */
.vi-wpvs-option-tooltip {
    background: #53627b !important;
    color: #fff !important;
    font-size: 11px !important;
    border-radius: 6px !important;
    padding: 4px 10px !important;
    font-weight: 500 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    letter-spacing: 0.02em !important;
}

/* ---- APPLE UI: same V3 rules (alias selector for compatibility) ---- */
.vi-wpvs-apple-ui {
    margin-top: 0 !important;
}

.vi-wpvs-apple-ui th.label {
    padding-bottom: 0 !important;
}

.vi-wpvs-apple-ui th.label label {
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: #86868b !important;
    font-weight: 700 !important;
    display: inline !important;
}

/* Option chip */
.vi-wpvs-apple-ui .vi-wpvs-option-wrap {
    margin: 0 !important;
    transition: all 0.18s ease !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    position: relative !important;
}

.vi-wpvs-apple-ui .vi-wpvs-option.vi-wpvs-option-button {
    background: #f0f0f5 !important;
    border: 1.5px solid transparent !important;
    border-radius: 8px !important;
    padding: 0 16px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: #53627b !important;
    min-width: 72px !important;
    height: 40px !important;
    text-align: center !important;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Hover */
.vi-wpvs-apple-ui .vi-wpvs-option-wrap:hover .vi-wpvs-option-button {
    background: #e8f6fc !important;
    border-color: #00ade6 !important;
    color: #00ade6 !important;
}

/* Selected */
.single-product .vi-wpvs-apple-ui .vi-wpvs-option-wrap-selected .vi-wpvs-option-button,
.woocommerce .vi-wpvs-apple-ui .vi-wpvs-option-wrap-selected .vi-wpvs-option-button {
    background: #ffffff !important;
    border: 1.5px solid #00ade6 !important;
    color: #00ade6 !important;
    padding: 0 16px !important;
}

/* Checkmark badge su selezionato */
.single-product .vi-wpvs-apple-ui .vi-wpvs-option-wrap-selected .vi-wpvs-option-button::after,
.woocommerce .vi-wpvs-apple-ui .vi-wpvs-option-wrap-selected .vi-wpvs-option-button::after {
    content: "" !important;
    position: absolute !important;
    top: -6px !important;
    right: -6px !important;
    width: 16px !important;
    height: 16px !important;
    background: #00ade6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='2,6 5,9 10,3'/%3E%3C/svg%3E") center/10px no-repeat !important;
    border-radius: 50% !important;
    display: block !important;
    z-index: 2 !important;
    pointer-events: none !important;
}

/* Color Circles */
.vi-wpvs-apple-ui .vi-wpvs-option.vi-wpvs-option-color {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Selected Color Ring */
.vi-wpvs-apple-ui .vi-wpvs-option-wrap-selected .vi-wpvs-option-color {
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #00ade6 !important;
    transform: scale(1.0) !important;
    border-color: transparent !important;
}

/* No checkmark badge on color circles */
.vi-wpvs-apple-ui .vi-wpvs-option-wrap-selected .vi-wpvs-option-color::after {
    display: none !important;
}

/* Out of Stock */
.vi-wpvs-apple-ui .vi-wpvs-option-wrap-disable,
.vi-wpvs-apple-ui .vi-wpvs-option-wrap-disabled {
    opacity: 0.38 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}

.vi-wpvs-apple-ui .vi-wpvs-option-wrap-disable .vi-wpvs-option::after {
    display: none !important;
}

.vi-wpvs-apple-ui .vi-wpvs-option-wrap-disable .vi-wpvs-option {
    background: #f0f0f5 !important;
    cursor: not-allowed !important;
    text-decoration: none !important;
    position: relative;
}

/* Diagonal strike */
.vi-wpvs-apple-ui .vi-wpvs-option-wrap-disable .vi-wpvs-option::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    width: 100% !important;
    height: 1px !important;
    background: #aaa !important;
    transform: rotate(-20deg) !important;
    z-index: 2 !important;
}

/* Tooltip */
.vi-wpvs-option-tooltip {
    background: #53627b !important;
    color: #fff !important;
    border-radius: 6px !important;
    padding: 4px 10px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
    letter-spacing: 0.02em !important;
}

/* ================================================================
   FIX: Variable Product Price & Quantity
   The theme places the variation price in the wrong position via
   .ts-variation-price (before description). We hide that and show
   the native WooCommerce .woocommerce-variation-price instead,
   which sits correctly above the Add to Cart button.
   ================================================================ */

/* 1. Hide theme's misplaced variation price */
.summary.entry-summary .ts-variation-price {
    display: none !important;
}

/* 2. "Prezzi a partire da" label styling */
.premium-price-wrapper .price-starting-from {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #86868b !important;
    letter-spacing: 0.01em !important;
    margin-bottom: 4px !important;
    text-transform: none !important;
}

/* 3. When variation is selected, the price in main-price-container gets WooCommerce price_html */
.premium-price-wrapper .main-price-container .price {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: #53627b !important;
    letter-spacing: -0.03em !important;
}

.premium-price-wrapper .main-price-container .price del {
    font-size: 1.2rem !important;
    color: #53627b !important;
    font-weight: 400 !important;
}

.premium-price-wrapper .main-price-container .price ins {
    text-decoration: none !important;
    color: #53627b !important;
}

/* 4. Hide quantity selector for variable products */
.variations_form .quantity,
.variations_form .single_variation_wrap .quantity {
    display: none !important;
}

/* 5. Hide the native woocommerce variation price (we show it in the premium wrapper instead) */
.single_variation_wrap .woocommerce-variation-price {
    display: none !important;
}


/* --- USER-FRIENDLY QUANTITY UI IMPROVEMENTS --- */

/* 1. PRODUCT PAGE: Label above quantity */
.qty-selection-label {
    text-transform: uppercase !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #86868b !important;
    letter-spacing: 0.1em !important;
    margin-bottom: 12px !important;
    margin-top: 25px !important;
    /* Uniform 25px gap from previous element */
    display: block !important;
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* 2. PRODUCT PAGE: Quantity Selector Redesign (Apple Style) */
.single-product .summary .quantity {
    display: inline-flex !important;
    margin-bottom: 25px !important;
}

.single-product .summary .quantity .qty {
    width: 45px !important;
    height: 38px !important;
    border: 1px solid #d2d2d7 !important;
    border-radius: 8px !important;
    text-align: center !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    color: #53627b !important;
    background: #f5f5f7 !important;
    box-shadow: none !important;
}


/* --- FINAL QUANTITY UI RECONSTRUCTION (APPLE STORE STYLE) --- */

/* 1. Force Left-Alignment for the Purchase Section */
.single-product .summary .cart {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    margin-top: 25px !important;
}

/* 2. Quantity Label Tuning */
.qty-selection-label {
    margin-bottom: 10px !important;
    margin-top: 0 !important;
    /* Reset since parent .cart has margin-top */
}

/* 3. Completely Redesign Product Page Quantity Selector (No Overlaps, Centered Qty) */
body.single-product .summary .quantity,
.single-product .summary .quantity {
    display: inline-flex !important;
    align-items: center !important;
    background: #f5f5f7 !important;
    /* Apple gray */
    border: 1px solid #d2d2d7 !important;
    border-radius: 50px !important;
    padding: 4px !important;
    height: 52px !important;
    /* Premium height */
    width: 146px !important;
    min-width: 146px !important;
    box-sizing: border-box !important;
    position: relative !important;
    margin-bottom: 25px !important;
    box-shadow: none !important;
}

.single-product .summary .quantity .number-button {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) 42px !important;
    align-items: center !important;
    width: 100% !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.single-product .summary .quantity .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
}

/* Remove theme's broken absolute positioning for PLUS/MINUS */
.single-product .summary .quantity .minus,
.single-product .summary .quantity .plus {
    position: static !important;
    /* Critical fix */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    border: 1px solid #d2d2d7 !important;
    border-radius: 50% !important;
    color: #00ade6 !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.single-product .summary .quantity .minus:hover,
.single-product .summary .quantity .plus:hover {
    background: #fdfdfd !important;
    transform: scale(1.02) !important;
}

.single-product .summary .quantity .qty {
    position: static !important;
    /* Critical fix */
    grid-column: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 42px !important;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 17px !important;
    line-height: 42px !important;
    color: #53627b !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

.single-product .summary .quantity .qty::-webkit-outer-spin-button,
.single-product .summary .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
    display: none !important;
}

.single-product .summary .quantity .minus {
    grid-column: 1 !important;
}

.single-product .summary .quantity .plus {
    grid-column: 3 !important;
}


/* Hide default price block on single product pages */
body.single-product .summary.entry-summary>.price {
    display: none !important;
}


/* ==========================================================================
   29. MACFAAAST APPLE-GRADE PRODUCT LIGHTBOX (PHOTOSWIPE) MASTERPIECE
   Overlays all menus, headers and modals with deep frosted glass blur & smooth spring animation
   ========================================================================== */

/* 1. Bulletproof Stacking Context & Full Page Overlay */
.pswp,
.pswp--open,
.pswp.pswp--open,
div.pswp {
    z-index: 99999999 !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
}

/* Temporarily suppress sticky headers, menus & modals while lightbox is open */
body:has(.pswp--open) .header-sticky,
body:has(.pswp--open) .is-sticky,
body:has(.pswp--open) .ts-header,
body:has(.pswp--open) #ts-header,
body:has(.pswp--open) .sticky-wrapper,
body.pswp--open .header-sticky,
body.pswp--open .is-sticky,
body.pswp--open .ts-header,
body.pswp-active-open .header-sticky,
body.pswp-active-open .is-sticky,
body.pswp-active-open .ts-header,
body.pswp-active-open #ts-header,
body.pswp-active-open .sticky-wrapper,
body.pswp-active-open .cmplz-cookiebanner,
body.pswp-active-open #cmplz-cookiebanner-container,
body.pswp-active-open .cmplz-manage-consent-container {
    z-index: 100 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    transition: opacity 0.2s ease !important;
}

/* 2. Apple Spotlight Command Center Mask (Identical to Search Overlay) */
.pswp__bg {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(83, 98, 123, 0.85) !important;
    backdrop-filter: blur(14px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(160%) !important;
}

/* 3. Smooth Photo Display & Floating Apple Shadow */
.pswp__img {
    border-radius: 16px !important;
    box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
    transition: box-shadow 0.3s ease !important;
}

/* 4. Top Bar: Clean Floating Controls */
.pswp__top-bar {
    background: transparent !important;
    height: 70px !important;
    padding: 16px 20px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    pointer-events: none !important;
}

.pswp__top-bar * {
    pointer-events: auto !important;
}

/* Apple Pill Image Counter */
body .pswp .pswp__counter,
.pswp__counter {
    background: rgba(255, 255, 255, 0.14) !important;
    backdrop-filter: blur(18px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 9999px !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    height: 38px !important;
    line-height: 36px !important;
    padding: 0 16px !important;
    top: 18px !important;
    left: 20px !important;
    position: absolute !important;
    letter-spacing: 0.03em !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
    user-select: none !important;
    pointer-events: none !important;
    margin: 0 !important;
    display: block !important;
}

/* Apple Frosted Glass Close Button */
body .pswp .pswp__button--close,
body button.pswp__button--close,
.pswp__button--close {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.16) !important;
    backdrop-filter: blur(18px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    top: 18px !important;
    right: 20px !important;
    position: absolute !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 16px 16px !important;
    opacity: 1 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
}

body .pswp .pswp__button--close:hover {
    background-color: rgba(255, 255, 255, 0.32) !important;
    transform: scale(1.08) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4) !important;
}

/* Apple Zoom Button */
body .pswp .pswp__button--zoom,
body button.pswp__button--zoom,
.pswp__button--zoom {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.16) !important;
    backdrop-filter: blur(18px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    top: 18px !important;
    right: 74px !important;
    position: absolute !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 16px 16px !important;
    opacity: 1 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
}

body .pswp--zoomed-in .pswp__button--zoom {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E") !important;
}

body .pswp .pswp__button--zoom:hover {
    background-color: rgba(255, 255, 255, 0.32) !important;
    transform: scale(1.08) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* 5. Apple Floating Navigation Arrows - High Specificity to Override Reset.css */
body .pswp .pswp__button--arrow--left,
body .pswp .pswp__button--arrow--right,
body button.pswp__button--arrow--left,
body button.pswp__button--arrow--right,
.pswp__button--arrow--left,
.pswp__button--arrow--right {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-top: 0 !important;
    position: absolute !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    opacity: 0.95 !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4) !important;
    padding: 0 !important;
    z-index: 1045 !important;
    outline: none !important;
}

body .pswp .pswp__button--arrow--left,
body button.pswp__button--arrow--left,
.pswp__button--arrow--left {
    left: 24px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 22px 22px !important;
}

body .pswp .pswp__button--arrow--right,
body button.pswp__button--arrow--right,
.pswp__button--arrow--right {
    right: 24px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 22px 22px !important;
}

body .pswp .pswp__button--arrow--left:before,
body .pswp .pswp__button--arrow--right:before,
.pswp__button--arrow--left:before,
.pswp__button--arrow--right:before {
    display: none !important;
}

body .pswp .pswp__button--arrow--left:hover,
body .pswp .pswp__button--arrow--right:hover,
body button.pswp__button--arrow--left:hover,
body button.pswp__button--arrow--right:hover {
    background-color: rgba(255, 255, 255, 0.35) !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.55) !important;
    border-color: rgba(255, 255, 255, 0.55) !important;
}

/* 6. HIDE NAVIGATION ARROWS & COUNTER ON SINGLE-IMAGE PRODUCTS */
body.pswp-has-single-image .pswp__button--arrow--left,
body.pswp-has-single-image .pswp__button--arrow--right,
body.pswp-has-single-image .pswp__counter,
body .pswp.pswp--single-item .pswp__button--arrow--left,
body .pswp.pswp--single-item .pswp__button--arrow--right,
body .pswp.pswp--single-item .pswp__counter,
body .pswp .pswp__ui--one-slide .pswp__button--arrow--left,
body .pswp .pswp__ui--one-slide .pswp__button--arrow--right,
body .pswp .pswp__ui--one-slide .pswp__counter,
body .pswp--one-slide .pswp__button--arrow--left,
body .pswp--one-slide .pswp__button--arrow--right,
body .pswp--one-slide .pswp__counter,
.pswp.pswp--single-item .pswp__button--arrow--left,
.pswp.pswp--single-item .pswp__button--arrow--right,
.pswp.pswp--single-item .pswp__counter,
.pswp .pswp__ui--one-slide .pswp__button--arrow--left,
.pswp .pswp__ui--one-slide .pswp__button--arrow--right,
.pswp .pswp__ui--one-slide .pswp__counter,
.pswp--one-slide .pswp__button--arrow--left,
.pswp--one-slide .pswp__button--arrow--right,
.pswp--one-slide .pswp__counter {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

/* 7. Mobile Responsiveness (< 768px) */
@media (max-width: 767px) {
    body .pswp .pswp__counter {
        top: 14px !important;
        left: 14px !important;
        height: 34px !important;
        line-height: 32px !important;
        padding: 0 12px !important;
        font-size: 12px !important;
    }

    body .pswp .pswp__button--close {
        top: 14px !important;
        right: 14px !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        background-size: 14px 14px !important;
    }

    body .pswp .pswp__button--zoom {
        top: 14px !important;
        right: 58px !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        background-size: 14px 14px !important;
    }

    body .pswp .pswp__button--arrow--left,
    body .pswp .pswp__button--arrow--right {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        background-size: 18px 18px !important;
    }

    body .pswp .pswp__button--arrow--left {
        left: 10px !important;
    }

    body .pswp .pswp__button--arrow--right {
        right: 10px !important;
    }
}



/* MacFaaast Modular Stylesheet: mf-single-product.css (auto-extracted from style.css) */
/* ==========================================================================
   MACFAAAST SINGLE PRODUCT MODERN SHOWROOM REDESIGN
   ========================================================================== */

/* 1. Desktop 2-Column Flex & Sticky Gallery Stage */
@media (min-width: 992px) {
    body.single-product .site-content .product-images-summary {
        display: flex !important;
        align-items: flex-start !important;
        gap: 48px !important;
    }

    body.single-product .site-content .product-images-summary .woocommerce-product-gallery {
        float: none !important;
        width: 50% !important;
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 100px !important;
        z-index: 10 !important;
        background: #ffffff !important;
        border-radius: 20px !important;
        padding: 24px !important;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04) !important;
        border: 1px solid #f1f5f9 !important;
    }

    body.single-product .site-content .product-images-summary .summary.entry-summary {
        float: none !important;
        width: 50% !important;
        padding-left: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }
}

/* 2. Apple Showroom Header: Grade pill, Occasione tag, Clean Title, Specs */
.mf-sp-header {
    margin-bottom: 16px;
    width: 100%;
}

.mf-sp-top-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.mf-sp-grade-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: -0.2px;
}

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

.mf-sp-grade-badge.grade-ottimo {
    background: #ecfdf5 !important;
    color: #065f46 !important;
    border-color: #a7f3d0 !important;
}

.mf-sp-grade-badge.grade-buono {
    background: #fffbeb !important;
    color: #92400e !important;
    border-color: #fde68a !important;
}

.mf-sp-grade-badge.grade-accettabile,
.mf-sp-grade-badge.grade-discreto {
    background: #f8fafc !important;
    color: #53627b !important;
    border-color: #e2e8f0 !important;
}

.mf-sp-grade-badge.grade-nuovo {
    background: #ecfdf5 !important;
    color: #047857 !important;
    border-color: #a7f3d0 !important;
}

.mf-sp-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mf-sp-type-badge.mf-sp-type-new {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.mf-sp-type-badge.mf-sp-type-exdemo {
    background: #eef2ff;
    color: #3730a3;
    border-color: #c7d2fe;
}

.mf-sp-badge-year {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    background: #f0f9ff !important;
    color: #0369a1 !important;
    border: 1px solid #bae6fd !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    letter-spacing: 0.2px !important;
}

.mf-sp-badge-year svg {
    color: #0099e5 !important;
    flex-shrink: 0 !important;
}

@media (max-width: 767px) {

    .single-product .summary .mf-sp-header .mf-sp-top-badges,
    .mf-sp-top-badges {
        gap: 5px !important;
        margin-bottom: 8px !important;
    }

    .mf-sp-grade-badge,
    .mf-sp-type-badge,
    .mf-sp-badge-year,
    .mf-sp-badge-b2b,
    .mf-sp-badge-new,
    .mf-sp-badge-sale {
        font-size: 10.5px !important;
        padding: 3px 8px !important;
        gap: 4px !important;
        line-height: 1.2 !important;
        letter-spacing: 0.1px !important;
    }
}

.mf-sp-badge-new {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.mf-sp-badge-sale {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: #fef2f2 !important;
    color: #b91c1c !important;
    border: 1px solid #fecaca !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    letter-spacing: -0.2px !important;
}

.mf-sp-title {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #53627b !important;
    line-height: 1.25 !important;
    margin: 0 0 12px 0 !important;
    letter-spacing: -0.5px !important;
}

@media (max-width: 767px) {
    .mf-sp-title {
        font-size: 24px !important;
    }
}

.mf-sp-specs-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.mf-sp-chip {
    display: inline-flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #53627b;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

/* 3. Availability & Stock status */
.single-product .summary .ts-product-ratings-stock {
    margin-bottom: 14px !important;
    width: 100% !important;
}

.single-product .summary .ts-product-ratings-stock .availability {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #f0fdf4 !important;
    color: #166534 !important;
    border: 1px solid #bbf7d0 !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
}

.single-product .summary .ts-product-ratings-stock .availability .label {
    display: none !important;
}

.single-product .summary .ts-product-ratings-stock .availability .availability-text {
    color: #166534 !important;
    font-weight: 700 !important;
}

.single-product .summary .ts-product-ratings-stock .availability:before {
    content: "🟢 In Pronta Consegna:";
    font-weight: 700;
    color: #166534;
    margin-right: 4px;
}

/* 4. Short Description / Spec Card */
.single-product .summary .woocommerce-product-details__short-description {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    margin-bottom: 18px !important;
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    color: #53627b !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 5. Modern Price Card */
.single-product .summary .premium-price-wrapper {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 20px 24px !important;
    margin-bottom: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.single-product .summary .premium-price-wrapper .main-price-container {
    margin-bottom: 6px !important;
}

.single-product .summary .premium-price-wrapper .main-price-container .mf-price-saving-chip {
    display: none !important;
}

.single-product .summary .premium-price-wrapper p.price {
    font-size: 36px !important;
    font-weight: 800 !important;
    color: #53627b !important;
    margin: 0 !important;
    display: flex !important;
    align-items: baseline !important;
    gap: 12px !important;
}

.single-product .summary .premium-price-wrapper p.price del {
    font-size: 20px !important;
    color: #53627b !important;
    font-weight: 500 !important;
}

.single-product .summary .premium-price-wrapper p.price ins {
    text-decoration: none !important;
    color: #53627b !important;
}

.single-product .summary .premium-price-wrapper .savings-badge {
    display: inline-flex !important;
    align-items: center !important;
    background: #ecfdf5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    margin-top: 8px !important;
}

.single-product .summary .premium-price-wrapper .savings-badge,
.single-product .summary .premium-price-wrapper .savings-badge span,
.single-product .summary .premium-price-wrapper .savings-badge bdi {
    color: #065f46 !important;
    font-weight: 700 !important;
}

.single-product .summary .premium-price-wrapper .savings-badge svg {
    stroke: #065f46 !important;
}

@media (min-width: 768px) {
    .single-product .summary .premium-price-wrapper {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 10px 14px !important;
    }

    .single-product .summary .premium-price-wrapper .main-price-container {
        width: auto !important;
        flex: 0 1 auto !important;
        margin-bottom: 0 !important;
    }

    .single-product .summary .premium-price-wrapper p.price {
        font-size: 34px !important;
        gap: 10px !important;
        flex-wrap: wrap !important;
        align-items: baseline !important;
        line-height: 1.08 !important;
    }

    .single-product .summary .premium-price-wrapper p.price ins {
        order: 1 !important;
    }

    .single-product .summary .premium-price-wrapper p.price del {
        order: 2 !important;
        font-size: 15.5px !important;
        color: #5d6c85 !important;
        font-weight: 500 !important;
        text-decoration-thickness: 1.5px !important;
    }

    .single-product .summary .premium-price-wrapper .savings-badge,
    .single-product .summary .premium-price-wrapper .savings-badge.soft-badge {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        margin-left: auto !important;
        gap: 0 !important;
        padding: 5px 11px !important;
        font-size: 12px !important;
        border-radius: 999px !important;
        white-space: nowrap !important;
        box-shadow: none !important;
    }

    .single-product .summary .premium-price-wrapper .savings-badge.soft-badge .saving-percent {
        margin-left: 6px !important;
        padding: 1px 6px !important;
        font-size: 11px !important;
        border-radius: 999px !important;
    }

    .single-product .summary .premium-price-wrapper .premium-tax-info,
    .single-product .summary .premium-price-wrapper .installments-preview {
        flex: 1 0 100% !important;
        width: 100% !important;
    }
}

/* 6. Urgency Shipping Banner */
.single-product .summary #shipping-countdown-banner {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 14px 18px !important;
    margin: 0 0 18px 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 7. Marketing Trust Badges Box & WhatsApp Concierge */
.single-product .summary .marketing-trust-badges-box {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 22px !important;
    margin-top: 0 !important;
    margin-bottom: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 20px rgba(83, 98, 123, 0.04) !important;
}

.single-product .summary .marketing-trust-badges {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
}

@media (max-width: 600px) {
    .single-product .summary .marketing-trust-badges {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
}



/* ==========================================================================
   MACFAAAST SINGLE PRODUCT MASTERPIECE - FULL TITLE & LUXURY DESCRIPTION TABS
   ========================================================================== */

/* 1. Full Extended Title (Restored & Elevated) */
.single-product .summary h1.mf-sp-title,
.single-product .summary h1.product_title {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #53627b !important;
    line-height: 1.4 !important;
    margin: 8px 0 14px 0 !important;
    letter-spacing: -0.3px !important;
}

@media (max-width: 767px) {

    .single-product .summary h1.mf-sp-title,
    .single-product .summary h1.product_title {
        font-size: 20px !important;
        line-height: 1.35 !important;
    }
}

/* 2. Peace of Mind Strip (Refurbished Guarantees) */
.mf-sp-peace-of-mind-strip {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 14px 18px !important;
    margin: 0 0 18px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 600px) {
    .mf-sp-peace-of-mind-strip {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
}

.mf-pom-pill {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.mf-pom-icon {
    font-size: 22px !important;
    line-height: 1 !important;
    color: #53627b !important;
    flex-shrink: 0 !important;
}

.mf-pom-txt strong {
    display: block !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #53627b !important;
    line-height: 1.25 !important;
}

.mf-pom-txt span {
    display: block !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    line-height: 1.2 !important;
}

/* 3. Short Description Elevated Card */
.single-product .summary .woocommerce-product-details__short-description {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 4px solid #00ade6 !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    margin-bottom: 18px !important;
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    color: #53627b !important;
    width: 100% !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

.single-product .summary .woocommerce-product-details__short-description p {
    margin: 0 !important;
}

.single-product .summary .woocommerce-product-details__short-description strong {
    color: #53627b !important;
    font-weight: 700 !important;
}

/* 4. Luxury Description Tabs Section (Full Description Unleashed) */
.single-product .woocommerce-tabs.wc-tabs-wrapper {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 24px !important;
    padding: 36px 40px !important;
    margin-top: 40px !important;
    margin-bottom: 40px !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 767px) {
    .single-product .woocommerce-tabs.wc-tabs-wrapper {
        padding: 24px 16px !important;
        border-radius: 18px !important;
    }
}

/* Unclamp the description content - Show all rich text! */
.single-product .woocommerce-Tabs-panel--description .product-content,
.single-product .woocommerce-Tabs-panel--description .product-content.closed,
.single-product .woocommerce-Tabs-panel--description .product-content.show-more-less {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
}

.single-product .woocommerce-tabs .more-less-buttons,
.single-product .woocommerce-tabs .more-button,
.single-product .woocommerce-tabs .less-button {
    display: none !important;
}

/* Modern Segmented Tab Navigation Bar */
.single-product .woocommerce-tabs ul.tabs.wc-tabs {
    display: inline-flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    background: #f1f5f9 !important;
    padding: 6px !important;
    border-radius: 16px !important;
    border: none !important;
    margin: 0 0 32px 0 !important;
}

.single-product .woocommerce-tabs ul.tabs.wc-tabs:before,
.single-product .woocommerce-tabs ul.tabs.wc-tabs:after {
    display: none !important;
}

.single-product .woocommerce-tabs ul.tabs.wc-tabs li {
    border: none !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 12px !important;
}

.single-product .woocommerce-tabs ul.tabs.wc-tabs li:before,
.single-product .woocommerce-tabs ul.tabs.wc-tabs li:after {
    display: none !important;
}

.single-product .woocommerce-tabs ul.tabs.wc-tabs li a {
    display: inline-block !important;
    padding: 10px 22px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    border-radius: 12px !important;
    border: none !important;
    transition: all 0.25s ease !important;
}

.single-product .woocommerce-tabs ul.tabs.wc-tabs li:hover a {
    color: #53627b !important;
}

.single-product .woocommerce-tabs ul.tabs.wc-tabs li.active a {
    background: #ffffff !important;
    color: #00ade6 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

/* Inside Description Panel Styling */
.single-product .woocommerce-Tabs-panel--description>h2:first-of-type {
    display: none !important;
    /* Hide generic Dettagli heading */
}

/* Unified Headings (h1, h2, h3, h4) */
.single-product .woocommerce-Tabs-panel--description h1,
.single-product .woocommerce-Tabs-panel--description h2,
.single-product .woocommerce-Tabs-panel--description h3,
.single-product .woocommerce-Tabs-panel--description h4 {
    color: #53627b !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    letter-spacing: -0.2px !important;
}

.single-product .woocommerce-Tabs-panel--description h2 {
    font-size: 21px !important;
    margin: 32px 0 14px 0 !important;
}

.single-product .woocommerce-Tabs-panel--description h3 {
    font-size: 18px !important;
    margin: 28px 0 12px 0 !important;
}

.single-product .woocommerce-Tabs-panel--description h4 {
    font-size: 16px !important;
    margin: 22px 0 10px 0 !important;
}

/* ALL Heading Icons in Description: Uniform Cyan Color & Harmonious Proportions */
.single-product .woocommerce-Tabs-panel--description h1 i,
.single-product .woocommerce-Tabs-panel--description h2 i,
.single-product .woocommerce-Tabs-panel--description h3 i,
.single-product .woocommerce-Tabs-panel--description h4 i,
.single-product .woocommerce-Tabs-panel--description h1 .icon,
.single-product .woocommerce-Tabs-panel--description h2 .icon,
.single-product .woocommerce-Tabs-panel--description h3 .icon,
.single-product .woocommerce-Tabs-panel--description h4 .icon {
    color: #00ade6 !important;
    font-size: 1.15em !important;
    line-height: 1 !important;
    width: 1.25em !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

/* Warning / Alert Notice Box Special Accent */
.single-product .woocommerce-Tabs-panel--description .arrival-notice-box h4,
.single-product .woocommerce-Tabs-panel--description .arrival-notice-box h4 i {
    color: #b45309 !important;
}

.single-product .woocommerce-Tabs-panel--description p {
    font-size: 15px !important;
    line-height: 1.75 !important;
    color: #53627b !important;
    margin-bottom: 20px !important;
}

/* Technical Specification List Grid Cards */
.single-product .woocommerce-Tabs-panel--description .wp-block-group ul {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px 20px !important;
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

@media (max-width: 767px) {
    .single-product .woocommerce-Tabs-panel--description .wp-block-group ul {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
}

.single-product .woocommerce-Tabs-panel--description .wp-block-group ul li {
    list-style: none !important;
    list-style-type: none !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 14px 18px 14px 44px !important;
    position: relative !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #53627b !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02) !important;
}

.single-product .woocommerce-Tabs-panel--description .wp-block-group ul li::before {
    content: "✓" !important;
    position: absolute !important;
    left: 14px !important;
    top: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    background: #e0f2fe !important;
    color: #0284c7 !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
}

.single-product .woocommerce-Tabs-panel--description .wp-block-group ul li strong {
    color: #53627b !important;
    font-weight: 700 !important;
    margin-right: 4px !important;
}

/* Stylized General Description Lists (Warranty, Shipping, Highlights) */
.single-product .woocommerce-Tabs-panel--description ul:not(.wp-block-group ul) {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 16px 0 24px 0 !important;
}

.single-product .woocommerce-Tabs-panel--description ul:not(.wp-block-group ul) li {
    list-style: none !important;
    list-style-type: none !important;
    position: relative !important;
    padding-left: 24px !important;
    margin-bottom: 12px !important;
    font-size: 15px !important;
    line-height: 1.65 !important;
    color: #53627b !important;
}

.single-product .woocommerce-Tabs-panel--description ul:not(.wp-block-group ul) li::before {
    content: "" !important;
    position: absolute !important;
    left: 2px !important;
    top: 9px !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: #00ade6 !important;
    box-shadow: 0 0 0 3px rgba(0, 173, 230, 0.2) !important;
}

.single-product .woocommerce-Tabs-panel--description ul:not(.wp-block-group ul) li strong {
    color: #53627b !important;
    font-weight: 700 !important;
}

/* Keyboard Customization Callout Box */
.single-product .woocommerce-Tabs-panel--description .wp-block-group[style*="f0f7ff"] {
    background: #f0f9ff !important;
    border: 1.5px solid #bae6fd !important;
    border-left: 5px solid #00ade6 !important;
    border-radius: 16px !important;
    padding: 24px 28px !important;
    margin: 28px 0 !important;
}

.single-product .woocommerce-Tabs-panel--description .wp-block-group[style*="f0f7ff"] h4 {
    color: #0369a1 !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    margin-bottom: 10px !important;
}

/* 40+ Laboratory Test Protocol Box */
.single-product .woocommerce-Tabs-panel--description .wp-block-group[style*="f5f5f7"] {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-left: 5px solid #10b981 !important;
    border-radius: 16px !important;
    padding: 24px 28px !important;
    margin: 28px 0 !important;
}

.single-product .woocommerce-Tabs-panel--description .wp-block-group[style*="f5f5f7"] h3 {
    color: #065f46 !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    margin-bottom: 8px !important;
}

/* 5. Additional Information Attributes Table */
.single-product #tab-additional_information table.shop_attributes {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 10px !important;
    border: none !important;
    margin: 0 !important;
}

.single-product #tab-additional_information table.shop_attributes tr {
    border: none !important;
}

.single-product #tab-additional_information table.shop_attributes th {
    background: #f8fafc !important;
    padding: 14px 22px !important;
    border-radius: 12px 0 0 12px !important;
    color: #53627b !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    border: none !important;
    width: 30% !important;
}

.single-product #tab-additional_information table.shop_attributes td {
    background: #f8fafc !important;
    padding: 14px 22px !important;
    border-radius: 0 12px 12px 0 !important;
    color: #53627b !important;
    font-size: 14px !important;
    border: none !important;
}

.single-product #tab-additional_information table.shop_attributes td p {
    margin: 0 !important;
    padding: 0 !important;
}


/* ==========================================================================
   MACFAAAST SINGLE PRODUCT REFINEMENTS (GALLERY, UNIFORM MARGINS, NO PRONTA CONSEGNA)
   ========================================================================== */

/* 1. Complete Removal of the "In Pronta Consegna" Banner */
.single-product .summary .ts-product-ratings-stock,
.single-product .summary .availability {
    display: none !important;
    visibility: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* 2. Uniform Vertical Margins & Complete Spacing System (Antigravity) */
.single-product .site-content .product-images-summary .summary.entry-summary {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 20px !important;
}

.single-product .summary.entry-summary>* {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.single-product .summary .mf-sp-header {
    margin: 0 !important;
}

.single-product .summary .mf-sp-header .mf-sp-top-badges {
    margin-bottom: 10px !important;
}

.single-product .summary .mf-sp-header h1.mf-sp-title,
.single-product .summary .mf-sp-header h1.product_title {
    margin: 0 !important;
}

.single-product .summary .mf-sp-peace-of-mind-strip {
    margin: 0 !important;
}

.single-product .summary .woocommerce-product-details__short-description {
    margin: 0 !important;
}

.single-product .summary .premium-price-wrapper {
    margin: 0 !important;
}

.single-product .summary #shipping-countdown-banner,
.single-product .summary .shipping-same-day-banner {
    margin: 0 !important;
}

/* Variable Products: Form, Swatches & Price Card Hierarchy */
.single-product .summary form.cart {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

.single-product .summary form.cart input[type="hidden"] {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    width: 0 !important;
}

.single-product .summary .personalize-selection-title {
    margin: 0 0 16px 0 !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #53627b !important;
}

.single-product .summary table.variations {
    margin: 0 0 20px 0 !important;
    border-collapse: separate !important;
}

.single-product .summary #variation-selection-summary {
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* single_variation_wrap: flex column with strictly enforced 20px gap */
.single-product .summary .single_variation_wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.single-product .summary .single_variation_wrap>* {
    margin: 0 !important;
}

.single-product .summary .single_variation_wrap .premium-price-wrapper,
.single-product .summary .premium-price-wrapper.variable {
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.single-product .summary .woocommerce-variation-add-to-cart {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}

body.woocommerce.single-product div.product .summary form.cart .single_add_to_cart_button,
body.woocommerce.single-product div.product .summary form.cart button.single_add_to_cart_button,
body.single-product .woocommerce-variation-add-to-cart .single_add_to_cart_button,
body.single-product button.single_add_to_cart_button,
body.single-product .button.alt {
    margin: 0 !important;
    margin-bottom: 0 !important;
    width: 100% !important;
}

/* Audit Fix 7d: CTA primaria compatta piena (#53627b -> hover #00ade6) e stato loading/added coerente (zero rettangolo nero) */
body.woocommerce.single-product div.product .summary form.cart button.single_add_to_cart_button,
body.single-product form.cart button.single_add_to_cart_button {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 999px !important;
}

body.woocommerce.single-product div.product .summary form.cart button.single_add_to_cart_button:not(.disabled),
body.single-product form.cart button.single_add_to_cart_button:not(.disabled) {
    background: #53627b !important;
    background-color: #53627b !important;
    border: 1.5px solid #53627b !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(83, 98, 123, 0.22) !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease !important;
}

body.woocommerce.single-product div.product .summary form.cart button.single_add_to_cart_button:not(.disabled):hover,
body.single-product form.cart button.single_add_to_cart_button:not(.disabled):hover,
body.single-product form.cart button.single_add_to_cart_button.mf-btn-added-celebration,
body.woocommerce.single-product div.product .summary form.cart button.single_add_to_cart_button.mf-btn-added-celebration {
    background: #00ade6 !important;
    background-color: #00ade6 !important;
    border-color: #00ade6 !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    box-shadow: 0 6px 18px rgba(0, 173, 230, 0.28) !important;
}

body.single-product form.cart button.single_add_to_cart_button.disabled:not(.loading) {
    background: #94a3b8 !important;
    border-color: #94a3b8 !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    opacity: 0.72 !important;
}

body.woocommerce.single-product div.product .summary form.cart button.single_add_to_cart_button.loading,
body.single-product form.cart button.single_add_to_cart_button.loading,
body.woocommerce.single-product div.product .summary form.cart button.single_add_to_cart_button.loading:hover {
    background: #53627b !important;
    background-color: #53627b !important;
    border: 1.5px solid #53627b !important;
    border-radius: 999px !important;
    min-height: 60px !important;
    height: 60px !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
    opacity: 0.94 !important;
    box-shadow: 0 4px 14px rgba(83, 98, 123, 0.22) !important;
}

body.woocommerce.single-product div.product .summary form.cart button.single_add_to_cart_button.loading::before,
body.single-product form.cart button.single_add_to_cart_button.loading::before,
body.woocommerce.single-product div.product .summary form.cart button.single_add_to_cart_button.added::before {
    display: none !important;
    content: none !important;
    background: transparent !important;
    opacity: 0 !important;
}

body.woocommerce.single-product div.product .summary form.cart button.single_add_to_cart_button.loading::after,
body.single-product form.cart button.single_add_to_cart_button.loading::after {
    border: 2px solid rgba(255, 255, 255, 0.35) !important;
    border-top-color: #ffffff !important;
    border-radius: 50% !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Audit Fix 8: override colori #000000 ereditati su scheda prodotto con #0f172a / #334155 */
.single-product .woocommerce-tabs ul.tabs li.active a,
.single-product .summary .woocommerce-product-details__short-description,
.single-product .summary .woocommerce-product-details__short-description p,
.single-product .summary .woocommerce-product-details__short-description strong,
.single-product .summary .personalize-selection-title,
.single-product .summary table.variations th.label,
.single-product .summary .wa-main-text strong {
    color: #53627b !important;
}

.single-product .summary .premium-tax-info {
    color: #53627b !important;
}

.single-product .summary .mf-sd-config-hint {
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

/* Action Buttons Stack (14px between Add to Cart, Buy Now, and Instant Pay) */
.single-product .summary .ts-buy-now-button {
    margin-top: -6px !important;
    margin-bottom: 0 !important;
    width: 100% !important;
}

.single-product .summary #wc-stripe-express-checkout-element,
.single-product .summary #wc-stripe-payment-request-wrapper,
.single-product .summary .wc-stripe-banner-checkout {
    margin-top: -6px !important;
    margin-bottom: 0 !important;
    width: 100% !important;
}

/* Secondary Actions (Wishlist / Compare / Trust / Meta) */
.single-product .summary .single-product-buttons {
    margin: 2px 0 !important;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    padding: 0 !important;
}

.single-product .summary .marketing-trust-badges-box {
    margin: 0 !important;
}

.single-product .summary .meta-content {
    margin: 0 !important;
    border: 1px solid #e2e8f0 !important;
    padding: 18px 22px !important;
}

/* Simple Products: TM Options & Totals */
.single-product .summary .tc-extra-product-options {
    margin: 0 0 16px 0 !important;
}

.single-product .summary .tc-totals-form,
.single-product .summary #tm-epo-totals {
    margin: 0 0 20px 0 !important;
}

.single-product .summary .qty-selection-label {
    margin: 0 0 10px 0 !important;
}

.single-product .summary div.quantity {
    margin: 0 0 16px 0 !important;
}

/* 3. Image Gallery Redesign (Supporting 1, 2, 3, 4+ Photos with Zero Overlap) */
.single-product div.product .woocommerce-product-gallery {
    padding: 24px !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #f1f5f9 !important;
    box-sizing: border-box !important;
}

@media (min-width: 992px) {

    /* Assicura che nessun container genitore blocchi il comportamento sticky nativo su Desktop */
    body.single-product,
    body.single-product html,
    body.single-product #page,
    body.single-product #main,
    body.single-product .page-container,
    body.single-product #main-content,
    body.single-product #primary,
    body.single-product div.product,
    body.single-product .product-images-summary {
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
    }

    body.single-product .product-images-summary {
        display: flex !important;
        align-items: flex-start !important;
        position: relative !important;
    }

    body.single-product div.product .woocommerce-product-gallery,
    .single-product div.product .woocommerce-product-gallery {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 100px !important;
        align-self: flex-start !important;
        z-index: 10 !important;
    }
}

/* MOBILE & TABLET: LA FOTO DEL PRODOTTO DEVE SCORRERE E SPARIRE VERSO L'ALTO */
@media (max-width: 991px) {

    body.single-product .woocommerce-product-gallery,
    .single-product div.product .woocommerce-product-gallery,
    .single-product .site-content .product-images-summary .woocommerce-product-gallery,
    .single-product div.product div.images,
    body.single-product div.images {
        position: static !important;
        position: relative !important;
        top: auto !important;
        align-self: auto !important;
        z-index: 1 !important;
        transform: none !important;
    }

    .single-product div.product .woocommerce-product-gallery,
    .single-product div.product.gallery-layout-vertical.has-gallery div.images {
        padding: 16px !important;
    }
}

.single-product div.product.gallery-layout-vertical.has-gallery div.images,
.single-product div.product .woocommerce-product-gallery {
    padding-left: 24px !important;
    padding-right: 24px !important;
}

.single-product div.product .woocommerce-product-gallery .flex-viewport {
    width: 100% !important;
    border-radius: 14px !important;
    overflow: hidden !important;
}

.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image img {
    max-height: 480px !important;
    object-fit: contain !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    display: block !important;
}

/* Thumbnails (for products with 2 or more photos) */
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs,
.single-product div.product.gallery-layout-vertical div.images .flex-control-thumbs {
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 16px 0 0 0 !important;
    padding: 8px 0 !important;
    list-style: none !important;
    overflow: visible !important;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li {
    width: 76px !important;
    height: 76px !important;
    float: none !important;
    margin: 0 !important;
    padding: 4px !important;
    cursor: pointer !important;
    border-radius: 14px !important;
    border: 2px solid #e2e8f0 !important;
    overflow: hidden !important;
    transition: all 0.2s ease !important;
    background: #f8fafc !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li:hover {
    border-color: #00ade6 !important;
    transform: translateY(-2px) !important;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    opacity: 0.75 !important;
    transition: opacity 0.2s ease !important;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active,
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li.active img {
    opacity: 1 !important;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li:has(img.flex-active),
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li.active {
    border-color: #00ade6 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 173, 230, 0.25) !important;
}

/* Soluzione A: Galleria 100% pulita senza adesivi flottanti */
.single-product div.product .woocommerce-product-gallery .product-label {
    display: none !important;
}



/* ==========================================================================
   28. MACFAAAST MODERN SINGLE PRODUCT TABS: SPECS & GRADES
   Strictly scoped to .mf-product-specs-wrapper and .mf-product-grades-wrapper
   ========================================================================== */

/* Modern Tab Panels */
.woocommerce div.product .woocommerce-tabs .panel#tab-additional_information,
.woocommerce div.product .woocommerce-tabs .panel#tab-ts_custom {
    padding-top: 10px;
    margin-top: 0;
}

/* 1. INFORMAZIONI AGGIUNTIVE: .mf-product-specs-wrapper */
.mf-product-specs-wrapper {
    width: 100%;
    box-sizing: border-box;
}

.mf-product-specs-wrapper .mf-specs-intro {
    margin-bottom: 28px;
    text-align: left;
}

.mf-product-specs-wrapper .mf-specs-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #00ade6;
    margin-bottom: 6px;
}

.mf-product-specs-wrapper .mf-specs-title {
    font-size: 24px;
    font-weight: 800;
    color: #53627b;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

.mf-product-specs-wrapper .mf-specs-subtitle {
    font-size: 14.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.55;
}

.mf-product-specs-wrapper .mf-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.mf-product-specs-wrapper .mf-spec-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px 20px;
    transition: all 0.22s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.mf-product-specs-wrapper .mf-spec-card:hover {
    background: #ffffff;
    border-color: #00ade6;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 173, 230, 0.08);
}

.mf-product-specs-wrapper .mf-spec-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.mf-product-specs-wrapper .mf-spec-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    flex-shrink: 0;
}

.mf-product-specs-wrapper .mf-spec-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.mf-product-specs-wrapper .mf-spec-values {
    display: flex;
    align-items: center;
}

.mf-product-specs-wrapper .mf-spec-val-single {
    font-size: 15.5px;
    font-weight: 700;
    color: #53627b;
    letter-spacing: -0.01em;
}

.mf-product-specs-wrapper .mf-spec-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mf-product-specs-wrapper .mf-spec-pill {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #53627b;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.mf-product-specs-wrapper .mf-spec-condizione-estetica .mf-spec-pill,
.mf-product-specs-wrapper .mf-spec-condizione .mf-spec-pill {
    background: #e0f2fe;
    border-color: #bae6fd;
    color: #0284c7;
}

/* Specs Guarantee Strip */
.mf-product-specs-wrapper .mf-specs-guarantee-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    background: #f1f5f9;
    border-radius: 16px;
    padding: 18px 24px;
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
}

.mf-product-specs-wrapper .mf-sg-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mf-product-specs-wrapper .mf-sg-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.mf-product-specs-wrapper .mf-sg-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mf-product-specs-wrapper .mf-sg-content strong {
    font-size: 13px;
    font-weight: 700;
    color: #53627b;
}

.mf-product-specs-wrapper .mf-sg-content span {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.3;
}

.mf-product-specs-wrapper .mf-no-specs {
    font-size: 14.5px;
    color: #64748b;
    padding: 24px 0;
}


/* 2. GRADI ESTETICI: .mf-product-grades-wrapper */
.mf-product-grades-wrapper {
    width: 100%;
    box-sizing: border-box;
}

.mf-product-grades-wrapper .mf-grades-intro {
    margin-bottom: 28px;
    text-align: left;
}

.mf-product-grades-wrapper .mf-grades-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #00ade6;
    margin-bottom: 6px;
}

.mf-product-grades-wrapper .mf-grades-title {
    font-size: 24px;
    font-weight: 800;
    color: #53627b;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

.mf-product-grades-wrapper .mf-grades-subtitle {
    font-size: 14.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.55;
}

.mf-product-grades-wrapper .mf-grades-showroom-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.mf-product-grades-wrapper .mf-gcard {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 22px 18px 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.22s ease;
    box-sizing: border-box;
}

.mf-product-grades-wrapper .mf-gcard:hover {
    border-color: #00ade6;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 173, 230, 0.08);
}

.mf-product-grades-wrapper .mf-gcard.mf-gcard-featured {
    border: 2px solid #00ade6;
    background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
    box-shadow: 0 6px 20px rgba(0, 173, 230, 0.1);
}

.mf-product-grades-wrapper .mf-gcard-badge {
    position: absolute;
    top: -10px;
    right: 14px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 50px;
    border: 1px solid transparent;
    line-height: 1.2;
    z-index: 2;
}

.mf-product-grades-wrapper .mf-badge-featured {
    background: #00ade6;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 173, 230, 0.3);
}

.mf-product-grades-wrapper .mf-badge-popular {
    background: #53627b;
    color: #ffffff;
}

.mf-product-grades-wrapper .mf-badge-value {
    background: #e0f2fe;
    color: #0284c7;
    border-color: #bae6fd;
}

.mf-product-grades-wrapper .mf-badge-savings {
    background: #f1f5f9;
    color: #53627b;
    border-color: #e2e8f0;
}

.mf-product-grades-wrapper .mf-badge-cyan {
    background: #e0f2fe;
    color: #0096c7;
    border-color: #bae6fd;
}

.mf-product-grades-wrapper .mf-gcard-header {
    margin-top: 4px;
    margin-bottom: 12px;
}

.mf-product-grades-wrapper .mf-gcard-title-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}

.mf-product-grades-wrapper .mf-gcard-name {
    font-size: 16.5px;
    font-weight: 800;
    color: #53627b;
    margin: 0;
}

.mf-product-grades-wrapper .mf-gcard-subgrade {
    font-size: 11px;
    font-weight: 700;
    color: #00ade6;
    background: #e0f2fe;
    padding: 1px 6px;
    border-radius: 4px;
}

.mf-product-grades-wrapper .mf-gcard-tagline {
    font-size: 11.5px;
    color: #64748b;
    display: block;
    line-height: 1.3;
}

.mf-product-grades-wrapper .mf-gcard-gauge {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.mf-product-grades-wrapper .mf-gdot {
    flex: 1;
    height: 4px;
    border-radius: 99px;
    background: #e2e8f0;
    transition: background 0.2s ease;
}

.mf-product-grades-wrapper .mf-gdot.filled {
    background: #00ade6;
}

.mf-product-grades-wrapper .mf-gcard-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
    font-size: 11.5px;
}

.mf-product-grades-wrapper .mf-gcard-spec {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mf-product-grades-wrapper .mf-gcard-spec-label {
    font-weight: 800;
    color: #64748b;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mf-product-grades-wrapper .mf-gcard-spec-val {
    color: #53627b;
    font-weight: 600;
    line-height: 1.35;
}

/* Grades Bottom Row */
.mf-product-grades-wrapper .mf-grades-bottom-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.mf-product-grades-wrapper .mf-gb-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 20px 22px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    box-sizing: border-box;
}

.mf-product-grades-wrapper .mf-gb-card.mf-gb-whatsapp {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.mf-product-grades-wrapper .mf-gb-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    flex-shrink: 0;
}

.mf-product-grades-wrapper .mf-gb-whatsapp .mf-gb-icon {
    border-color: #86efac;
    background: #ffffff;
}

.mf-product-grades-wrapper .mf-gb-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mf-product-grades-wrapper .mf-gb-info h5 {
    font-size: 14px;
    font-weight: 800;
    color: #53627b;
    margin: 0;
}

.mf-product-grades-wrapper .mf-gb-info p {
    font-size: 12.5px;
    color: #53627b;
    margin: 0 0 10px 0;
    line-height: 1.45;
}

.mf-product-grades-wrapper .mf-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #22c55e;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 50px;
    text-decoration: none;
    align-self: flex-start;
    transition: background 0.2s ease, transform 0.15s ease;
}

.mf-product-grades-wrapper .mf-wa-btn:hover {
    background: #16a34a;
    transform: translateY(-1px);
    color: #ffffff !important;
}

/* Tablet & Mobile Responsiveness */
@media (max-width: 1024px) {
    .mf-product-grades-wrapper .mf-grades-showroom-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .mf-product-specs-wrapper .mf-specs-guarantee-bar {
        grid-template-columns: 1fr;
    }

    .mf-product-grades-wrapper .mf-grades-showroom-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mf-product-grades-wrapper .mf-grades-bottom-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .mf-product-grades-wrapper .mf-grades-showroom-grid {
        grid-template-columns: 1fr;
    }

    .mf-product-specs-wrapper .mf-specs-grid {
        grid-template-columns: 1fr;
    }

    .mf-product-specs-wrapper .mf-specs-title,
    .mf-product-grades-wrapper .mf-grades-title {
        font-size: 20px;
    }
}



/* ==========================================================================
   FIX BUG SELETTORE QUANTITÀ SU PRODOTTI CON DISPONIBILITÀ = 1 (O HIDDEN)
   Nasconde completamente .quantity quando il prodotto ha 1 solo pezzo acquistabile
   ========================================================================== */
body.single-product .summary div.quantity.hidden,
body.single-product .summary div.quantity:has(input[type="hidden"].qty),
body.single-product .summary div.quantity:has(input.is-singular-qty),
body.single-product .summary div.quantity:has(input.qty[max="1"]),
form.cart div.quantity.hidden,
form.cart div.quantity:has(input[type="hidden"].qty),
form.cart div.quantity:has(input.is-singular-qty),
form.cart div.quantity:has(input.qty[max="1"]) {
    display: none !important;
    visibility: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* ==========================================================================
   PAGINA PRODOTTO — CARD PAGAMENTO RAPIDO 1-CLICK (APPLE PAY, GOOGLE PAY, LINK)
   Incapsula e rifinisce i bottoni Express Checkout sotto "Acquista Ora"
   ========================================================================== */
body.single-product .summary #wc-stripe-express-checkout-element:not([style*="display:none"]):not([style*="display: none"]):not(:empty),
body.single-product .summary #wc-stripe-payment-request-wrapper:not([style*="display:none"]):not([style*="display: none"]):not(:empty),
body.single-product .summary .wc-stripe-banner-checkout:not([style*="display:none"]):not([style*="display: none"]):not(:empty) {
    order: 15 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    justify-content: center !important;
    row-gap: 10px !important;
    column-gap: 10px !important;
    margin: 0 !important;
    padding: 16px 18px 15px 18px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.08) !important;
}

body.single-product .summary #wc-stripe-express-checkout-element::before,
body.single-product .summary #wc-stripe-payment-request-wrapper::before {
    content: "Pagamento Rapido · 1-Click" !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: #53627b !important;
    letter-spacing: -0.015em !important;
    line-height: 1.3 !important;
    padding: 1px 0 1px 10px !important;
    border-left: 3.5px solid #00ade6 !important;
    margin: 0 0 2px 0 !important;
}

body.single-product .summary #wc-stripe-express-checkout-element::after,
body.single-product .summary #wc-stripe-payment-request-wrapper::after {
    content: "Apple Pay · Google Pay · Link · SSL 256-bit Stripe" !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
    text-align: center !important;
    margin: 2px 0 0 0 !important;
    padding: 6px 12px !important;
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: #15803d !important;
}

body.single-product .summary #wc-stripe-express-checkout-element>.StripeElement {
    flex: 1 1 calc(50% - 5px) !important;
    min-width: 240px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    transition: transform 0.18s ease, filter 0.18s ease !important;
}

body.single-product .summary #wc-stripe-express-checkout-element>#wc-stripe-express-checkout-element-link {
    flex: 1 1 100% !important;
}

@media (hover: hover) {
    body.single-product .summary #wc-stripe-express-checkout-element>.StripeElement:hover {
        transform: translateY(-1px) !important;
        filter: brightness(1.03) !important;
    }
}

@media (max-width: 767px) {

    body.single-product .summary #wc-stripe-express-checkout-element:not([style*="display:none"]):not([style*="display: none"]):not(:empty),
    body.single-product .summary #wc-stripe-payment-request-wrapper:not([style*="display:none"]):not([style*="display: none"]):not(:empty),
    body.single-product .summary .wc-stripe-banner-checkout:not([style*="display:none"]):not([style*="display: none"]):not(:empty) {
        padding: 14px 13px 13px 13px !important;
        border-radius: 18px !important;
        row-gap: 8px !important;
        column-gap: 8px !important;
    }

    body.single-product .summary #wc-stripe-express-checkout-element::before {
        font-size: 13px !important;
        margin-bottom: 2px !important;
    }

    body.single-product .summary #wc-stripe-express-checkout-element>.StripeElement {
        flex: 1 1 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    body.single-product .summary #wc-stripe-express-checkout-element::after {
        font-size: 10.5px !important;
        padding: 6px 10px !important;
    }
}

/* ==========================================================================
   APPLE-STYLE PRODUCT CONFIGURATOR (DESKTOP & MOBILE)
   Trasforma table.variations e vi-wpvs in step numerati con prezzi live,
   palette colore reali, descrizioni grado e switch intelligente senza blocchi.
   ========================================================================== */
body.single-product .summary form.variations_form {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 20px 22px 18px 22px !important;
    margin: 0 0 18px 0 !important;
    box-shadow: 0 6px 24px -8px rgba(15, 23, 42, 0.05) !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

body.single-product .summary form.variations_form .mf-config-header-wrap {
    margin: 0 0 18px 0 !important;
    padding: 0 0 14px 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

body.single-product .summary form.variations_form .mf-config-header-top {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    margin: 0 0 8px 0 !important;
}

body.single-product .summary form.variations_form .mf-config-eyebrow {
    display: inline-flex !important;
    align-items: center !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
    background: #e0f2fe !important;
    color: #0284c7 !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    letter-spacing: 0.07em !important;
    text-transform: uppercase !important;
    line-height: 1.2 !important;
}

body.single-product .summary form.variations_form .mf-config-avail {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    white-space: nowrap !important;
}

body.single-product .summary form.variations_form .personalize-selection-title {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    font-size: 1.32rem !important;
    font-weight: 800 !important;
    color: #53627b !important;
    letter-spacing: -0.025em !important;
    line-height: 1.2 !important;
    text-align: left !important;
}

body.single-product .summary form.variations_form .mf-config-actions-row {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.single-product .summary form.variations_form .mf-reset-btn {
    display: none !important;
    align-items: center !important;
    gap: 5px !important;
    margin: 10px 0 0 0 !important;
    padding: 5px 12px !important;
    border-radius: 999px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #53627b !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
    transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease !important;
}

body.single-product .summary form.variations_form .mf-reset-btn.is-visible {
    display: inline-flex !important;
}

body.single-product .summary form.variations_form .mf-reset-btn:hover {
    border-color: #00ade6 !important;
    color: #0284c7 !important;
    background: #f0f9ff !important;
}

/* Table -> Modern Vertical Stack */
body.single-product .summary form.variations_form table.variations {
    display: block !important;
    width: 100% !important;
    border: none !important;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
}

body.single-product .summary form.variations_form table.variations tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
    width: 100% !important;
}

body.single-product .summary form.variations_form table.variations tr.mf-config-step {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 0 18px 0 !important;
    border: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    background: transparent !important;
}

body.single-product .summary form.variations_form table.variations tr.mf-config-step:last-child {
    padding-bottom: 2px !important;
    border-bottom: none !important;
}

body.single-product .summary form.variations_form table.variations th.label {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-align: left !important;
}

body.single-product .summary form.variations_form table.variations td.value {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

body.single-product .summary form.variations_form .reset_variations {
    display: none !important;
}

/* Step Header */
body.single-product .summary form.variations_form .mf-step-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
}

body.single-product .summary form.variations_form .mf-step-left {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
}

body.single-product .summary form.variations_form .mf-step-num {
    width: 24px !important;
    height: 24px !important;
    border-radius: 999px !important;
    background: #53627b !important;
    color: #ffffff !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    transition: background-color 0.2s ease !important;
}

body.single-product .summary form.variations_form .mf-step-header.is-completed .mf-step-num {
    background: #00ade6 !important;
}

body.single-product .summary form.variations_form .mf-step-titles {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    gap: 5px !important;
    min-width: 0 !important;
}

body.single-product .summary form.variations_form .mf-step-title {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #53627b !important;
    letter-spacing: -0.015em !important;
    line-height: 1.25 !important;
}

body.single-product .summary form.variations_form .mf-step-sub {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    line-height: 1.25 !important;
}

body.single-product .summary form.variations_form .mf-step-chosen {
    display: inline-flex !important;
    align-items: center !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
    background: #f1f5f9 !important;
    color: #64748b !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

body.single-product .summary form.variations_form .mf-step-chosen.is-active {
    background: #e0f2fe !important;
    color: #0284c7 !important;
}

/* Grids per tipo opzione */
body.single-product .summary form.variations_form .vi-wpvs-variation-wrap.mf-options-grid {
    display: grid !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.single-product .summary form.variations_form .vi-wpvs-variation-wrap.mf-grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.single-product .summary form.variations_form .vi-wpvs-variation-wrap.mf-grid-cols-1 {
    grid-template-columns: minmax(0, 1fr) !important;
}

body.single-product .summary form.variations_form .vi-wpvs-variation-wrap.mf-grid-colors {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
}

body.single-product .summary form.variations_form .vi-wpvs-variation-wrap.mf-grid-colors-many {
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)) !important;
}

/* Reset completo eredità vi_wpvs sui bottoni (elimina sfondo azzurro spigoloso dietro agli angoli!) */
body.single-product .summary form.variations_form .vi-wpvs-option-wrap,
body.single-product .summary form.variations_form .vi-wpvs-option-wrap.vi-wpvs-option-wrap-selected,
body.single-product .summary form.variations_form .vi-wpvs-option-wrap.mf-opt-selected,
body.single-product .summary form.variations_form .vi-wpvs-option-wrap.vi-wpvs-option-wrap-default,
body.single-product .summary form.variations_form .vi-wpvs-option-wrap.vi-wpvs-option-wrap-disable,
body.single-product .summary form.variations_form .vi-wpvs-option-wrap.vi-wpvs-option-wrap-disabled,
body.single-product .summary form.variations_form .vi-wpvs-option-wrap:hover {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 16px !important;
    transform: none !important;
    opacity: 1 !important;
    cursor: pointer !important;
    position: relative !important;
    text-decoration: none !important;
    pointer-events: auto !important;
    display: flex !important;
    align-items: stretch !important;
}

body.single-product .summary form.variations_form .vi-wpvs-option-wrap *,
body.single-product .summary form.variations_form .vi-wpvs-option-wrap-disable *,
body.single-product .summary form.variations_form .vi-wpvs-option-wrap-disabled * {
    text-decoration: none !important;
}

body.single-product .summary form.variations_form .vi-wpvs-option-wrap::before,
body.single-product .summary form.variations_form .vi-wpvs-option-wrap::after,
body.single-product .summary form.variations_form .vi-wpvs-option-wrap .vi-wpvs-option-button::before,
body.single-product .summary form.variations_form .vi-wpvs-option-wrap .vi-wpvs-option-button::after {
    display: none !important;
    content: none !important;
}

body.single-product .summary form.variations_form .vi-wpvs-option-wrap .vi-wpvs-option.vi-wpvs-option-button {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 62px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 13px 15px !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border: none !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: inset 0 0 0 1.5px #e2e8f0, 0 2px 6px rgba(15, 23, 42, 0.03) !important;
    text-align: left !important;
    white-space: normal !important;
    line-height: 1.3 !important;
    color: #53627b !important;
    transform: none !important;
    transition: background-color 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease !important;
}

body.single-product .summary form.variations_form .vi-wpvs-option-wrap:not(.mf-opt-selected):not(.mf-opt-oos):hover .vi-wpvs-option.vi-wpvs-option-button {
    box-shadow: inset 0 0 0 1.5px #94a3b8, 0 4px 12px rgba(15, 23, 42, 0.06) !important;
}

body.single-product .summary form.variations_form .vi-wpvs-option-wrap.mf-opt-selected .vi-wpvs-option.vi-wpvs-option-button {
    background: #f0f9ff !important;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: inset 0 0 0 2px #00ade6, 0 8px 20px -6px rgba(0, 173, 230, 0.22) !important;
}

body.single-product .summary form.variations_form .vi-wpvs-option-wrap.mf-opt-switch-needed .vi-wpvs-option.vi-wpvs-option-button {
    background: #f8fafc !important;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: inset 0 0 0 1.5px #cbd5e1 !important;
    opacity: 0.88 !important;
}

body.single-product .summary form.variations_form .vi-wpvs-option-wrap.mf-opt-switch-needed:hover .vi-wpvs-option.vi-wpvs-option-button {
    opacity: 1 !important;
    background: #ffffff !important;
    box-shadow: inset 0 0 0 1.5px #00ade6, 0 4px 12px rgba(0, 173, 230, 0.1) !important;
}

body.single-product .summary form.variations_form .vi-wpvs-option-wrap.mf-opt-oos {
    opacity: 0.42 !important;
    pointer-events: none !important;
}

/* Color Card compatta & allineata su 1 riga pulita per nome */
body.single-product .summary form.variations_form .mf-grid-colors .vi-wpvs-option.vi-wpvs-option-button {
    padding: 11px 12px !important;
    min-height: 58px !important;
}

body.single-product .summary form.variations_form .mf-grid-colors .mf-tile-color {
    gap: 9px !important;
}

body.single-product .summary form.variations_form .mf-grid-colors .mf-color-ring {
    width: 26px !important;
    height: 26px !important;
}

body.single-product .summary form.variations_form .mf-grid-colors .mf-opt-name {
    font-size: 13.5px !important;
    letter-spacing: -0.02em !important;
}

body.single-product .summary form.variations_form .mf-cond-switch-pill {
    display: inline-flex !important;
    align-items: center !important;
    padding: 2px 8px !important;
    border-radius: 999px !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #53627b !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

/* Tile Internals */
body.single-product .summary form.variations_form .mf-tile-spec {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
}

body.single-product .summary form.variations_form .mf-spec-left,
body.single-product .summary form.variations_form .mf-tile-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    min-width: 0 !important;
}

body.single-product .summary form.variations_form .mf-opt-name {
    font-size: 14.5px !important;
    font-weight: 800 !important;
    color: #53627b !important;
    letter-spacing: -0.01em !important;
    line-height: 1.2 !important;
}

body.single-product .summary form.variations_form .mf-opt-sub {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    line-height: 1.25 !important;
}

body.single-product .summary form.variations_form .mf-opt-price {
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: #53627b !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

body.single-product .summary form.variations_form .mf-opt-selected .mf-opt-price {
    color: #0284c7 !important;
}

/* Color Swatch Tile */
body.single-product .summary form.variations_form .mf-tile-color {
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;
    width: 100% !important;
}

body.single-product .summary form.variations_form .mf-color-ring {
    width: 30px !important;
    height: 30px !important;
    border-radius: 999px !important;
    padding: 2px !important;
    border: 1.5px solid #e2e8f0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    background: #ffffff !important;
}

body.single-product .summary form.variations_form .mf-opt-selected .mf-color-ring {
    border-color: #00ade6 !important;
    box-shadow: 0 0 0 2px rgba(0, 173, 230, 0.2) !important;
}

body.single-product .summary form.variations_form .mf-color-dot {
    width: 100% !important;
    height: 100% !important;
    border-radius: 999px !important;
    display: block !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18) !important;
}

body.single-product .summary form.variations_form .mf-color-ring.is-light .mf-color-dot {
    border: 1px solid #cbd5e1 !important;
}

/* Condition Tier Card */
body.single-product .summary form.variations_form .mf-tile-condition {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    width: 100% !important;
}

body.single-product .summary form.variations_form .mf-cond-top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
}

body.single-product .summary form.variations_form .mf-cond-title-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

body.single-product .summary form.variations_form .mf-cond-badge {
    display: inline-flex !important;
    align-items: center !important;
    padding: 2px 8px !important;
    border-radius: 999px !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
}

body.single-product .summary form.variations_form .mf-cond-badge.is-top {
    background: #dcfce7 !important;
    color: #15803d !important;
}

body.single-product .summary form.variations_form .mf-cond-badge.is-popular {
    background: #e0f2fe !important;
    color: #0284c7 !important;
}

body.single-product .summary form.variations_form .mf-cond-badge.is-value {
    background: #fef3c7 !important;
    color: #b45309 !important;
}

body.single-product .summary form.variations_form .mf-opt-desc {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #53627b !important;
    line-height: 1.35 !important;
}

/* Price Wrapper separation inside configurator form */
body.single-product .summary form.variations_form .single_variation_wrap {
    margin-top: 6px !important;
    padding-top: 16px !important;
    border-top: 1px solid #f1f5f9 !important;
}

@media (max-width: 767px) {
    body.single-product .summary form.variations_form {
        padding: 16px 14px 16px 14px !important;
        border-radius: 18px !important;
    }

    body.single-product .summary form.variations_form .personalize-selection-title {
        font-size: 1.18rem !important;
    }

    body.single-product .summary form.variations_form .mf-step-titles {
        flex-direction: column !important;
        gap: 1px !important;
    }

    body.single-product .summary form.variations_form .mf-step-sub {
        font-size: 12px !important;
    }

    body.single-product .summary form.variations_form .vi-wpvs-variation-wrap.mf-grid-cols-2,
    body.single-product .summary form.variations_form .vi-wpvs-variation-wrap.mf-grid-colors {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
    }

    body.single-product .summary form.variations_form .vi-wpvs-option-wrap .vi-wpvs-option.vi-wpvs-option-button {
        padding: 12px 13px !important;
    }
}

/* Apple Watch 3-pill Peace-of-Mind Strip (without Accessori Inclusi pill) */
.single-product .summary .mf-sp-peace-of-mind-strip.mf-pom-three {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    padding: 14px 12px !important;
    gap: 10px 8px !important;
}

.single-product .summary .mf-sp-peace-of-mind-strip.mf-pom-three .mf-pom-pill {
    gap: 7px !important;
}

.single-product .summary .mf-sp-peace-of-mind-strip.mf-pom-three .mf-pom-txt span {
    font-size: 11.5px !important;
    letter-spacing: -0.01em !important;
}

@media (max-width: 1219px) and (min-width: 601px) {
    .single-product .summary .mf-sp-peace-of-mind-strip.mf-pom-three {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        padding: 14px 18px !important;
        gap: 12px !important;
    }

    .single-product .summary .mf-sp-peace-of-mind-strip.mf-pom-three .mf-pom-pill:last-child {
        grid-column: 1 / -1 !important;
    }
}

@media (max-width: 600px) {
    .single-product .summary .mf-sp-peace-of-mind-strip.mf-pom-three {
        grid-template-columns: 1fr !important;
        padding: 14px 16px !important;
        gap: 8px !important;
    }
}

/* Audit Fix 8: assicura ink #0f172a ereditato su header e peace-of-mind strip */
.single-product .summary .mf-sp-header,
.single-product .summary .mf-sp-top-badges,
.single-product .summary .mf-sp-peace-of-mind-strip,
.single-product .summary .mf-pom-pill,
.single-product .summary .mf-pom-txt {
    color: #53627b;
}

.single-product .summary .mf-pom-txt span {
    color: #64748b;
}




/* --- EXTRACTED FROM mf-single-product-ui.php --- */
#shipping-countdown-banner,
.single-product .summary .installments-preview {
    display: block !important;
    background: #f8f8f8 !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    margin: 8px 0 12px 0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
    clear: both;
    width: 100% !important;
    box-sizing: border-box !important;
}

#shipping-countdown-banner .ssdb-main-info,
.single-product .summary .installments-preview .ip-main-info {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 10px !important;
    width: 100% !important;
}

#shipping-countdown-banner #shipping-timer-message,
.single-product .summary .installments-preview .ip-message {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #53627b !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    text-decoration: none !important;
}

.single-product .summary .installments-preview .ip-message * {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #53627b !important;
}

.single-product .summary .installments-preview .inst-amount {
    font-weight: 800 !important;
    color: #53627b !important;
}

#shipping-countdown-banner .timer-highlight {
    color: #d10000 !important;
    font-weight: 800 !important;
}

#shipping-countdown-banner .ssdb-footer-info,
.single-product .summary .installments-preview .ip-footer-info {
    padding-top: 10px !important;
    border-top: 1px solid #e5e5e5 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 13px !important;
    color: #666666 !important;
    width: 100% !important;
    margin: 0 !important;
}

#shipping-countdown-banner .ssdb-footer-info span,
.single-product .summary .installments-preview .ip-footer-info span {
    font-size: 13px !important;
    color: #666666 !important;
}

.single-product .summary .woocommerce-product-details__short-description,
.single-product .summary .woocommerce-product-details__short-description p,
.single-product .summary .woocommerce-product-details__short-description strong,
.single-product .summary .woocommerce-product-details__short-description span {
    color: #53627b !important;
}

/* INLINE CSS to bypass cache/loading issues */
#variation-selection-summary {
    width: 100% !important;
    padding: 16px 20px !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    border: 1.5px solid #00ade6 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 16px rgba(0, 173, 230, 0.08) !important;
    display: none;
    position: relative !important;
}

#variation-selection-summary::before {
    display: none !important;
}

#variation-selection-summary .vss-header {
    display: flex !important;
    align-items: center !important;
    margin: 0 0 8px 0 !important;
}

#variation-selection-summary .vss-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #e0f2fe !important;
    color: #0284c7 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    padding: 4px 10px !important;
    border-radius: 50px !important;
    border: 1px solid #bae6fd !important;
}

#variation-selection-summary .vss-badge svg {
    color: #0284c7 !important;
    stroke-width: 3 !important;
}

#variation-selection-summary .vss-body {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

#variation-selection-summary .vss-product-title {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #53627b !important;
    margin: 0 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.25 !important;
}

#variation-selection-summary .vss-specs-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 4px !important;
}

#variation-selection-summary .vss-spec-pill {
    display: inline-flex !important;
    align-items: center !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 3px 10px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #53627b !important;
}

/* Eliminate phantom flex gaps by hiding empty WooCommerce variation nodes */
.single-product .summary .single_variation_wrap .woocommerce-variation.single_variation,
.single-product .summary .single_variation_wrap .woocommerce-variation-description,
.single-product .summary .single_variation_wrap .woocommerce-variation-price {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Fix clipped bottom border on swatches + add breathing room */
.vi-wpvs-option-wrap {
    overflow: visible !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.vi-wpvs-option-button {
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* Hide ugly plugin tooltips */
.vi-wpvs-option-tooltip {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* --- MOBILE STICKY ADD-TO-CART BAR (Single Product <= 767px) --- */
.mf-sticky-atc-bar {
    display: none;
}

@media (max-width: 767px) {
    .mf-sticky-atc-bar {
        position: fixed !important;
        left: 12px !important;
        right: 12px !important;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
        z-index: 9990 !important;
        background: rgba(255, 255, 255, 0.96) !important;
        backdrop-filter: blur(14px) !important;
        -webkit-backdrop-filter: blur(14px) !important;
        border: 1px solid rgba(83, 98, 123, 0.16) !important;
        border-radius: 16px !important;
        box-shadow: 0 10px 28px -6px rgba(83, 98, 123, 0.25) !important;
        padding: 10px 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        transform: translateY(130%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease !important;
    }

    .mf-sticky-atc-bar.is-visible {
        transform: translateY(0) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .mf-sticky-atc-info {
        min-width: 0;
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .mf-sticky-atc-title {
        font-size: 12px !important;
        font-weight: 700 !important;
        color: #53627b !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
    }

    .mf-sticky-atc-price {
        font-size: 15px !important;
        font-weight: 800 !important;
        color: #53627b !important;
        line-height: 1.15;
    }

    .mf-sticky-atc-btn {
        flex-shrink: 0;
        background: #00ade6 !important;
        color: #ffffff !important;
        border: none !important;
        border-radius: 999px !important;
        padding: 11px 16px !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        cursor: pointer !important;
        white-space: nowrap !important;
        box-shadow: 0 4px 12px rgba(0, 173, 230, 0.28) !important;
    }

    body.single-product.mf-has-sticky-atc #to-top {
        bottom: 78px !important;
    }
}

/* MIGRATED FROM style.css (vi-wpvs variation wrap base) */
/* VARIATIONS */


.vi-wpvs-variation-wrap {
    max-width: 100%;
    display: inline-flex !important;
    flex-wrap: wrap !important;
    text-align: center !important;
    justify-content: flex-start !important;
    display: flex !important;
}

/* BUTTONS ROUNDED */
.vi-wpvs-variation-wrap.vi-wpvs-variation-wrap-vi_wpvs_button_design .vi-wpvs-option-wrap.vi-wpvs-option-wrap-default {
    color: rgb(83, 98, 123);
    background: #ebebeb !important;
    border-radius: 10px !important;
}

.vi-wpvs-variation-wrap.vi-wpvs-variation-wrap-vi_wpvs_button_design .vi-wpvs-option-wrap.vi-wpvs-option-wrap-selected {
    color: rgba(255, 255, 255, 1);
    background: #00ade6 !important;
    border-radius: 10px !important;
}

.vi-wpvs-variation-wrap.vi-wpvs-variation-wrap-vi_wpvs_button_design .vi-wpvs-option-wrap.vi-wpvs-option-wrap-selected {
    box-shadow: none !important;
}

.vi-wpvs-variation-wrap.vi-wpvs-variation-wrap-vi_wpvs_button_design .vi-wpvs-variation-button-select,
.vi-wpvs-variation-wrap.vi-wpvs-variation-wrap-vi_wpvs_button_design .vi-wpvs-option-wrap {
    border-radius: 10px !important;
}

/* ==========================================================================
   MACFAAAST CRO & TRUST ENHANCEMENTS (Points 1, 2, 3, 4)
   All text & structural tones strictly use #53627b / brand azure / emerald
   ========================================================================== */

/* Point 2: Real Stock & Logistic Warehouse Badge inside .premium-price-wrapper */
.single-product .summary .premium-price-wrapper .mf-sp-stock-logistic-slot {
    flex: 1 0 100% !important;
    width: 100% !important;
    order: -1 !important;
    margin-bottom: 6px !important;
}

.single-product .summary .premium-price-wrapper .mf-sp-stock-logistic {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 6px 12px !important;
    border-radius: 999px !important;
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    color: #065f46 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.single-product .summary .premium-price-wrapper .mf-sp-stock-logistic strong {
    color: #065f46 !important;
    font-weight: 800 !important;
}

.single-product .summary .premium-price-wrapper .mf-sp-stock-logistic.is-last-one {
    background: #fffbeb !important;
    border-color: #fde68a !important;
    color: #92400e !important;
}

.single-product .summary .premium-price-wrapper .mf-sp-stock-logistic.is-last-one strong {
    color: #92400e !important;
}

.single-product .summary .premium-price-wrapper .mf-sp-stock-logistic.is-last-one .mf-stock-highlight {
    color: #b45309 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px !important;
}

.single-product .summary .premium-price-wrapper .mf-stock-dot {
    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;
    border-radius: 50% !important;
    background: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
    flex-shrink: 0 !important;
}

.single-product .summary .premium-price-wrapper .mf-stock-dot.is-urgent {
    background: #f59e0b !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.24) !important;
}

.single-product .summary .premium-price-wrapper .mf-stock-dot.is-low {
    background: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22) !important;
}

/* Point 3: Interactive "40+ Test Tecnici" Pill & Modal (#mfLabTestsModal) */
.mf-pom-pill.mf-pom-pill-interactive {
    cursor: pointer !important;
    padding: 6px 10px !important;
    margin: -6px -10px !important;
    border-radius: 12px !important;
    transition: background-color 0.2s ease, transform 0.2s ease !important;
}

.mf-pom-pill.mf-pom-pill-interactive:hover {
    background: rgba(0, 173, 230, 0.08) !important;
    transform: translateY(-1px) !important;
}

.mf-pom-pill.mf-pom-pill-interactive .mf-pom-link-sub {
    color: #0284c7 !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px !important;
}

/* Point 1: "Cosa c'è nella scatola (Dotazione Inclusa)" Card (matched 1:1 with Trust Box) */
.single-product .summary .mf-sp-in-the-box {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 20px 22px !important;
    margin-top: 0 !important;
    margin-bottom: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 20px rgba(83, 98, 123, 0.04) !important;
}

.single-product .summary .mf-itb-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding-bottom: 12px !important;
    margin-bottom: 12px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    flex-wrap: wrap !important;
}

.single-product .summary .mf-itb-title-wrap {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.single-product .summary .mf-itb-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
    background: #e0f2fe !important;
    color: #0284c7 !important;
    flex-shrink: 0 !important;
}

.single-product .summary .mf-itb-title {
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: #53627b !important;
    letter-spacing: -0.01em !important;
}

.single-product .summary .mf-itb-tests-trigger {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    min-height: 28px !important;
    background: #ffffff !important;
    color: #0284c7 !important;
    border: 1px solid #bae6fd !important;
    border-radius: 999px !important;
    padding: 4px 10px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    line-height: 1.2 !important;
}

.single-product .summary .mf-itb-tests-trigger:hover {
    background: #00ade6 !important;
    color: #ffffff !important;
    border-color: #00ade6 !important;
}

.single-product .summary .mf-itb-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px 14px !important;
}

@media (max-width: 600px) {
    .single-product .summary .mf-itb-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
}

.single-product .summary .mf-itb-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 11px 13px !important;
    box-sizing: border-box !important;
}

.single-product .summary .mf-itb-item-ico {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    border-radius: 8px !important;
    background: #f0f9ff !important;
    flex-shrink: 0 !important;
    margin-top: 1px !important;
}

.single-product .summary .mf-itb-item-txt {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    min-width: 0 !important;
}

.single-product .summary .mf-itb-item-txt strong {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #53627b !important;
    line-height: 1.25 !important;
}

.single-product .summary .mf-itb-item-txt span {
    font-size: 11.5px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    line-height: 1.3 !important;
}

/* Point 4: Dynamic Configuration Highlight inside WhatsApp Concierge */
.single-product .summary .whatsapp-concierge-link .wa-dynamic-config-label {
    font-style: normal !important;
    font-weight: 700 !important;
    color: #065f46 !important;
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    padding: 1px 7px !important;
    border-radius: 6px !important;
    display: inline-block !important;
    margin-top: 2px !important;
}

/* Point 3 Modal: #mfLabTestsModal */
.mf-ltm-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483645 !important;
    background: rgba(83, 98, 123, 0.55) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 18px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.25s ease, visibility 0.25s ease !important;
    box-sizing: border-box !important;
}

.mf-ltm-overlay.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.mf-ltm-dialog {
    position: relative !important;
    width: 100% !important;
    max-width: 780px !important;
    max-height: 92vh !important;
    overflow-y: auto !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 26px !important;
    padding: 0 !important;
    box-shadow: 0 28px 70px rgba(83, 98, 123, 0.32) !important;
    box-sizing: border-box !important;
    color: #53627b !important;
    display: flex !important;
    flex-direction: column !important;
}

.mf-ltm-header {
    position: relative !important;
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 68%, #f8fafc 100%) !important;
    padding: 22px 26px 18px 26px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-radius: 26px 26px 0 0 !important;
}

.mf-ltm-close {
    position: absolute !important;
    top: 18px !important;
    right: 18px !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #53627b !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    box-shadow: 0 2px 6px rgba(83, 98, 123, 0.06) !important;
    transition: all 0.2s ease !important;
}

.mf-ltm-close:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0284c7 !important;
    transform: rotate(90deg) !important;
}

.mf-ltm-badges-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    padding-right: 44px !important;
    margin-bottom: 10px !important;
}

.mf-ltm-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    background: #e0f2fe !important;
    border: 1px solid #bae6fd !important;
    color: #0284c7 !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    letter-spacing: 0.05em !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
    margin: 0 !important;
}

.mf-ltm-status-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    color: #065f46 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
}

.mf-ltm-status-dot {
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    background: #10b981 !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.22) !important;
}

.mf-ltm-title {
    font-size: 21px !important;
    font-weight: 800 !important;
    color: #53627b !important;
    margin: 0 0 5px 0 !important;
    padding-right: 40px !important;
    line-height: 1.25 !important;
    letter-spacing: -0.02em !important;
}

.mf-ltm-sub {
    font-size: 13px !important;
    color: #64748b !important;
    margin: 0 !important;
    line-height: 1.48 !important;
    max-width: 640px !important;
}

.mf-ltm-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    padding: 18px 26px !important;
}

.mf-ltm-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 14px 16px !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 10px rgba(83, 98, 123, 0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 11px !important;
}

.mf-ltm-card-head {
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    margin: 0 !important;
}

.mf-ltm-card-ico {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    border: 1px solid #bae6fd !important;
    color: #0284c7 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.mf-ltm-card-title-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
    min-width: 0 !important;
}

.mf-ltm-card-step {
    font-size: 10px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: #0284c7 !important;
    line-height: 1.1 !important;
}

.mf-ltm-card-head h4 {
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: #53627b !important;
    margin: 0 !important;
    line-height: 1.25 !important;
}

.mf-ltm-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
}

.mf-ltm-list li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #53627b !important;
    font-size: 12.3px !important;
    line-height: 1.4 !important;
    font-weight: 500 !important;
}

.mf-ltm-check {
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    border-radius: 50% !important;
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    color: #059669 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 1px !important;
    flex-shrink: 0 !important;
}

.mf-ltm-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    padding: 14px 26px 18px 26px !important;
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    border-radius: 0 0 26px 26px !important;
    flex-wrap: nowrap !important;
}

.mf-ltm-footer-note {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 12.5px !important;
    color: #53627b !important;
    font-weight: 500 !important;
}

.mf-ltm-footer-ico {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    border-radius: 8px !important;
    background: #f0f9ff !important;
    color: #0284c7 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.mf-ltm-cta {
    background: linear-gradient(135deg, #00ade6 0%, #0284c7 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 11px 22px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    box-shadow: 0 4px 14px rgba(0, 173, 230, 0.3) !important;
}

.mf-ltm-cta:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(0, 173, 230, 0.42) !important;
}

@media (max-width: 680px) {
    .mf-ltm-dialog {
        border-radius: 22px !important;
    }

    .mf-ltm-header {
        padding: 18px 18px 14px 18px !important;
        border-radius: 22px 22px 0 0 !important;
    }

    .mf-ltm-title {
        font-size: 18px !important;
    }

    .mf-ltm-grid {
        grid-template-columns: 1fr !important;
        padding: 14px 18px !important;
        gap: 10px !important;
    }

    .mf-ltm-footer {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 14px 18px 16px 18px !important;
        gap: 10px !important;
        border-radius: 0 0 22px 22px !important;
    }

    .mf-ltm-cta {
        width: 100% !important;
        text-align: center !important;
    }
}

/* ==========================================================================
   BLOCK 2 UX/CRO: CLICKABLE GRADE BADGE, SIBLING CONFIGS SWITCHER & GRADE MODAL
   ========================================================================== */
.mf-sp-grade-badge.mf-sp-grade-clickable {
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.mf-sp-grade-badge.mf-sp-grade-clickable:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 173, 230, 0.16) !important;
}

.mf-sp-grade-info-svg {
    opacity: 0.78;
    margin-left: 1px;
    flex-shrink: 0;
}

/* Sibling Model Configurations & Grades Switcher Card */
.summary.entry-summary .mf-sp-siblings-box {
    order: 2 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 18px 20px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 20px rgba(83, 98, 123, 0.04) !important;
    box-sizing: border-box !important;
}

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

.mf-sib-title-wrap {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.mf-sib-dot {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
    flex-shrink: 0 !important;
}

.mf-sib-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #53627b !important;
    line-height: 1.3 !important;
}

.mf-sib-title strong {
    font-weight: 700 !important;
    color: #0284c7 !important;
}

.mf-sib-grade-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 5px 11px !important;
    background: #f0f9ff !important;
    border: 1px solid #bae6fd !important;
    border-radius: 999px !important;
    color: #0284c7 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.mf-sib-grade-btn:hover {
    background: #00ade6 !important;
    border-color: #00ade6 !important;
    color: #ffffff !important;
}

.mf-sib-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

.mf-sib-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    padding: 11px 13px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

a.mf-sib-card:hover {
    background: #ffffff !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 4px 14px rgba(0, 173, 230, 0.1) !important;
    transform: translateY(-1px) !important;
}

.mf-sib-card.is-current {
    background: #f0f9ff !important;
    border: 1.5px solid #00ade6 !important;
    box-shadow: 0 2px 10px rgba(0, 173, 230, 0.08) !important;
}

.mf-sib-card-top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
}

.mf-sib-grade-pill {
    display: inline-flex !important;
    align-items: center !important;
    padding: 3px 9px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    background: #e0f2fe !important;
    color: #0284c7 !important;
}

.mf-sib-grade-pill.grade-eccellente {
    background: #dcfce7 !important;
    color: #047857 !important;
}

.mf-sib-grade-pill.grade-ottimo {
    background: #e0f2fe !important;
    color: #0284c7 !important;
}

.mf-sib-grade-pill.grade-buono {
    background: #fef3c7 !important;
    color: #b45309 !important;
}

.mf-sib-price {
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: #53627b !important;
}

.mf-sib-card-specs {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    font-size: 11.5px !important;
    color: #64748b !important;
    font-weight: 500 !important;
}

.mf-sib-active-tag {
    font-size: 10.5px !important;
    font-weight: 700 !important;
    color: #0284c7 !important;
    white-space: nowrap !important;
}

.mf-sib-link-arrow {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #00ade6 !important;
    white-space: nowrap !important;
}

/* Single Unique Config Interactive Grade Explainer Bar */
.summary.entry-summary .mf-sp-grade-explainer-bar {
    order: 2 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 13px 18px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 3px 14px rgba(83, 98, 123, 0.04) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.summary.entry-summary .mf-sp-grade-explainer-bar:hover {
    border-color: #bae6fd !important;
    background: #f8fafc !important;
    box-shadow: 0 4px 16px rgba(0, 173, 230, 0.08) !important;
}

.mf-geb-left {
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;
    min-width: 0 !important;
}

.mf-geb-ico {
    width: 32px !important;
    height: 32px !important;
    border-radius: 10px !important;
    background: #f0f9ff !important;
    color: #00ade6 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.mf-geb-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
    font-size: 12.5px !important;
    line-height: 1.35 !important;
    color: #64748b !important;
}

.mf-geb-text strong {
    color: #53627b !important;
    font-weight: 700 !important;
}

.mf-geb-action {
    flex-shrink: 0 !important;
    padding: 5px 11px !important;
    border-radius: 999px !important;
    background: #f0f9ff !important;
    border: 1px solid #bae6fd !important;
    color: #0284c7 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

/* Grade Guide Modal 3-Column Comparison Grid */
.mf-ggm-dialog {
    max-width: 820px !important;
}

.mf-ggm-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    padding: 18px 24px !important;
}

.mf-ggm-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.mf-ggm-card.is-current-grade {
    background: #f0f9ff !important;
    border: 1.5px solid #00ade6 !important;
    box-shadow: 0 6px 18px rgba(0, 173, 230, 0.1) !important;
}

.mf-ggm-card-top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}

.mf-ggm-curr-badge {
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    padding: 2px 8px !important;
    border-radius: 999px !important;
    background: #00ade6 !important;
    color: #ffffff !important;
}

.mf-ggm-tagline {
    margin: 0 !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #53627b !important;
}

.mf-ggm-list li span strong {
    color: #53627b !important;
}

@media (max-width: 767px) {
    .mf-sib-grid {
        grid-template-columns: 1fr !important;
    }
    .summary.entry-summary .mf-sp-grade-explainer-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 12px 14px !important;
    }
    .mf-geb-action {
        align-self: flex-end !important;
    }
    .mf-ggm-grid {
        grid-template-columns: 1fr !important;
        padding: 14px 18px !important;
    }
}

/* ==========================================================================
   MOSSA 3, 4 & 5: B2B IVA 22% BADGE, STICKY BAR SUBTITLE & 3-RATE SIMULATOR
   ========================================================================== */
.mf-sp-badge-b2b {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    color: #047857 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
}

/* Mossa 4: Sticky Bottom Bar Micro-Reassurance Subtitle */
.mf-sticky-atc-top-row {
    display: flex !important;
    align-items: baseline !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.mf-sticky-atc-sub {
    display: block !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #0284c7 !important;
    line-height: 1.25 !important;
    margin-top: 1px !important;
}

/* Mossa 5: Interactive 3-Installment Simulator inside .installments-preview */
.mf-inst-sim-details {
    margin-top: 10px !important;
    padding-top: 9px !important;
    border-top: 1px dashed #e2e8f0 !important;
    width: 100% !important;
}

.mf-inst-sim-toggle {
    list-style: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #0284c7 !important;
    user-select: none !important;
}

.mf-inst-sim-toggle::-webkit-details-marker {
    display: none !important;
}

.mf-inst-sim-toggle:hover {
    color: #00ade6 !important;
}

.mf-inst-sim-chev {
    transition: transform 0.2s ease !important;
}

.mf-inst-sim-details[open] .mf-inst-sim-chev {
    transform: rotate(180deg) !important;
}

.mf-inst-sim-body {
    margin-top: 10px !important;
    padding: 11px 12px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 9px !important;
}

.mf-inst-sim-steps {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

.mf-inst-step {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 7px 8px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.mf-inst-step-when {
    font-size: 10.5px !important;
    font-weight: 600 !important;
    color: #64748b !important;
}

.mf-inst-step-val {
    font-size: 12.5px !important;
    font-weight: 800 !important;
    color: #53627b !important;
}

.mf-inst-sim-meta {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.mf-inst-zero-pill {
    display: inline-flex !important;
    align-items: center !important;
    padding: 2px 8px !important;
    border-radius: 999px !important;
    background: #dcfce7 !important;
    color: #047857 !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
}

.mf-inst-24m-link {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #0284c7 !important;
    text-decoration: none !important;
}

.mf-inst-24m-link:hover {
    color: #00ade6 !important;
    text-decoration: underline !important;
}

/* ==========================================================================
   TM EXTRA PRODUCT OPTIONS: PHOTO + ALIGNED ACTION BAR + ACCORDION "DETTAGLI"
   ========================================================================== */
.tm-extra-product-options-fields > li.tm-extra-product-options-field {
    padding: 13px 16px !important;
    border-radius: 15px !important;
}

/* Azzera margini/padding residui interni del plugin TM EPO per un allineamento perfetto */
.tm-extra-product-options-field .tc-element-inner-wrap,
.tm-extra-product-options-field .tc-element-container,
.tm-extra-product-options-field ul.tmcp-ul-wrap,
.tm-extra-product-options-field li.tmcp-field-wrap,
.tm-extra-product-options-field .tmcp-field-wrap-inner,
.tm-extra-product-options-field .tc-field-label-wrap,
.tm-extra-product-options-field .tc-field-label-wrap label {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
}

.tm-extra-product-options-field .tc-element-inner-wrap > .tc-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    row-gap: 7px !important;
    column-gap: 14px !important;
    align-items: center !important;
    margin: 0 !important;
}

.tm-extra-product-options-field.mf-epo-has-thumb .tc-element-inner-wrap > .tc-row {
    grid-template-columns: 56px minmax(0, 1fr) !important;
}

/* Colonna 1: Miniatura foto cliccabile (sempre visibile fuori) */
.mf-epo-thumb-btn {
    grid-column: 1 !important;
    grid-row: 1 / 3 !important;
    align-self: center !important;
    position: relative !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 56px !important;
    height: 56px !important;
    padding: 3px !important;
    margin: 0 !important;
    border-radius: 12px !important;
    border: 1.5px solid #e2ecf5 !important;
    background: #ffffff !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    box-shadow: 0 2px 6px rgba(83, 98, 123, 0.06) !important;
    transition: border-color 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease !important;
}

.mf-epo-thumb-btn:hover {
    border-color: #0099e5 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 153, 229, 0.16) !important;
}

.mf-epo-thumb-btn img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    border-radius: 8px !important;
}

.mf-epo-thumb-zoom {
    position: absolute !important;
    right: 3px !important;
    bottom: 3px !important;
    width: 17px !important;
    height: 17px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1px solid rgba(0, 153, 229, 0.25) !important;
    color: #0088cc !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 1px 3px rgba(83, 98, 123, 0.14) !important;
}

/* Colonna 2, Riga 1: Checkbox + Titolo + Prezzo sempre allineati su una riga pulita */
.tm-extra-product-options-field .tc-element-container {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
}

.tm-extra-product-options-field.mf-epo-has-thumb .tc-element-container {
    grid-column: 2 !important;
}

.tm-extra-product-options-field .tc-label-wrap {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
}

.tm-extra-product-options-field .tc-epo-style-wrapper {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Selettore moderno Apple-style al posto del cerchio vuoto generico */
.tm-extra-product-options-field .tc-label.tm-epo-style,
.tm-extra-product-options-field .tc-label.tm-epo-style.circle {
    position: relative !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    border-radius: 7px !important;
    border: 1.75px solid #a8c7df !important;
    background: #f2f8fd !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: inset 0 1px 2px rgba(83, 98, 123, 0.06) !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.16s ease !important;
}

.tm-extra-product-options-field .tc-label.tm-epo-style::before,
.tm-extra-product-options-field .tc-label.tm-epo-style.circle::before {
    content: "+" !important;
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #0088cc !important;
    background: transparent !important;
    border: none !important;
    opacity: 0.9 !important;
    transform: translateY(-0.5px) scale(1) !important;
    transition: opacity 0.18s ease, transform 0.18s ease, color 0.18s ease !important;
}

.tm-extra-product-options-field .tc-label.tm-epo-style::after,
.tm-extra-product-options-field .tc-label.tm-epo-style.circle::after {
    content: "" !important;
    position: absolute !important;
    width: 5px !important;
    height: 9px !important;
    border: none !important;
    border-right: 2.2px solid #ffffff !important;
    border-bottom: 2.2px solid #ffffff !important;
    background: transparent !important;
    top: 4px !important;
    left: 7px !important;
    opacity: 0 !important;
    transform: rotate(45deg) scale(0.55) !important;
    transition: opacity 0.18s ease, transform 0.18s ease !important;
}

.tm-extra-product-options-field:hover .tc-label.tm-epo-style,
.tm-extra-product-options-field:hover .tc-label.tm-epo-style.circle {
    border-color: #0099e5 !important;
    background: #e4f4fe !important;
}

.tm-extra-product-options-field:hover .tc-label.tm-epo-style::before,
.tm-extra-product-options-field:hover .tc-label.tm-epo-style.circle::before {
    color: #0077b6 !important;
}

/* Stato selezionato (checked) */
.tm-extra-product-options-field:has(input:checked) .tc-label.tm-epo-style,
.tm-extra-product-options-field:has(input:checked) .tc-label.tm-epo-style.circle,
.tm-extra-product-options-field.tc-active .tc-label.tm-epo-style,
.tm-extra-product-options-field.tc-active .tc-label.tm-epo-style.circle {
    background: linear-gradient(135deg, #0099e5 0%, #00ade6 100%) !important;
    border-color: #0099e5 !important;
    box-shadow: 0 3px 10px rgba(0, 153, 229, 0.30) !important;
}

.tm-extra-product-options-field:has(input:checked) .tc-label.tm-epo-style::before,
.tm-extra-product-options-field:has(input:checked) .tc-label.tm-epo-style.circle::before,
.tm-extra-product-options-field.tc-active .tc-label.tm-epo-style::before,
.tm-extra-product-options-field.tc-active .tc-label.tm-epo-style.circle::before {
    opacity: 0 !important;
    transform: scale(0.4) !important;
}

.tm-extra-product-options-field:has(input:checked) .tc-label.tm-epo-style::after,
.tm-extra-product-options-field:has(input:checked) .tc-label.tm-epo-style.circle::after,
.tm-extra-product-options-field.tc-active .tc-label.tm-epo-style::after,
.tm-extra-product-options-field.tc-active .tc-label.tm-epo-style.circle::after {
    opacity: 1 !important;
    transform: rotate(45deg) scale(1) !important;
}

.tm-extra-product-options-field .tc-col.tc-label.tm-label {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
}

.tm-extra-product-options-field .tc-label-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
}

/* Tutti i titoli opzioni uniformi in UPPERCASE elegante */
.tm-extra-product-options-field .tc-label-text {
    font-size: 12.5px !important;
    font-weight: 800 !important;
    color: #3d4b64 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    line-height: 1.3 !important;
    min-width: 0 !important;
}

.tm-extra-product-options-field:has(input:checked) .tc-label-text,
.tm-extra-product-options-field.tc-active .tc-label-text {
    color: #006b99 !important;
}

body.single-product .summary .tc-extra-product-options .tm-extra-product-options-field .tc-price-wrap {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
}

body.single-product .summary .tc-extra-product-options .tm-extra-product-options-field .tc-price-wrap span.price.tc-price {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    width: auto !important;
    min-width: 78px !important;
    text-align: center !important;
    white-space: nowrap !important;
    background: #eef8fe !important;
    background-color: #eef8fe !important;
    background-image: none !important;
    border: 1px solid rgba(0, 153, 229, 0.22) !important;
    border-radius: 999px !important;
    padding: 5px 12px !important;
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.15 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

body.single-product .summary .tc-extra-product-options .tm-extra-product-options-field .tc-price-wrap span.price.tc-price .amount,
body.single-product .summary .tc-extra-product-options .tm-extra-product-options-field .tc-price-wrap span.price.tc-price bdi,
body.single-product .summary .tc-extra-product-options .tm-extra-product-options-field .tc-price-wrap span.price.tc-price .woocommerce-Price-currencySymbol {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #0077b6 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    transition: color 0.2s ease !important;
}

body.single-product .summary .tc-extra-product-options .tm-extra-product-options-field:has(input:checked) .tc-price-wrap span.price.tc-price,
body.single-product .summary .tc-extra-product-options .tm-extra-product-options-field.tc-active .tc-price-wrap span.price.tc-price {
    background: #0099e5 !important;
    background-color: #0099e5 !important;
    background-image: linear-gradient(135deg, #0099e5 0%, #00ade6 100%) !important;
    border-color: #0099e5 !important;
    box-shadow: 0 2px 8px rgba(0, 153, 229, 0.24) !important;
}

body.single-product .summary .tc-extra-product-options .tm-extra-product-options-field:has(input:checked) .tc-price-wrap span.price.tc-price .amount,
body.single-product .summary .tc-extra-product-options .tm-extra-product-options-field:has(input:checked) .tc-price-wrap span.price.tc-price bdi,
body.single-product .summary .tc-extra-product-options .tm-extra-product-options-field:has(input:checked) .tc-price-wrap span.price.tc-price .woocommerce-Price-currencySymbol,
body.single-product .summary .tc-extra-product-options .tm-extra-product-options-field.tc-active .tc-price-wrap span.price.tc-price .amount,
body.single-product .summary .tc-extra-product-options .tm-extra-product-options-field.tc-active .tc-price-wrap span.price.tc-price bdi,
body.single-product .summary .tc-extra-product-options .tm-extra-product-options-field.tc-active .tc-price-wrap span.price.tc-price .woocommerce-Price-currencySymbol {
    color: #ffffff !important;
    background: transparent !important;
    border: none !important;
}

/* Colonna 2, Riga 2: Barra azioni ben allineata (Vedi Esempio a sinistra + Dettagli a destra) */
.mf-epo-meta-bar {
    grid-column: 1 !important;
    grid-row: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    padding-top: 2px !important;
    box-sizing: border-box !important;
}

.tm-extra-product-options-field.mf-epo-has-thumb .mf-epo-meta-bar {
    grid-column: 2 !important;
}

.mf-epo-meta-left {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
}

.mf-epo-example-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    color: #0088cc !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    padding: 3px 0 !important;
    cursor: pointer !important;
    transition: color 0.18s ease !important;
}

.mf-epo-example-link:hover {
    color: #006b99 !important;
    text-decoration: underline !important;
}

.mf-epo-link-ico {
    display: inline-flex !important;
    align-items: center !important;
    color: #0099e5 !important;
    flex-shrink: 0 !important;
    opacity: 0.9 !important;
}

.mf-epo-desc-toggle {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    min-height: 26px !important;
    padding: 4px 11px !important;
    border-radius: 999px !important;
    border: 1px solid #e2eaf2 !important;
    background: #f6f9fc !important;
    color: #53627b !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.01em !important;
    text-transform: none !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
}

.mf-epo-desc-toggle:hover,
.mf-epo-desc-toggle:focus-visible {
    background: #e5f4fd !important;
    border-color: rgba(0, 153, 229, 0.4) !important;
    color: #0077b6 !important;
    outline: none !important;
}

.tm-extra-product-options-field.mf-epo-desc-open .mf-epo-desc-toggle {
    background: #e5f4fd !important;
    border-color: rgba(0, 153, 229, 0.35) !important;
    color: #0077b6 !important;
}

.mf-epo-toggle-chevron {
    display: block !important;
    flex-shrink: 0 !important;
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.tm-extra-product-options-field.mf-epo-desc-open .mf-epo-toggle-chevron {
    transform: rotate(180deg) !important;
}

/* Riga 3 (tutta larghezza): Descrizione chiusa di default, aperta fluidamente con Dettagli */
.tm-extra-product-options .tm-extra-product-options-field .tm-element-description {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    width: 100% !important;
    display: none !important;
    margin: 4px 0 0 0 !important;
    padding: 10px 0 0 0 !important;
    border-top: 1px dashed #dde7f0 !important;
    box-sizing: border-box !important;
}

.tm-extra-product-options .tm-extra-product-options-field .tm-element-description p:last-child {
    margin-bottom: 0 !important;
}

.tm-extra-product-options .tm-extra-product-options-field.mf-epo-desc-open .tm-element-description {
    display: block !important;
    animation: mfEpoDescFadeIn 0.22s ease forwards !important;
}

@keyframes mfEpoDescFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .tm-extra-product-options-fields > li.tm-extra-product-options-field {
        padding: 12px 13px !important;
    }

    .tm-extra-product-options-field.mf-epo-has-thumb .tc-element-inner-wrap > .tc-row {
        grid-template-columns: 48px minmax(0, 1fr) !important;
        column-gap: 11px !important;
        row-gap: 6px !important;
    }

    .mf-epo-thumb-btn {
        width: 48px !important;
        height: 48px !important;
        border-radius: 10px !important;
    }

    .tm-extra-product-options-field .tc-label-text {
        font-size: 11.5px !important;
        letter-spacing: 0.03em !important;
    }

    body.single-product .summary .tc-extra-product-options .tm-extra-product-options-field .tc-price-wrap span.price.tc-price {
        padding: 4px 10px !important;
        min-width: 72px !important;
        font-size: 12px !important;
    }

    body.single-product .summary .tc-extra-product-options .tm-extra-product-options-field .tc-price-wrap span.price.tc-price .amount,
    body.single-product .summary .tc-extra-product-options .tm-extra-product-options-field .tc-price-wrap span.price.tc-price bdi,
    body.single-product .summary .tc-extra-product-options .tm-extra-product-options-field .tc-price-wrap span.price.tc-price .woocommerce-Price-currencySymbol {
        font-size: 12px !important;
    }

    .mf-epo-example-link {
        font-size: 11.5px !important;
        min-height: 26px !important;
    }

    .mf-epo-desc-toggle {
        font-size: 11px !important;
        padding: 4px 10px !important;
        min-height: 26px !important;
    }
}

