/* Favorito Delivery — Build 422
   Chat do lojista preso à altura útil da tela, limpeza do detalhe do pedido
   e aviso de cidade/endereço ainda sem cobertura. */

/* O status duplicado do drawer (ex.: "Aprovado" + texto explicativo) não aparece mais. */
body[data-area="app"] .order-detail-status-card,
body.order-manager-body .order-detail-status-card,
body[data-area="app"] .order-detail-head-status,
body.order-manager-body .order-detail-head-status{
  display:none!important;
}

/* Chat do painel: a conversa ocupa somente a área visível e o compositor fica sempre
   no rodapé do card, acima da barra inferior da tela. */
@media (min-width:821px){
  body[data-area="app"] .fd409-chat-admin[data-fd409-admin-chat]{
    height:var(--fd422-chat-height,calc(100dvh - 250px))!important;
    min-height:320px!important;
    max-height:calc(100dvh - 12px)!important;
    overflow:hidden!important;
  }
  body[data-area="app"] .fd409-chat-admin[data-fd409-admin-chat] .fd409-chat-inbox,
  body[data-area="app"] .fd409-chat-admin[data-fd409-admin-chat] .fd409-chat-panel{
    height:100%!important;
    min-height:0!important;
    max-height:100%!important;
    overflow:hidden!important;
  }
  body[data-area="app"] .fd409-chat-admin[data-fd409-admin-chat] .fd409-chat-thread-list,
  body[data-area="app"] .fd409-chat-admin[data-fd409-admin-chat] .fd409-chat-admin-messages{
    min-height:0!important;
    overflow-y:auto!important;
  }
  body[data-area="app"] .fd409-chat-admin[data-fd409-admin-chat] .fd409-chat-admin-messages{
    flex:1 1 0!important;
  }
  body[data-area="app"] .fd409-chat-admin[data-fd409-admin-chat] .fd409-chat-reply{
    position:relative!important;
    bottom:auto!important;
    flex:0 0 auto!important;
    z-index:12!important;
    background:var(--surface,#fff)!important;
  }
}

/* Mobile/tablet: mantém a caixa de resposta acima da navegação/teclado. */
@media (max-width:820px){
  body[data-area="app"] .fd409-chat-panel{
    min-height:0!important;
  }
  body[data-area="app"] .fd409-chat-reply{
    position:sticky!important;
    bottom:calc(env(safe-area-inset-bottom) + 4px)!important;
    z-index:20!important;
    background:var(--surface,#fff)!important;
  }
}

/* Estado de cobertura do Marketplace. */
.fd422-no-coverage-note{
  max-width:560px;
  margin:7px auto 0;
  line-height:1.5;
}
