/* MACFaaast Module: Sidebar Mini-Cart Drawer, Variation Pills & Floating Compare Dock */

/* --- PREMIUM SHOPPING CART REDESIGN BY ANTIGRAVITY --- */

/* [MODULAR CSS] Section CART_1 moved to /css/ conditional bundle */
/* --- MINI-CART QUANTITY SELECTOR OPTIMIZATION --- */

/* 1. Hide the selector if the product has only 1 piece in stock (max="1") */
.ts-tiny-cart-wrapper .quantity:has(input.qty[max="1"]) {
    display: none !important;
}

/* 2. Premium redesigned selector for items with more than 1 piece */
.ts-tiny-cart-wrapper .quantity .number-button {
    display: inline-flex !important;
    align-items: center !important;
    background: #f5f5f7 !important;
    /* Apple Light Gray */
    border: 1px solid #d2d2d7 !important;
    border-radius: 10px !important;
    /* Rounded Apple style */
    padding: 2px 4px !important;
    width: auto !important;
    min-width: 85px !important;
    height: 32px !important;
    overflow: hidden !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}

.ts-tiny-cart-wrapper .quantity .number-button input.minus,
.ts-tiny-cart-wrapper .quantity .number-button input.plus {
    background: transparent !important;
    border: none !important;
    color: #00ade6 !important;
    /* Brand Azzurro */
    font-size: 18px !important;
    width: 28px !important;
    height: 28px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    transition: all 0.2s ease !important;
    border-radius: 6px !important;
    font-weight: 400 !important;
}

.ts-tiny-cart-wrapper .quantity .number-button input.minus:hover,
.ts-tiny-cart-wrapper .quantity .number-button input.plus:hover {
    background: rgba(0, 173, 230, 0.08) !important;
}

.ts-tiny-cart-wrapper .quantity .number-button input.qty {
    width: 25px !important;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1d1d1f !important;
    padding: 0 !important;
    pointer-events: none !important;
}

/* Space adjustment for price when selector disappears/appears */
.ts-tiny-cart-wrapper .woocommerce-mini-cart-item .price {
    margin-left: auto !important;
    font-weight: 700 !important;
    color: #1d1d1f !important;
}



/* 3. MINI-CART: Aesthetic & Functional Refinement (Fixing Overlap) */
.ts-tiny-cart-wrapper .quantity .number-button {
    min-width: 100px !important;
    /* Fixed width to prevent overlaps and overcrowding */
    justify-content: space-between !important;
    border: 1px solid #d2d2d7 !important;
    padding: 0 4px !important;
    background: #fbfbfd !important;
    /* Slightly lighter gray */
    box-shadow: none !important;
    /* Removed redundant double border */
}

.ts-tiny-cart-wrapper .quantity .number-button input.qty {
    width: auto !important;
    flex-grow: 1 !important;
}

.ts-tiny-cart-wrapper .quantity .number-button input.minus,
.ts-tiny-cart-wrapper .quantity .number-button input.plus {
    width: 32px !important;
    /* Slightly wider buttons for easier click */
    height: 32px !important;
}



/* 4. Mini-Cart: Final Aesthetic Sync */
.ts-tiny-cart-wrapper .quantity .number-button {
    min-width: 110px !important;
    height: 36px !important;
    border-radius: 10px !important;
    border: 1px solid #d2d2d7 !important;
    background: #f5f5f7 !important;
    padding: 2px !important;
    justify-content: space-between !important;
}

.ts-tiny-cart-wrapper .quantity .number-button input.qty {
    font-size: 14px !important;
}

/* --- PREMIUM QUANTITY UI BY ANTIGRAVITY (FIXED V11 - FORCED 3-ROW GRID) --- */

/* 1. Target the LI with maximum specificity */
.woocommerce.widget_shopping_cart .cart_list li.woocommerce-mini-cart-item {
    display: grid !important;
    grid-template-columns: 100px 1fr !important;
    grid-template-areas:
        "name name"
        "photo price"
        "qty remove" !important;
    gap: 12px 15px !important;
    padding: 20px 15px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    align-items: center !important;
    position: relative !important;
}

/* 2. Flatten hierarchy to allow grid mapping */
.woocommerce.widget_shopping_cart .cart_list li.woocommerce-mini-cart-item .cart-item-wrapper {
    display: contents !important;
}

/* 3. ROW 1: Product Name (Top, Full Width) */
.woocommerce.widget_shopping_cart .cart_list li.woocommerce-mini-cart-item .product-name,
.woocommerce.widget_shopping_cart .cart_list li.woocommerce-mini-cart-item h3 {
    grid-area: name !important;
    display: block !important;
    width: 100% !important;
    margin: 0 0 5px 0 !important;
    padding: 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: #1d1d1f !important;
}

/* 4. ROW 2: Photo (Left) */
.woocommerce.widget_shopping_cart .cart_list li.woocommerce-mini-cart-item a.thumbnail {
    grid-area: photo !important;
    display: block !important;
    width: 90px !important;
    height: 90px !important;
}

.woocommerce.widget_shopping_cart .cart_list li.woocommerce-mini-cart-item a.thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: #fbfbfb !important;
    border-radius: 8px !important;
}

/* 5. ROW 2: Price (Right, Aligned to Photo) */
.woocommerce.widget_shopping_cart .cart_list li.woocommerce-mini-cart-item .price,
.woocommerce.widget_shopping_cart .cart_list li.woocommerce-mini-cart-item .subtotal,
.woocommerce.widget_shopping_cart .cart_list li.woocommerce-mini-cart-item .woocommerce-Price-amount {
    grid-area: price !important;
    text-align: right !important;
    align-self: center !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1d1d1f !important;
    margin: 0 !important;
}

/* 6. ROW 3: Quantity Selector (Bottom Left) */
.woocommerce.widget_shopping_cart .cart_list li.woocommerce-mini-cart-item .ts-premium-qty-wrapper {
    grid-area: qty !important;
    display: flex !important;
    justify-content: flex-start !important;
    margin: 0 !important;
}

.woocommerce.widget_shopping_cart .cart_list li.woocommerce-mini-cart-item .ts-premium-qty-wrapper .number-button {
    height: 38px !important;
    min-width: 110px !important;
}

/* 7. ROW 3: Remove Link (Bottom Right) */
.woocommerce.widget_shopping_cart .cart_list li.woocommerce-mini-cart-item a.remove {
    grid-area: remove !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    color: #ff3b30 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

.woocommerce.widget_shopping_cart .cart_list li.woocommerce-mini-cart-item a.remove::after {
    content: "Rimuovi" !important;
    margin-left: 6px !important;
    font-size: 13px !important;
}

/* Mobile alignment handled by Premium Cart Redesign */



/* ==========================================================================
   MACFAAAST - LUXURY APPLE-GRADE SIDEBAR MINI-CART DRAWER
   ========================================================================== */

/* 1. Stacking Context & Backdrop Blur */
#ts-shopping-cart-sidebar.ts-floating-sidebar {
    z-index: 2147483640 !important;
}

#ts-shopping-cart-sidebar div.overlay {
    z-index: 2147483641 !important;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(12px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s !important;
}

#ts-shopping-cart-sidebar.active div.overlay {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Force hide all header dropdowns while drawer is open */
#ts-shopping-cart-sidebar.active~* .sub-menu,
#ts-shopping-cart-sidebar.active~* .ts-menu-drop-down,
body.cart-sidebar-open .sub-menu,
body.cart-sidebar-open .ts-menu-drop-down,
body.cart-sidebar-open .menu-item:hover>.sub-menu {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

body.floating-sidebar-active:has(#ts-shopping-cart-sidebar.active) .header-sticky,
body.floating-sidebar-active:has(#ts-shopping-cart-sidebar.active) .is-sticky,
body.floating-sidebar-active:has(#ts-shopping-cart-sidebar.active) .ts-header,
body.floating-sidebar-active:has(#ts-shopping-cart-sidebar.active) #ts-header,
body.floating-sidebar-active:has(#ts-shopping-cart-sidebar.active) .sticky-wrapper {
    z-index: 999 !important;
}

/* 2. Drawer Panel Container */
#ts-shopping-cart-sidebar .ts-sidebar-content {
    z-index: 2147483642 !important;
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    width: 460px !important;
    max-width: 94vw !important;
    background: #ffffff !important;
    border-left: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: -16px 0 50px rgba(15, 23, 42, 0.16) !important;
    padding: 24px 24px 22px 24px !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    border-top-left-radius: 28px !important;
    border-bottom-left-radius: 28px !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow: hidden !important;
}

/* 3. Circular Glass Close Button (Crisp SVG) */
#ts-shopping-cart-sidebar .close {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background-color: #f1f5f9 !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23475569" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: 14px 14px !important;
    border: 1px solid #e2e8f0 !important;
    display: block !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 30 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
}

#ts-shopping-cart-sidebar .close::before,
#ts-shopping-cart-sidebar .close::after {
    display: none !important;
    content: none !important;
}

#ts-shopping-cart-sidebar .close:hover {
    background-color: #e2e8f0 !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%230f172a" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>') !important;
    transform: rotate(90deg) scale(1.06) !important;
}

/* 4. Drawer Header Title */
#ts-shopping-cart-sidebar .theme-title {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.02em !important;
    margin: 0 0 16px 0 !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
}

#ts-shopping-cart-sidebar .theme-title::before {
    content: "" !important;
    display: inline-block !important;
    width: 24px !important;
    height: 24px !important;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%2300ade6" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"/><line x1="3" y1="6" x2="21" y2="6"/><path d="M16 10a4 4 0 0 1-8 0"/></svg>') no-repeat center center / contain !important;
    flex-shrink: 0 !important;
}

/* 5. Flexible Layout: Body scrolls, Footer stays docked */
#ts-shopping-cart-sidebar .ts-tiny-cart-wrapper,
#ts-shopping-cart-sidebar .cart-dropdown-form,
#ts-shopping-cart-sidebar .form-content,
#ts-shopping-cart-sidebar .cart-wrapper,
#ts-shopping-cart-sidebar .cart-content {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: 100% !important;
}

#ts-shopping-cart-sidebar .cart_list {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 2px 4px 10px 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

#ts-shopping-cart-sidebar .cart_list::-webkit-scrollbar {
    width: 5px;
}

#ts-shopping-cart-sidebar .cart_list::-webkit-scrollbar-track {
    background: transparent;
}

#ts-shopping-cart-sidebar .cart_list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

/* Fast Shipping / Warranty badge at top of item list */
#ts-shopping-cart-sidebar .cart_list::before {
    content: "⚡ Spedizione Rapida 24/48h & Garanzia inclusa" !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 100%) !important;
    border: 1px solid #a7f3d0 !important;
    color: #065f46 !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    padding: 8px 12px !important;
    border-radius: 12px !important;
    margin-bottom: 14px !important;
    letter-spacing: 0.01em !important;
}

/* 6. Mini-Cart Items: Luxury Apple Card Design (Flex Row) */
#ts-shopping-cart-sidebar .cart_list li.woocommerce-mini-cart-item,
#ts-shopping-cart-sidebar .ts-tiny-cart-wrapper .dropdown-container ul.cart_list li {
    position: relative !important;
    padding: 16px !important;
    margin-bottom: 12px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 18px !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
    align-items: flex-start !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

#ts-shopping-cart-sidebar .cart_list li.woocommerce-mini-cart-item:hover {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06) !important;
    transform: translateY(-1px) !important;
}

/* Product Thumbnail (Fixed Left Anchor) */
#ts-shopping-cart-sidebar .cart_list li a.thumbnail,
#ts-shopping-cart-sidebar .ts-floating-sidebar .ts-tiny-cart-wrapper .cart_list li>a {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    float: none !important;
    margin: 0 !important;
}

#ts-shopping-cart-sidebar .cart_list li a.thumbnail img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    width: auto !important;
    height: auto !important;
}

/* Product Details Wrapper (Right Side Flex Column) */
#ts-shopping-cart-sidebar .cart_list li .cart-item-wrapper,
#ts-shopping-cart-sidebar .ts-tiny-cart-wrapper .cart_list li .cart-item-wrapper {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: auto !important;
    padding: 0 34px 0 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    position: static !important;
    float: none !important;
}

/* Product Name */
#ts-shopping-cart-sidebar .cart_list li .product-name {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    word-break: break-word !important;
    max-width: 100% !important;
}

#ts-shopping-cart-sidebar .cart_list li .product-name a {
    color: #0f172a !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

#ts-shopping-cart-sidebar .cart_list li .product-name a:hover {
    color: #00ade6 !important;
}

/* Price */
#ts-shopping-cart-sidebar .cart_list li .price {
    display: block !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: #00ade6 !important;
    letter-spacing: -0.01em !important;
    margin: 2px 0 4px 0 !important;
}

#ts-shopping-cart-sidebar .cart_list li .cart-item-wrapper>.subtotal {
    display: none !important;
}

/* Apple-style Quantity Stepper Pill (Single Border - Double Border Removed) */
#ts-shopping-cart-sidebar .cart_list li .ts-premium-qty-wrapper {
    margin-top: 6px !important;
    display: block !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

#ts-shopping-cart-sidebar .cart_list li .quantity,
#ts-shopping-cart-sidebar .cart_list li div.quantity {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    position: static !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

#ts-shopping-cart-sidebar .cart_list li .quantity:focus-within {
    border: none !important;
    box-shadow: none !important;
}

#ts-shopping-cart-sidebar .cart_list li .quantity .number-button {
    display: inline-flex !important;
    align-items: center !important;
    position: relative !important;
    width: auto !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 999px !important;
    background: #f8fafc !important;
    height: 30px !important;
    padding: 2px !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}

#ts-shopping-cart-sidebar .cart_list li .quantity input.minus,
#ts-shopping-cart-sidebar .cart_list li .quantity input.plus {
    position: static !important;
    width: 26px !important;
    height: 26px !important;
    border: none !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #475569 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    line-height: 1 !important;
    transition: all 0.2s ease !important;
    z-index: 1 !important;
}

#ts-shopping-cart-sidebar .cart_list li .quantity input.minus:hover,
#ts-shopping-cart-sidebar .cart_list li .quantity input.plus:hover {
    background: #ffffff !important;
    color: #00ade6 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
}

#ts-shopping-cart-sidebar .cart_list li .quantity input.qty {
    position: static !important;
    width: 32px !important;
    height: 26px !important;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    padding: 0 !important;
    margin: 0 !important;
    -moz-appearance: textfield !important;
}

#ts-shopping-cart-sidebar .cart_list li .quantity input.qty::-webkit-inner-spin-button,
#ts-shopping-cart-sidebar .cart_list li .quantity input.qty::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Remove / Delete Button (Trash Can Icon - Vertically Centered) */
#ts-shopping-cart-sidebar .cart_list li a.remove {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    right: 14px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
    z-index: 2 !important;
}

#ts-shopping-cart-sidebar .cart_list li a.remove::before {
    content: "" !important;
    display: block !important;
    width: 15px !important;
    height: 15px !important;
    background-color: #94a3b8 !important;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 6h18"/><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/><line x1="10" y1="11" x2="10" y2="17"/><line x1="14" y1="11" x2="14" y2="17"/></svg>') no-repeat center center / contain !important;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 6h18"/><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/><line x1="10" y1="11" x2="10" y2="17"/><line x1="14" y1="11" x2="14" y2="17"/></svg>') no-repeat center center / contain !important;
    transition: background-color 0.2s ease !important;
}

#ts-shopping-cart-sidebar .cart_list li a.remove:hover {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
    transform: translateY(-50%) scale(1.08) !important;
}

#ts-shopping-cart-sidebar .cart_list li a.remove:hover::before {
    background-color: #ef4444 !important;
}

/* 7. Docked Footer: Subtotal & Apple Grade CTA Buttons */
#ts-shopping-cart-sidebar .dropdown-footer {
    flex-shrink: 0 !important;
    margin-top: auto !important;
    padding-top: 18px !important;
    border-top: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.03) !important;
}

#ts-shopping-cart-sidebar .dropdown-footer .total {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    padding: 0 0 4px 0 !important;
    margin: 0 !important;
}

#ts-shopping-cart-sidebar .dropdown-footer .total .total-title {
    font-size: 0 !important;
    line-height: 1 !important;
}

#ts-shopping-cart-sidebar .dropdown-footer .total .total-title::after {
    content: "Subtotale" !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #475569 !important;
    letter-spacing: -0.01em !important;
}

#ts-shopping-cart-sidebar .dropdown-footer .total .woocommerce-Price-amount {
    font-size: 1.55rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.02em !important;
}

#ts-shopping-cart-sidebar .dropdown-footer .total::before {
    content: "IVA inclusa • Spedizione calcolata al checkout";
    display: block;
    width: 100%;
    order: 3;
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 2px;
    margin-bottom: 12px;
}

#ts-shopping-cart-sidebar .dropdown-footer .total::after {
    content: "🚚 Spedizione 24/48h   •   🛡️ Garanzia 24 Mesi   •   🔒 Sicuro";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    order: 4;
    font-size: 0.74rem;
    font-weight: 700;
    color: #0369a1;
    background: #f0f9ff;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #bae6fd;
    text-align: center;
    margin-bottom: 14px;
    box-sizing: border-box;
}

/* Primary Button: Procedi con l'ordine */
#ts-shopping-cart-sidebar .dropdown-footer a.button.checkout-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    background: linear-gradient(135deg, #00ade6 0%, #008ecc 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 15px 24px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0.01em !important;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(0, 173, 230, 0.35) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
    margin: 0 0 10px 0 !important;
    order: 5 !important;
    box-sizing: border-box !important;
}

#ts-shopping-cart-sidebar .dropdown-footer a.button.checkout-button::after {
    content: " →";
    font-weight: 800;
    margin-left: 6px;
    transition: transform 0.2s ease;
}

#ts-shopping-cart-sidebar .dropdown-footer a.button.checkout-button:hover {
    background: linear-gradient(135deg, #0092c8 0%, #0077b6 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 26px rgba(0, 173, 230, 0.5) !important;
    color: #ffffff !important;
}

#ts-shopping-cart-sidebar .dropdown-footer a.button.checkout-button:hover::after {
    transform: translateX(4px);
}

/* Secondary Button: Vedi Carrello */
#ts-shopping-cart-sidebar .dropdown-footer a.button.view-cart {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    background: #f8fafc !important;
    color: #334155 !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 999px !important;
    padding: 13px 24px !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    text-transform: none !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    margin: 0 !important;
    order: 6 !important;
    box-sizing: border-box !important;
}

#ts-shopping-cart-sidebar .dropdown-footer a.button.view-cart:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    transform: translateY(-1px) !important;
}

#ts-shopping-cart-sidebar .dropdown-footer::after {
    content: "🔒 Pagamenti protetti • Carta, PayPal, Apple Pay, Klarna a rate";
    display: block;
    text-align: center;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #94a3b8;
    margin-top: 14px;
    letter-spacing: 0.01em;
    order: 7;
}

/* 8. Empty State in Drawer (Apple Grade) */
#ts-shopping-cart-sidebar .cart-dropdown-form .form-content>label {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 60px 24px 20px 24px !important;
    position: static !important;
    transform: none !important;
    margin: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#ts-shopping-cart-sidebar .cart-dropdown-form .form-content>label svg {
    display: none !important;
}

#ts-shopping-cart-sidebar .cart-dropdown-form .form-content>label::before {
    content: "" !important;
    display: block !important;
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    background: #f0f9ff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 24 24" fill="none" stroke="%2300ade6" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"/><line x1="3" y1="6" x2="21" y2="6"/><path d="M16 10a4 4 0 0 1-8 0"/></svg>') no-repeat center center !important;
    margin: 0 auto 20px auto !important;
    border: 1px solid rgba(0, 173, 230, 0.2) !important;
    box-shadow: 0 4px 16px rgba(0, 173, 230, 0.12) !important;
}

#ts-shopping-cart-sidebar .cart-dropdown-form .form-content>label span {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 8px !important;
    letter-spacing: -0.01em !important;
}

#ts-shopping-cart-sidebar .cart-dropdown-form .form-content>label::after {
    content: "Il tuo carrello è ancora vuoto. Scopri la nostra selezione di iPhone, iPad, MacBook e PC ricondizionati con garanzia fino a 24 mesi." !important;
    display: block !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    color: #64748b !important;
    line-height: 1.55 !important;
    max-width: 320px !important;
    margin: 0 auto !important;
}

#ts-shopping-cart-sidebar .mf-empty-cart-cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 16px auto 40px auto !important;
    background: linear-gradient(135deg, #00ade6 0%, #008ecc 100%) !important;
    color: #ffffff !important;
    padding: 13px 30px !important;
    border-radius: 999px !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(0, 173, 230, 0.35) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
}

#ts-shopping-cart-sidebar .mf-empty-cart-cta:hover {
    background: linear-gradient(135deg, #0092c8 0%, #0077b6 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 173, 230, 0.5) !important;
    color: #ffffff !important;
}

/* 9. Mobile Responsiveness */
@media (max-width: 768px) {
    #ts-shopping-cart-sidebar .ts-sidebar-content {
        width: 100% !important;
        max-width: 100vw !important;
        border-radius: 0 !important;
        padding: 20px 16px 16px 16px !important;
        padding-bottom: max(16px, env(safe-area-inset-bottom)) !important;
    }

    #ts-shopping-cart-sidebar .cart_list li.woocommerce-mini-cart-item {
        padding: 14px 12px !important;
        gap: 12px !important;
    }

    #ts-shopping-cart-sidebar .cart_list li a.thumbnail {
        width: 72px !important;
        height: 72px !important;
        min-width: 72px !important;
    }

    #ts-shopping-cart-sidebar .cart_list li .product-name {
        font-size: 0.85rem !important;
    }

    #ts-shopping-cart-sidebar .cart_list li a.remove {
        right: 10px !important;
        width: 30px !important;
        height: 30px !important;
    }
}


/* ==========================================================================
   CHECKOUT REVIEW ORDER ("IL TUO ORDINE") + CART + MINI-CART VARIATIONS UI
   Elimina il float rotto di WooCommerce (128G / B) e rende le varianti card/pill
   ========================================================================== */
body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table {
    width: 100% !important;
    table-layout: auto !important;
    border-collapse: collapse !important;
}

body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table th.product-name,
body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table td.product-name {
    width: 72% !important;
    padding: 14px 12px 14px 0 !important;
    vertical-align: top !important;
    text-align: left !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table th.product-total,
body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table td.product-total {
    width: 28% !important;
    padding: 14px 0 14px 8px !important;
    vertical-align: top !important;
    text-align: right !important;
    white-space: nowrap !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}

body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table td.product-name strong.product-quantity {
    display: inline-flex !important;
    align-items: center !important;
    padding: 1px 8px !important;
    margin-left: 5px !important;
    border-radius: 999px !important;
    background: #e0f2fe !important;
    color: #0284c7 !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    vertical-align: middle !important;
}

/* Spec Card 2-colonne pulita per dl.variation su Checkout, Thank-You e Mini-Cart */
body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table td.product-name dl.variation,
body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table td.product-name dl.tc-epo-metadata.variation,
#ts-shopping-cart-sidebar dl.variation,
table.woocommerce-table--order-details dl.variation {
    display: grid !important;
    grid-template-columns: max-content minmax(0, 1fr) !important;
    column-gap: 10px !important;
    row-gap: 4px !important;
    align-items: baseline !important;
    width: 100% !important;
    margin: 9px 0 0 0 !important;
    padding: 9px 12px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 11px !important;
    box-sizing: border-box !important;
    text-align: left !important;
}

body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table td.product-name dl.variation dt,
body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table td.product-name dl.tc-epo-metadata.variation dt,
#ts-shopping-cart-sidebar dl.variation dt,
table.woocommerce-table--order-details dl.variation dt {
    float: none !important;
    clear: none !important;
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
    text-transform: none !important;
}

body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table td.product-name dl.variation dd,
body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table td.product-name dl.tc-epo-metadata.variation dd,
#ts-shopping-cart-sidebar dl.variation dd,
table.woocommerce-table--order-details dl.variation dd {
    float: none !important;
    clear: none !important;
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    line-height: 1.4 !important;
}

body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table td.product-name dl.variation dd p,
#ts-shopping-cart-sidebar dl.variation dd p,
table.woocommerce-table--order-details dl.variation dd p {
    margin: 0 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.4 !important;
}


/* ==========================================================================
   FLOATING STICKY PILL + BOTTOM COMPARE DOCK + TOAST
   ========================================================================== */
body .ts-stick-compare-button.mf-compare-fab {
    background: #0f172a !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    padding: 11px 18px !important;
    border: 1.5px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25) !important;
    gap: 8px !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
}

body .ts-stick-compare-button.mf-compare-fab .number {
    color: #38bdf8 !important;
    font-weight: 800 !important;
}

body .ts-compare-popup.mf-compare-dock {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-top: 1px solid #e2e8f0 !important;
    border-radius: 24px 24px 0 0 !important;
    box-shadow: 0 -14px 44px rgba(15, 23, 42, 0.14) !important;
    padding: 0 !important;
}

body .ts-compare-popup.mf-compare-dock .content-wrapper {
    width: 100% !important;
    max-width: 1440px !important;
    margin: 0 auto !important;
    padding: 16px 48px 20px 48px !important;
    display: block !important;
    box-sizing: border-box !important;
}

.mf-dock-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
}

.mf-dock-header-left {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.mf-dock-badge {
    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.06em !important;
    line-height: 1.2 !important;
}

.mf-dock-counter {
    font-size: 13px !important;
    color: #475569 !important;
    font-weight: 500 !important;
}

.mf-dock-counter strong {
    color: #0f172a !important;
    font-weight: 800 !important;
}

body .ts-compare-popup.mf-compare-dock .close.mf-dock-close {
    position: static !important;
    top: auto !important;
    right: auto !important;
    width: auto !important;
    height: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 5px 12px !important;
    border-radius: 999px !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    cursor: pointer !important;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease !important;
}

body .ts-compare-popup.mf-compare-dock .close.mf-dock-close::before,
body .ts-compare-popup.mf-compare-dock .item .remove.mf-dock-remove::before {
    content: none !important;
    display: none !important;
}

body .ts-compare-popup.mf-compare-dock .close.mf-dock-close:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

.mf-dock-close-x {
    font-size: 11px !important;
    line-height: 1 !important;
}

.mf-dock-body {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
}

body .ts-compare-popup.mf-compare-dock .items {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    align-items: stretch !important;
}

body .ts-compare-popup.mf-compare-dock .items .item {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    outline: none !important;
    border-radius: 16px !important;
    padding: 10px 12px !important;
    margin: 0 !important;
    position: relative !important;
    min-height: 82px !important;
    display: flex !important;
    align-items: center !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    box-sizing: border-box !important;
}

body .ts-compare-popup.mf-compare-dock .items .item:not(.empty):hover {
    border-color: #bae6fd !important;
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.08) !important;
}

body .ts-compare-popup.mf-compare-dock .items .item.empty {
    border: 1.5px dashed #cbd5e1 !important;
    outline: none !important;
    background: #f8fafc !important;
    box-shadow: none !important;
    justify-content: flex-start !important;
    cursor: pointer !important;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease !important;
}

body .ts-compare-popup.mf-compare-dock .items .item.empty:hover {
    border-color: #00ade6 !important;
    background: #f0f9ff !important;
}

body .ts-compare-popup.mf-compare-dock .items .item.empty:hover .mf-dock-empty-plus {
    background: #00ade6 !important;
    border-color: #00ade6 !important;
    color: #ffffff !important;
}

body .ts-compare-popup.mf-compare-dock .items .item.empty:hover .mf-dock-empty-copy strong {
    color: #0284c7 !important;
}

.mf-dock-picker[hidden] {
    display: none !important;
}

.mf-dock-picker.is-open {
    display: block !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 12px 14px !important;
    margin-bottom: 12px !important;
}

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

.mf-dock-picker-head strong {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.mf-dock-picker-controls {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 1 1 320px !important;
    max-width: 440px !important;
    justify-content: flex-end !important;
}

.mf-dock-search-input {
    width: 100% !important;
    height: 36px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    border: 1.5px solid #cbd5e1 !important;
    background: #ffffff !important;
    font-size: 12.5px !important;
    color: #0f172a !important;
    outline: none !important;
}

.mf-dock-search-input:focus {
    border-color: #00ade6 !important;
    box-shadow: 0 0 0 3px rgba(0, 173, 230, 0.14) !important;
}

.mf-dock-picker-close {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

.mf-dock-picker-close:hover {
    background: #fee2e2 !important;
    color: #dc2626 !important;
    border-color: #fecaca !important;
}

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

@media (max-width: 991px) {
    .mf-dock-picker-results {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 639px) {
    .mf-dock-picker-results {
        grid-template-columns: 1fr !important;
    }
}

body .ts-compare-popup.mf-compare-dock .items .item.empty::before {
    display: none !important;
    content: none !important;
}

body .ts-compare-popup.mf-compare-dock .items .item.empty > .mf-dock-empty-inner {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    opacity: 1 !important;
}

body .ts-compare-popup.mf-compare-dock .items .item.empty > .mf-dock-remove {
    display: none !important;
}

.mf-dock-empty-plus {
    width: 40px !important;
    height: 40px !important;
    border-radius: 11px !important;
    background: #eef2f6 !important;
    border: 1px solid #e2e8f0 !important;
    color: #94a3b8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    flex: 0 0 40px !important;
    line-height: 1 !important;
}

.mf-dock-empty-copy {
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
    min-width: 0 !important;
}

.mf-dock-empty-copy strong {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    line-height: 1.25 !important;
}

.mf-dock-empty-copy span {
    font-size: 11px !important;
    color: #94a3b8 !important;
    line-height: 1.25 !important;
}

body .ts-compare-popup.mf-compare-dock .items .item .product-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;
    width: 100% !important;
    min-width: 0 !important;
}

body .ts-compare-popup.mf-compare-dock .items .item .product-thumbnail {
    width: 56px !important;
    height: 56px !important;
    border-radius: 11px !important;
    background: #f8fafc !important;
    border: 1px solid #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 56px !important;
    padding: 4px !important;
    box-sizing: border-box !important;
}

body .ts-compare-popup.mf-compare-dock .items .item .product-thumbnail a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}

body .ts-compare-popup.mf-compare-dock .items .item .product-thumbnail img {
    max-height: 46px !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 !important;
}

body .ts-compare-popup.mf-compare-dock .items .item .product-meta {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 5px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding-right: 22px !important;
}

body .ts-compare-popup.mf-compare-dock .items .item .product-name {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    line-height: 1.28 !important;
    color: #0f172a !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin: 0 !important;
    width: 100% !important;
}

body .ts-compare-popup.mf-compare-dock .items .item .product-name a {
    color: #0f172a !important;
    text-decoration: none !important;
}

body .ts-compare-popup.mf-compare-dock .items .item .product-name a:hover {
    color: #0284c7 !important;
}

.mf-dock-price-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    width: auto !important;
    max-width: 100% !important;
}

.mf-dock-price-now {
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: #0284c7 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
}

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

.mf-dock-price-old {
    font-size: 11.5px !important;
    font-weight: 500 !important;
    color: #94a3b8 !important;
    line-height: 1.1 !important;
    order: 0 !important;
    white-space: nowrap !important;
}

.mf-dock-save-tag {
    display: inline-flex !important;
    align-items: center !important;
    align-self: center !important;
    width: auto !important;
    padding: 2px 7px !important;
    border-radius: 999px !important;
    background: #dcfce7 !important;
    color: #15803d !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}

body .ts-compare-popup.mf-compare-dock .item .remove.mf-dock-remove {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    background: #f1f5f9 !important;
    border: none !important;
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: background 0.16s ease, color 0.16s ease !important;
}

body .ts-compare-popup.mf-compare-dock .item .remove.mf-dock-remove:hover {
    background: #fee2e2 !important;
    color: #dc2626 !important;
}

body .ts-compare-popup.mf-compare-dock .actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 6px !important;
    flex: 0 0 192px !important;
    width: 192px !important;
    margin: 0 !important;
}

body .ts-compare-popup.mf-compare-dock a.button.link-to-compare {
    background: #00ade6 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 12px 20px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    width: 100% !important;
    text-align: center !important;
    text-decoration: none !important;
    box-shadow: 0 6px 16px rgba(0, 173, 230, 0.28) !important;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease !important;
}

body .ts-compare-popup.mf-compare-dock a.button.link-to-compare:hover {
    background: #0284c7 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.32) !important;
}

body .ts-compare-popup.mf-compare-dock .empty-compare-button {
    align-self: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 5px 14px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    background: transparent !important;
    text-decoration: none !important;
    border: none !important;
    transition: background 0.16s ease, color 0.16s ease !important;
}

body .ts-compare-popup.mf-compare-dock .empty-compare-button::after {
    display: none !important;
    content: none !important;
    border-bottom: none !important;
}

body .ts-compare-popup.mf-compare-dock .empty-compare-button:hover {
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

@media (max-width: 1199px) {
    body .ts-compare-popup.mf-compare-dock .content-wrapper {
        padding: 14px 24px 18px 24px !important;
    }
    .mf-dock-body {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    body .ts-compare-popup.mf-compare-dock .items {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    body .ts-compare-popup.mf-compare-dock .actions {
        flex: none !important;
        width: 100% !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;
    }
    body .ts-compare-popup.mf-compare-dock a.button.link-to-compare {
        flex: 1 1 auto !important;
        width: auto !important;
    }
}

@media (max-width: 639px) {
    body .ts-compare-popup.mf-compare-dock .content-wrapper {
        padding: 12px 14px 14px 14px !important;
    }
    .mf-dock-header {
        margin-bottom: 10px !important;
        gap: 8px !important;
    }
    .mf-dock-header-left {
        gap: 7px !important;
        min-width: 0 !important;
        flex-wrap: nowrap !important;
    }
    .mf-dock-badge {
        font-size: 9.5px !important;
        padding: 3px 8px !important;
        white-space: nowrap !important;
    }
    .mf-dock-counter {
        font-size: 12px !important;
        white-space: nowrap !important;
    }
    body .ts-compare-popup.mf-compare-dock .close.mf-dock-close {
        padding: 4px 10px !important;
        font-size: 11.5px !important;
        flex-shrink: 0 !important;
    }
    body .ts-compare-popup.mf-compare-dock .items {
        grid-template-columns: 1fr !important;
        gap: 7px !important;
    }
    body .ts-compare-popup.mf-compare-dock .items .item {
        padding: 7px 10px !important;
        min-height: 54px !important;
        border-radius: 13px !important;
    }
    body .ts-compare-popup.mf-compare-dock .items .item .product-wrapper {
        flex-direction: row !important;
        align-items: center !important;
        gap: 9px !important;
    }
    body .ts-compare-popup.mf-compare-dock .items .item.empty {
        display: none !important;
    }
    body .ts-compare-popup.mf-compare-dock .items .item .product-thumbnail {
        width: 40px !important;
        height: 40px !important;
        flex: 0 0 40px !important;
        padding: 3px !important;
    }
    body .ts-compare-popup.mf-compare-dock .items .item .product-thumbnail img {
        max-height: 34px !important;
    }
    body .ts-compare-popup.mf-compare-dock .items .item .product-meta {
        padding-right: 22px !important;
        gap: 2px !important;
    }
    body .ts-compare-popup.mf-compare-dock .items .item .product-name {
        font-size: 12px !important;
        -webkit-line-clamp: 1 !important;
    }
    .mf-dock-price-now {
        font-size: 12.5px !important;
    }
    .mf-dock-price-old {
        font-size: 10.5px !important;
    }
    body .ts-compare-popup.mf-compare-dock a.button.link-to-compare {
        padding: 10px 16px !important;
        font-size: 13px !important;
    }
}

/* Non-intrusive Compare Toast (Top Dynamic Pill) */
.mf-compare-toast {
    position: fixed !important;
    left: 50% !important;
    top: 20px !important;
    bottom: auto !important;
    transform: translate(-50%, -16px) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 999999 !important;
    padding: 10px 20px !important;
    border-radius: 999px !important;
    background: #0f172a !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25) !important;
    transition: all 0.25s ease !important;
    white-space: nowrap !important;
}

.mf-compare-toast.is-ok {
    background: #0284c7 !important;
}

.mf-compare-toast.is-warn {
    background: #d97706 !important;
}

.mf-compare-toast.visible {
    opacity: 1 !important;
    transform: translate(-50%, 0) !important;
}

