/* Cotizador simple (/v2/cotizar) y envio express (/v2/cotizador-express).
   Se carga despues de nuevo-envio.css y reutiliza sus piezas (.flow-card, .svc-opt,
   .pkg-icon, .ep-switch, .gmap-quoter, .ship-layout...); aqui solo va lo nuevo. */

.xp-page { padding-bottom: 24px; }
.xp-hero { margin-bottom: 20px; }
.xp-hero .t-sub { max-width: 560px; }
.xp-narrow { max-width: 640px; }

/* Layout cotizador: pasos + precio fijo a la derecha */
.xp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.xp-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.xp-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 20px; }

/* Encabezado numerado de cada paso */
.xp-step { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.xp-step__num { width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.xp-step h2 { margin: 0; font-size: 16px; font-weight: 800; color: var(--tx-strong); letter-spacing: -.01em; }
.xp-step p { margin: 2px 0 0; font-size: 12.5px; color: var(--tx-muted); }

.xp-link { border: none; background: none; padding: 0; cursor: pointer; font: 700 12.5px var(--font); color: var(--orange-d); }
.xp-link:hover { text-decoration: underline; }
.xp-link i { margin-right: 4px; }

/* Buscador de colonias (ColoniaSearchV2) */
.colsearch { position: relative; }
.colsearch__box { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--bg-card); padding: 0 14px; transition: border-color .12s, box-shadow .12s; }
.colsearch__box:focus-within { border-color: #d0ccc1; box-shadow: 0 0 0 3px rgba(var(--orange-d-rgb), .12); }
.colsearch__box.has-error { border-color: var(--red); }
.colsearch__icon { color: var(--tx-faint); font-size: 14px; }
.colsearch__input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; padding: 11px 0;
  font: 500 16px var(--font); color: var(--tx-strong); } /* 16px: evita zoom en iPhone */
.colsearch__input::placeholder { color: var(--tx-faint); font-weight: 400; }
.colsearch__box.is-big { padding: 2px 16px; border-width: 1.5px; }
.colsearch__box.is-big .colsearch__input { font-size: 17px; padding: 14px 0; }
.colsearch__list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; list-style: none; margin: 0; padding: 6px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .12); max-height: 320px; overflow-y: auto; }
.colsearch__item { display: flex; flex-direction: column; gap: 1px; padding: 9px 10px; border-radius: var(--r-sm); cursor: pointer; }
.colsearch__item strong { font-size: 13.5px; color: var(--tx-strong); }
.colsearch__item span { font-size: 12px; color: var(--tx-muted); }
.colsearch__item.is-active, .colsearch__item:hover { background: var(--orange-bg); }
.colsearch__item.is-active strong, .colsearch__item:hover strong { color: var(--orange-d); }
.colsearch__empty { padding: 10px; font-size: 12.5px; color: var(--tx-muted); }
.colsearch__error { margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--red); }
.colsearch__picked { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--orange);
  background: var(--orange-bg); border-radius: var(--r-md); }
.colsearch__pin { width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--orange-d); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; }
.colsearch__picked-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.colsearch__picked-text strong { font-size: 14.5px; color: var(--tx-strong); }
.colsearch__picked-text span { font-size: 12px; color: var(--tx-muted); }
.colsearch__change { border: none; background: none; cursor: pointer; font: 700 12.5px var(--font); color: var(--orange-d); }

/* Origen asumido ("Recolectamos en ...  Cambiar") */
.xp-origin { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px; background: var(--bg-app); border-radius: var(--r-md); }
.xp-origin--flat { margin-top: 0; padding: 0; background: none; }
.xp-origin__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.xp-origin__label { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--tx-muted); }
.xp-origin__value { font-size: 13.5px; font-weight: 600; color: var(--tx-strong); margin-top: 2px; }
.xp-origin__hint { font-size: 11.5px; color: var(--tx-muted); margin-top: 2px; }
/* Senal de "lo pusimos en automatico" (recoleccion y tamaño): se puede cambiar */
.xp-auto-hint { display: inline-flex; align-items: baseline; gap: 6px; margin-top: 4px; font-size: 12px; color: var(--tx-muted); }
.xp-auto-hint i { color: var(--orange-d); font-size: 11px; }
/* Panel de precio: lista de lo que falta para cotizar */
.xp-quote-todo { margin-top: 8px; padding: 14px 16px; border-radius: var(--r-md); background: var(--orange-bg); }
.xp-quote-todo__title { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--orange-d); }
.xp-quote-todo__title i { margin-right: 4px; }
.xp-quote-todo__list { margin: 0; padding: 0; list-style: none; }
.xp-quote-todo__list li { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 14px; color: var(--tx-muted); }
.xp-quote-todo__list li.is-done { color: var(--green); }
.xp-quote-todo__list li.is-done i { color: var(--green); }
.xp-origin-picker { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.xp-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer; padding: 11px 12px;
  border: 1.5px solid var(--border); border-radius: var(--r-md); background: var(--bg-card); font-family: var(--font); }
.xp-opt:hover { border-color: var(--orange); }
.xp-opt.is-selected { border-color: var(--orange); background: var(--orange-bg); }
.xp-opt i { width: 18px; text-align: center; color: var(--tx-muted); }
.xp-opt.is-selected i { color: var(--orange-d); }
.xp-opt span { display: flex; flex-direction: column; min-width: 0; }
.xp-opt strong { font-size: 13px; color: var(--tx-strong); }
.xp-opt small { font-size: 11.5px; color: var(--tx-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Tamaños */
.xp-sizes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.xp-size { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 12px 8px; cursor: pointer; text-align: center;
  border: 1.5px solid var(--border); border-radius: var(--r-md); background: var(--bg-card); font-family: var(--font); }
.xp-size:hover { border-color: var(--orange); }
.xp-size.is-selected { border-color: var(--orange); background: var(--orange-bg); }
.xp-size .pkg-icon { margin-bottom: 4px; }
.xp-size.is-selected .pkg-icon svg { stroke: var(--orange-d); }
.xp-size__emoji { font-size: 30px; line-height: 1; margin-bottom: 6px; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.xp-size__name { font-size: 12.5px; font-weight: 800; color: var(--tx-strong); }
.xp-size__cap { font-size: 11.5px; color: var(--tx-base); }
.xp-size__dim { font-size: 10.5px; color: var(--tx-muted); }

/* Extras (cobranza / seguro / verificar) */
.xp-extra { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.xp-extra:first-child { border-top: none; padding-top: 0; }
.xp-step + .xp-extra { border-top: none; padding-top: 0; }
.xp-extra .ep-switch { margin-top: 2px; }
.xp-extra .ep-switch-track { padding: 2px; } /* el margin del thumb se salia del track (margin collapse) */
.xp-extra .ep-switch-thumb { margin: 0; }
.xp-extra__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.xp-extra__title { font-size: 13.5px; font-weight: 700; color: var(--tx-strong); }
.xp-extra__desc { font-size: 12px; color: var(--tx-muted); line-height: 1.45; margin-top: 2px; }
.xp-extra__input { margin-top: 10px; max-width: 220px; }
.xp-extra__cost { font-size: 13px; font-weight: 800; color: var(--tx-strong); white-space: nowrap; }

/* Panel de precio */
.xp-loading { margin-top: 14px; font-size: 13px; color: var(--tx-muted); }
.xp-breakdown { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.xp-breakdown div { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--tx-muted); }
.xp-breakdown b { color: var(--tx-strong); }
.xp-note { margin-top: 10px; font-size: 11.5px; color: var(--tx-muted); line-height: 1.45; }
.xp-note a { font-weight: 700; color: var(--orange-d); }
.xp-note--center { text-align: center; }
.xp-how ul { margin: 10px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.xp-how li { font-size: 12px; color: var(--tx-base); line-height: 1.45; }
.svc-list.is-refreshing { opacity: .55; transition: opacity .15s; }

/* Envio express: buscador de direccion (autocomplete-map-search-g) a tamaño grande */
.xp-search .form-control { font-size: 16px !important; padding: 13px 14px !important; }
.xp-search.has-error .form-control { border-color: var(--red) !important; }
.xp-search .autocomplete-results { top: calc(100% + 6px) !important; border: 1px solid var(--border) !important;
  border-radius: var(--r-md); box-shadow: 0 12px 30px rgba(15, 23, 42, .12) !important; background: var(--bg-card) !important; z-index: 40 !important; }
.xp-search .autocomplete-result { padding: 10px 12px !important; font-size: 13px; color: var(--tx-base); }
.xp-search .autocomplete-result.is-active, .xp-search .autocomplete-result:hover {
  background-color: var(--orange-bg) !important; color: var(--orange-d) !important; }
.xp-map-hint { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 12.5px; color: var(--tx-base); line-height: 1.45; }
.xp-street-hint { margin: 16px 0 0; font-size: 12.5px; font-weight: 600; color: var(--tx-base); }
.xp-map-hint i { color: var(--orange-d); margin-top: 2px; }
.xp-map-hint b { color: var(--tx-strong); }
.xp-page .gmap-quoter__map { height: 420px; }

/* Envio express paso 2 */
.xp-route { display: flex; align-items: flex-start; gap: 12px; }
.xp-route .ship-route { flex: 1; min-width: 0; }
.xp-services .sub { font-size: 12.5px; color: var(--tx-muted); }
.xp-services .svc-list { margin-top: 0; }

/* Calculadora de tamaño (modal) */
.sizecalc__dims-label { margin-top: 14px; }
.sizecalc__dims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sizecalc__hint { margin-top: 10px; font-size: 11.5px; color: var(--tx-muted); line-height: 1.45; }
.sizecalc__result { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-md); background: var(--orange-bg); display: flex; flex-direction: column; gap: 2px; }
.sizecalc__result-label { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--orange-d); }
.sizecalc__result strong { font-size: 14px; color: var(--tx-strong); }
.sizecalc__result-meta { font-size: 12px; color: var(--tx-muted); }

/* Barra fija abajo en celular: precio elegido + boton */
.xp-bar { display: none; }

@media (max-width: 900px) {
  .xp-layout { grid-template-columns: minmax(0, 1fr); }
  .xp-side { position: static; }
  .xp-detail.ship-layout { grid-template-columns: minmax(0, 1fr); }
  .xp-detail .ship-summary { position: static; }
  .xp-detail .xp-side-actions { display: none; }
  .xp-page.has-bar { padding-bottom: 96px; }
  .xp-bar { display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bg-card);
    border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(15, 23, 42, .08); }
  .xp-bar__price { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .xp-bar__price span { font-size: 11.5px; color: var(--tx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .xp-bar__price strong { font-size: 18px; font-weight: 800; color: var(--tx-strong); }
  .xp-bar .btn { padding: 12px 18px; }
}

/* Con el menu inferior de celular (.mobile-nav, ~72px) la barra va encima de el */
@media (max-width: 780px) {
  .xp-bar { bottom: 72px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
  .xp-page.has-bar { padding-bottom: 80px; }
}

@media (max-width: 560px) {
  .xp-sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xp-detail .ce-grid, .xp-detail .ce-grid--20-80, .xp-detail .ce-grid--80-20 { grid-template-columns: 1fr; }
  .xp-extra__input { max-width: none; }
  .xp-page .gmap-quoter__map { height: 360px; }
}
/* Modal "¿Dónde recolectamos?" */
.xp-origin-options { display: flex; flex-direction: column; gap: 8px; }
.xp-opt__arrow { margin-left: auto; font-size: 12px; }
.xp-origin-back { display: inline-flex; align-items: center; margin-bottom: 12px; }
.xp-origin-tip { margin: 10px 0 0; font-size: 12px; color: var(--tx-muted); }
.xp-origin-save { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 10px 12px; border-radius: var(--r-md);
  background: var(--orange-bg); font-size: 12.5px; font-weight: 600; color: var(--orange-d); }
.xp-origin-save:hover { text-decoration: none; color: var(--orange-d); filter: brightness(.97); }
.xp-origin-modal .colsearch__list { position: static; box-shadow: none; max-height: 320px; }
.colsearch__item.is-municipio strong i { margin-right: 6px; color: var(--orange-d); }
.colsearch__empty a, .colsearch__empty .xp-link { font-weight: 700; color: var(--orange-d); }
/* Modal origen: buscador de Google con el mismo look que el de colonias, lista dentro del modal */
.xp-gsearch { position: relative; }
.xp-gsearch__icon { position: absolute; left: 14px; top: 16px; z-index: 2; color: var(--tx-faint); font-size: 14px; pointer-events: none; }
.xp-gsearch .form-control { height: auto; border: 1px solid var(--border) !important; border-radius: var(--r-md) !important; background: var(--bg-card);
  padding: 11px 14px 11px 38px; font: 500 16px var(--font); color: var(--tx-strong); box-shadow: none; transition: border-color .12s, box-shadow .12s; }
.xp-gsearch .form-control::placeholder { color: var(--tx-faint); font-weight: 400; }
.xp-gsearch .form-control:focus { border-color: #d0ccc1 !important; box-shadow: 0 0 0 3px rgba(var(--orange-d-rgb), .12); }
.xp-gsearch.has-error .form-control { border-color: var(--red) !important; }
.xp-gsearch .input-group-append { display: none; } /* sin botones extra en este modal */
.xp-gsearch .input-group > .form-control { width: 100%; flex: 1 1 auto; border-radius: var(--r-md) !important; }
.xp-gsearch .autocomplete-results { position: static !important; margin-top: 6px !important; padding: 6px !important; border: 1px solid var(--border) !important;
  border-radius: var(--r-md); box-shadow: none !important; background: var(--bg-card) !important; max-height: 320px; }
.xp-gsearch .autocomplete-result, .xp-gsearch .autocomplete-results .loading { padding: 9px 10px !important; border-radius: var(--r-sm);
  font-size: 13.5px; color: var(--tx-base); line-height: 1.35; }
.xp-gsearch .autocomplete-result i { color: var(--tx-faint); }
.xp-gsearch .autocomplete-result.is-active, .xp-gsearch .autocomplete-result:hover { background-color: var(--orange-bg) !important; color: var(--orange-d) !important; }
.xp-gsearch .blockquote-footer { margin-top: 6px; font-size: 12px; }

/* Switch "Local | Nacional" del cotizador */
.xp-switch { display: inline-flex; gap: 4px; margin-top: 14px; padding: 4px; border-radius: 999px; background: var(--bg-hover); border: 1px solid var(--border); }
.xp-switch button { display: inline-flex; align-items: center; gap: 7px; border: none; background: none; cursor: pointer; padding: 8px 18px;
  border-radius: 999px; font: 700 13.5px/1 inherit; font-family: inherit; color: var(--tx-muted); transition: background .12s, color .12s; }
.xp-switch button.is-active { background: var(--bg-card); color: var(--orange-d); box-shadow: 0 1px 4px rgba(15, 23, 42, .1); }
.xp-switch button i { font-size: 13px; }
/* Pastilla que se desliza a la opcion elegida (.is-second = la de la derecha); las dos opciones miden igual */
.xp-switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; }
.xp-switch::before { content: ''; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 6px); border-radius: 999px;
  background: var(--bg-card); box-shadow: 0 1px 4px rgba(15, 23, 42, .12); transition: transform .28s cubic-bezier(.34, 1.4, .64, 1); }
.xp-switch.is-second::before { transform: translateX(calc(100% + 4px)); }
.xp-switch button { position: relative; z-index: 1; justify-content: center; transition: color .2s; }
.xp-switch button.is-active { background: none; box-shadow: none; }
.xp-switch button i { transition: transform .28s cubic-bezier(.34, 1.4, .64, 1); }
.xp-switch button.is-active i { transform: scale(1.12); }
@media (prefers-reduced-motion: reduce) { .xp-switch::before, .xp-switch button i { transition: none; } }

/* Modo nacional: codigo postal + colonia */
.xp-cp__place { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 12.5px; font-weight: 600; color: var(--green); }
.xp-cp__place svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.xp-cp__hint { margin: 8px 0 0; font-size: 12px; color: var(--tx-muted); line-height: 1.45; }
.xp-cp__hint .xp-link { font-size: 12px; }
.xp-cp__colonia { margin-top: 12px; }
.xp-cp .field-input.has-error, .xp-dims .field-input.has-error { border-color: var(--red); }
.xp-cp-origin { margin-top: 4px; }

/* Modo nacional: tamaño o medidas exactas */
.xp-mode-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.xp-mode-tabs button { flex: 0 0 auto; border: 1.5px solid var(--border); background: var(--bg-card); cursor: pointer; padding: 7px 14px;
  border-radius: 999px; font-family: inherit; font-size: 12.5px; font-weight: 700; color: var(--tx-muted); }
.xp-mode-tabs button.is-active { border-color: var(--orange); background: var(--orange-bg); color: var(--orange-d); }
.xp-dims { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }

/* Modo nacional: paqueterias */
.xp-result .svc-opt .courier-logo { flex-shrink: 0; width: 54px; display: inline-flex; align-items: center; }
.xp-result .courier-logo__img { max-height: 20px; max-width: 54px; width: auto; object-fit: contain; }
.xp-result .courier-logo__text { font-size: 11px; font-weight: 700; color: var(--tx-muted); }
.xp-result .svc-opt + .svc-opt { margin-top: 8px; }
.xp-best { display: inline-block; margin-left: 4px; padding: 2px 7px; border-radius: 999px; background: var(--green-bg);
  color: var(--green); font-size: 10px; font-weight: 800; vertical-align: 1px; }

@media (max-width: 560px) {
  .xp-switch { display: flex; }
  .xp-switch button { flex: 1; justify-content: center; }
  .xp-dims { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== Envio express en una sola pagina (destino con pestañas, revelado, resumen) ===== */
.xp-hero--compact { margin-bottom: 16px; }
.xp-dest-card { border: 1.5px solid var(--orange); box-shadow: 0 0 0 4px rgba(var(--orange-d-rgb), .08); }
.xp-dest-card.has-error { border-color: var(--red); box-shadow: none; }
.xp-dest-card .ce-card__title h2 { font-size: 18px; }
.xp-dest-picked { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--orange-bg); }
.xp-dest-picked__pin { width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--orange-d); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; }
.xp-dest-picked__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.xp-dest-picked__text strong { font-size: 14.5px; color: var(--tx-strong); }
.xp-dest-picked__text small { font-size: 12px; color: var(--tx-muted); margin-top: 2px; }
.xp-dest-card .gmap-quoter { margin-top: 14px; }
.xp-map-hint--warn { background: #fff7ed; border-radius: var(--r-md); padding: 10px 12px; }
.xp-map-hint--warn i { color: var(--amber, #d97706); }

/* Pestañas del destino (DestinoPickerV2) */
/* En celular no le dan scroll de lado: las pestañas bajan a otro renglon y todas se ven (como en onboarding) */
.dp-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.dp-tabs::-webkit-scrollbar { display: none; }
.dp-tab { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; cursor: pointer;
  border: 1px solid var(--border); border-radius: 999px; background: var(--bg-card);
  font: 700 12.5px var(--font); color: var(--tx-base); white-space: nowrap; }
.dp-tab i { font-size: 12px; color: var(--tx-muted); }
.dp-tab:hover { border-color: var(--orange); }
.dp-tab.is-active { border-color: var(--orange); background: var(--orange-bg); color: var(--orange-d); }
.dp-tab.is-active i { color: var(--orange-d); }
.dp-hint { margin: 8px 0 0; font-size: 12px; color: var(--tx-muted); }
.dp-hint b { color: var(--tx-base); }
/* Confirmar calle y numero (link de Maps / Mi ubicacion) */
.dp-confirm { margin-top: 14px; padding: 14px; border: 1px solid var(--orange); border-radius: var(--r-md, 12px); background: var(--orange-bg); }
.dp-confirm__title { margin: 0; font-size: 14px; font-weight: 700; color: var(--tx-strong); }
.dp-confirm__title i { margin-right: 6px; color: var(--orange-d); }
.dp-confirm__hint { margin: 4px 0 12px; }
.dp-row { display: flex; gap: 8px; }
.dp-input { flex: 1; min-width: 0; font-size: 16px; }
.dp-input.has-error { border-color: var(--red); }
/* "Buscar" oculto pero montado: su modal de IA (fixed) si se ve */
.dp-search-off { height: 0; overflow: hidden; visibility: hidden; }
.dp-search-off .ep-modal-overlay { visibility: visible; }
.dp-ia { display: block; width: 100%; height: auto; resize: vertical; line-height: 1.4; }
/* "Con IA" en linea (Cobertura): mientras busca el texto se atenua; si faltan datos, etiquetas de lo que falta */
.dp-ia.is-busy { opacity: .6; }
.dp-ia-missing { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dp-ia-tag { padding: 3px 10px; border-radius: 999px; background: var(--red-bg, #fdecec); color: var(--red); font-size: 12px; font-weight: 700; }
.dp-ia-missing p { flex-basis: 100%; margin: 4px 0 0; font-size: 12px; color: var(--tx-muted); }
.dp-ia-missing b { color: var(--tx-base); }
.dp .ce-grid--80-20 { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 14px; }
.dp-recent { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dp-recent__item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-card); }
.dp-recent__item:hover { border-color: var(--orange); background: var(--orange-bg); }
.dp-recent__item i { color: var(--tx-faint); width: 16px; text-align: center; }
.dp-recent__item span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dp-recent__item strong { font-size: 13.5px; color: var(--tx-strong); }
.dp-recent__item small { font-size: 12px; color: var(--tx-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-recent__empty { padding: 10px 2px; font-size: 12.5px; color: var(--tx-muted); }

/* Lo de abajo aparece al poner el destino */
.xp-reveal { display: flex; flex-direction: column; gap: 16px; }
.xp-reveal-enter-active { transition: opacity .3s ease, transform .3s ease; }
.xp-reveal-enter { opacity: 0; transform: translateY(8px); }
.xp-next { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1.5px dashed var(--border);
  border-radius: var(--r-md); font-size: 12.5px; color: var(--tx-muted); }
.xp-next i { color: var(--tx-faint); }

/* Resumen en el panel de precio */
.xp-recap { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 6px; }
.xp-recap li { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--tx-base); line-height: 1.4; }
.xp-recap .dot { margin-top: 5px; flex-shrink: 0; }

@media (max-width: 560px) {
  .dp .ce-grid--80-20 { grid-template-columns: minmax(0, 1fr) 96px; }
  .xp-dest-card .ce-card__title h2 { font-size: 16px; }
}

/* Tamaño ya elegido: una sola linea con "Cambiar" */
.xp-size-picked { display: flex; align-items: center; gap: 12px; }
.xp-size-picked__emoji { font-size: 26px; line-height: 1; width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--r-md);
  background: var(--bg-app); display: flex; align-items: center; justify-content: center; }
.xp-size-picked__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.xp-size-picked__text strong { font-size: 14px; color: var(--tx-strong); margin-top: 2px; }
.xp-size-picked__text small { font-size: 12px; color: var(--tx-muted); }

/* ===== Secciones: abiertas (formulario normal) o hechas (una linea con "Cambiar") ===== */
.xp-step-card { transition: opacity .2s ease; }
.xp-step-card.is-done .ce-card__head { border-bottom: 0; }
.xp-step-card.is-done .ce-card__head { cursor: pointer; padding-top: 12px; padding-bottom: 12px; }
.xp-step-card.is-done .ce-card__title h2 { font-size: 14px; }
.xp-step-card.is-done:hover { border-color: #d0ccc1; }
.xp-step-card__check { width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 11px; }
/* Punto de seccion pendiente: mismo ancho que la palomita (22px) para que los titulos queden alineados */
.ce-card__head > .dot { width: 22px; height: 22px; padding: 6px; background-clip: content-box; }
.xp-step-card__summary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tx-base) !important; }
.xp-step-card.is-done .ce-card__title { min-width: 0; }
.xp-step-card.is-done .xp-size-picked__emoji { width: 32px; height: 32px; font-size: 20px; }
/* Apagada hasta que llene lo de arriba (mismo gris que el tamaño del clasico) */
.xp-step-card.is-locked { background: var(--bg-app); box-shadow: none; }
.xp-step-card.is-locked .ce-card__head { border-bottom: 0; cursor: default; }
.xp-step-card.is-locked .ce-card__title h2, .xp-step-card.is-locked .ce-card__title p { color: var(--tx-faint); }
.xp-step-card.is-locked .ce-card__title p i { font-size: 10px; margin-right: 4px; }
/* El destino hecho ya no lleva el borde naranja de "aqui empiezas" */
.xp-dest-card.is-done { border: 1px solid var(--border); box-shadow: none; }
.dp-recent-opt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xp-sameday-note { margin: 10px 0 0; font-size: 12.5px; color: var(--tx-muted); }
.xp-sameday-note i { color: var(--orange-d); margin-right: 4px; }
/* Envio creado (mismo cierre que el creador local de app2) */
.xp-exito-overlay { position: fixed; inset: 0; z-index: 1060; background: rgba(20, 18, 14, .5); display: flex; align-items: center;
  justify-content: center; padding: 24px 16px; overflow-y: auto; }
.xp-exito { position: relative; width: 100%; max-width: 440px; text-align: center; background: #fff; border-radius: 18px;
  box-shadow: 0 24px 60px rgba(20, 16, 10, .28); padding: 34px 26px 26px; overflow: hidden; animation: xpExitoIn .32s cubic-bezier(.2, .9, .3, 1.2); }
.xp-exito__close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--tx-faint); cursor: pointer; font: 400 26px/34px Arial, sans-serif; }
.xp-exito__close:hover { background: var(--bg, #f7f4ee); color: var(--tx-strong); }
/* Fuera de zona: misma modal que "Envio creado", con icono naranja y opciones */
.xp-zona__icon { width: 64px; height: 64px; margin: 0 auto; display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--orange-bg); color: var(--orange-d); font-size: 27px; }
.xp-zona__text { margin: 8px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--tx-muted); }
.xp-zona__address { display: flex; align-items: flex-start; gap: 8px; margin: 18px 0 0; padding: 12px 14px; text-align: left; border-radius: var(--r-md);
  background: var(--bg-app, #f7f4ee); font-size: 13px; color: var(--tx-strong); }
.xp-zona__address .dot { flex-shrink: 0; margin-top: 5px; }
.xp-zona__alt { width: 100%; min-height: 50px; justify-content: center; gap: 8px; border-radius: var(--r-md); font-size: 15px; font-weight: 700; }
@keyframes xpExitoIn { from { transform: translateY(16px) scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.xp-exito__icon { width: 62px; height: 62px; margin: 0 auto; }
.xp-exito__icon svg { width: 100%; height: 100%; }
.xp-exito__circle { fill: rgba(30, 158, 90, .10); stroke: #1e9e5a; stroke-width: 2.5; stroke-dasharray: 145; stroke-dashoffset: 145;
  animation: xpCircle .5s ease-out .1s forwards; }
.xp-exito__check { fill: none; stroke: #1e9e5a; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40;
  stroke-dashoffset: 40; animation: xpCheck .32s ease-out .5s forwards; }
@keyframes xpCircle { to { stroke-dashoffset: 0; } }
@keyframes xpCheck { to { stroke-dashoffset: 0; } }
.xp-exito__confetti { position: absolute; inset: 0 0 auto; height: 0; pointer-events: none; }
.xp-exito__confetti span { position: absolute; top: 18px; width: 7px; height: 11px; border-radius: 2px; opacity: 0;
  animation: xpConfetti 1.5s ease-in .45s forwards; }
.xp-exito__confetti span:nth-child(1) { left: 16%; background: #e2603a; animation-delay: .45s; }
.xp-exito__confetti span:nth-child(2) { left: 30%; background: #1e9e5a; animation-delay: .55s; }
.xp-exito__confetti span:nth-child(3) { left: 44%; background: #2f6df6; animation-delay: .5s; }
.xp-exito__confetti span:nth-child(4) { left: 60%; background: #f0a13a; animation-delay: .62s; }
.xp-exito__confetti span:nth-child(5) { left: 74%; background: #e2603a; animation-delay: .48s; }
.xp-exito__confetti span:nth-child(6) { left: 87%; background: #1e9e5a; animation-delay: .58s; }
@keyframes xpConfetti { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(190px) rotate(320deg); } }
@media (prefers-reduced-motion: reduce) {
  .xp-exito, .xp-exito__circle, .xp-exito__check, .xp-exito__confetti span { animation: none; }
  .xp-exito__circle, .xp-exito__check { stroke-dashoffset: 0; }
  .xp-exito__confetti { display: none; }
}
.xp-exito__title { margin: 16px 0 0; font-size: 23px; font-weight: 800; color: var(--tx-strong); letter-spacing: -.01em; }
.xp-exito__lead { margin: 6px 0 0; font-size: 13px; color: var(--tx-muted); }
.xp-exito__guia { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; padding: 13px 16px;
  border: 1px dashed var(--border); border-radius: 12px; background: #faf9f4; }
.xp-exito__label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--tx-faint); }
.xp-exito__num { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 19px; font-weight: 800; color: var(--tx-strong); letter-spacing: .02em; }
.xp-exito__specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 14px; margin: 20px 0 0; padding-top: 16px;
  border-top: 1px solid var(--border); }
.xp-exito__specs dt { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--tx-faint); }
.xp-exito__specs dd { margin: 3px 0 0; font-size: 13.5px; font-weight: 800; color: var(--tx-strong); overflow-wrap: anywhere; }
/* Acciones: misma regla que los modales de pagos y cobranza. La principal pesa mas
   (ancho completo, alta y con sombra); la secundaria es un link de 14px */
.xp-exito__actions { margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.xp-exito__primary { width: 100%; min-height: 54px; justify-content: center; gap: 8px; border-radius: var(--r-md); font-size: 16px; font-weight: 700; box-shadow: 0 10px 24px rgba(var(--orange-d-rgb), .35); }
.xp-exito__secondary { color: var(--orange-d); font-size: 14px; font-weight: 600; }
.xp-exito__secondary:hover { color: var(--orange-d); text-decoration: underline; }
@media (max-width: 420px) { .xp-exito__specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Las listas desplegables (buscador, recientes, colonias) salen por encima de la tarjeta, no recortadas */
.xp-page .xp-dest-card, .xp-page .xp-step-card { overflow: visible; }
.xp-page .xp-dest-card .colsearch__list, .xp-page .xp-dest-card .colsearch { z-index: 60; }
/* Recoleccion: la lista del buscador sale por encima de la tarjeta de destino, no recortada */
.xp-page .xp-origin-card { position: relative; z-index: 5; overflow: visible; }
/* Responsivo: las columnas no crecen con un texto largo de una sola linea (direccion en el resumen);
   sin esto en celular la pagina queda mas ancha que la pantalla y se corta a la derecha */
.xp-detail.ship-layout { grid-template-columns: minmax(0, 1fr) 340px; }
.xp-detail.ship-layout > * { min-width: 0; }
/* Columna derecha del express: tarjeta "Este es el creador express" + precio, fijas juntas al bajar */
.xp-side-col { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 16px; }
.xp-side-col .ship-summary { position: static; }
.xp-intro { display: flex; gap: 12px; align-items: flex-start; }
.xp-intro .icon-box { flex-shrink: 0; }
.xp-intro p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--tx-muted); }
@media (max-width: 900px) {
  .xp-side-col { position: static; }
  .xp-intro { display: none; }
}
.xp-step-card .ce-card__head { min-width: 0; }
.xp-step-card .ce-card__title { flex: 1; min-width: 0; }
.xp-origin__value, .xp-dest-picked__text small, .xp-points__addr, .xp-recap { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .xp-detail.ship-layout { grid-template-columns: minmax(0, 1fr); }
}
/* ===== Cotizador clasico en 3 pasos (/v2/nuevo-envio y /v2/nuevo-envio/crear) ===== */
.xp-wizard { list-style: none; display: flex; gap: 8px; margin: 0 0 18px; padding: 0; }
.xp-wizard__step { flex: 1; min-width: 0; }
.xp-wizard__step > span, .xp-wizard__step > button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-card); font: 700 12.5px var(--font); color: var(--tx-muted); text-align: left; }
.xp-wizard__step > button { cursor: pointer; }
.xp-wizard__step > button:hover { border-color: var(--orange); }
.xp-wizard__num { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: var(--bg-hover); color: var(--tx-muted); font-size: 11.5px; font-weight: 800; }
.xp-wizard__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xp-wizard__step.is-active > span { border-color: var(--orange); background: var(--orange-bg); color: var(--orange-d); }
.xp-wizard__step.is-active .xp-wizard__num { background: var(--orange); color: #fff; }
.xp-wizard__step.is-done > button { color: var(--tx-base); }
.xp-wizard__step.is-done .xp-wizard__num { background: var(--green); color: #fff; font-size: 10px; }
/* Pegado a la izquierda como el envio express: formulario + columna derecha (ship-layout) en los 3 pasos */
.xp-classic__actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; flex-wrap: wrap; }
.xp-classic__actions .xp-note { margin: 0; }
.xp-classic__actions .btn i, .xp-services .btn i, .xp-bar .btn i { margin-left: 6px; }
/* Recoleccion en gris: el que resalta es la entrega */
.xp-classic .xp-origin > i { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: var(--bg-hover); color: var(--tx-muted); font-size: 13px; }
.xp-origin__value--empty { color: var(--tx-faint); font-weight: 500; }
.xp-origin__ok { display: inline-flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 12px; font-weight: 500; color: var(--tx-muted); }
.xp-origin__ok i { font-size: 10px; }
/* Tamaño apagado hasta que pone la entrega */
.xp-size-card.is-locked { background: var(--bg-app); box-shadow: none; }
.xp-size-card.is-locked .ce-card__head { border-bottom: 0; cursor: default; }
.xp-size-card.is-locked .ce-card__title h2 { color: var(--tx-faint); }
.xp-size-card.is-locked .ce-card__title p { color: var(--tx-faint); }
.xp-size-card.is-locked .ce-card__title p i { font-size: 10px; margin-right: 4px; }
.xp-dest-card.is-locked { background: var(--bg-app); border: 1px solid var(--border); box-shadow: none; }
.xp-dest-card.is-locked .ce-card__head { border-bottom: 0; cursor: default; }
.xp-dest-card.is-locked .ce-card__title h2, .xp-dest-card.is-locked .ce-card__title p { color: var(--tx-faint); }
.xp-dest-card.is-locked .ce-card__title p i { font-size: 10px; margin-right: 4px; }
/* Herramientas a la derecha del paso 1 */
.xp-tools { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.xp-tool { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-md);
  color: var(--tx-strong); transition: border-color .12s; }
.xp-tool:hover { border-color: var(--orange); color: var(--tx-strong); text-decoration: none; }
.xp-tool .icon-box { width: 34px; height: 34px; font-size: 14px; color: var(--orange-d); }
.xp-tool__text { min-width: 0; display: flex; flex-direction: column; }
.xp-tool__text strong { font-size: 13px; font-weight: 700; }
.xp-tool__text small { font-size: 12px; color: var(--tx-muted); }
.xp-classic .xp-origin-picker.mt-0, .xp-classic .xp-recap.mt-0 { margin-top: 0; padding-top: 0; border-top: 0; }
.xp-dest-picked__pin--green { color: var(--green); }
.xp-classic .ce-card__head.is-static { cursor: default; }
/* Paso 2: mapa con los dos puntos */
.xp-classic .xp-route-map .gmap-quoter__map { height: 340px; } /* paso 2: la ruta es resumen, el punto se reviso en el paso 1 */
.xp-route-map { position: relative; }
.xp-route-map__focus { position: absolute; left: 10px; top: 10px; display: flex; gap: 4px; padding: 4px; background: #fff;
  border-radius: 999px; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); z-index: 2; }
.xp-route-map__focus button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 6px 12px;
  border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--tx-muted, #555); cursor: pointer; }
.xp-route-map__focus button.is-active { background: var(--orange-bg); color: var(--orange-d); }
.xp-route-map__focus .dot { width: 8px; height: 8px; }
.xp-points { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.xp-points li { display: flex; align-items: flex-start; gap: 10px; }
.xp-points .dot { margin-top: 5px; }
.xp-points__emoji { width: 10px; font-size: 14px; line-height: 1; margin-top: 2px; display: flex; justify-content: center; }
.xp-points__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.xp-points__addr { font-size: 13px; font-weight: 600; color: var(--tx-strong); }
/* Clasico paso 2: recoleccion y entrega en la misma fila; tamaño, cobranza y seguro abajo */
.xp-points--row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.xp-size-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.xp-size-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px;
  background: #fff; font-size: 13px; font-weight: 600; color: var(--tx-strong); cursor: pointer; }
.xp-size-chip small { font-size: 11.5px; font-weight: 500; color: var(--tx-muted); }
.xp-size-chip:hover { border-color: var(--orange); }
.xp-size-chip.is-selected { border-color: var(--orange); background: var(--orange-bg); color: var(--orange-d); }
.xp-extras .xp-extra:first-child { border-top: 1px solid var(--border); padding-top: 12px; }
.xp-breakdown { margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.xp-breakdown div { display: flex; justify-content: space-between; gap: 12px; }
.xp-breakdown dt { font-weight: 500; color: var(--tx-muted); }
.xp-breakdown dd { margin: 0; font-weight: 700; color: var(--tx-strong); }
@media (max-width: 560px) { .xp-points--row { grid-template-columns: 1fr; gap: 10px; } }
.xp-points__status { font-size: 11.5px; color: var(--green); font-weight: 600; margin-top: 1px; }
.xp-points__status.is-out { color: var(--red); }
@media (max-width: 560px) {
  .xp-wizard { gap: 6px; }
  .xp-wizard__step > span, .xp-wizard__step > button { padding: 8px; justify-content: center; }
  .xp-wizard__label { display: none; }
  .xp-wizard__step.is-active .xp-wizard__label { display: inline; }
  /* Pasos ya hechos chiquitos (solo palomita) y el activo con todo el ancho: que "Datos del envío" no se corte */
  .xp-wizard__step.is-done { flex: 0 0 auto; }
  .xp-classic__actions { flex-direction: column-reverse; align-items: stretch; }
  .xp-classic__actions .btn { width: 100%; justify-content: center; }
  .xp-classic .xp-route-map .gmap-quoter__map { height: 280px; }
  .xp-route-map__focus { right: 54px; }
  .xp-route-map__focus button { padding: 6px 8px; font-size: 12px; }
}
/* Multiciudad: la bodega cambio sola a la ciudad de la entrega */
/* Recoleccion cambiada sola por la ciudad de la entrega (clientOriginMixin.applyCityOrigin): linea naranja
   en la tarjeta, en el resumen antes de pagar y en el paso 3; la tarjeta brilla naranja ~2 s al cambiar */
.xp-origin__switch { display: flex; align-items: baseline; gap: 6px; width: fit-content; margin-top: 6px; padding: 5px 10px; border-radius: var(--r-md); background: var(--amber-bg); font-size: 12.5px; font-weight: 600; color: var(--orange-d); line-height: 1.4; }
.xp-origin__switch i { font-size: 11px; }
.xp-origin-card.is-city-switch { animation: xp-city-flash 2s ease-out 1; }
@keyframes xp-city-flash { 0%, 40% { box-shadow: 0 0 0 3px rgba(var(--orange-rgb), .55); } 100% { box-shadow: 0 0 0 0 rgba(var(--orange-rgb), 0); } }
@media (prefers-reduced-motion: reduce) { .xp-origin-card.is-city-switch { animation: none; } }
.xp-city-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.xp-city-actions .btn { max-width: 100%; white-space: normal; text-align: left; }
/* Sin ruta entre ciudades: va en la tarjeta de la entrega, en lugar de "Si llegamos" */
.xp-no-route { display: flex; gap: 16px; margin-top: 18px; padding: 20px 22px; border: 1px solid #FECACA; border-left: 5px solid var(--red); border-radius: var(--r-md); background: var(--red-bg); }
.xp-no-route__icon { flex: none; margin-top: 2px; font-size: 26px; color: var(--red); }
.xp-no-route__body { min-width: 0; }
.xp-no-route__title { margin: 0 0 6px; font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--red); }
.xp-no-route__text { margin: 0; font-size: 15px; color: var(--tx-base); line-height: 1.5; }
.xp-no-route__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.xp-no-route__actions .btn { max-width: 100%; white-space: normal; text-align: left; }
/* Aviso: el envio se junta con una recoleccion que ya tiene agendada en ese punto */
.xp-pickup-join { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; padding: 8px 12px; border-radius: var(--r-md); background: var(--bg-hover); font-size: 12.5px; color: var(--tx-base); line-height: 1.45; }
.xp-pickup-join i { color: var(--tx-muted); font-size: 11px; }
.xp-pickup-join.is-joined { background: var(--green-bg); }
.xp-pickup-join.is-joined i { color: var(--green); }
.xp-pickup-join .ep-switch { align-self: center; flex-shrink: 0; }
.xp-pickup-join .ep-switch-track { padding: 2px; } /* mismo arreglo que .xp-extra: el margin del thumb se salia del track */
.xp-pickup-join .ep-switch-thumb { margin: 0; }
/* Pestaña "Mi ubicacion" de DestinoPickerV2: boton blanco con borde punteado, icono naranja */
.dp-location { border-style: dashed; border-width: 1.5px; font-weight: 700; color: var(--tx-strong); }
.dp-location i { color: var(--orange-d); margin-right: 4px; }
.dp-location:hover:not(:disabled) { border-color: var(--orange); background: var(--orange-bg); }
/* Saldo insuficiente: aviso amarillo sutil (arriba de la barra en celular, arriba del boton en compu) */
.xp-balance-note { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 0; padding: 8px 12px; border-radius: var(--r-md);
  background: var(--amber-bg); color: #92400E; font-size: 12.5px; line-height: 1.45; }
.xp-balance-note i, .xp-bar__notice i { color: var(--amber); }
.xp-bar__notice { display: none; }
@media (max-width: 900px) {
  .xp-bar__notice { display: flex; align-items: center; gap: 8px; position: absolute; left: 0; right: 0; bottom: 100%; margin: 0;
    padding: 6px 16px; background: var(--amber-bg); border-top: 1px solid #FDE68A; color: #92400E; font-size: 12px; line-height: 1.35; }
  .xp-detail .xp-balance-note { display: none; }
}
/* Envio que se quedo esperando pago (banner arriba) */
.xp-draft { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 12px 14px; border: 1.5px solid var(--orange);
  border-radius: var(--r-lg); background: var(--orange-bg); }
.xp-draft__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.xp-draft__text strong { font-size: 14px; color: var(--tx-strong); }
.xp-draft__text span { font-size: 12.5px; color: var(--tx-muted); }
.xp-draft__actions { display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width: 600px) {
  .xp-draft { flex-wrap: wrap; }
  .xp-draft__actions { width: 100%; }
  .xp-draft__actions .btn { flex: 1; justify-content: center; }
}
/* "Paga tu envio" (ModalPayShippingV2): misma caja que la de envio creado */
.xp-pay { text-align: left; }
.xp-pay .xp-exito__title { text-align: center; }
.xp-pay__icon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--orange-bg); color: var(--orange-d); font-size: 22px; }
.xp-pay__icon--wait { background: var(--amber-bg); color: var(--amber); }
.xp-pay__lead { margin: 6px 0 16px; text-align: center; font-size: 14px; color: var(--tx-base); line-height: 1.5; }
.xp-pay__lead b { color: var(--tx-strong); }
.xp-pay__options { display: flex; flex-direction: column; gap: 10px; }
.xp-pay__opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; text-align: left; cursor: pointer;
  border: 1.5px solid var(--border); border-radius: var(--r-lg); background: var(--bg-card); font: inherit; }
.xp-pay__opt:hover:not(:disabled) { border-color: var(--orange); background: var(--orange-bg); }
.xp-pay__opt:disabled { cursor: not-allowed; opacity: .6; }
.xp-pay__opt-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.xp-pay__opt-text strong { font-size: 14.5px; color: var(--tx-strong); }
.xp-pay__opt-text span { font-size: 12.5px; color: var(--tx-muted); line-height: 1.4; }
.xp-pay__opt-text .xp-pay__opt-min { color: var(--amber); }
.xp-pay__tag { flex-shrink: 0; padding: 3px 8px; border-radius: var(--r-pill); background: var(--bg-hover); font-size: 11px; font-weight: 700; color: var(--tx-base); }
.xp-pay__tag--green { background: var(--green-bg); color: var(--green); }
.xp-pay__saved { margin: 14px 0 0; font-size: 12px; color: var(--tx-muted); text-align: center; }
.xp-pay__saved i { margin-right: 4px; }
/* Transferencia directa (ya tiene CLABE): el monto bien grande */
.xp-pay__amount { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0 0 14px; padding: 14px; border-radius: var(--r-lg); background: var(--orange-bg); text-align: center; }
.xp-pay__amount span { font-size: 12px; color: var(--tx-muted); }
.xp-pay__amount strong { font-size: 28px; font-weight: 800; color: var(--tx-strong); line-height: 1.1; }
.xp-pay__amount small { margin-top: 4px; font-size: 11.5px; color: var(--tx-muted); }
.xp-pay__late { margin: 0 0 14px; }
.xp-pay__status { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--bg-hover); }
.xp-pay__status div { display: flex; flex-direction: column; }
.xp-pay__status span { font-size: 11.5px; color: var(--tx-muted); }
.xp-pay__status strong { font-size: 17px; color: var(--tx-strong); }
.xp-pay__status p { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--tx-muted); }
.xp-pay__status .xp-pay__checking { display: flex; align-items: center; gap: 6px; }
.xp-pay__checking i { color: var(--amber); }
/* Esperando el pago: aro que gira alrededor del reloj para que se vea que seguimos revisando */
.xp-pay__icon--spin { position: relative; }
.xp-pay__icon--spin::after { content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 3px solid transparent; border-top-color: var(--amber); border-right-color: var(--amber); animation: xp-pay-spin 1.1s linear infinite; }
@keyframes xp-pay-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .xp-pay__icon--spin::after { animation-duration: 3s; } }
/* Ya llego el pago: creando la guia */
.xp-pay__icon--ok { background: var(--green-bg); color: var(--green); }
.xp-pay__creating { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 4px 0 8px; font-size: 13.5px; font-weight: 600; color: var(--tx-base); }
.xp-pay__creating i { color: var(--green); }
/* Pago que no llega: soporte por WhatsApp */
.xp-pay__late-title { margin: 0 0 2px; font-size: 13.5px; font-weight: 700; color: var(--tx-strong); }
.xp-pay__late-text { margin: 0 0 10px; font-size: 12.5px; color: var(--tx-base); line-height: 1.45; }
.xp-pay__whatsapp { width: 100%; justify-content: center; }
/* Tarjeta dentro de "Paga tu envio" (FormPayShippingCardV2) */
.xp-card__field { padding-top: 12px; padding-bottom: 12px; }
.xp-card__field.is-error { border-color: var(--red); }
.xp-card__pay { width: 100%; justify-content: center; margin-top: 14px; }
.xp-card__secure { margin: 8px 0 0; font-size: 11.5px; color: var(--tx-muted); text-align: center; }
/* Si no cabe en pantalla (celular) que no se corte arriba: centrada solo cuando hay espacio */
.xp-pay { align-self: flex-start; margin-top: auto; margin-bottom: auto; }

/* Modal "¿Que tamaño es mi paquete?": mismo acomodo que las modales de pagos/COD */
.sizecalc__head { display: flex; align-items: center; gap: 12px; }
.sizecalc__head .icon-box { flex-shrink: 0; color: var(--orange-d); }
.sizecalc .ep-modal-title { font-size: 18px; }
.sizecalc .ep-modal-sub { font-size: 13px; }
.sizecalc__hint summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--orange-d); }
.sizecalc__hint p { margin: 6px 0 0; }
.sizecalc__actions { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 4px 22px 22px; }
.sizecalc__primary { width: 100%; min-height: 54px; justify-content: center; }
.sizecalc__secondary { padding: 0; border: none; background: none; font: 600 14px/1.2 inherit; font-family: inherit; color: var(--orange-d); cursor: pointer; }
/* Buscador con pestañas: todos los campos del mismo alto (52px) y la accion principal igual en todas
   (naranja a todo lo ancho, abajo del campo) */
.dp .colsearch__box, .dp .colsearch__box.is-big { min-height: 52px; padding: 0 14px; border-width: 1px; }
.dp .colsearch__input, .dp .colsearch__box.is-big .colsearch__input { font-size: 16px; padding: 0; height: 50px; }
.dp .xp-search .form-control { height: 52px !important; padding: 0 14px !important; }
.dp .dp-input { display: block; width: 100%; min-height: 52px; padding: 0 14px; }
.dp .dp-ia { height: 52px; padding: 14px; overflow: hidden; resize: none; }
.dp .dp-location { min-height: 52px; }
.dp .dp-action { margin-top: 12px; }
/* Con IA en linea: la direccion que encontro */
.dp-ia-found { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: var(--green-bg, #ecfbf1); color: var(--tx-base); font-size: 14px; line-height: 1.4; }
.dp-ia-found i { margin-top: 3px; color: var(--green, #1f9d55); }
.dp-ia-found span { display: block; font-size: 12px; color: var(--tx-muted); }
.dp-ia-found b { display: block; font-weight: 600; }
/* Cotizar: la lista de lo que falta lleva al paso */
.xp-quote-todo__list li.is-link { cursor: pointer; }
.xp-quote-todo__list li.is-link:not(.is-done):hover { color: var(--orange-d); }
.svc-price small { display: block; font-size: 11px; font-weight: 600; color: var(--tx-muted); text-align: right; line-height: 1; }
.xp-from { margin-right: 4px; font-size: 11px; font-weight: 500; color: var(--tx-muted); }
.xp-size__img { display: block; width: 120px; height: 72px; margin: 0 auto 8px; object-fit: contain; }
/* Celular: tamaños en filas (imagen a la derecha, texto a la izquierda) para no hacer tanto scroll */
@media (max-width: 560px) {
  .xp-sizes { grid-template-columns: 1fr; gap: 8px; }
  .xp-size { display: grid; grid-template-columns: 1fr 64px; grid-template-rows: auto auto auto; column-gap: 14px; align-items: center; padding: 8px 12px; text-align: left; }
  .xp-size__img { grid-row: 1 / 4; grid-column: 2; width: 64px; height: 44px; margin: 0; }
  .xp-size__name { font-size: 14px; }
  .xp-size__cap { font-size: 12.5px; }
  .xp-size__dim { font-size: 11.5px; }
}
/* Cotizador nacional: la colonia es opcional. Compu: junto al CP en la misma fila. Celular: se esconde */
.xp-cp__row.has-colonia { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.xp-cp__row .xp-cp__colonia { height: auto; min-height: 100%; margin: 0; }
.xp-cp__row .xp-cp__colonia.is-empty { color: var(--tx-muted); }
.xp-cp__row .xp-cp__colonia option { color: var(--tx, #1a1a1a); }
@media (max-width: 560px) {
  .xp-cp__row.has-colonia { display: block; }
  .xp-cp__row .xp-cp__colonia { display: none; }
}
.xp-cp__row .xp-cp__colonia { -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px 18px; }
/* Medidas exactas (envíos locales): el tamaño que le toca según lo que mide y pesa */
.xp-fit { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 12px 16px; border: 1.5px solid var(--orange); border-radius: 14px; background: var(--orange-bg); }
.xp-fit__img { flex: 0 0 auto; width: 84px; height: 56px; object-fit: contain; }
.xp-fit__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.xp-fit__label { font-size: 12.5px; color: var(--tx-muted); }
.xp-fit__name { font-size: 16px; color: var(--orange-d); }
.xp-fit__meta { font-size: 12px; color: var(--tx-muted); line-height: 1.4; }
@media (max-width: 560px) {
  .xp-fit { gap: 12px; padding: 10px 12px; }
  .xp-fit__img { width: 64px; height: 44px; }
}
/* Tamaño con foto (mismas imagenes de public/images/tamanos) */
img.xp-size-picked__emoji { object-fit: contain; padding: 3px; }
.xp-size-chip__img { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
/* Cotizar sin cuenta (sin menu lateral): no tan ancho en pantallas grandes */
.xp-page.is-public { max-width: 1180px; margin-left: auto; margin-right: auto; }
/* Nacional sin direcciones guardadas: los dos CP a la vista, cada uno con su etiqueta */
.xp-two-cp { display: flex; flex-direction: column; gap: 16px; }
.xp-two-cp__field .field-label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--tx-strong); }
.xp-two-cp__dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.xp-two-cp__dot.is-from { background: var(--blue); }
.xp-two-cp__dot.is-to { background: var(--red); }
/* ===== Clasico paso 2: 1) confirmar ubicacion, 2) tipo de envio; tamaño y extras en el resumen (carrito) ===== */
.xp-classic .ce-card__head .xp-step__num { margin-top: 2px; }
.xp-step__num.is-done { background: var(--green); font-size: 12px; }
/* Promesa del servicio elegido: recolectamos / entregamos / agenda antes de */
.xp-promise { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; padding: 14px 16px; border: 1px solid var(--border);
  border-radius: var(--r-md); background: var(--bg-app); }
.xp-promise__row { display: flex; align-items: baseline; gap: 10px; font-size: 14px; color: var(--tx-base); }
.xp-promise__row i { width: 16px; text-align: center; color: var(--orange-d); font-size: 13px; }
.xp-promise__row strong { color: var(--tx-strong); }
.xp-promise__row--deadline { font-size: 13px; color: var(--tx-muted); }
/* Resumen tipo carrito */
.xp-cart .btn i { margin-left: 6px; }
.xp-cart__row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.xp-cart__size-img { width: 34px; height: 34px; object-fit: contain; flex-shrink: 0; }
.xp-cart__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.xp-cart__label { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--tx-muted); }
.xp-cart__value { font-size: 13.5px; font-weight: 700; color: var(--tx-strong); }
.xp-size-chips--sm { margin-top: 10px; gap: 6px; }
.xp-size-chips--sm .xp-size-chip { padding: 5px 10px; font-size: 12.5px; }
.xp-size-chips--sm .xp-size-chip__img { width: 18px; height: 18px; }
.xp-cart__section { margin: 16px 0 4px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 11px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--tx-muted); }
.xp-cart__section + .xp-extra { border-top: none; padding-top: 6px; }
.xp-cart .xp-extra { padding: 10px 0; }
.xp-cart .xp-extra__title { font-size: 13px; }
.xp-cart .xp-extra__cost { font-size: 12.5px; font-weight: 700; color: var(--tx-muted); }
/* Direccion de entrega encontrada con IA o con link: aviso y liga a Google Maps */
.xp-dest-source { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 4px; font-size: 12px; color: var(--tx-muted); }
.xp-dest-source i { font-size: 11px; color: var(--orange-d); }
.xp-dest-source a { font-weight: 700; color: var(--orange-d); }
.xp-dest-source a i { margin-left: 3px; font-size: 10px; }
.xp-classic .xp-dest-card .gmap-quoter, .xp-classic .xp-origin-card .gmap-quoter { margin-top: 14px; }
/* Clasico paso 2: mapa a la izquierda y todo lo demas a la derecha, en el mismo campo visual.
   La columna derecha es la larga; el mapa se queda fijo mientras se baja */
.xp-detail--s2.ship-layout { grid-template-columns: minmax(0, 1fr) 380px; }
.xp-detail--s2 .ship-summary { position: static; }
.xp-detail--s2 > .ce-form { position: sticky; top: 20px; }
.svc-list--compact { gap: 8px; margin-top: 12px; }
.svc-list--compact .svc-opt { padding: 11px 12px; gap: 10px; }
.svc-list--compact .svc-name { font-size: 14px; }
.svc-list--compact .svc-eta { font-size: 12.5px; }
.xp-cart .switch-row { margin-top: 10px; }
.xp-cart__row--sep { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.xp-cart .xp-promise { margin-top: 16px; }
.xp-promise__note { margin: 2px 0 0; padding-top: 8px; border-top: 1px dashed var(--border); font-size: 12px; color: var(--tx-muted); }
@media (max-width: 900px) {
  .xp-detail--s2.ship-layout { grid-template-columns: minmax(0, 1fr); }
  .xp-detail--s2 > .ce-form { position: static; }
}
/* Extras discretos en el resumen: switch chico, titulo normal, sin explicacion hasta prenderlo */
.xp-cart__section span { font-weight: 500; letter-spacing: 0; text-transform: none; }
.xp-cart .xp-extra--slim { padding: 6px 0; align-items: center; border-top: none; }
.xp-cart .xp-extra--slim .ep-switch { transform: scale(.8); transform-origin: left center; margin-right: -6px; }
.xp-cart .xp-extra--slim .xp-extra__title { font-size: 12.5px; font-weight: 600; color: var(--tx-base); }
.xp-cart .xp-extra--slim .xp-extra__desc { font-size: 11.5px; }
.xp-cart .xp-extra--slim .xp-extra__cost { font-size: 12px; font-weight: 600; }
/* Paso 2 en escritorio: mapa mas alto para que pese parecido a la columna derecha */
@media (min-width: 901px) {
  .xp-classic .xp-detail--s2 .xp-route-map .gmap-quoter__map { height: 470px; }
}
/* Extras con dato (cobranza, valor asegurado): en computadora el campo va a un lado del texto, no abajo */
@media (min-width: 901px) {
  .xp-extra__body { display: grid; grid-template-columns: minmax(0, max-content) auto; justify-content: start; align-items: start; }
  .xp-extra__title, .xp-extra__desc { grid-column: 1; }
  .xp-extra__input { grid-column: 2; grid-row: 1 / span 2; display: grid; grid-template-columns: auto 150px; align-items: center; column-gap: 10px; max-width: none; align-self: center; margin: 0 0 0 40px; }
  .xp-extra__input .field-label { margin: 0; white-space: nowrap; }
  .xp-extra__input .field-error { grid-column: 1 / -1; max-width: 300px; }
}
/* Mapa del paso 2 en celular: "Viendo: Entrega" y al tocarlo se abre la lista (los 3 botones no caben) */
.xp-route-map__current { display: none; }
@media (max-width: 560px) {
  .xp-classic .xp-route-map .gmap-quoter__map { height: 420px; }
  .xp-route-map__current { position: absolute; left: 10px; top: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; border: 0;
    padding: 8px 14px; background: #fff; border-radius: 999px; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); font-size: 13px; font-weight: 700;
    color: var(--orange-d); cursor: pointer; }
  .xp-route-map__current-label { font-weight: 500; color: var(--tx-muted); }
  .xp-route-map__current .dot { width: 8px; height: 8px; }
  .xp-route-map__chevron { font-size: 10px; margin-left: 2px; color: var(--tx-muted); transition: transform .15s; }
  .xp-route-map__current[aria-expanded="true"] .xp-route-map__chevron { transform: rotate(180deg); }
  .xp-route-map__focus { display: none; top: 52px; right: auto; flex-direction: column; align-items: stretch; border-radius: 12px; z-index: 3; }
  .xp-route-map__focus.is-open { display: flex; }
  .xp-route-map__focus button { justify-content: flex-start; padding: 10px 14px; font-size: 13px; border-radius: 8px; }
}
/* Encargo: el enfoque (borde naranja) pasa a "dónde recogemos"; la entrega queda tranquila */
.xp-origin-card.is-focus { border: 1.5px solid var(--orange); box-shadow: 0 0 0 4px rgba(var(--orange-d-rgb), .08); }
.xp-origin-card.is-focus.has-error { border-color: var(--red); box-shadow: none; }
.xp-dest-card.is-calm { border: 1px solid var(--border); box-shadow: none; }
.xp-dest-card.is-calm.has-error { border-color: var(--red); }
.xp-dest-card.is-calm .ce-card__title h2 { font-size: 16px; }
/* Productos de inventario (fulfillment): lista elegida + ventana de busqueda (ShopItemsModalPickerV2) */
.inv-picker__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.inv-picker__head .field-label { margin: 0; }
.inv-sel { display: flex; flex-direction: column; }
.inv-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.inv-row:last-child { border-bottom: none; }
.inv-row__info, .inv-prod__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.inv-row__name, .inv-prod__name { font-size: 13.5px; font-weight: 600; color: var(--tx-strong); }
.inv-row__sku, .inv-prod__sku { font-size: 11.5px; color: var(--tx-muted); }
.inv-row__info .field-error { margin: 2px 0 0; }
.inv-row__remove { flex: none; background: none; border: none; padding: 0; font-size: 12px; font-weight: 600; color: var(--red); cursor: pointer; }
.inv-row__remove i { display: none; }
/* Express: cada producto en su cajita gris, basura en vez de "Eliminar" y el valor declarado debajo */
.xp-inv .inv-sel { gap: 8px; }
.xp-inv .inv-row { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-app); }
.xp-inv .inv-row:last-child { border-bottom: 1px solid var(--border); }
.xp-inv .inv-stepper { background: var(--bg-card, #fff); }
.xp-inv .inv-row__remove { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--r-sm); color: var(--tx-faint); }
.xp-inv .inv-row__remove:hover { background: rgba(220, 38, 38, .08); color: var(--red); }
.xp-inv .inv-row__remove i { display: inline; font-size: 14px; }
.xp-inv .inv-row__remove-text { display: none; }
.xp-inv .xp-inv__declared { width: 50%; margin-top: 4px; }
.inv-stepper { flex: none; display: flex; align-items: center; gap: 4px; border: 1px solid var(--border); border-radius: var(--r-md); padding: 3px; }
.inv-stepper button {
  width: 28px; height: 28px; border: none; border-radius: var(--r-sm); background: none;
  font-size: 16px; font-weight: 700; color: var(--orange-d); cursor: pointer; line-height: 1;
}
.inv-stepper button:hover { background: var(--bg-hover); }
.inv-stepper button:disabled { color: var(--tx-faint); cursor: default; background: none; }
.inv-stepper b { min-width: 24px; text-align: center; font-size: 13.5px; color: var(--tx-strong); }
.inv-stepper b.is-zero { color: var(--tx-faint); }
.inv-empty {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  padding: 14px 16px; border: 1.5px dashed var(--border); border-radius: var(--r-md); background: none;
  font-size: 12.5px; color: var(--tx-muted);
}
.inv-empty:hover { border-color: var(--orange); background: rgba(var(--orange-rgb), .04); }
.inv-empty i { font-size: 18px; color: var(--orange-d); }
.inv-empty strong { display: block; font-size: 13.5px; color: var(--tx-strong); }
.inv-modal { max-height: min(600px, calc(100vh - 180px)); }
.inv-modal .ep-modal-body { display: flex; flex-direction: column; overflow: hidden; }
.inv-modal__status { margin: 8px 0 4px; font-size: 11.5px; color: var(--tx-muted); }
.inv-modal__status.is-warn { color: var(--red); }
.inv-modal__list { flex: 1; min-height: 120px; overflow-y: auto; margin-right: -10px; padding-right: 10px; }
.inv-modal__none { padding: 16px 0; font-size: 12.5px; }
.inv-modal__count { margin-right: auto; font-size: 12px; font-weight: 600; color: var(--tx-muted); }
.inv-prod { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.inv-prod.is-out { opacity: .55; }
.inv-prod__img {
  flex: none; width: 40px; height: 40px; border-radius: var(--r-sm); overflow: hidden; background: var(--bg-hover);
  display: flex; align-items: center; justify-content: center; color: var(--tx-faint);
}
.inv-prod__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 575px) {
  /* Celular: el texto a la izquierda; la cantidad arriba a la derecha y "Eliminar" debajo de ella */
  .inv-row {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "info qty" "info del";
    column-gap: 12px; row-gap: 6px; align-items: start;
  }
  .inv-row__info { grid-area: info; }
  .inv-row .inv-stepper { grid-area: qty; }
  .inv-row__remove { grid-area: del; justify-self: end; padding: 2px 0; }
  .xp-inv .inv-row__remove { padding: 0; }
  .xp-inv .xp-inv__declared { width: 100%; }
  .inv-modal-overlay { align-items: flex-start; padding: 12px; }
  .inv-modal { max-height: calc(100vh - 24px); }
  .inv-modal .ep-modal-footer { flex-wrap: wrap; }
  .inv-modal__count { flex-basis: 100%; }
}
/* Con bodega y sin productos todavia: el valor declarado no sale y los productos usan todo el ancho */
.ce-grid--single { grid-template-columns: 1fr; }
/* Con bodega y sin productos todavia: el valor declarado no sale y los productos usan todo el ancho */
.ce-grid--single { grid-template-columns: 1fr; }
/* "Para encontrar el lugar de entrega" (crear envio y cotizador express): rejilla de 12 columnas;
   cada campo trae su ancho (ce-span-N, ver lugarCells). 2 columnas en tablet y una en celular */
.ce-grid.ce-lugar-row { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.ce-lugar-row > .ce-span-2 { grid-column-end: span 2; }
.ce-lugar-row > .ce-span-3 { grid-column-end: span 3; }
.ce-lugar-row > .ce-span-4 { grid-column-end: span 4; }
.ce-lugar-row > .ce-span-5 { grid-column-end: span 5; }
.ce-lugar-row > .ce-span-6 { grid-column-end: span 6; }
.ce-lugar-row > .ce-span-9 { grid-column-end: span 9; }
.ce-lugar-row > .ce-row-start { grid-column-start: 1; }
@media (max-width: 1100px) {
  .ce-lugar-row > [class*="ce-span-"] { grid-column-end: span 6; }
}
@media (max-width: 560px) {
  .ce-lugar-row > [class*="ce-span-"] { grid-column-end: span 12; }
}
.ce-lugar-row .multiselect { min-height: 0; color: var(--tx-strong); }
.ce-lugar-row .multiselect__tags {
  min-height: 0; padding: 10px 40px 10px 12px; border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--bg-card);
}
.ce-lugar-row .multiselect--active .multiselect__tags { border-color: #d0ccc1; box-shadow: 0 0 0 3px rgba(var(--orange-d-rgb), .12); }
.ce-lugar-row .multiselect__single,
.ce-lugar-row .multiselect__input,
.ce-lugar-row .multiselect__placeholder {
  min-height: 0; margin: 0; padding: 0; background: transparent; font: 500 13px/1.4 var(--font); color: var(--tx-strong);
}
.ce-lugar-row .multiselect__placeholder { font-weight: 400; color: var(--tx-faint); }
.ce-lugar-row .multiselect__select { top: 50%; right: 4px; height: 32px; transform: translateY(-50%); }
.ce-lugar-row .multiselect--active .multiselect__select { transform: translateY(-50%) rotate(180deg); }
.ce-lugar-row .multiselect__select::before { border-color: var(--tx-muted) transparent transparent; }
.ce-lugar-row .multiselect__content-wrapper {
  margin-top: 4px; border: 1px solid var(--border); border-radius: var(--r-sm); box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}
.ce-lugar-row .multiselect--above .multiselect__content-wrapper { margin: 0 0 4px; }
.ce-lugar-row .multiselect__option { padding: 10px 12px; min-height: 0; font-size: 13px; line-height: 1.4; }
.ce-lugar-row .multiselect__option::after { display: none; }
.ce-lugar-row .multiselect__option--highlight,
.ce-lugar-row .multiselect__option--selected.multiselect__option--highlight { background: var(--orange-bg); color: var(--tx-strong); }
.ce-lugar-row .multiselect__option--selected { background: transparent; font-weight: 700; color: var(--orange-d); }
.ce-lugar-row .multiselect__spinner { background: transparent; }
.ce-lugar-row .multiselect__spinner::before,
.ce-lugar-row .multiselect__spinner::after { border-top-color: var(--orange); }
/* Falta elegirlo: mismo rojo que los campos de texto */
.ce-lugar-row .multiselect.has-error .multiselect__tags { border-color: var(--red); background-color: var(--red-bg); }
.ce-lugar-row .field-label:has(+ .multiselect.has-error) { color: var(--red); }
@media (max-width: 780px) {
  /* 16px: evita el zoom de iPhone al escribir en el buscador */
  .ce-lugar-row .multiselect__single, .ce-lugar-row .multiselect__input, .ce-lugar-row .multiselect__placeholder { font-size: 16px; }
}
