/* endereco.css — Ridee Food, Q5 (06/11/2026): mapa com pino fixo, etapa de número e folha "Endereço de entrega". Prefixo .end- */
.end-map { position: fixed; inset: 0; z-index: 1300; display: flex; flex-direction: column; background: #fff; color: #1A1A1A; opacity: 0; transition: opacity .25s ease; }
.end-map.is-in { opacity: 1; }
.end-map-area { position: relative; flex: 1 1 auto; min-height: 140px; }
.end-map-canvas { position: absolute; inset: 0; background: #e8e6df; }
.end-map-canvas .leaflet-container { font-family: inherit; }
.end-map-back, .end-map-loc { position: absolute; z-index: 500; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: #1A1A1A; box-shadow: 0 2px 10px rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.end-map-back { left: 16px; top: calc(12px + env(safe-area-inset-top)); }
.end-map-loc { right: 16px; bottom: 16px; }
.end-map-back svg, .end-map-loc svg { width: 22px; height: 22px; }
.end-map .leaflet-top.leaflet-right { margin-top: env(safe-area-inset-top); }
.end-map .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; }
/* pino: a ponta fica exatamente no centro do mapa */
.end-pin { position: absolute; left: 50%; top: 50%; z-index: 450; width: 0; height: 0; pointer-events: none; }
.end-pin-svg { position: absolute; left: -20px; top: -52px; width: 40px; height: 52px; display: block; transition: transform .18s ease; transform-origin: 50% 100%; filter: drop-shadow(0 2px 2px rgba(0,0,0,.2)); }
.end-pin-sombra { position: absolute; left: -9px; top: -3px; width: 18px; height: 6px; border-radius: 50%; background: rgba(0,0,0,.35); transition: transform .18s ease, opacity .18s ease; }
.end-pin.lift .end-pin-svg { transform: translateY(-16px); }
.end-pin.lift .end-pin-sombra { transform: scale(.6); opacity: .5; }
.end-pin.drop .end-pin-svg { animation: end-quica .45s cubic-bezier(.3,1.4,.5,1); }
@keyframes end-quica { 0% { transform: translateY(-16px); } 45% { transform: translateY(0); } 65% { transform: translateY(-7px); } 85% { transform: translateY(0); } 92% { transform: translateY(-2px); } 100% { transform: translateY(0); } }
/* cartão inferior */
.end-card { flex: 0 0 auto; max-height: 72vh; overflow-y: auto; background: #fff; border-radius: 20px 20px 0 0; margin-top: -20px; position: relative; z-index: 600; padding: 18px 20px calc(18px + var(--mk-sa-b, env(safe-area-inset-bottom, 0px))); box-shadow: 0 -4px 20px rgba(0,0,0,.14); -webkit-overflow-scrolling: touch; }
.end-card[hidden], .end-et1[hidden], .end-et2[hidden], .end-in[hidden] { display: none; }
.end-card-k { display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: rgba(26,26,26,.6); margin-bottom: 6px; }
.end-addr { min-height: 52px; margin-bottom: 14px; }
.end-addr-t { display: block; font-size: 18px; line-height: 1.25; font-weight: 800; transition: opacity .13s ease; }
.end-addr-t.out { opacity: 0; }
.end-addr-s { display: block; font-size: 14px; color: rgba(26,26,26,.65); margin-top: 3px; min-height: 18px; }
.end-btn { width: 100%; min-height: 52px; border: 0; border-radius: 16px; background: #F9D515; color: #1A1A1A; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; }
.end-btn:active { transform: scale(.985); }
.end-btn:disabled { opacity: .6; cursor: default; }
.end-btn.load, .opt-row.load, .end-btn-sec.load { opacity: .6; pointer-events: none; }
.end-btn-sec { background: #fff; border: 2px solid #1A1A1A; margin: 16px 0 0; }
.end-btn svg { width: 20px; height: 20px; }
/* etapa 2 */
/* 06/11 (coordenador) — na etapa 2 o mapa ocupa o que sobra (mín. 22vh) e o cartão fica colado embaixo: com altura fixa
   do mapa sobrava um vão branco abaixo do cartão. */
.end-map.et2 .end-map-area { flex: 1 1 auto; min-height: max(120px, 22vh); }
.end-map.et2 .end-card { max-height: 78vh; }
.end-sum { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.end-sum b { display: block; font-size: 17px; font-weight: 800; }
.end-sum small { display: block; font-size: 14px; color: rgba(26,26,26,.65); margin-top: 2px; }
.end-link { background: none; border: 0; font: inherit; font-size: 15px; font-weight: 800; color: #1A1A1A; text-decoration: underline; min-height: 44px; padding: 0 4px; cursor: pointer; }
.end-fld { display: block; margin-bottom: 12px; flex: 1 1 auto; }
.end-fld > span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.end-fld small { font-weight: 500; color: rgba(26,26,26,.55); }
.end-fld2 { display: flex; gap: 12px; align-items: flex-end; margin-bottom: 0; }
.end-fld2 .end-fld { flex: 1 1 0; }
.end-in { width: 100%; box-sizing: border-box; min-height: 52px; border: 1.5px solid rgba(26,26,26,.2); border-radius: 14px; padding: 0 14px; font: inherit; font-size: 16px; color: #1A1A1A; background: #fff; }
.end-in:focus { outline: none; border-color: #1A1A1A; box-shadow: 0 0 0 3px rgba(249,213,21,.7); }
.end-in:disabled { background: #f2f2f0; }
#endApelido { margin-top: 10px; }
.end-chk { flex: 0 0 auto; min-height: 52px; margin-bottom: 12px; border: 1.5px solid rgba(26,26,26,.2); border-radius: 14px; background: #fff; font: inherit; font-size: 15px; font-weight: 700; padding: 0 14px; display: flex; align-items: center; gap: 8px; cursor: pointer; color: #1A1A1A; }
.end-chk i { width: 20px; height: 20px; border-radius: 6px; border: 2px solid #1A1A1A; display: inline-block; box-sizing: border-box; }
.end-chk.on { background: #FFF6BF; border-color: #1A1A1A; }
.end-chk.on i { background: #F9D515; box-shadow: inset 0 0 0 3px #fff; }
.end-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.end-chip { min-height: 44px; border-radius: 22px; border: 1.5px solid rgba(26,26,26,.2); background: #fff; font: inherit; font-size: 15px; font-weight: 700; padding: 0 18px; cursor: pointer; color: #1A1A1A; }
.end-chip.on { background: #F9D515; border-color: #1A1A1A; }
.end-et2 .end-btn { margin-top: 6px; }
/* folha "Endereço de entrega" */
.end-esc { padding: 4px 16px calc(20px + var(--mk-sa-b, env(safe-area-inset-bottom, 0px))); }
/* 06/11 (coordenador) — a regra de respiro das folhas zera a lateral de `.mkt-sheet-ov.end` (folha antiga "Entregar em");
   nesta folha o respiro é do corpo, e as linhas não trazem margem própria. */
.mkt .mkt-sheet-ov.end .mkt-sheet-body.end-esc { padding-left: 16px; padding-right: 16px; }
.mkt .mkt-sheet-ov.end .end-esc > *, .mkt .mkt-sheet-ov.end .end-esc .end-row { margin-left: 0; margin-right: 0; }
/* 10/11/2026 — OS CARTÕES NÃO OCUPAVAM A LARGURA (pedido 13 do dono). A linha é `.opt-row`, que no vitrine.css nasce com
   `width: calc(100% - 32px); margin: 8px 16px 0` (ela foi feita para folhas SEM respiro no corpo). A regra acima tirou a
   margem mas deixou a largura: cada cartão ficava 32px mais estreito que o corpo e encostado à esquerda — 16px de
   respiro de um lado e 48px do outro, em qualquer tela. Aqui a linha ocupa o corpo inteiro (o respiro de 16px é do
   corpo, igual aos outros cartões) e nada tem largura fixa. */
.mkt .mkt-sheet-ov.end .end-esc .end-row, .mkt .mkt-sheet-ov.end .end-esc .end-lista { width: 100%; max-width: none; box-sizing: border-box; }
.mkt .mkt-sheet-ov.end .end-esc .end-row .tx { min-width: 0; overflow-wrap: anywhere; }
.mkt .mkt-sheet-ov.end .end-esc .end-row:focus-visible { outline: 3px solid #1A1A1A; outline-offset: 2px; }
.end-esc.carregando { opacity: .6; }
.end-busca { position: relative; margin: 8px 0 10px; }
.end-sug { background: #fff; border: 1.5px solid rgba(26,26,26,.15); border-radius: 14px; margin-top: 6px; overflow: hidden; }
.end-sug-i { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 8px 14px; border: 0; border-bottom: 1px solid rgba(26,26,26,.08); background: none; text-align: left; font: inherit; font-size: 15px; color: #1A1A1A; cursor: pointer; }
.end-sug-i:last-child { border-bottom: 0; }
.end-sug-i svg { width: 18px; height: 18px; flex: 0 0 auto; }
.end-sug-vazio { padding: 14px; font-size: 14px; color: rgba(26,26,26,.65); }
.end-esc .end-row { min-height: 56px; cursor: pointer; }
.end-esc .end-del { min-width: 44px; min-height: 44px; }
.end-aviso { margin: 12px 0; padding: 14px; border-radius: 16px; background: #FFF6BF; font-size: 14px; }
@media (min-width: 700px) { .end-card { max-width: 520px; margin-left: auto; margin-right: auto; width: 100%; box-sizing: border-box; border-radius: 20px 20px 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .end-map, .end-pin-svg, .end-pin-sombra, .end-addr-t { transition: none; }
  .end-pin.drop .end-pin-svg { animation: none; }
}
