/* PAN DELIVERY Pedidos Fitinha V4 — isolado à aba Pedidos e condicionado a verificação JS. */
html.pdc4-active .pdc4-header {
  min-height:64px !important;
  height:auto !important;
  max-height:none !important;
  padding:7px 18px !important;
  margin-bottom:10px !important;
  display:flex !important;
  align-items:center !important;
  gap:14px !important;
  box-sizing:border-box !important;
}
html.pdc4-active .pdc4-header .pdc4-title-host {
  display:flex !important;
  align-items:center !important;
  gap:12px !important;
  min-width:0 !important;
}
html.pdc4-active .pdc4-header .pdc4-title-host h1,
html.pdc4-active .pdc4-header .pdc4-title-host h2,
html.pdc4-active .pdc4-header .pdc4-title-host h3 {
  font-size:clamp(19px,2vw,24px) !important;
  line-height:1.2 !important;
  margin:0 !important;
  letter-spacing:-.025em !important;
  white-space:nowrap !important;
}
html.pdc4-active .pdc4-header .pdc4-logo {
  display:block !important;
  width:43px !important;
  height:43px !important;
  max-width:43px !important;
  max-height:43px !important;
  flex:0 0 43px !important;
  object-fit:contain !important;
}
html.pdc4-active .pdc4-header .pdc4-decorative,
html.pdc4-active .pdc4-header .pdc4-old-icon,
html.pdc4-active .pdc4-header #syncBadge {
  display:none !important;
}
html.pdc4-active .pdc4-header .top-actions {
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  flex-wrap:wrap !important;
  gap:7px !important;
  margin-left:auto !important;
  min-width:0 !important;
}
html.pdc4-active .pdc4-header .top-actions .pan-topbar-refresh {
  display:none !important; /* botão original de atualizar fica acessível via proxy na fitinha */
}
html.pdc4-active .pdc4-control-strip {
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:6px !important;
}
.pdc4-control-strip { display:none; }
html.pdc4-active .pdc4-header .pdc4-icon-button,
html.pdc4-active .pdc4-header #openStoreLink.pdc4-open-site {
  display:inline-flex !important;
  position:relative !important;
  align-items:center !important;
  justify-content:center !important;
  flex:0 0 35px !important;
  width:35px !important;
  height:35px !important;
  min-width:35px !important;
  max-width:35px !important;
  min-height:35px !important;
  max-height:35px !important;
  padding:0 !important;
  margin:0 !important;
  border-radius:10px !important;
  border:1px solid rgba(255,255,255,.20) !important;
  background:rgba(255,255,255,.075) !important;
  color:#f7f2f3 !important;
  cursor:pointer !important;
  font-size:0 !important;
  line-height:0 !important;
  box-shadow:none !important;
  text-decoration:none !important;
  white-space:nowrap !important;
}
html.pdc4-active .pdc4-header .pdc4-icon-button > svg {
  display:block !important;
  width:18px !important;
  height:18px !important;
  pointer-events:none !important;
}
html.pdc4-active .pdc4-header #openStoreLink.pdc4-open-site > * { display:none !important; }
html.pdc4-active .pdc4-header #openStoreLink.pdc4-open-site::before {
  content:'' !important;
  display:block !important;
  width:18px !important;
  height:18px !important;
  background:currentColor !important;
  -webkit-mask:center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3h7v7M10 14 21 3'/%3E%3Cpath d='M21 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E") !important;
  mask:center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3h7v7M10 14 21 3'/%3E%3Cpath d='M21 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E") !important;
}
html.pdc4-active .pdc4-header .pdc4-icon-button.pdc4-selected { border-color:rgba(255,127,89,.65) !important; background:rgba(225,85,51,.23) !important; color:#ffc4aa !important; }
html.pdc4-active .pdc4-header .pdc4-icon-button[data-pdc4-action="sound"].pdc4-selected { color:#b8f5cc !important; border-color:rgba(104,216,152,.4) !important; }
html.pdc4-active .pdc4-header .pdc4-icon-button:hover,
html.pdc4-active .pdc4-header #openStoreLink.pdc4-open-site:hover { background:rgba(255,255,255,.17) !important; }
html.pdc4-active .pdc4-header .pdc4-icon-button:focus-visible,
html.pdc4-active .pdc4-header #openStoreLink.pdc4-open-site:focus-visible { outline:2px solid #fda47d !important; outline-offset:2px !important; }
/* O banner antigo desaparece somente quando os controles seguros já estão montados na barra. */
html.pdc4-active .pdx-orders-panel .pdx-orders-hero { display:none !important; }
/* Desfaz a sobra vertical do hero. */
html.pdc4-active .pdx-orders-panel { padding-top:0 !important; }
@media(max-width:760px) {
  html.pdc4-active .pdc4-header { padding:8px 12px !important; gap:6px 10px !important; flex-wrap:wrap !important; }
  html.pdc4-active .pdc4-header .pdc4-logo { width:34px !important; height:34px !important; max-width:34px !important; max-height:34px !important; flex-basis:34px !important; }
  html.pdc4-active .pdc4-header .pdc4-title-host h1,
  html.pdc4-active .pdc4-header .pdc4-title-host h2 { font-size:18px !important; }
  html.pdc4-active .pdc4-header .top-actions { flex:1 1 auto !important; }
  html.pdc4-active .pdc4-header .pdc4-icon-button,
  html.pdc4-active .pdc4-header #openStoreLink.pdc4-open-site { width:32px !important; height:32px !important; min-width:32px !important; max-width:32px !important; min-height:32px !important; max-height:32px !important; flex-basis:32px !important; }
}
