.cart-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.cart-item img {
    width: 55px;
    height: 55px;
    border-radius: 10px;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

.qty-control button {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: #ddd;
    font-weight: bold;
}

.qty-number {
    width: 32px;
    text-align: center;
    font-weight: bold;
}
.cart-remove {
    color: red;
    font-size: 14px;
    cursor: pointer;
}

.disabled-checkout {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}
#btnCheckout:disabled {
    background-color: #bdbdbd !important;
    border-color: #bdbdbd !important;
    color: #ffffff !important;
    cursor: not-allowed !important;
    opacity: 1 !important; /* para que no se vea borroso */
}

#btnCheckout.show {
    display: block !important;
}
#btnCheckout.hide {
    display: none !important;
}
.cart-item {
    display: grid;
    grid-template-columns: 60px 1fr 60px;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.show { display: block !important; }
.hide { display: none !important; }

/* Para el contenedor de acciones que debe ser flex */
#ubicacionActions.show { display: flex !important; gap: 8px; }

.cart-title {
    font-size: 14px;
    font-weight: 600;
}

.cart-desc {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.qty-control button {
    width: 26px;
    height: 26px;
    border: none;
    background: #eee;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.cart-price {
    font-weight: bold;
    font-size: 13px;
}

.cart-remove {
    margin-top: 6px;
    cursor: pointer;
    background: transparent;
    border: none;
    font-size: 18px;
}

.cart-comment {
    font-size: 12px;
    color: #444;
    margin-bottom: 10px;
    margin-top: 10px;
}

.btn-edit-comment {
    background: #007bff;
    color: white;
    border: none;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-edit-comment:hover {
    background: #0069d9;
}


.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #a5a5a5;
}

.cart-item img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info p {
    margin: 2px 0;
    color: #666;
    font-size: 14px;
}

.cart-item-comment small {
    color: #444;
    font-size: 13px;
    display: block;
    margin-top: 4px;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Cantidad */
.qty-control {
    display: flex;
    align-items: center;
    gap: 6px;
}

.qty-control button {
    background: #ddd;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
}

.qty-number {
    min-width: 20px;
    text-align: center;
}

/* Botón editar */
.btn-edit-comment {
    background: #2b6cb0;
    border: none;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
     width: 100%;
}

.btn-edit-comment i {
    color: #fff;
    font-size: 16px;
}

/* Botón eliminar */
.cart-remove {
    width: 100%;
    background: #fbeaea;
    border: none;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

.cart-remove i {
    color: #d9534f;
}

#selectLocalidad {
  border-radius: 12px;
}

#buscadorLocalidad {
  border-radius: 12px;
}

#selectLocalidad option {
  padding: 10px;
  font-size: 1rem;
}
/* Por defecto oculto */
#ubicacionActions { display: none }

/* (opcional) por defecto mostrar seleccionar ubicación */
#btnSeleccionarUbicacion { display: block; }

#ubicacionActions { display: none }
#ubicacionActions.show {
    display: flex ;
}
#ubicacionActions.hide {
    display: none ;
}
#shippingHint.hide {
    display: none !important;
}

#pedidoBubble { max-width: 260px; z-index: 2; }
#pedidoBubbleText { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }



.pedido-bubble{
  position: fixed;
  right: 14px;
  bottom: 92px; /* arriba del botón del carrito si lo tienes */
  z-index: 9999;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 10px 12px;
  border-radius: 16px;

  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);

  max-width: 320px;
  cursor: pointer;
  user-select: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

.pedido-bubble:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.16);
}

.pedido-bubble:active{
  transform: translateY(0px) scale(0.99);
}

.pedido-bubble-icon{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255,123,0,0.12);
  color: #ff7b00;
  flex: 0 0 auto;
}

.pedido-bubble-content{
  min-width: 0;
  flex: 1;
}

.pedido-bubble-title{
  font-weight: 700;
  font-size: 13px;
  line-height: 1.1;
  color: #1f2937;
}

.pedido-bubble-sub{
  margin-top: 2px;
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pedido-bubble-right{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.pedido-bubble-chip{
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(17,24,39,0.06);
  color: #111827;
  font-weight: 700;
}

.pedido-bubble-arrow{
  opacity: .55;
}

/* Modo "buscando": icono con pulso */
.pedido-bubble.is-searching .pedido-bubble-icon{
  position: relative;
}
.pedido-bubble.is-searching .pedido-bubble-icon::after{
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 14px;
  border: 2px solid rgba(255,123,0,0.35);
  animation: bubblePulse 1.2s ease-in-out infinite;
}
@keyframes bubblePulse{
  0%   { transform: scale(0.96); opacity: .7; }
  60%  { transform: scale(1.12); opacity: .0; }
  100% { transform: scale(1.12); opacity: .0; }
}

/* Mobile */
@media (max-width: 480px){
  .pedido-bubble{ max-width: 92vw; right: 10px; bottom: 20px; }
}



  /* ===== Modal PRO ===== */
  .qp-modal { border: 0; border-radius: 16px; overflow: hidden; }
  .qp-modal-header{
    display:flex; align-items:center; justify-content:space-between;
    padding: 14px 16px;
    color:#fff;
    background: linear-gradient(135deg, #ff7b00, #ff9a3d);
  }
  .qp-header-left{ display:flex; gap:12px; align-items:center; }
  .qp-title{ font-weight: 800; letter-spacing: .2px; font-size: 16px; line-height: 1.1; }
  .qp-subtitle{ font-size: 12.5px; opacity: .95; margin-top: 2px; }

  /* Loader “delivery” (3 puntitos) */
  .qp-loader{ width: 28px; height: 28px; display:flex; gap:4px; align-items:center; justify-content:center; }
  .qp-loader span{
    width: 6px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.95);
    animation: qp-bounce 1.1s infinite ease-in-out;
  }
  .qp-loader span:nth-child(2){ animation-delay: .12s; opacity: .9; }
  .qp-loader span:nth-child(3){ animation-delay: .24s; opacity: .85; }
  @keyframes qp-bounce{
    0%, 80%, 100%{ transform: translateY(0); }
    40%{ transform: translateY(-7px); }
  }

  .qp-modal-body{ padding: 16px; }
  .qp-muted{ color: #6c757d; font-size: 12px; }
  .qp-folio-row{ display:flex; align-items:center; justify-content:space-between; }
  .qp-chip{
    background: #111827; color:#fff;
    padding: 6px 10px; border-radius: 999px;
    font-weight: 700; font-size: 12px; letter-spacing: .3px;
  }

  /* Barra de “progreso” animada */
  .qp-progress-wrap{
    position: relative; height: 10px; border-radius: 999px;
    background: #f1f3f5; margin-top: 14px; overflow:hidden;
  }
  .qp-progress-bar{
    position:absolute; inset:0;
    background: linear-gradient(90deg, rgba(255,123,0,.15), rgba(255,123,0,.55), rgba(255,123,0,.15));
    transform: translateX(-60%);
    animation: qp-sweep 1.2s infinite linear;
  }
  @keyframes qp-sweep{
    0%{ transform: translateX(-60%); }
    100%{ transform: translateX(60%); }
  }

  /* Steps */
  .qp-steps{ display:flex; justify-content:space-between; margin-top: 14px; gap: 10px; }
  .qp-step{ flex:1; display:flex; flex-direction:column; align-items:center; gap:6px; opacity:.65; }
  .qp-step .dot{
    width: 10px; height: 10px; border-radius: 99px; background:#adb5bd;
    box-shadow: 0 0 0 4px rgba(173,181,189,.18);
  }
  .qp-step .label{ font-size: 12px; color:#495057; font-weight: 600; }
  .qp-step.active{ opacity: 1; }
  .qp-step.active .dot{
    background: #ff7b00;
    box-shadow: 0 0 0 4px rgba(255,123,0,.22);
  }

  .qp-card{
    border: 1px solid #eef0f2;
    border-radius: 14px;
    padding: 12px;
    background: #fff;
  }
  .qp-card-title{ font-weight: 800; font-size: 13px; color:#111827; margin-bottom: 6px; }
  .qp-list{ margin:0; padding-left: 18px; color:#374151; font-size: 13px; }
  .qp-list li{ margin: 6px 0; }

  .qp-hint{ font-size: 12.5px; color:#6b7280; }

  .qp-modal-footer{ padding: 12px 16px 16px; border-top: 0; }



/* ===== Modal Repartidor Asignado (LIGHT / Blanco + Naranja) ===== */
.delivery-modal {
  border: 0;
  border-radius: 18px;
  overflow: hidden;

  /* Fondo claro con acentos naranjas suaves */
  background:
    radial-gradient(900px 450px at 15% 0%, rgba(255, 123, 0, .22), transparent 60%),
    radial-gradient(700px 420px at 95% 15%, rgba(255, 123, 0, .14), transparent 55%),
    linear-gradient(180deg, #ffffff, #fafafa);

  box-shadow: 0 18px 60px rgba(0,0,0,.20);
}

.delivery-modal-body {
  padding: 22px 18px 18px;
  color: #111;
  position: relative;
}

/* botón close más visible en fondo claro */
.delivery-close {
  position: absolute;
  top: 14px;
  right: 14px;
  filter: none;
  opacity: .7;
}

/* ===== HERO ===== */
.delivery-hero {
  text-align: center;
  padding: 10px 6px 6px;
}

.delivery-icon-wrap {
  width: 84px;
  height: 84px;
  margin: 0 auto 14px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;

  background: rgba(255, 123, 0, .10);
  border: 1px solid rgba(255, 123, 0, .22);
  box-shadow: 0 12px 35px rgba(255, 123, 0, .18);
}

.delivery-icon {
  font-size: 34px;
  color: rgb(255, 123, 0);
  text-shadow: none;
}

.delivery-pulse {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 123, 0, .30);
  animation: pulse 1.2s infinite ease-out;
}

@keyframes pulse {
  0% { transform: scale(.88); opacity: .9; }
  100% { transform: scale(1.18); opacity: 0; }
}

.delivery-title {
  font-weight: 900;
  letter-spacing: .2px;
  margin-bottom: 6px;
  color: #111;
}

.delivery-sub {
  opacity: .9;
  margin: 0 auto 14px;
  max-width: 360px;
  font-size: 0.95rem;
  color: #333;
}

/* ===== COUNTDOWN ===== */
.delivery-countdown {
  display: grid;
  gap: 10px;
  justify-items: center;
  margin: 10px 0 16px;
}

.delivery-ring {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;

  background: conic-gradient(
    rgba(255, 123, 0, .95),
    rgba(255, 123, 0, .15)
  );
  box-shadow: 0 14px 35px rgba(255, 123, 0, .18);
  position: relative;
}

.delivery-ring::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
}

.delivery-ring span {
  position: relative;
  z-index: 1;
  font-size: 1.6rem;
  font-weight: 900;
  color: #111;
}

.delivery-countdown-text {
  font-size: .95rem;
  color: #333;
}

/* ===== ACTIONS ===== */
.delivery-actions {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

/* botón principal: naranja pro */
.delivery-btn {
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 900;
  border: 0;
  color: #fff;
  background: rgb(255, 123, 0);
  box-shadow: 0 16px 40px rgba(255, 123, 0, .26);
}

.delivery-btn:hover {
  filter: brightness(.97);
}

/* botón secundario: outline limpio */
.delivery-btn-ghost {
  border-radius: 14px;
  padding: 11px 14px;
  font-weight: 800;
  border: 1px solid rgba(0,0,0,.12);
  color: #111;
  background: rgba(255,255,255,.9);
}

/* ===== TIP ===== */
.delivery-tip {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 123, 0, .08);
  border: 1px solid rgba(255, 123, 0, .20);
  font-size: .88rem;
  color: #333;
}

/* Mejor en pantallas pequeñas */
@media (max-width: 420px) {
  .delivery-title { font-size: 1.1rem; }
  .delivery-sub { font-size: .9rem; }
}



.qp-alert-modal{
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(1200px 600px at 20% 0%, rgba(255,255,255,.10), transparent 60%),
              linear-gradient(180deg, #151515, #0f0f0f);
  color: #fff;
}
.qp-alert-body{
  padding: 22px 18px;
  text-align: center;
}
.qp-alert-icon{
  width: 58px; height: 58px;
  margin: 0 auto 10px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}
.qp-alert-icon i{ font-size: 22px; }
.qp-alert-title{
  margin: 6px 0 6px;
  font-weight: 800;
}
.qp-alert-sub{
  margin: 0 0 14px;
  opacity: .9;
  font-size: 14px;
  line-height: 1.25rem;
}
.qp-alert-actions .btn{
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
}
.qp-alert-foot{
  margin-top: 12px;
  font-size: 12px;
  opacity: .75;
}

/* ===== FIX: evitar “pestaña gris” cuando el submenu está cerrado ===== */
#menuOptions .submenu{
  padding: 0 !important;
  margin: 0 !important;
  border-top: 0 !important;
  background: transparent !important;
  max-height: 0;
  overflow: hidden;
}

/* Solo cuando está abierto se aplica el estilo del submenu */
#menuOptions .menu-group.active .submenu{
  padding: 0 10px 12px 60px !important;
  background: transparent !important; /* o #fff si lo quieres sólido */
  border-top: 0 !important;           /* si quieres línea, ponla aquí */
}

/* Por si el borde inferior te está marcando “cortes” */
#menuOptions .menu-group{
  border-bottom: 0 !important;
}

/* ===== Submenu PRO: chips alineados, no corridos a la derecha ===== */
#menuOptions .menu-group.active .submenu{
  padding: 8px 12px 14px 12px !important; /* 🔥 quita el 60px */
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  align-items: flex-start;
}

/* Chips (tiendas) */
#menuOptions .submenu a{
  width: auto !important;              /* 🔥 ya no ocupa todo el ancho */
  max-width: 100%;
  border-radius: 999px;
  padding: 8px 12px !important;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  background: rgba(17,24,39,.04);
  border: 1px solid rgba(17,24,39,.08);

  white-space: nowrap;                 /* 🔥 se ve fino */
  overflow: hidden;
  text-overflow: ellipsis;

  font-weight: 800;
  font-size: 12.5px;
}

/* Si quieres el pin a la derecha sin mover el texto */
#menuOptions .submenu a::after{
  content: "📍";
  opacity: .55;
  font-size: 13px;
}

/* Host fijo: no bloquea nada */
.qp-toast-host{
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 99999;
  pointer-events: none; /* ✅ jamás estorba */
}

/* Toast */
.qp-toast{
  width: min(360px, calc(100vw - 32px));
  border-radius: 14px;
  padding: 12px 12px;
  margin-top: 10px;
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  box-shadow: 0 18px 60px rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.10);

  transform: translateY(8px);
  display: none;
  transition: transform .18s ease, opacity .18s ease;
  pointer-events: auto; /* ✅ solo el toast es clickeable */
}

/* Visible */
.qp-toast.qp-toast--show{
  transform: translateY(0);
  display: block;
}

.qp-toast-title{
  font-weight: 900;
  font-size: 13px;
  margin: 0;
}

.qp-toast-body{
  font-size: 13px;
  opacity: .95;
  margin-top: 4px;
  line-height: 1.25rem;
}

.qp-toast-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
}

.qp-toast-close{
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.8);
  font-size: 18px;
  line-height: 1;
  padding: 2px 6px;
  cursor: pointer;
  display: none;
}
.qp-toast-close:hover{ color:#fff; }
/* Para contenedores flex */
.qp-show-flex { display: flex !important; }

.qty-control .btn-plus:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.qty-control .btn-minus:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.qp-kg { font-size:12px; opacity:.75; margin-left:6px; white-space:nowrap; }

.cart-gramaje{
  display:flex; gap:8px; align-items:center;
  margin-top:6px;
}
.chip-gramos, .chip-total{
  display:inline-flex; gap:6px; align-items:center;
  padding:6px 10px; border-radius:999px;
  font-size:12px;
  background: rgba(255,123,0,.10);
  border: 1px solid rgba(255,123,0,.25);
}

.btn-edit-gramaje {
    width: 100%;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, .12);
    background: #fff;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    font-size: 14px;
    align-items: center;
    justify-content: center;
}
.btn-edit-gramaje:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
}


.cart-store{
  padding: 8px 0;
}

.cart-store-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;

  padding: 10px 12px;
  margin: 6px 10px 10px;

  border-radius: 14px;
  background: rgba(255,123,0,.08);
  border: 1px solid rgba(255,123,0,.22);
}

.cart-store-title{
  display:flex;
  align-items:center;
  gap: 8px;
  font-weight: 900;
  font-size: 13px;
  color: #111827;
}

.cart-store-title i{
  color: #ff7b00;
}

.cart-store-subtotal{
  font-weight: 900;
  font-size: 13px;
  color: #111827;
  opacity: .9;
}

.cart-store-items{
  padding: 0 6px;
}

/* ===== Gramaje PRO ===== */
.cart-gramaje{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Base chip */
.cart-gramaje .chip-gramos,
.cart-gramaje .chip-total{
  display:inline-flex;
  align-items:center;
  gap:6px;

  padding: 7px 10px;
  border-radius: 999px;

  font-size: 12px;
  font-weight: 800;
  line-height: 1;

  border: 1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.9);
  color: #111827;

  box-shadow: 0 10px 20px rgba(0,0,0,.06);
}

/* Chip gramos: acento naranja suave */
.cart-gramaje .chip-gramos{
  border: 1px solid rgba(255,123,0,.25);
  background: rgba(255,123,0,.10);
  color: #7a2f00;
}

/* Chip total: más “premium” y enfocado en el precio */
.cart-gramaje .chip-total{
  border: 1px solid rgba(17,24,39,.10);
  background: linear-gradient(180deg, rgba(17,24,39,.04), rgba(17,24,39,.02));
}

/* Iconos dentro de chips */
.cart-gramaje i{
  font-size: 12px;
  opacity: .85;
}

/* En móvil, que se acomoden bonito */
@media (max-width: 420px){
  .cart-gramaje{
    gap: 8px;
  }
  .cart-gramaje .chip-gramos,
  .cart-gramaje .chip-total{
    padding: 7px 9px;
    font-size: 11.5px;
  }
}
.cart-gramaje .chip-total{
  font-weight: 900;
}

/* ===== Gramaje UX PRO (fila resumen) ===== */
.cart-gramaje{
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 12px;

  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;

  background: rgba(255,123,0,.08);
  border: 1px solid rgba(255,123,0,.18);
}

/* Reutilizamos tus spans pero como “bloques” */
.cart-gramaje .chip-gramos,
.cart-gramaje .chip-total{
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;

  display:inline-flex;
  align-items:center;
  gap: 8px;

  font-size: 12.5px;
  font-weight: 800;
  color: #111827;
}

/* Lado izquierdo: peso */
.cart-gramaje .chip-gramos{
  opacity: .92;
}

/* Lado derecho: total fuerte */
.cart-gramaje .chip-total{
  font-weight: 900;
}

/* Iconos discretos */
.cart-gramaje i{
  font-size: 13px;
  opacity: .75;
}

/* Si quieres un “separador” sutil en medio */
.cart-gramaje::after{
  content:"";
  flex: 1;
  height: 1px;
  background: rgba(17,24,39,.10);
  margin: 0 10px;
  order: 2;
}
.cart-gramaje .chip-gramos{ order: 1; }
.cart-gramaje .chip-total{ order: 3; }

/* Mobile: que no se rompa */
@media (max-width: 420px){
  .cart-gramaje{
    padding: 8px 9px;
  }
  .cart-gramaje::after{
    margin: 0 8px;
  }
  .cart-gramaje .chip-gramos,
  .cart-gramaje .chip-total{
    font-size: 12px;
  }
}
.cart-gramaje .chip-gramos::before{
  content:"Peso:";
  font-weight: 800;
  opacity: .65;
}
.cart-gramaje .chip-total::before{
  content:"Total:";
  font-weight: 800;
  opacity: .65;
}
/* Contenedor lista */
.qp-localidad-list{
  max-height: 320px;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(17,24,39,.10);
  background: #fff;
  padding: 10px;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
}

/* Scroll bonito */
.qp-localidad-list::-webkit-scrollbar{ width: 10px; }
.qp-localidad-list::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,.15);
  border-radius: 12px;
}
.qp-localidad-list::-webkit-scrollbar-track{
  background: rgba(0,0,0,.04);
  border-radius: 12px;
}

/* Item card */
.qp-loc-item{
  width: 100%;
  border: 1px solid rgba(17,24,39,.10);
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(250,250,250,1));
  border-radius: 14px;
  padding: 12px 12px;
  margin: 10px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  text-align:left;
  transition: .14s ease;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
}

.qp-loc-item:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
}

.qp-loc-item:active{
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0,0,0,.06);
}

/* Columna izquierda */
.qp-loc-left{ min-width:0; flex:1; }
.qp-loc-title{
  font-weight: 900;
  font-size: 14.5px;
  color: #111827;
  line-height: 1.15;
}
.qp-loc-sub{
  margin-top: 6px;
  font-size: 12px;
  color: rgba(17,24,39,.65);
  display:flex;
  flex-wrap: wrap;
  gap: 6px;
  line-height: 1.2;
}
.qp-loc-sub .dot{ opacity:.6; }

/* Derecha: icon pill */
.qp-loc-right{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,123,0,.12);
  border: 1px solid rgba(255,123,0,.25);
  color: #ff7b00;
  flex: 0 0 auto;
}

/* Seleccionado */
.qp-loc-item.selected{
  border-color: rgba(255,123,0,.55);
  background: rgba(255,123,0,.08);
  box-shadow: 0 12px 24px rgba(255,123,0,.12);
  position: relative;
}

.qp-loc-item.selected::after{
  content: "✓";
  position: absolute;
  top: 10px;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,123,0,.95);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
}

/* Empty */
.qp-localidad-empty{
  padding: 14px;
  opacity: .75;
  font-size: 13px;
  text-align:center;
}
#btnGuardarLocalidad{
  border-radius: 14px !important;
  font-weight: 900;
  letter-spacing: .2px;
}
#btnGuardarLocalidad:disabled{
  opacity: .6;
}

/* ===========================
   MODAL UBICACIÓN ENTREGA - FULL MAP
   =========================== */

/* Haz que el dialog sea casi pantalla completa */
#modalUbicacionEntrega .modal-dialog{
  width: min(980px, calc(100vw - 16px));
  height: calc(100vh - 16px);
  margin: 8px auto;
}

/* En móvil: FULL SCREEN real */
@media (max-width: 576px){
  #modalUbicacionEntrega .modal-dialog{
    width: 100vw;
    height: 100vh;
    margin: 0;
  }
}

/* El contenido ocupa todo el alto del dialog */
#modalUbicacionEntrega .modal-content{
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
}

/* En móvil no redondees para que se vea "tipo Uber" */
@media (max-width: 576px){
  #modalUbicacionEntrega .modal-content{
    border-radius: 0;
  }
}

/* Header fijo arriba */
#modalUbicacionEntrega .modal-header{
  position: sticky;
  top: 0;
  z-index: 5;
}

/* Footer fijo abajo con botón grande */
#modalUbicacionEntrega .modal-footer{
  position: sticky;
  bottom: 0;
  z-index: 5;

  background: #fff;
  border-top: 1px solid rgba(17,24,39,.08);

  padding: 12px 14px;
}

/* El body se vuelve layout vertical: mapa grande + textos debajo */
#modalUbicacionEntrega .modal-body{
  display: flex;
  flex-direction: column;
  gap: 10px;

  /* IMPORTANTE: permitir que el mapa crezca */
  min-height: 0;
  padding: 12px 12px;
}

/* Contenedor del mapa: se estira al máximo disponible */
#modalUbicacionEntrega #mapEntrega{
  flex: 1 1 auto;
  min-height: 320px; /* fallback desktop */
  height: auto !important;

  border-radius: 14px;
  overflow: hidden;
}

/* En móvil: mapa gigante real */
@media (max-width: 576px){
  #modalUbicacionEntrega #mapEntrega{
    min-height: 62vh;   /* 🔥 mapa enorme */
    border-radius: 14px;
  }
}

/* Preview y acciones: no estorban al mapa */
#modalUbicacionEntrega #previewEntrega{
  font-size: 13px;
  opacity: .85;
}

/* Botón confirmar: estilo pro y alto */
#modalUbicacionEntrega #btnConfirmarUbicacion{
  border-radius: 16px;
  padding: 14px 14px;
  font-weight: 900;
  letter-spacing: .2px;
}

/* Si tienes problemas con el offcanvas sobre el mapa, sube z-index */
#ocPermisoUbicacion{
  z-index: 2000;
}

/* ===== Modal Ubicación: full screen real en móviles ===== */
#modalUbicacionEntrega .modal-dialog {
  /* en desktop respeta lo normal; en mobile lo ajustamos abajo */
}

@media (max-width: 576px) {
  #modalUbicacionEntrega .modal-dialog {
    margin: 0;            /* quita margen */
    height: 100dvh;       /* viewport real en móviles */
  }

  #modalUbicacionEntrega .modal-content {
    height: 100dvh;       /* llena la pantalla */
    border-radius: 0;     /* tipo app */
  }

  #modalUbicacionEntrega .modal-body {
    overflow: auto;       /* que el body sea scrolleable si hace falta */
    -webkit-overflow-scrolling: touch;
  }

  /* mapa más alto en móvil */
  #mapEntrega {
    height: clamp(320px, 55dvh, 520px) !important;
    border-radius: 12px;
  }

  /* footer pegado abajo, tipo app */
  #modalUbicacionEntrega .modal-footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    z-index: 2;
  }
}

/* ===== Marker: círculo (mi ubicación / GPS) ===== */
.qp-mb-me {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ff7b00;
  box-shadow: 0 0 0 6px rgba(255, 123, 0, 0.25);
  border: 2px solid #fff;
}

/* ===== Marker: pin (ubicación de entrega) ===== */
.qp-mb-pin {
  width: 40px;
  height: 40px;
  transform: translateY(-8px); /* ajusta el “punto” al suelo */
}

.qp-mb-pin svg {
  width: 40px;
  height: 40px;
  display: block;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.25));
}

/* círculo azul (mi ubicación / cliente) */
.qp-mb-me {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #1d4ed8 !important; /* azul */
  box-shadow: 0 0 0 7px rgba(29, 78, 216, 0.22);
  border: 2px solid #fff;
}

/* ===== Modal Ubicación (Delivery UX) ===== */
.qp-ub-modal {
  border-radius: 18px;
  overflow: hidden;
}

.qp-ub-header {
  border-bottom: 0;
  padding: 14px 16px;
}

.qp-ub-title {
  font-weight: 800;
  font-size: 16px;
  line-height: 1.1;
}

.qp-ub-sub {
  font-size: 12px;
  opacity: .9;
  margin-top: 2px;
  line-height: 1.2;
}

.qp-ub-body {
  padding: 14px;
  background: #f7f7f7;
}

.qp-ub-mapcard {
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.06);
}

.qp-ub-mapwrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
}

.qp-ub-slow {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 10px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 20px rgba(0,0,0,.08);
}

.qp-ub-slow-hint {
  font-size: 12px;
  opacity: .85;
  margin-top: 6px;
}

.qp-ub-status {
  margin-top: 10px;
}

.qp-ub-status-chip {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #0b1220;
  color: #fff;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.2;
}

.qp-ub-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.25);
  flex: 0 0 auto;
}

.qp-ub-hint {
  margin-top: 8px;
  font-size: 12px;
  opacity: .75;
  line-height: 1.25;
  padding: 0 4px;
}

/* Footer fijo visualmente “app delivery” */
.qp-ub-footer {
  background: #fff;
  border-top: 1px solid rgba(0,0,0,.06);
  padding: 12px;
}

.qp-ub-footerbox {
  width: 100%;
}

.qp-ub-confirm {
  border-radius: 14px;
  font-weight: 800;
  padding: 12px 14px;
}

.qp-ub-footerhint {
  margin-top: 8px;
  font-size: 12px;
  opacity: .7;
  text-align: center;
}

/* Permiso GPS sheet */
.qp-ub-offcanvas {
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

.qp-ub-perm-status {
  font-size: 12px;
  opacity: .95;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 8px 10px;
}

 .qp-gps-hero{ text-align:center; padding:0 4px 10px; }
  .qp-gps-icon{
    width:72px;height:72px;border-radius:999px;
    margin:0 auto 10px;
    background: rgba(255,123,0,.10);
    display:flex;align-items:center;justify-content:center;
    border:1px solid rgba(255,123,0,.25);
  }
  .qp-gps-icon i{ font-size:26px; color:#ff7b00; }
  .qp-gps-title{ font-weight:900; font-size:18px; }
  .qp-gps-sub{ font-size:13px; opacity:.85; line-height:1.25; margin-top:6px; }
  .qp-gps-actions{ display:flex; flex-direction:column; margin-top:12px; }
  .qp-gps-actions .btn-outline-secondary{
    border-color: rgba(0,0,0,.25);
    color: rgba(0,0,0,.55);
  }
  .qp-gps-status{
    margin-top:10px; font-size:12px; opacity:.9;
    background: rgba(0,0,0,.05); border:1px solid rgba(0,0,0,.08);
    border-radius:12px; padding:10px;
  }
  .qp-gps-foot{ margin-top:10px; font-size:12px; opacity:.65; text-align:center; }

  /* ✅ Bounce al tocar backdrop */
  @keyframes qpOcBounce {
    0%   { transform: translateY(0); }
    30%  { transform: translateY(-10px); }
    60%  { transform: translateY(0); }
    85%  { transform: translateY(-6px); }
    100% { transform: translateY(0); }
  }
  .qp-oc-bounce {
    animation: qpOcBounce 420ms ease;
  }

  /* ✅ pequeño “flash” del borde para que se note */
  .qp-oc-bounce .offcanvas-body {
    box-shadow: 0 -10px 30px rgba(0,0,0,.18);
  }
