/* JH envío visible (nov-2026): línea «Envío a [país] desde X € · gratis desde Y €».
   La rellena jh-envio.js. Misma letra y tamaño que la línea «Disponible — Envío en 24-48h». */

.jh-envio {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 14px 0 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  color: #111;
  text-align: left;
  letter-spacing: 0;
  text-transform: none;
}
.jh-envio .jh-envio__ico {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: #111;
}
.jh-envio .jh-envio__txt { min-width: 0; }
.jh-envio p.jh-envio__l1,
.jh-envio p.jh-envio__l2 {
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  max-width: none;
}
.jh-envio p.jh-envio__l2 {
  margin-top: 1px;
  font-size: 12px;
  font-weight: 400;
  color: #5c5c5c;
}
.jh-envio .jh-envio__l2 strong { font-weight: 700; color: #111; }
.jh-envio .jh-envio__precio { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.jh-envio .jh-envio__sep { color: #9a9a9a; }
.jh-envio .jh-envio__tenue { white-space: nowrap; }

/* País: píldora con flecha (29-nov, v2). Encima, un <select> nativo transparente:
   el desplegable es el del sistema (cómodo en móvil y con teclado). */
.jh-envio .jh-envio__pais {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 0 2px;
  padding: 3px 9px 3px 11px;
  border: 1px solid #d6d6d6;
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
  line-height: 1.3;
  color: #111;
  white-space: nowrap;
  cursor: pointer;
  vertical-align: middle;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.jh-envio .jh-envio__pais:hover { border-color: #e6006e; color: #e6006e; background: #fff5fa; }
.jh-envio .jh-envio__pais:focus-within {
  outline: 2px solid #e6006e;
  outline-offset: 2px;
}
.jh-envio .jh-envio__flecha { flex: none; width: 10px; height: 10px; opacity: .7; }
.jh-envio select.jh-envio__sel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 16px; /* iOS no hace zoom al abrirlo */
  -webkit-appearance: none;
  appearance: none;
  background: none;
}

.jh-envio[data-estado="gratis"] .jh-envio__ico { color: #1f8a3b; }

/* Ficha (29-nov, v2): recuadro discreto bajo la fila de compra.
   Cabecera con el país, una fila por modalidad con el precio alineado y, al pie, el umbral de envío gratis. */
.jh-envio.jh-envio--ficha {
  display: block;
  max-width: 380px;
  min-height: 96px; /* reserva la altura: no salta al cargar */
  margin: 16px 0 0;
  padding: 12px 14px 11px;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  background: #fff;
}
.jh-envio--ficha p.jh-envio__cab {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13.5px;
  font-weight: 500;
  color: #111;
}
.jh-envio--ficha .jh-envio__cab .jh-envio__ico { margin-top: 0; }
.jh-envio--ficha ul.jh-envio__filas {
  list-style: none;
  margin: 8px 0 0;
  padding: 0 0 0 24px; /* alinea con el texto de la cabecera, no con el icono */
}
.jh-envio--ficha li.jh-envio__fila {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin: 0;
  padding: 2px 0;
  font-size: 13px;
  font-weight: 400;
  color: #444;
  list-style: none;
}
.jh-envio--ficha li.jh-envio__fila::before { content: none; }
.jh-envio--ficha .jh-envio__fila .jh-envio__precio { color: #111; font-weight: 600; }
.jh-envio--ficha p.jh-envio__pie {
  margin: 8px 0 0 24px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
  font-size: 12px;
  font-weight: 400;
  color: #5c5c5c;
}
.jh-envio--ficha[data-estado="gratis"] { min-height: 0; }
.jh-envio--ficha[data-estado="gratis"] .jh-envio__cab { color: #1f6b33; }

/* Cesta: dentro del resumen, debajo de la línea de transporte. */
.jh-envio--cesta { min-height: 40px; margin: 6px 0 2px; }
/* Importe de envío estimado (país distinto del que calcula PrestaShop). */
#cart-subtotal-shipping[data-jh-envio-estimado] .jh-summary__value { white-space: nowrap; }

@media (max-width: 600px) {
  /* jh-ficha-movil.css da 26px de margen superior (con !important) a lo que sigue a la fila de
     compra, que era el vídeo. Ahora lo que sigue es este bloque: se le quita y se reparte. */
  html.jh-fm body#product .jh-pp-actions + .jh-envio--ficha { margin: 14px 0 0 !important; max-width: none; }
  html.jh-fm body#product .jh-envio--ficha + * { margin-top: 12px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .jh-envio .jh-envio__pais { transition: none; }
}
