/* Tinbri Address Picker — buscador de dirección + mapa (Leaflet). Tokens con fallback
   para servir tanto al panel como a cualquier plantilla del storefront. */
.tb-addr { position: relative; display: block; }

.tb-addr-field { position: relative; }

.tb-addr-suggest {
  position: absolute; z-index: 1200; left: 0; right: 0; top: calc(100% + 4px);
  margin: 0; padding: 4px; list-style: none;
  background: var(--c-surface, #fff);
  border: 1px solid var(--c-border, #e2e8f0);
  border-radius: var(--radius, 10px);
  box-shadow: var(--bsh, 0 8px 24px rgba(15, 23, 42, .12));
  max-height: 260px; overflow-y: auto;
}
.tb-addr-suggest li {
  padding: 9px 11px; border-radius: 7px; cursor: pointer; font-size: 13.5px;
  color: var(--c-text, #334155); line-height: 1.35;
}
.tb-addr-suggest li:hover { background: var(--c-bg, #f1f5f9); }
.tb-addr-suggest[hidden] { display: none; }

.tb-addr-map {
  margin-top: 10px; height: 240px; width: 100%;
  border: 1px solid var(--c-border, #e2e8f0);
  border-radius: var(--radius, 10px);
  overflow: hidden; background: #e8eef3;
}

.tb-addr-hint { margin: 7px 2px 0; font-size: 12px; color: var(--c-text-soft, #94a3b8); }

/* Alerta: no se detectó la altura (número) de la dirección */
.tb-addr-warn {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; padding: 9px 11px;
  background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius, 10px);
  font-size: 12.5px; line-height: 1.45; color: #92400e;
}
.tb-addr-warn svg { flex-shrink: 0; margin-top: 1px; color: #b45309; }
.tb-addr-warn[hidden] { display: none; }

/* Altura manual obligatoria cuando el geocoder no la confirma */
.tb-addr-altura-wrap { margin-top: 8px; }
.tb-addr-altura-wrap[hidden] { display: none; }
.tb-addr-altura-lb { display: block; margin-bottom: 4px; font-size: 12.5px; font-weight: 600; color: #92400e; }
.tb-addr-altura-input {
  width: 100%; box-sizing: border-box; padding: 8px 10px;
  border: 1px solid #fde68a; border-radius: var(--radius, 10px); font-size: 13.5px;
  background: #fffbeb; color: #78350f;
}
.tb-addr-altura-input:focus { outline: none; border-color: #f59e0b; }
.tb-addr-altura-input.tb-addr-err { border-color: #dc2626; background: #fef2f2; }

/* el pin (DivIcon) no debe tener fondo/borde del default de Leaflet */
.tb-addr-pin { background: none; border: 0; }
.tb-addr-pin svg { display: block; filter: drop-shadow(0 2px 3px rgba(15, 23, 42, .3)); }

/* Leaflet dentro de contenedores con z-index/transform raros: aseguramos el apilado de panes */
.tb-addr-map .leaflet-pane,
.tb-addr-map .leaflet-top,
.tb-addr-map .leaflet-bottom { z-index: 400; }
.tb-addr-map .leaflet-control-attribution { font-size: 10px; }
