/* ====================================================================
   ESTILOS DEL FRONTEND
   ==================================================================== */

/* Icono en checkout */
.payment_method_ppwwhatsapp label[for='payment_method_ppwwhatsapp'] {
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle;
    gap: 8px !important;
    width: auto !important;
    margin-left: 0 !important;
}

.payment_method_ppwwhatsapp img {
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    float: none !important;
    display: inline-block !important;
    vertical-align: middle !important;
    position: relative !important;
    top: auto !important;
}

.ppw-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ====================================================================
   POPUP DE CONFIRMACIÓN (MEJORADO)
   ==================================================================== */
/* ====================================================================
   POPUP DE CONFIRMACIÓN (MEJORADO) 
   ==================================================================== */
/* Fondo oscuro detrás del popup */
#ppw-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    /* Color de fondo y transparencia */
    backdrop-filter: blur(5px);
    /* Efecto borroso del fondo */
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ppw-fade-in 0.3s ease;
}

/* La caja blanca del popup */
#ppw-modal {
    position: relative;
    background: #ffffff;
    /* Color de fondo de la caja */
    color: #333;
    /* Color de texto general */
    padding: 30px;
    border-radius: 12px;
    /* Borde redondeado */
    max-width: 500px;
    /* Ancho máximo */
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-align: center;
    animation: ppw-slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
}

/* Subtítulo "CASI LISTO" */
.ppw-subtitle {
    font-size: 18px;
    /* Tamaño de letra */
    color: #818284;
    /* Color del subtítulo */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Título "¿Se abrió WhatsApp...?" */
#ppw-modal h2 {
    margin: 0 0 25px;
    font-size: 24px;
    /* Tamaño del título */
    font-weight: 700;
    color: #162426;
    /* Color del título */
    line-height: 1.3;
}

.ppw-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.ppw-icon {
    font-size: 1.2em;
    line-height: 1;
    display: inline-block;
}

/* Botón "Sí, enviado" (Verde) */
#ppw-confirm {
    flex: 1;
    min-width: 180px;
    background: #7cd691;
    /* verde color del fondo */
    color: #14542E;
    /* Color del texto */
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    /* Redondeo del botón */
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Botón "Sí, enviado" al pasar el mouse (Hover) */
#ppw-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: #d4edda;
    /* verde más claro al pasar el mouse */
}

/* Botón "No, reintentar" (Azul Oscuro) */
#ppw-again {
    flex: 1;
    min-width: 180px;
    background: #F8DDA7;
    /* Amarillo color del fondo */
    color: #573B00;
    /* Color del texto */
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    /* Redondeo del botón */
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Botón "No, reintentar" al pasar el mouse (Hover) */
#ppw-again:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: #fceed1;
    /* amarillo más claro al pasar el mouse */
}

@keyframes ppw-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes ppw-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .ppw-buttons {
        flex-direction: column;
        gap: 10px;
    }

    #ppw-confirm,
    #ppw-again {
        width: 100%;

        min-width: auto;
        margin: 0;
    }
}

/* ====================================================================
   AJUSTES DE ESPACIADO EN BOTONES DE MI CUENTA / PEDIDOS
   ==================================================================== */

/* MI CUENTA > LISTA DE PEDIDOS */
.woocommerce-account .woocommerce-orders-table__cell-order-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start;
    gap: 4px 6px;
}

.woocommerce-account .woocommerce-orders-table__cell-order-actions a,
.woocommerce-account .woocommerce-orders-table__cell-order-actions .button,
.woocommerce-account .woocommerce-orders-table__cell-order-actions button,
.woocommerce-account .woocommerce-orders-table__cell-order-actions .woocommerce-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    white-space: nowrap;
}

/* GRACIAS / DETALLE DE PEDIDO INDIVIDUAL */
.woocommerce-order a.button,
.woocommerce-order .button,
.woocommerce-order button,
.woocommerce-order .woocommerce-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 6px 6px 0 !important;
    white-space: nowrap;
}

/* Mejor legibilidad entre botones */
.woocommerce-order .button+.button {
    margin-left: 6px !important;
}