/*
======================================================
  REFINAMIENTO DE BOTONES DE ACCIÓN 
======================================================
*/
/* Transición suave para ambos botones */
.summary .button {
    transition: all 0.2s ease-in-out;
}

/* Efecto "lift" (elevar) al pasar el cursor */
.summary .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/*
==========================================================================
 ESTILOS PARA BLOQUE DE BOTONES (PRODUCTOS SIMPLES)
 Prefijo: om-bn- (OMMVIShop Buy Now)
==========================================================================
*/

/* --- MEJORA PROGRESIVA PARA ESCRITORIO --- */
@media (min-width: 769px) {
    body.single-product .summary form.cart {
        flex-direction: row;
        align-items: stretch;
        justify-content: flex-start;
    }

    .om-quantity-add-wrapper {
        display: contents;
    }

    .om-quantity-add-wrapper .quantity {
        flex: 0 1 120px;
    }

    .om-quantity-add-wrapper .om-add-to-cart-button {
        flex: 1 1 auto;
        font-size: 1rem;
    }

    .om-bn-buy-now-button {
        flex: 1 1 auto;
        max-width: none;
        font-size: 1.05rem;
        margin-left: 1rem;
    }
}

/* =========================================================
   ESTADO AGOTADO SIN SELECTOR DE CANTIDAD
========================================================= */

.om-out-of-stock-purchase-block {
    margin-top: 14px;
}

.om-out-of-stock-purchase-block .om-quantity-add-wrapper {
    display: flex;
    align-items: stretch;
    gap: 12px;
    max-width: 100%;
    width: 100%;
    margin-bottom: 18px;
}

.om-out-of-stock-purchase-block .om-out-of-stock-button.button.alt {
    flex: 0 0 150px;
    height: 46px;
    padding: 0 22px;
    margin: 0;
    border-radius: 12px;
    background: #e9edf2 !important;
    color: #93a1b3 !important;
    border: 1px solid #d5dde7 !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
    cursor: not-allowed;
    pointer-events: none;
}

body.single-product .summary .om-out-of-stock-purchase-block .om-notify-stock-button.button.alt,
body.single-product .summary .om-out-of-stock-purchase-block a.om-notify-stock-button {
    flex: 1 1 auto;
    min-width: 0;
    height: 46px;
    margin: 0;
    padding: 0 24px;
    border-radius: 12px;
    background: #25D366 !important;
    color: #fff !important;
    border: none !important;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: none !important;
    max-width: none;
}

body.single-product .summary .om-out-of-stock-purchase-block .om-notify-stock-button.button.alt:hover,
body.single-product .summary .om-out-of-stock-purchase-block a.om-notify-stock-button:hover {
    background: #1fb85a !important;
    color: #fff !important;
}

.om-out-of-stock-purchase-block .om-restock-info {
    margin-top: 0;
    margin-bottom: 0.8rem;
}

@media (max-width: 768px) {
    .om-out-of-stock-purchase-block .om-quantity-add-wrapper {
        flex-wrap: wrap;
    }

    .om-out-of-stock-purchase-block .om-out-of-stock-button.button.alt,
    body.single-product .summary .om-out-of-stock-purchase-block .om-notify-stock-button.button.alt,
    body.single-product .summary .om-out-of-stock-purchase-block a.om-notify-stock-button {
        width: 100%;
        flex: 1 1 100%;
    }
}