/* 190 we: tarjeta del QR nueva (franja de estado, pago en grande, falta ordenado, botones, historia en línea de tiempo) y el
   chip de la forma de entrega (🏪 Se lo lleva · 🚚 Lo llevamos · 📮 Por agencia) con su ventana. Letras --t-* de la guía.
   Celular primero (360 px). */

/* ---------------------------------------------------------------- tarjeta del QR */
.qre-tarjeta.qre2 {
  border-left-width: 2px;
  border-left-color: var(--borde);
  padding: 0 0 14px;
  gap: 12px;
  overflow: hidden;
}
.qre2 > :not(.qre2-cab) {
  margin-left: 14px;
  margin-right: 14px;
}
/* la franja y el pago lado a lado; si no entran (buscador, celular chico), el pago baja debajo */
.qre2-cab {
  display: flex;
  flex-wrap: wrap;
}
.qre2-franja {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px;
  color: #fff;
  min-width: 0;
  flex: 999 1 13em;
}
.qre2-franja.qre2-naranja {
  background: #c2620a;
}
.qre2-franja.qre2-verde {
  background: var(--verde);
}
.qre2-franja.qre2-rojo {
  background: var(--rojo);
}
.qre2-franja.qre2-azul {
  background: var(--azul);
}
.qre2-ico {
  font-size: var(--t-kpi);
  line-height: 1;
}
.qre2-est {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.qre2-est b {
  font-size: var(--t-kpi-medio);
  line-height: 1.1;
  letter-spacing: 0.02em;
  overflow-wrap: break-word;
}
.qre2-est small {
  font-size: var(--t-texto);
  font-weight: 600;
  opacity: 0.95;
}
.qre2-est small.qre2-sub-rojo {
  background: #fff;
  color: var(--rojo);
  border-radius: 6px;
  padding: 1px 6px;
  justify-self: start;
}
.qre2-pago {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 12px;
  font-weight: 800;
  font-size: var(--t-subtitulo);
  line-height: 1.15;
  flex: 1 0 7em;
}
.qre2-pago.qre2-verde {
  background: var(--verde-claro);
  color: var(--verde);
}
.qre2-pago.qre2-rojo {
  background: var(--rojo-claro);
  color: var(--rojo-txt);
}
.qre2-linea {
  margin-top: 0;
  margin-bottom: 0;
  font-size: var(--t-chico);
  color: var(--gris);
  overflow-wrap: anywhere;
}
.qre2-tipo {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.qre2-cliente {
  display: grid;
  gap: 8px;
}
.qre2-cliente > b {
  font-size: var(--t-subtitulo);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.qre2-contacto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.qre2-contacto .btn {
  justify-content: center;
  text-align: center;
}
.qre2-adelanto {
  margin-top: 0;
  margin-bottom: 0;
}
.qre2-forma {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.qre2-rot {
  font-size: var(--t-rotulo);
  color: var(--gris);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
/* «Falta entregar»: la cantidad grande a la izquierda */
.qre2-falta {
  background: var(--ambar-claro);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--tinta);
}
.qre2-falta-cab {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
  color: var(--ambar-txt);
}
.qre2-falta-cab span {
  font-weight: 700;
  white-space: nowrap;
}
.qre2-falta ul {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.qre2-falta li {
  display: grid;
  grid-template-columns: minmax(2.6em, auto) 1fr;
  gap: 10px;
  align-items: start;
}
.qre2-cant {
  font-size: var(--t-kpi-medio);
  font-weight: 800;
  line-height: 1;
  text-align: right;
  color: var(--ambar-txt);
}
.qre2-desc {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.3;
}
/* UN botón principal verde a todo el ancho; debajo botones iguales */
.qre2-principal .btn {
  width: 100%;
  justify-content: center;
  min-height: 52px;
  font-size: var(--t-boton-grande);
}
.qre2-principal .btn-guardar,
.qre2-principal .btn-primario {
  background: var(--accion-dinero);
  border-color: var(--accion-dinero);
}
.qre2-principal .btn-guardar:hover,
.qre2-principal .btn-primario:hover {
  background: var(--accion-dinero-hover);
}
.qre2-botones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.qre2-botones .btn {
  justify-content: center;
  text-align: center;
  width: 100%;
  min-height: 44px;
}
.qre2-botones .btn.on {
  border-color: var(--azul);
  background: var(--azul-claro);
}
.qre2-historia {
  border-top: 1px solid var(--borde);
  padding-top: 8px;
}

/* ---------------------------------------------------------------- historia: línea de tiempo (puntos unidos) */
.hist-linea {
  gap: 0;
}
.hist-linea .hist-paso {
  position: relative;
  border-bottom: 0;
  padding: 4px 0 10px;
}
.hist-linea .hist-paso::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 26px;
  bottom: -4px;
  width: 2px;
  background: var(--borde);
}
.hist-linea .hist-paso:last-child::before {
  display: none;
}
.hist-linea .hist-ico {
  position: relative;
  z-index: 1;
  background: var(--blanco);
  border: 2px solid var(--borde);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: var(--t-chico);
}
.hist-linea .hist-paso:last-child .hist-ico {
  border-color: var(--azul);
}
.hist-pie {
  margin-bottom: 0;
}

/* ---------------------------------------------------------------- chip de la forma de entrega */
.fe-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 2px solid var(--borde);
  border-radius: 999px;
  padding: 4px 12px;
  font: inherit;
  font-weight: 700;
  background: var(--blanco);
  color: var(--tinta);
  white-space: nowrap;
  min-height: 36px;
}
button.fe-chip {
  cursor: pointer;
}
button.fe-chip:hover {
  border-color: var(--azul);
}
.fe-chip.fe-recoge {
  background: var(--ambar-claro);
  border-color: #e3c58a;
}
.fe-chip.fe-llevamos {
  background: var(--azul-claro);
  border-color: #a9c3e6;
}
.fe-chip.fe-agencia {
  background: var(--verde-claro);
  border-color: #a8d5b5;
}
.fe-chip.fe-solo {
  min-height: 0;
}
.fe-flecha {
  font-size: var(--t-mini);
  opacity: 0.7;
}
/* la ventana «¿Cómo lo recibe?» */
.fe-opciones {
  display: grid;
  gap: 8px;
}
.fe-op {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px;
  align-items: center;
  border: 2px solid var(--borde);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
}
.fe-op.on {
  border-color: var(--azul);
  background: var(--azul-claro);
}
.fe-op-ico {
  font-size: var(--t-kpi-medio);
}
.fe-op-txt {
  display: grid;
}
.fe-op-txt small {
  color: var(--gris);
}
.fe-datos {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.fe-datos[hidden],
[data-fe-dir-sel][hidden],
[data-fe-dir-txt][hidden],
[data-fe-agencia][hidden] {
  display: none;
}
/* Entregas: el filtro por forma y el chip en la fila */
.ent-formas {
  margin-top: 6px;
}
.ent-forma-fila {
  display: inline-flex;
  margin-top: 4px;
}
html[data-tema="oscuro"] .fe-chip.fe-recoge,
html[data-tema="oscuro"] .fe-chip.fe-llevamos,
html[data-tema="oscuro"] .fe-chip.fe-agencia {
  color: var(--tinta);
}
.qre2-historia .hist-pie {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.qre2-historia .hist-pie .btn {
  justify-content: center;
  text-align: center;
  width: 100%;
}
