/* WhatsApp Order for WooCommerce - Estilos del boton */

.wow-whatsapp-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px !important;
    padding: 12px 20px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.35);
}

.wow-whatsapp-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.45);
}

.wow-whatsapp-btn:active {
    transform: translateY(0);
}

.wow-whatsapp-btn svg {
    flex-shrink: 0;
}

/* Separador entre boton de carrito y boton de WhatsApp */
.single_add_to_cart_button + .wow-whatsapp-btn {
    margin-left: 8px;
}

/* En checkout, ocupa el ancho completo */
.wow-checkout-wrapper {
    margin-bottom: 16px;
}

.wow-checkout-wrapper .wow-whatsapp-btn {
    width: 100%;
    text-align: center;
}

/* Seccion en la pagina de "Gracias" */
.wow-thankyou-section {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
}

.wow-thankyou-section h2 {
    margin-bottom: 8px;
}

/* Loading spinner para el boton de checkout */
.wow-whatsapp-btn.loading {
    opacity: 0.7;
    cursor: wait;
}

.wow-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wow-spin 0.7s linear infinite;
    display: inline-block;
}

@keyframes wow-spin {
    to { transform: rotate(360deg); }
}
