/* =====================================================
 * HappyTec Tools — Wishlist prodotto
 * Output diretto nello stesso hook usato da WishSuite.
 * ===================================================== */

.single-product .summary .ht-product-wishlist-button,
.ht-product-wishlist-button {
    position: static !important;
    inset: auto !important;
    float: none !important;
    clear: both !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 36px !important;

    margin: 10px 0 16px !important;
    padding: 5px 0 !important;

    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    color: #2271b1 !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    text-align: left !important;
    white-space: nowrap !important;

    cursor: pointer !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;

    transition:
        color 0.18s ease,
        opacity 0.18s ease !important;

    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.single-product .summary .ht-product-wishlist-button:hover,
.ht-product-wishlist-button:hover {
    color: #135e96 !important;
    text-decoration: underline !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

.single-product .summary .ht-product-wishlist-button:focus-visible,
.ht-product-wishlist-button:focus-visible {
    outline: 2px solid currentColor !important;
    outline-offset: 3px !important;
    border-radius: 3px !important;
}

.single-product .summary .ht-product-wishlist-button.is-saved,
.ht-product-wishlist-button.is-saved {
    color: #2271b1 !important;
    background: transparent !important;
}

.single-product .summary .ht-product-wishlist-button.is-loading,
.ht-product-wishlist-button.is-loading {
    pointer-events: none !important;
    opacity: 0.55 !important;
    cursor: wait !important;
}

.single-product .summary .ht-product-wishlist-icon,
.ht-product-wishlist-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 16px !important;
    width: 16px !important;
    height: 16px !important;
}

.single-product .summary .ht-product-wishlist-icon svg,
.ht-product-wishlist-icon svg {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
}

.single-product .summary .ht-product-wishlist-button.is-saved svg,
.ht-product-wishlist-button.is-saved svg {
    fill: none !important;
}

.single-product .summary .ht-product-wishlist-label,
.ht-product-wishlist-label {
    display: inline-block !important;
    width: auto !important;
    white-space: nowrap !important;
}

/* =====================================================
 * Notifica AJAX
 * ===================================================== */

.ht-product-wishlist-notice {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 999999;
    max-width: calc(100% - 32px);
    padding: 12px 17px;
    border-radius: 10px;
    background: #202124;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    transform: translate(-50%, 18px);
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.ht-product-wishlist-notice.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.ht-product-wishlist-notice.is-error {
    background: #a61b1f;
}

@media (max-width: 767px) {
    .single-product .summary .ht-product-wishlist-button,
    .ht-product-wishlist-button {
        min-height: 44px !important;
        margin: 8px 0 14px !important;
        padding: 9px 0 !important;
        font-size: 14px !important;
        white-space: normal !important;
    }

    .single-product .summary .ht-product-wishlist-label,
    .ht-product-wishlist-label {
        white-space: normal !important;
    }

    .ht-product-wishlist-notice {
        bottom: 18px;
        font-size: 13px;
    }
}