/* bolsa-portal.css — Estilos mínimos de la bolsa del portal.
 * La estructura (modal, box, hd, sec, msg, nota, hidden) y los inputs
 * reutilizan el CSS del portal; aquí solo va lo propio de la bolsa:
 * páginas extraídas con botones, barra de agregar por código, botón
 * flotante de la bolsa y lista de la bolsa. Todo con prefijo bp- para
 * no chocar con las clases del portal. */

#modalBolsaPortal .box { display: flex; flex-direction: column; }
#modalBolsaPortal .bp-bd { flex: 1; overflow: auto; padding: 14px; min-height: 0; }

/* Botón flotante de la bolsa (Axel, 2026-11-20): círculo de 56 px, solo
   el icono, abajo a la izquierda (el de Ayuda por WhatsApp del portal
   está abajo a la derecha). Se arrastra a cualquier lado (ver
   bolsa-portal.js); el contador es una insignia arriba a la derecha.
   El width/height explícitos evitan que la regla global de botones del
   portal (width: 100%) lo estire como barra ancha. */
.bp-bolsa-btn { position: fixed; left: 18px; bottom: 18px; z-index: 9999; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: #17171f; color: #fff; font-size: 26px; line-height: 1; border: 0; border-radius: 50%; padding: 0; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.3); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.bp-bolsa-btn .bp-n { position: absolute; top: -5px; right: -5px; background: #b57e1e; color: #fff; border: 2px solid #fff; border-radius: 999px; min-width: 22px; height: 22px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; padding: 0 5px; }
.bp-bolsa-btn.bp-arrastrando { cursor: grabbing; box-shadow: 0 8px 22px rgba(0,0,0,.45); }

/* Páginas extraídas con botones (igual que tienda.php). */
.bp-pagina { position: relative; max-width: 640px; margin: 0 auto 18px; flex-shrink: 0; width: 100%; }
.bp-pagina img { width: 100%; display: block; border-radius: 8px; }
.bp-btn-prod { position: absolute; background: #17171f; color: #fff; border: 0; border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.35); transform: translate(-50%, 0); white-space: nowrap; }
.bp-btn-prod.en { background: #1a7f37; }

/* Barra de agregar por código (debajo del iframe del PDF). */
.bp-codigo-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; padding: 12px 14px 0; background: #fff; flex-shrink: 0; }
.bp-codigo-bar label { display: block; font-size: 12px; font-weight: 600; color: #5b4326; margin-bottom: 4px; }
.bp-codigo-bar .bp-c-cod { flex: 1 1 160px; }
.bp-codigo-bar .bp-c-cant { flex: 0 0 84px; }
.bp-codigo-bar button { width: auto; margin: 0; }
#bpCodigoNota { padding: 0 14px 12px; }

/* Lista de la bolsa. */
.bp-item { display: flex; gap: 10px; align-items: center; border-bottom: 1px solid #eadfc8; padding: 10px 0; font-size: 14px; }
.bp-item .bp-inf { flex: 1; }
.bp-item .bp-cod { font-weight: 800; color: #7a4b12; }
.bp-item .bp-pr { color: #5b4326; }
.bp-item .bp-cant { display: flex; align-items: center; gap: 6px; }
.bp-item .bp-cant button { width: auto; margin: 0; padding: 6px 10px; font-size: 14px; }
.bp-item .bp-quit { width: auto; margin: 0; padding: 6px 10px; font-size: 13px; background: #fdecea; color: #8f1d12; }
.bp-total { font-size: 17px; font-weight: 800; color: #7a4b12; margin-top: 12px; text-align: right; }
#bpBloqueCliente { margin-top: 12px; }
#bpBloqueCliente label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: #5b4326; }
#bpEnviarPedido { width: 100%; margin-top: 14px; }
#bpWaDespues button { width: 100%; margin-top: 10px; }

/* Botón Compartir en cada tarjeta de catálogo. */
.bp-compartir { margin-top: 8px; width: 100%; }
