/* Fila que agrupa "Añadir a la cesta" + "Comprar por WhatsApp" cuando el JS los reubica.
   Solo contiene los dos botones: el formulario ya no vive aquí, así que no hay
   riesgo de que uno estire al otro cuando se abre. */
#mp-whatsapp-atc-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

#mp-whatsapp-atc-row > * {
    flex: 1 1 220px;
}

#mp-whatsapp-buy-container .mp-whatsapp-circle-action-btn {
    width: 100%;
    margin-bottom: 0;
    white-space: nowrap;
    height: auto;
}

/* Modal de checkout
   z-index al máximo posible y reubicado como hijo directo de <body> vía JS
   para escapar de cualquier contexto de apilamiento creado por el tema
   (zoom de imágenes, sliders, etc. que usan transform/z-index propios). */
.mp-wa-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 2147483646;
}
.mp-wa-modal-backdrop.mp-wa-modal-open {
    display: block;
}
.mp-wa-checkout-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2147483647;
    width: 92%;
    max-width: 380px;
    max-height: 85vh;
    overflow-y: auto;
}
.mp-wa-checkout-modal.mp-wa-modal-open {
    display: block;
}
.mp-wa-checkout-modal-content {
    background: #fff;
    border-radius: 14px;
    padding: 24px 20px 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    text-align: left;
}
.mp-wa-checkout-modal-content h5 {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 14px;
    padding-right: 20px;
}
.mp-wa-checkout-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 24px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
}
.mp-wa-checkout-modal-close:hover {
    color: #334155;
}

/* Toggle "Sí / No" para "Envío a domicilio" */
.mp-wa-ship-toggle {
    display: inline-flex;
    border: 1px solid #d5d7db;
    border-radius: 8px;
    overflow: hidden;
}
.mp-wa-ship-btn {
    border: 0;
    background: transparent;
    color: #5b6169;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, color 0.15s ease;
}
.mp-wa-ship-btn:first-child {
    border-right: 1px solid #d5d7db;
}
.mp-wa-ship-btn-active {
    background: #16a34a;
    color: #fff;
}

/* Mensaje informativo cuando no se puede calcular el envío (sin
   provincia elegida, vendedor sin transportista, sin cobertura, etc.) */
.mp-wa-shipping-message {
    margin: 2px 0 0;
    padding: 8px 10px;
    background: #f1f2f4;
    border-radius: 8px;
    color: #5b6169;
    font-size: 12.5px;
    line-height: 1.4;
}
