.bf-delivery-eta-header{
  margin-top:6px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(15,23,42,.06);
  color:#0f172a;
  font-weight:900;
  font-size:12px;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.bf-delivery-track-btn.is-active{
  background:#0f172a;
  color:#fff;
}

.bf-delivery-delivered-btn{
  background:#15803d;
  border-color:#15803d;
  color:#fff;
}

.bf-delivery-history-panel{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:1200;
  width:min(360px, calc(100vw - 24px));
  max-height:min(70vh, 620px);
  display:flex;
  flex-direction:column;
  border:1px solid rgba(15,23,42,.12);
  border-radius:20px;
  background:rgba(255,255,255,.96);
  box-shadow:0 24px 60px rgba(15,23,42,.18);
  backdrop-filter:blur(16px);
  overflow:hidden;
}

.bf-delivery-history-panel.is-collapsed .bf-delivery-history-body{
  display:none;
}

.bf-delivery-history-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  border-bottom:1px solid rgba(15,23,42,.08);
}

.bf-delivery-history-title{
  font-weight:900;
  color:#0f172a;
}

.bf-delivery-history-sub{
  color:#64748b;
  font-size:12px;
}

.bf-delivery-history-toggle{
  border:0;
  background:#0f172a;
  color:#fff;
  border-radius:999px;
  padding:8px 12px;
  cursor:pointer;
  font-weight:800;
}

.bf-delivery-history-body{
  display:flex;
  flex-direction:column;
  min-height:260px;
}

.bf-delivery-history-tabs{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  padding:12px 16px 0;
}

.bf-delivery-history-tab{
  border:1px solid rgba(15,23,42,.08);
  border-radius:999px;
  background:#fff;
  padding:8px 10px;
  cursor:pointer;
  font-weight:800;
  font-size:12px;
}

.bf-delivery-history-tab.is-active{
  background:#f97316;
  border-color:#f97316;
  color:#fff;
}

.bf-delivery-history-list{
  overflow:auto;
  padding:12px 16px 16px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.bf-delivery-history-item{
  width:100%;
  border:1px solid rgba(15,23,42,.08);
  border-radius:16px;
  background:#fff;
  padding:12px;
  text-align:left;
  cursor:pointer;
}

.bf-delivery-history-main{
  display:flex;
  justify-content:space-between;
  gap:10px;
  color:#0f172a;
}

.bf-delivery-history-main span{
  color:#475569;
  font-size:13px;
}

.bf-delivery-history-meta{
  margin-top:8px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  color:#64748b;
  font-size:12px;
  text-transform:capitalize;
}

.bf-delivery-history-empty{
  padding:28px 12px;
  text-align:center;
  color:#64748b;
}

.bf-delivery-nav-wrap{
  position:absolute;
  left:14px;
  top:58px;
  display:flex;
  flex-direction:column;
  gap:8px;
  z-index:5;
}

.card-pedido.map-card{
  position:relative;
}

.bf-delivery-nav-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:124px;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(15,23,42,.92);
  color:#fff;
  text-decoration:none;
  font-weight:800;
  box-shadow:0 14px 32px rgba(15,23,42,.18);
}

.bf-delivery-moto{
  width:42px;
  height:42px;
  transform-origin:center center;
}

.bf-delivery-moto img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

.moto-marker{
  width:42px;
  height:42px;
  object-fit:contain;
  display:block;
  transform-origin:center center;
}

@media (max-width: 720px){
  .bf-delivery-history-panel{
    right:12px;
    left:12px;
    width:auto;
    bottom:12px;
    max-height:52vh;
  }

  .bf-delivery-history-tabs{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
