/* ==============================> Estilos de WhatsApp Flotante */

/* ANIMACIONES */

@keyframes pulso-wsp-footer {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgb(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* BOTON WHATSAPP FLOTANTE */

.boton-wsp-izquierdo {
    position: fixed;
    bottom: 36px;
    left: 36px;
    z-index: 1000;
    padding: 8px;
    background: #25d366;
    width: 65px;
    height: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    color: #fff;
    font-size: 32px;
    animation: pulso-wsp-footer 1.6s infinite;
    transition: .4s all ease-in-out;
}

.boton-wsp-izquierdo:hover {
    color: #fff;
    background: #128c7e;
}

@media(max-width: 768px) {
    .boton-wsp-izquierdo {
        bottom: 16px;
        left: 16px;
    }
}

/* Accesibilidad: sin animación si el usuario las desactivó */
@media (prefers-reduced-motion: reduce) {
    .boton-wsp-izquierdo {
        animation: none !important;
        transition: none !important;
    }
}

/* ==============================> Estilos del Shortcode de WhatsApp */

/* WSP Predeterminado */

.whatsapp-predeterminado {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--wd-brd-radius);
    background: var(--e-global-color-secondary);
    font-size: var(--wd-text-font-size);
    line-height: calc(var(--wd-text-font-size) + 4px);
    color: #fff;
    transition: .4s all ease-in-out;
}

.whatsapp-predeterminado i {
    font-size: calc(var(--wd-text-font-size) + 4px);
    transition: .4s all ease-in-out;
}

.whatsapp-predeterminado:hover {
    background: var(--e-global-color-primary);
    color: #fff;
}

/* WSP Cabecera */

.whatsapp-cabecera {
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    position: relative;
    color: #fff;
    font-size: 13px;
    line-height: calc(var(--wd-text-font-size) + 1px);
    background: transparent;
    border-radius: 12px;
    border: 1px solid #fff;
    gap: 8px;
    transition: .4s all ease-in-out;
}

.whatsapp-cabecera i {
    font-size: calc(var(--wd-text-font-size) + 4px);
    transition: .4s all ease-in-out;
}

.whatsapp-cabecera:hover {
    background: var(--e-global-color-primary);
    border-color: var(--e-global-color-primary);
    color: #000;
}

/* WSP Icono */

.whatsapp-icono {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: var(--wd-brd-radius);
    font-size: 20px;
    width: 32px;
    height: 32px;
    background: #25d366;
    color: #fff;
    transition: .4s all ease-in-out;
}

.whatsapp-icono:hover {
    color: #fff;
}

/* ==============================> BOTÓN DE WHATSAPP EN WOOCOMMERCE (producto / carrito / checkout) */

.btn-wsp-product {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: white;
    padding: 10px 15px;
    border-radius: var(--btn-accented-brd-radius);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    vertical-align: middle;
    transition: background 0.3s;
    height: auto;
    max-width: fit-content;
}

.btn-wsp-product:hover {
    background-color: #128C7E;
    color: white;
}

.btn-wsp-product i {
    margin-right: 5px;
    font-size: 16px;
}

/* En carrito y checkout el botón va en su propia línea, debajo de los totales */

.btn-wsp-wc {
    margin-top: 12px;
}

.cart-collaterals .btn-wsp-wc,
.woocommerce-checkout .btn-wsp-wc {
    display: flex;
    width: 100%;
    max-width: none;
}

/* RESPONSIVE */

@media(max-width: 768px) {
    .single-product form.cart {
        flex-wrap: wrap;
    }
}
