/**
 * WooCommerce WhatsApp Product Button Styles
 */

/* Contenedor del botón: Siempre en su propia línea abajo (clear: both) */
.wc-whatsapp-btn-wrapper {
    display: block;
    width: 100%;
    clear: both;
    margin: 14px 0 16px 0;
    text-align: left;
}

/* Estilos base del botón */
.wc-whatsapp-product-btn {
    position: relative;
    background-color: #25D366;
    color: #ffffff !important;
    font-size: .95em;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none !important;
    border: 1px solid transparent;
    border-radius: 2px;
    line-height: 2.4em;
    min-height: 2.5em;
    padding: 0 1.4em;
    box-sizing: border-box;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.3);
    transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease;
}

.wc-whatsapp-product-btn:hover,
.wc-whatsapp-product-btn:focus {
    background-color: #128C7E;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(18, 140, 126, 0.45);
    transform: translateY(-1px);
}

.wc-whatsapp-product-btn .wc-whatsapp-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
    flex-shrink: 0;
}

.wc-whatsapp-product-btn .wc-whatsapp-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
}

.wc-whatsapp-product-btn .wc-whatsapp-text {
    display: inline-block;
    vertical-align: middle;
    line-height: inherit;
}

/* Mobile (< 550px): 100% ancho para fácil clic con el pulgar */
@media screen and (max-width: 549px) {
    .wc-whatsapp-product-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 100%;
    }
}

/* Desktop & Tablets (>= 550px): Abajo del botón pero con tamaño compacto proporcionado */
@media screen and (min-width: 550px) {
    .wc-whatsapp-product-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto;
        min-width: 0;
        max-width: fit-content;
    }
}
