.quote-li.ne-quote-tools {
    list-style: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.quote-li.ne-quote-tools > a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.quote-li.ne-quote-tools .wd-tools-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.quote-li.ne-quote-tools .ne-quote-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
}

.quote-li.ne-quote-tools .ne-quote-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.quote-li.ne-quote-tools .wd-tools-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.quote-li.ne-quote-tools .wd-tools-count > span {
    display: block;
    min-width: 100%;
}

.quote-li.ne-quote-tools .ne-quote-tooltip {
    position: absolute;
    top: calc(100% + 10px);
    right: 50%;
    z-index: 380;
    padding: 8px 10px;
    border-radius: 6px;
    background: #242424;
    color: #fff;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.2;
    opacity: 0;
    visibility: hidden;
    transform: translate(50%, -4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.quote-li.ne-quote-tools .ne-quote-tooltip::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #242424;
    transform: translateX(-50%) rotate(45deg);
}

.quote-li.ne-quote-tools:hover .ne-quote-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translate(50%, 0);
}

.quote-li.ne-quote-tools .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.quote-li.ne-quote-tools .ne-quote-menu-label {
    display: none !important;
}

.wd-header-text .quote-li.ne-quote-tools {
    vertical-align: middle;
}

/* ---------------------------------------------------------------------------
   Sidebar preventivo.
   Usa le stesse classi della sidebar carrello Woodmart (.cart-widget-side +
   woocommerce/cart/mini-cart.php). Le regole sotto replicano per
   .ne-quote-sidebar quelle che il tema applica solo a .cart-widget-side, cosi'
   la sidebar preventivo risulta identica (riga prodotto, footer, pulsanti).
   Nessun z-index custom: si eredita quello di .wd-side-hidden (500), come la
   sidebar carrello, cosi' l'overlay .wd-close-side (z-index 400) resta sotto.
--------------------------------------------------------------------------- */
.ne-quote-sidebar {
    display: flex;
    flex-direction: column;
}

.ne-quote-sidebar .wd-heading {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ne-quote-sidebar .wd-heading .title {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
}

.ne-quote-sidebar .ne-quote-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

.ne-quote-sidebar .ne-quote-body {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
}

.ne-quote-sidebar .ne-quote-scroll {
    position: absolute;
    inset: 0;
    max-height: 100%;
    overflow: hidden auto;
    overscroll-behavior: none;
}

.ne-quote-sidebar .woocommerce-mini-cart .mini_cart_item {
    margin-bottom: 0;
    padding: 15px;
    transition: background-color .3s ease;
}

.ne-quote-sidebar .woocommerce-mini-cart .mini_cart_item:hover {
    background-color: var(--bgcolor-gray-100);
}

.ne-quote-sidebar .woocommerce-mini-cart .remove {
    top: 13px;
    inset-inline-end: 10px;
}

.ne-quote-sidebar .ne-quote-footer {
    flex: 0 0 auto;
    padding-bottom: 15px;
}

.ne-quote-sidebar .ne-quote-footer > * {
    margin-bottom: 10px;
    padding-inline: 15px;
}

.ne-quote-sidebar .ne-quote-footer > *:last-child {
    margin-bottom: 0;
}

.ne-quote-sidebar .woocommerce-mini-cart__total {
    margin-top: 0;
    margin-bottom: 0;
}

.ne-quote-sidebar .wd-empty-mini-cart {
    margin-top: 20px;
    padding-inline: 15px;
}

@media (max-width: 1024px) {
    .quote-li.ne-quote-tools .ne-quote-tooltip {
        display: none;
    }
}
