/* Favorito Delivery — Build 414
   Confirmação de leitura no chat + andamento do pedido com uma única linha limpa. */

/* Chat: horário + estado da mensagem sem poluir a conversa. */
.fd414-store-chat-meta{
  display:flex!important;align-items:center!important;gap:6px!important;
  min-height:14px!important;padding:0 3px!important;
  font-size:9px!important;line-height:1.2!important;color:var(--muted,#667085)!important;
}
.fd409-store-chat-message.is-customer .fd414-store-chat-meta{justify-content:flex-end!important}
.fd409-store-chat-message.is-store .fd414-store-chat-meta{justify-content:flex-start!important}
.fd414-store-chat-meta .fd409-store-chat-time{padding:0!important;font-size:9px!important}
.fd414-chat-receipt{display:inline-flex!important;align-items:center!important;gap:3px!important;font-weight:700!important;white-space:nowrap!important}
.fd414-chat-receipt::before{content:"✓";font-size:9px;font-weight:900}
.fd414-chat-receipt.is-read{color:var(--primary,var(--color-primary,#ea010b))!important}
.fd414-chat-receipt.is-read::before{content:"✓✓";letter-spacing:-2px;margin-right:2px}
.fd414-chat-receipt.is-sent{color:var(--muted,#667085)!important}

/* Andamento do pedido — remove as duas linhas antigas que estavam se sobrepondo. */
@media(max-width:700px){
  body[data-market-page="pedido"] .fd404-order-timeline{
    box-sizing:border-box!important;display:block!important;width:100%!important;
    padding:14px 14px 12px!important;border:1px solid #e4e7ec!important;
    border-radius:18px!important;background:var(--surface,#fff)!important;
    overflow:hidden!important;
  }
  body[data-market-page="pedido"] .fd404-order-timeline .consumer-order-timeline-step{
    position:relative!important;display:grid!important;
    grid-template-columns:40px minmax(0,1fr)!important;align-items:start!important;
    justify-items:stretch!important;gap:12px!important;width:100%!important;
    min-width:0!important;min-height:64px!important;padding:2px 0 16px!important;
    margin:0!important;text-align:left!important;color:#98a2b3!important;
  }
  body[data-market-page="pedido"] .fd404-order-timeline .consumer-order-timeline-step:last-child{
    min-height:42px!important;padding-bottom:0!important;
  }

  /* A linha horizontal/vertical nativa e a linha criada na 408 não podem coexistir. */
  body[data-market-page="pedido"] .fd404-order-timeline .consumer-order-timeline-step::before{
    content:none!important;display:none!important;
  }
  body[data-market-page="pedido"] .fd404-order-timeline .consumer-order-timeline-step::after{
    content:""!important;display:block!important;position:absolute!important;
    left:19px!important;top:40px!important;bottom:0!important;width:2px!important;
    background:#dfe4ea!important;border:0!important;border-radius:999px!important;
    transform:none!important;z-index:0!important;
  }
  body[data-market-page="pedido"] .fd404-order-timeline .consumer-order-timeline-step:last-child::after{display:none!important}
  body[data-market-page="pedido"] .fd404-order-timeline .consumer-order-timeline-step.is-done:not(.is-current)::after{
    background:#8bd5a5!important;
  }

  body[data-market-page="pedido"] .fd404-order-timeline .consumer-order-timeline-step>span{
    grid-column:1!important;grid-row:1!important;position:relative!important;z-index:2!important;
    box-sizing:border-box!important;width:40px!important;height:40px!important;min-width:40px!important;
    margin:0!important;border:1px solid #dce2e8!important;border-radius:50%!important;
    background:#f5f7f9!important;color:#98a2b3!important;display:grid!important;place-items:center!important;
    box-shadow:0 0 0 4px var(--surface,#fff)!important;
  }
  body[data-market-page="pedido"] .fd404-order-timeline .consumer-order-timeline-step>span svg{
    width:19px!important;height:19px!important;display:block!important;
  }
  body[data-market-page="pedido"] .fd404-order-timeline .consumer-order-timeline-step.is-done:not(.is-current)>span{
    background:#eaf8ef!important;border-color:#b9e5c8!important;color:#178144!important;
  }
  body[data-market-page="pedido"] .fd404-order-timeline .consumer-order-timeline-step.is-current>span{
    background:var(--primary,var(--color-primary,#ea010b))!important;
    border-color:var(--primary,var(--color-primary,#ea010b))!important;color:#fff!important;
    box-shadow:0 0 0 4px var(--surface,#fff),0 0 0 7px color-mix(in srgb,var(--primary,var(--color-primary,#ea010b)) 14%,transparent)!important;
  }

  body[data-market-page="pedido"] .fd404-order-timeline .consumer-order-timeline-step>div{
    grid-column:2!important;grid-row:1!important;min-width:0!important;
    padding:5px 2px 0!important;margin:0!important;text-align:left!important;
    border:1px solid transparent!important;border-radius:12px!important;
  }
  body[data-market-page="pedido"] .fd404-order-timeline .consumer-order-timeline-step.is-current>div{
    padding:7px 10px!important;margin-top:-2px!important;
    background:color-mix(in srgb,var(--primary,var(--color-primary,#ea010b)) 6%,#fff)!important;
    border-color:color-mix(in srgb,var(--primary,var(--color-primary,#ea010b)) 16%,#e4e7ec)!important;
  }
  body[data-market-page="pedido"] .fd404-order-timeline .consumer-order-timeline-step strong{
    display:block!important;margin:0!important;font-size:13px!important;line-height:1.25!important;
    font-weight:800!important;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere!important;
    color:#667085!important;
  }
  body[data-market-page="pedido"] .fd404-order-timeline .consumer-order-timeline-step.is-done:not(.is-current)>div strong{color:#178144!important}
  body[data-market-page="pedido"] .fd404-order-timeline .consumer-order-timeline-step.is-current>div strong{color:var(--primary,var(--color-primary,#ea010b))!important}
  body[data-market-page="pedido"] .fd404-order-timeline .consumer-order-timeline-step small{
    display:block!important;margin-top:3px!important;font-size:10.5px!important;line-height:1.25!important;
    color:#667085!important;text-align:left!important;white-space:normal!important;
  }
}

@media(max-width:380px){
  body[data-market-page="pedido"] .fd404-order-timeline{padding-left:11px!important;padding-right:11px!important}
  body[data-market-page="pedido"] .fd404-order-timeline .consumer-order-timeline-step{grid-template-columns:38px minmax(0,1fr)!important;gap:10px!important}
  body[data-market-page="pedido"] .fd404-order-timeline .consumer-order-timeline-step>span{width:38px!important;height:38px!important;min-width:38px!important}
  body[data-market-page="pedido"] .fd404-order-timeline .consumer-order-timeline-step::after{left:18px!important;top:38px!important}
}
