/* AUTOWEARLK - Single product WhatsApp order button only. */

/* WooCommerce cart forms in this theme use flex layout. Let the WhatsApp row wrap below Add to Cart. */
html body.single-product form.cart {
    flex-wrap: wrap !important;
}

/* High-specificity override: keep the wrapper visible even if another theme rule hides it. */
html body.single-product div.product .summary form.cart > div.autowearlk-whatsapp-wrap,
html body.single-product div.product form.cart > div.autowearlk-whatsapp-wrap,
html body.single-product form.cart > div.autowearlk-whatsapp-wrap {
    display: flex !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 48px !important;
    height: auto !important;
    max-height: none !important;
    margin: 12px 0 0 !important;
    padding: 0 !important;
    position: relative !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    clip: auto !important;
    pointer-events: auto !important;
    box-sizing: border-box !important;
}

html body.single-product form.cart .autowearlk-whatsapp-button {
    display: flex !important;
    flex: 1 1 100% !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 48px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 13px 18px !important;
    box-sizing: border-box !important;
    background: #25D366 !important;
    border: 1px solid #25D366 !important;
    border-radius: 5px !important;
    color: #FFFFFF !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease, border-color 0.2s ease !important;
}

html body.single-product form.cart .autowearlk-whatsapp-button:hover {
    background: #1EBE5D !important;
    border-color: #1EBE5D !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
}

html body.single-product form.cart .autowearlk-whatsapp-button:focus,
html body.single-product form.cart .autowearlk-whatsapp-button:focus-visible {
    color: #FFFFFF !important;
    outline: 2px solid #128C7E !important;
    outline-offset: 3px !important;
}

html body.single-product form.cart .autowearlk-whatsapp-button::before,
html body.single-product form.cart .autowearlk-whatsapp-button::after {
    content: none !important;
    display: none !important;
}

@media screen and (max-width: 480px) {
    html body.single-product div.product form.cart > div.autowearlk-whatsapp-wrap,
    html body.single-product form.cart > div.autowearlk-whatsapp-wrap {
        margin-top: 10px !important;
    }

    html body.single-product form.cart .autowearlk-whatsapp-button {
        min-height: 46px !important;
        padding: 12px 14px !important;
        font-size: 13px !important;
    }
}
