.litna-card-quantity,
.litna-card-quantity-status { display: none; }

@media (max-width: 1024px) {
    .wd-product.wd-hover-standard .wd-add-btn > .button.litna-card-controlled:not(.litna-card-in-cart) {
        background: var(--litna-gradient) !important;
        color: #fff !important;
    }

    .litna-home-feature .litna-card-quantity { min-width: 126px; }
}

.wd-add-btn > .button.litna-card-controlled.litna-card-in-cart,
.wd-add-btn > .litna-card-in-cart ~ .added_to_cart { display: none !important; }

.wd-add-btn > .litna-card-quantity:not([hidden]) {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    align-items: center;
    height: 36px;
    overflow: hidden;
    border-radius: 6px;
    background: #ffd925;
    color: #292929;
    text-align: center;
}

.litna-card-quantity button {
    display: grid;
    place-items: center;
    min-height: 0;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 17px;
    line-height: 1;
}
.wd-add-btn .litna-card-quantity button:is(:hover, :active, :focus) {
    background: transparent;
    color: inherit;
}
.litna-card-quantity button:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
.litna-card-quantity button[aria-disabled="true"] { opacity: .55; cursor: wait; }
.litna-card-quantity output { font-size: 13px; line-height: 1; }

@media (min-width: 1025px) {
    .wd-product.wd-hover-standard .wd-product-wrapper {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "category" "name" "photo" "price" "stock" "cart";
        grid-template-rows: 17px 54px minmax(169px, 1fr) 34px 17px 36px;
    }

    .wd-product.wd-hover-standard .wd-add-btn {
        display: block !important;
        width: 100%;
        min-width: 0;
        justify-self: stretch;
    }

    .wd-product.wd-hover-standard .wd-add-btn > .quantity {
        display: none;
    }

    .wd-product.wd-hover-standard .wd-add-btn > .button:not(.litna-card-in-cart) {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        height: 36px !important;
        min-height: 36px !important;
        padding: 0 6px !important;
        border-radius: 6px !important;
        background: var(--litna-gradient) !important;
        color: #fff !important;
        font-size: 12px;
    }

    .wd-product.wd-hover-standard .wd-add-btn > .button .wd-action-icon { display: none; }
    .wd-product.wd-hover-standard .wd-add-btn > .button .wd-action-text {
        position: static;
        display: block;
        height: auto;
        min-height: 0;
        margin: 0;
        padding: 0;
        line-height: 1.15;
        transform: none;
        transition: none;
    }

    .litna-home-feature .wd-product .wd-add-btn { width: min(200px, 100%); }
    .litna-home-feature .wd-product .wd-add-btn > .litna-card-quantity:not([hidden]) {
        width: 100%;
        height: 48px;
        border-radius: 7px;
    }
}

.litna-card-quantity-status:not(:empty) {
    position: fixed;
    z-index: 1000;
    inset: auto 16px max(16px, env(safe-area-inset-bottom));
    display: block;
    max-width: 420px;
    margin-inline: auto;
    padding: 10px 14px;
    border-radius: 6px;
    background: #8c2230;
    color: #fff;
}
