/* The label stays in normal flow, preserving button size and accessible name. */
.wtf-add-button.wtfit-basket-hover,
.single_add_to_cart_button.wtfit-basket-hover {
    position:relative;
    overflow:hidden;
}
.wtfit-basket-hover > .wtfit-basket-hover-label {
    display:block;
    pointer-events:none;
    transform:translateY(0);
    opacity:1;
    transition:transform .3s cubic-bezier(.22,.7,.25,1), opacity .2s ease;
}
.wtfit-basket-hover > .wtfit-basket-hover-icon {
    position:absolute;
    top:50%;
    left:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    width:26px;
    height:26px;
    pointer-events:none;
    opacity:0;
    transform:translate(-50%,calc(-50% + 64px));
    transition:transform .3s cubic-bezier(.22,.7,.25,1), opacity .2s ease;
}
.wtfit-basket-hover > .wtfit-basket-hover-icon svg { display:block; width:100%; height:100%; }
body.single-product .summary .single_add_to_cart_button.wtfit-basket-hover:not(.loading)::before { display:none!important; }
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
    .wtfit-basket-hover:not(:disabled):not(.disabled):not(.loading):not(.is-cart-pending):not([aria-disabled="true"]):not([aria-busy="true"]):hover > .wtfit-basket-hover-label {
        transform:translateY(-64px);
        opacity:0;
    }
    .wtfit-basket-hover:not(:disabled):not(.disabled):not(.loading):not(.is-cart-pending):not([aria-disabled="true"]):not([aria-busy="true"]):hover > .wtfit-basket-hover-icon {
        transform:translate(-50%,-50%);
        opacity:1;
    }
}
/* Woo keeps .added after success; it must not disable future hovers. */
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
    .wtfit-basket-hover.added:not(.loading):hover::after { opacity:0; }
}
@media (prefers-reduced-motion:no-preference) {
    .wtfit-basket-hover.added:not(.loading):focus-visible::after { opacity:0; }
    .wtfit-basket-hover:not(:disabled):not(.disabled):not(.loading):not(.is-cart-pending):not([aria-disabled="true"]):not([aria-busy="true"]):focus-visible > .wtfit-basket-hover-label { transform:translateY(-64px); opacity:0; }
    .wtfit-basket-hover:not(:disabled):not(.disabled):not(.loading):not(.is-cart-pending):not([aria-disabled="true"]):not([aria-busy="true"]):focus-visible > .wtfit-basket-hover-icon { transform:translate(-50%,-50%); opacity:1; }
}
@media (prefers-reduced-motion:reduce) {
    .wtfit-basket-hover > .wtfit-basket-hover-label,
    .wtfit-basket-hover > .wtfit-basket-hover-icon { transition:none; }
}

/* All cart/option actions share the cart with a forward arrow. */
.wtfit-basket-hover[data-wtfit-hover-action="view"] > .wtfit-basket-hover-icon,
.wtfit-basket-hover[data-wtfit-hover-action="add"] > .wtfit-basket-hover-icon,
.wtfit-basket-hover[data-wtfit-hover-action="select"] > .wtfit-basket-hover-icon { width:34px; }
