/* SDFood — tela final de código de entrega. Esta folha é carregada por último. */
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen,
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen * {
  font-family: "Inter", sans-serif !important;
  font-size: 14px !important;
  box-sizing: border-box !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen {
  width: 100% !important;
  min-height: 100dvh !important;
  padding: 0 0 calc(24px + env(safe-area-inset-bottom, 0px)) !important;
  overflow: visible !important;
  background: #fff !important;
  color: #000000 !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-head {
  position: relative !important;
  z-index: 5 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: calc(42px + env(safe-area-inset-top, 0px)) !important;
  min-height: calc(42px + env(safe-area-inset-top, 0px)) !important;
  margin: 0 !important;
  padding: env(safe-area-inset-top, 0px) 16px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #000000 !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-head .sd-subhead-text {
  color: #fff !important;
  font-size: 0 !important;
  font-weight: 600 !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-head .sd-subhead-text::after {
  content: "Seu código de entrega" !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-back {
  position: absolute !important;
  top: calc(env(safe-area-inset-top, 0px) + 5px) !important;
  left: 12px !important;
  display: grid !important;
  place-items: center !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  color: #fff !important;
  background: rgba(255,255,255,.14) !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-back svg { width: 19px !important; height: 19px !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-hero-card {
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  width: 100% !important;
  height: 148px !important;
  min-height: 148px !important;
  max-height: 148px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #000000 !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-hero-card::before {
  content: "" !important;
  position: absolute !important;
  z-index: 0 !important;
  top: 0 !important;
  left: 50% !important;
  width: min(238px, 78vw) !important;
  height: 148px !important;
  transform: translateX(-50%) !important;
  background: url("../assets/images/delivery-blob-background.png") center/contain no-repeat !important;
  pointer-events: none !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-hero-card::after { content: "" !important; position: absolute !important; inset: 0 !important; background-image: radial-gradient(rgba(255,255,255,.16) 1px,transparent 1.3px) !important; background-size: 9px 9px !important; opacity: .25 !important; pointer-events: none !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-hero-copy,
html body #overlay.sd-delivery-overlay .sd-delivery-code-label-hero { display: none !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-hero-card .sd-delivery-code-art,
html body #overlay.sd-delivery-overlay .sd-delivery-hero-card .sd-delivery-code-lottie {
  position: absolute !important;
  z-index: 2 !important;
  top: 0 !important;
  left: 50% !important;
  width: 138px !important;
  height: 138px !important;
  margin: 0 !important;
  transform: translateX(-50%) !important;
  overflow: visible !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-lottie svg { width: 100% !important; height: 100% !important; transform: none !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-code-body {
  position: relative !important;
  z-index: 3 !important;
  width: 100% !important;
  max-width: 520px !important;
  min-height: calc(100dvh - 160px) !important;
  margin: -29px auto 0 !important;
  padding: 31px 18px 24px !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 24px 24px 0 0 !important;
  background: #fff !important;
  text-align: left !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-box {
  position: relative !important;
  z-index: 10 !important;
  top: 0 !important;
  transform: translateY(-31px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: min(76%,270px) !important;
  min-width: 228px !important;
  min-height: 64px !important;
  margin: 0 auto -31px !important;
  padding: 8px 8px 8px 14px !important;
  border: 1px solid #ececec !important;
  border-radius: 15px !important;
  background: #fff !important;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .13) !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-digits { display: flex !important; flex: 1 1 auto !important; align-items: center !important; justify-content: center !important; gap: 8px !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-code-digit { color: #000000 !important; font-size: 14px !important; font-weight: 600 !important; letter-spacing: .12em !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-code-copy { display: grid !important; place-items: center !important; flex: 0 0 36px !important; width: 36px !important; height: 36px !important; padding: 0 !important; border: 0 !important; border-radius: 9px !important; color: #000000 !important; background: #efefef !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-code-copy svg { width: 17px !important; height: 17px !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-store-block { display: grid !important; grid-template-columns: 27px minmax(0,1fr) !important; grid-template-rows: auto auto !important; align-items: center !important; gap: 2px 8px !important; width: min(100%,290px) !important; min-height: 45px !important; margin: 0 auto 17px !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-store-block::before { content: "" !important; grid-column: 1 !important; grid-row: 1 / span 2 !important; width: 25px !important; height: 25px !important; border: 1px solid #f3f4f6 !important; border-radius: 50% !important; background: #f1f1f1 !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-store-name { grid-column: 2 !important; grid-row: 1 !important; color: #000000 !important; font-size: 14px !important; font-weight: 600 !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-status-pill { grid-column: 2 !important; grid-row: 2 !important; justify-self: start !important; width: max-content !important; padding: 3px 9px !important; border: 0 !important; border-radius: 999px !important; color: #000000 !important; background: #ededed !important; font-size: 14px !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-howto { margin: 0 0 16px !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-howto h3,
html body #overlay.sd-delivery-overlay .sd-delivery-orders h3 { margin: 0 0 8px !important; color: #000000 !important; font-size: 14px !important; font-weight: 700 !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-code-tips { display: grid !important; gap: 6px !important; margin: 0 !important; padding: 0 !important; list-style: none !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-code-tips li { display: grid !important; grid-template-columns: 31px minmax(0,1fr) !important; align-items: center !important; gap: 9px !important; min-height: 43px !important; padding: 6px 8px !important; border: 1px solid #ebebeb !important; border-radius: 11px !important; background: #fff !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-tip-icon { display: grid !important; place-items: center !important; width: 30px !important; height: 30px !important; border-radius: 9px !important; color: #000000 !important; background: #efefef !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-tip-icon svg { width: 16px !important; height: 16px !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-tip-text { color: #000000 !important; font-size: 14px !important; line-height: 1.28 !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-orders { margin: 0 0 18px !important; padding: 0 !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-order-card { display: grid !important; grid-template-columns: minmax(0,1fr) 52px 76px !important; grid-template-rows: 60px !important; align-items: center !important; column-gap: 8px !important; min-height: 78px !important; margin: 0 0 8px !important; padding: 8px 9px !important; border: 1px solid #e7e7e7 !important; border-radius: 13px !important; background: #fff !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-order-left { display: flex !important; flex-direction: column !important; align-self: start !important; gap: 3px !important; padding-top: 2px !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-order-store { overflow: hidden !important; color: #000000 !important; font-size: 14px !important; font-weight: 600 !important; white-space: nowrap !important; text-overflow: ellipsis !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-order-total { color: #828282 !important; font-size: 14px !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-order-thumb { width: 52px !important; height: 52px !important; min-width: 52px !important; padding: 0 !important; overflow: hidden !important; border: 0 !important; border-radius: 10px !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-order-thumb img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-order-right { display: flex !important; flex-direction: column !important; align-items: flex-start !important; gap: 2px !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-order-status { padding: 3px 8px !important; border-radius: 999px !important; color: #000000 !important; background: #efefef !important; font-size: 14px !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-order-code-value { color: #000000 !important; font-size: 14px !important; font-weight: 600 !important; letter-spacing: .08em !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-order-code-value::before { content: "CÓDIGO" !important; display: block !important; color: #000000 !important; font-size: 14px !important; letter-spacing: .04em !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-code-body::after { content: "Dica de segurança\A Confira sempre os dados do pedido e do lojista antes da entrega." !important; display: block !important; min-height: 56px !important; margin: 8px 0 0 !important; padding: 10px 10px 9px 48px !important; border: 1px solid #e9e9e9 !important; border-radius: 12px !important; color: #000000 !important; background: #f6f6f6 !important; font-size: 14px !important; line-height: 1.35 !important; white-space: pre-line !important; }


/* Correção final v4: camada final sem depender das regras antigas. */
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-head {
  position: relative !important;
  z-index: 20 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 16px 0 8px !important;
  border: 0 !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-head .sd-delivery-code-back {
  position: static !important;
  display: grid !important;
  flex: 0 0 32px !important;
  place-items: center !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  margin: 0 4px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #000000 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-head .sd-delivery-code-back svg {
  width: 19px !important;
  height: 19px !important;
  stroke: currentColor !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-head .sd-subhead-text {
  display: block !important;
  flex: 0 1 auto !important;
  width: auto !important;
  color: #000000 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  text-align: left !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-head .sd-subhead-text::after {
  display: none !important;
  content: none !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-hero-card {
  z-index: 1 !important;
  height: 148px !important;
  min-height: 148px !important;
  max-height: 148px !important;
  background: #000000 !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-body {
  z-index: 3 !important;
  margin-top: -29px !important;
  padding-top: 31px !important;
  overflow: visible !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-box {
  position: relative !important;
  z-index: 50 !important;
  top: 0 !important;
  transform: translateY(-31px) !important;
  margin-bottom: -31px !important;
  border: 1px solid #ececec !important;
  background: #fff !important;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .16) !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-digit,
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-copy,
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-store-name,
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-status-pill,
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-howto h3,
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-orders h3,
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-tip-text,
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-order-store,
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-order-total,
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-order-status,
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-order-code-value {
  font-size: 14px !important;
}

/* Ícones flat roxos: sem borda, sem círculo e sem o SVG antigo embutido. */
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-tip-icon {
  width: 31px !important;
  height: 31px !important;
  min-width: 31px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 31px 31px !important;
  box-shadow: none !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-tip-icon svg { display: none !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-tips li:nth-child(1) .sd-delivery-tip-icon { background-image: url("../assets/icons/ui/delivery-tip-home.svg?sdmono=20261108c") !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-tips li:nth-child(2) .sd-delivery-tip-icon { background-image: url("../assets/icons/ui/delivery-tip-receive.svg?sdmono=20261108c") !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-tips li:nth-child(3) .sd-delivery-tip-icon { background-image: url("../assets/icons/ui/delivery-tip-no-chat.svg?sdmono=20261108c") !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-tips li {
  border: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
}

/* Estado sem pedido: vazio, centralizado e sem card fantasma. */
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-store-empty,
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-orders-empty {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 86px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 18px 12px !important;
  color: #000000 !important;
  text-align: center !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-orders-empty h3,
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-orders-empty p,
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-orders-empty small {
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

/* Dica de segurança com o mesmo asset flat roxo. */
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-body::after {
  content: "Dica de segurança\A Confira sempre os dados do pedido e do lojista antes da entrega." !important;
  position: relative !important;
  display: block !important;
  min-height: 60px !important;
  margin: 10px 0 0 !important;
  padding: 11px 10px 9px 54px !important;
  border: 0 !important;
  border-radius: 12px !important;
  color: #000000 !important;
  background: #f6f6f6 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  text-align: left !important;
  white-space: pre-line !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-body::before {
  content: "" !important;
  position: absolute !important;
  z-index: 2 !important;
  bottom: 28px !important;
  left: 28px !important;
  width: 32px !important;
  height: 32px !important;
  border: 0 !important;
  background: url("../assets/icons/ui/delivery-tip-security.svg?sdmono=20261108c") center/32px 32px no-repeat !important;
  pointer-events: none !important;
}


/* Segurança: ícone integrado ao card da dica. */
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-body::after {
  background: #f6f6f6 url("../assets/icons/ui/delivery-tip-security.svg?sdmono=20261108c") 12px center / 32px 32px no-repeat !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-body::before {
  display: none !important;
}


/* Cabeçalho integrado ao roxo: elimina a faixa branca superior. */
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-head {
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 16px 0 8px !important;
  background: #000000 !important;
  border: 0 !important;
  box-shadow: none !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-head .sd-delivery-code-back {
  color: #fff !important;
  background: transparent !important;
  border: 0 !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-head .sd-subhead-text {
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 400 !important;
}


/* Assets GPT Image 2.5 — substituem os SVGs provisórios. */
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-tips li:nth-child(1) .sd-delivery-tip-icon { background-image: url("../assets/icons/ui/delivery-tip-home-ai.png") !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-tips li:nth-child(2) .sd-delivery-tip-icon { background-image: url("../assets/icons/ui/delivery-tip-receive-ai.png") !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-tips li:nth-child(3) .sd-delivery-tip-icon { background-image: url("../assets/icons/ui/delivery-tip-no-chat-ai.png") !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-body::after { background-image: url("../assets/icons/ui/delivery-tip-security-ai.png") !important; }


/* Prévia v9 — ajustes solicitados antes da aprovação do ZIP. */
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-body {
  margin-top: -10px !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-order-card {
  position: relative !important;
  overflow: visible !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-order-right {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  min-width: 76px !important;
  max-width: 76px !important;
  overflow: visible !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-order-status {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  max-width: 76px !important;
  min-height: 24px !important;
  padding: 3px 7px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  text-transform: none !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-order-code-value::before {
  content: none !important;
  display: none !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-order-code-value {
  font-size: 14px !important;
  font-weight: 400 !important;
  text-transform: none !important;
}


/* Prévia v10 — reforço contra estilos antigos. */
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-head {
  background: #000000 !important;
  height: 44px !important;
  min-height: 44px !important;
  border: 0 !important;
  box-shadow: none !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-head .sd-delivery-code-back,
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-head .sd-subhead-text {
  color: #fff !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 14px !important;
  font-weight: 400 !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-hero-card {
  display: block !important;
  width: 100% !important;
  height: 148px !important;
  min-height: 148px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #000000 !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-body {
  position: relative !important;
  z-index: 3 !important;
  width: 100% !important;
  margin: -10px auto 0 !important;
  padding: 31px 18px 24px !important;
  border-radius: 24px 24px 0 0 !important;
  background: #fff !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-box {
  position: relative !important;
  z-index: 50 !important;
  top: 0 !important;
  transform: translateY(-31px) !important;
  margin: 0 auto -31px !important;
  background: #fff !important;
  border: 1px solid #ececec !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-tip-icon {
  display: block !important;
  width: 31px !important;
  height: 31px !important;
  min-width: 31px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 31px 31px !important;
  box-shadow: none !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-tips li:nth-child(1) .sd-delivery-tip-icon { background-image: url("../assets/icons/ui/delivery-tip-home-ai.png") !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-tips li:nth-child(2) .sd-delivery-tip-icon { background-image: url("../assets/icons/ui/delivery-tip-receive-ai.png") !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-tips li:nth-child(3) .sd-delivery-tip-icon { background-image: url("../assets/icons/ui/delivery-tip-no-chat-ai.png") !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-order-status,
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-order-code-value { font-size: 14px !important; font-weight: 400 !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-order-code-value::before { display: none !important; content: none !important; }


/* Prévia v11 — branco realmente mais baixo, sem borda sobre o roxo. */
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-body {
  margin-top: 22px !important;
  border-radius: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-box {
  min-height: 64px !important;
  height: 64px !important;
  max-height: 64px !important;
  transform: translateY(-90px) !important;
  margin-bottom: -90px !important;
  overflow: visible !important;
  flex-shrink: 0 !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-box .sd-delivery-code-digit {
  line-height: 1.2 !important;
  white-space: nowrap !important;
}


/* No celular esta tela ocupa o viewport; no desktop o painel lateral define a largura. */



/* Prévia v13 — bordas arredondadas somente no topo da área branca. */
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-body {
  border-radius: 24px 24px 0 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}


/* Prévia v14 — fundo roxo por trás dos cantos da área branca. */
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen {
  background: #000000 !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-body {
  background: #fff !important;
  border-radius: 24px 24px 0 0 !important;
}


/* Prévia v15 — respiro entre código/pessoa e foto real do produto nos pedidos. */
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-store-block {
  margin-top: 12px !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-order-thumb {
  display: block !important;
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #eeeeee center / cover no-repeat !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-order-card:nth-of-type(1) .sd-delivery-order-thumb { background-image: url("../assets/images/categories/doces.webp") !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-order-card:nth-of-type(2) .sd-delivery-order-thumb { background-image: url("../assets/images/categories/acai.webp") !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-order-thumb img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}


/* Prévia v16 — card do código 10px mais baixo na divisão roxo/branco. */
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-box {
  transform: translateY(-80px) !important;
  margin-bottom: -80px !important;
  min-height: 64px !important;
  height: 64px !important;
  max-height: 64px !important;
}


/* Prévia v17 — card mais baixo conforme solicitado. */
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-box {
  transform: translateY(-70px) !important;
  margin-bottom: -70px !important;
  min-height: 64px !important;
  height: 64px !important;
  max-height: 64px !important;
}


/* Prévia v18 — pedidos sem borda e tipografia regular padrão Endereços. */
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-order-card {
  border: 0 !important;
  box-shadow: none !important;
  font-weight: 400 !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-order-store,
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-order-total,
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-order-status,
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-order-code-value,
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-orders h3,
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-store-name,
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-status-pill {
  font-size: 14px !important;
  font-weight: 400 !important;
}


/* Prévia v19 — título Como funciona no peso regular do padrão Endereços. */
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-howto h3,
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-orders h3 {
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
}


/* Prévia v20 — remove frase do hero e normaliza status. */
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-label-hero,
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-hero-copy {
  display: none !important;
  visibility: hidden !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-status-pill,
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-order-status,
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-order-right,
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-order-right * {
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  text-transform: none !important;
}


/* Prévia v21 — avatar real da loja e tipografia regular na aba de status. */
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-store-block {
  grid-template-columns: 32px minmax(0,1fr) !important;
  grid-template-rows: auto auto !important;
  column-gap: 8px !important;
  align-items: center !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-store-block::before {
  display: none !important;
  content: none !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-store-avatar {
  display: block !important;
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border: 0 !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  background: #efefef !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-store-name { grid-column: 2 !important; grid-row: 1 !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-status-pill { grid-column: 2 !important; grid-row: 2 !important; }
html body #overlay.sd-delivery-overlay #profileOrdersList,
html body #overlay.sd-delivery-overlay #profileOrdersList * {
  font-size: 14px !important;
  font-weight: 400 !important;
}
html body #overlay.sd-delivery-overlay #profileOrdersList .sd-hist-card-store,
html body #overlay.sd-delivery-overlay #profileOrdersList .sd-hist-card-items,
html body #overlay.sd-delivery-overlay #profileOrdersList .sd-hist-card-when,
html body #overlay.sd-delivery-overlay #profileOrdersList .sd-hist-card-badge,
html body #overlay.sd-delivery-overlay #profileOrdersList .sd-hist-card-price,
html body #overlay.sd-delivery-overlay #profileOrdersList .sd-profile-orders-title {
  font-size: 14px !important;
  font-weight: 400 !important;
}


/* Prévia v22 — status da aba de pedidos sem depender do overlay. */
html body #profileOrdersList,
html body #profileOrdersList * {
  font-family: "Inter", sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
}
html body #profileOrdersList .sd-hist-card-store,
html body #profileOrdersList .sd-hist-card-items,
html body #profileOrdersList .sd-hist-card-when,
html body #profileOrdersList .sd-hist-card-badge,
html body #profileOrdersList .sd-hist-card-price,
html body #profileOrdersList .sd-profile-orders-title {
  font-size: 14px !important;
  font-weight: 400 !important;
}


/* Prévia v23 — tela real Acompanhe seus pedidos (sd-track-order). */
html body .sd-notif-page .sd-track-order,
html body .sd-notif-page .sd-track-order * {
  font-family: "Inter", sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
}
html body .sd-notif-page .sd-track-store,
html body .sd-notif-page .sd-track-details,
html body .sd-notif-page .sd-track-eta-text strong,
html body .sd-notif-page .sd-track-eta-text span,
html body .sd-notif-page .sd-track-step-label,
html body .sd-notif-page .sd-track-step-time,
html body .sd-notif-page .sd-track-step-desc,
html body .sd-notif-page .sd-track-code,
html body .sd-notif-page .sd-track-code strong {
  font-size: 14px !important;
  font-weight: 400 !important;
}


/* Prévia v24 — fundo branco até o fim e pills de status sem corte. */
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen {
  position: relative !important;
  background: #fff !important;
  overflow: visible !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen::before {
  content: "" !important;
  position: absolute !important;
  z-index: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 214px !important;
  background: #000000 !important;
  pointer-events: none !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-head,
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-hero-card,
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-body {
  position: relative !important;
  z-index: 1 !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-body { z-index: 3 !important; }
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-order-card {
  grid-template-columns: minmax(0,1fr) 52px 92px !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-order-right {
  min-width: 92px !important;
  max-width: 92px !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-order-status {
  max-width: 92px !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
  overflow: visible !important;
}


/* Prévia v25 — curva branca visível sobre roxo e branco contínuo abaixo. */
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen {
  position: relative !important;
  background: #000000 !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen::before {
  content: "" !important;
  position: absolute !important;
  z-index: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 214px !important;
  background: #000000 !important;
  pointer-events: none !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen::after {
  content: "" !important;
  position: absolute !important;
  z-index: 0 !important;
  top: 238px !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  background: #fff !important;
  pointer-events: none !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-body {
  z-index: 3 !important;
  background: #fff !important;
  border-radius: 24px 24px 0 0 !important;
}


/* Prévia v26 — roxo somente no topo; branco garantido até o fim. */
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen {
  background: #fff !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen::before {
  top: 0 !important;
  height: 238px !important;
  background: #000000 !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen::after {
  display: none !important;
  content: none !important;
}



/* Fix lista pedidos: foto | loja | total — abas deslizantes Todos/A receber/A caminho */
html body #overlay.sd-delivery-overlay .sd-delivery-order-card,
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-order-card,
html body #overlay.sd-delivery-overlay #deliveryCodeOrdersList .sd-delivery-order-card {
  display: grid !important;
  grid-template-columns: 52px minmax(0, 1fr) auto !important;
  grid-template-rows: auto !important;
  align-items: center !important;
  column-gap: 10px !important;
  min-height: 72px !important;
  margin: 0 0 10px !important;
  padding: 10px 12px !important;
  border: 1px solid #e7e7e7 !important;
  border-radius: 14px !important;
  background: #fff !important;
  overflow: visible !important;
  animation: walletHistoryCardIn 280ms ease both;
  animation-delay: calc(var(--wallet-history-index, 0) * 35ms);
}
html body #overlay.sd-delivery-overlay .sd-delivery-order-thumb,
html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-order-thumb {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #f1f1f1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-order-thumb img,
html body #overlay.sd-delivery-overlay .sd-delivery-order-thumb .sd-delivery-order-thumb-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-order-left {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
  padding-top: 0 !important;
  align-self: center !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-order-store {
  overflow: hidden !important;
  color: #111827 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-order-total {
  color: #6b7280 !important;
  font-size: 12px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-order-right {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-content: center !important;
  gap: 4px !important;
  min-width: 0 !important;
  max-width: none !important;
  position: relative !important;
  z-index: 2 !important;
  overflow: visible !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-order-status {
  display: inline-flex !important;
  align-items: center !important;
  max-width: none !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  color: #000000 !important;
  background: #efefef !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-order-code-value {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  text-transform: none !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-order-code-value::before {
  content: none !important;
  display: none !important;
}

/* Abas com deslize igual carteira */
html body #overlay.sd-delivery-overlay #deliveryCodeOrderFilters.sd-hist-tabs {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  align-items: center !important;
  gap: 0 !important;
  width: min(100%, 340px) !important;
  max-width: 100% !important;
  margin: 10px auto 12px !important;
  padding: 3px !important;
  height: 38px !important;
  border-radius: 999px !important;
  background: #f1f1f3 !important;
  isolation: isolate !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
html body #overlay.sd-delivery-overlay #deliveryCodeOrderFilters.sd-hist-tabs::before {
  content: "" !important;
  position: absolute !important;
  top: 3px !important;
  left: 3px !important;
  z-index: 0 !important;
  width: calc((100% - 6px) / 3) !important;
  height: calc(100% - 6px) !important;
  border-radius: 999px !important;
  background: #fff !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04) !important;
  pointer-events: none !important;
  transform: translateX(0) !important;
  transition: transform 250ms cubic-bezier(.4, 0, .2, 1) !important;
}
html body #overlay.sd-delivery-overlay #deliveryCodeOrderFilters.sd-hist-tabs:has([data-delivery-orders-filter="realizados"].is-active)::before {
  transform: translateX(0) !important;
}
html body #overlay.sd-delivery-overlay #deliveryCodeOrderFilters.sd-hist-tabs:has([data-delivery-orders-filter="confirmado"].is-active)::before {
  transform: translateX(100%) !important;
}
html body #overlay.sd-delivery-overlay #deliveryCodeOrderFilters.sd-hist-tabs:has([data-delivery-orders-filter="saiu"].is-active)::before {
  transform: translateX(200%) !important;
}
html body #overlay.sd-delivery-overlay #deliveryCodeOrderFilters .sd-hist-tab {
  position: relative !important;
  z-index: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 4px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #111827 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  box-shadow: none !important;
  transform: none !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}
html body #overlay.sd-delivery-overlay #deliveryCodeOrderFilters .sd-hist-tab.is-active {
  background: transparent !important;
  box-shadow: none !important;
  font-weight: 400 !important;
}
html body #overlay.sd-delivery-overlay #deliveryCodeOrdersList.is-wallet-history-switching {
  animation: walletHistoryFilterIn 260ms ease both !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-orders-empty {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 20px 12px !important;
  color: #6b7280 !important;
  min-height: 80px !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-orders-empty strong {
  display: block !important;
  color: #000000 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  margin-bottom: 4px !important;
}
html body #overlay.sd-delivery-overlay .sd-delivery-orders-empty small {
  display: block !important;
  font-size: 12px !important;
  color: #8a8a8a !important;
}

/* Fonte das abas centralizada vertical e horizontalmente */
html body #overlay.sd-delivery-overlay #deliveryCodeOrderFilters.sd-hist-tabs {
  height: 38px !important;
  line-height: 0 !important;
  padding: 3px !important;
}
html body #overlay.sd-delivery-overlay #deliveryCodeOrderFilters .sd-hist-tab,
html body #overlay.sd-delivery-overlay #deliveryCodeOrderFilters .sd-hist-tab.is-active {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 6px !important;
  line-height: 1 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  font-family: "Inter", system-ui, -apple-system, sans-serif !important;
  letter-spacing: 0 !important;
  transform: none !important;
  -webkit-transform: none !important;
  vertical-align: middle !important;
  text-align: center !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Abas Realizados / Confirmado / Saiu para entrega — fonte 14px sempre */
html body #overlay.sd-delivery-overlay #deliveryCodeOrderFilters .sd-hist-tab,
html body #overlay.sd-delivery-overlay #deliveryCodeOrderFilters .sd-hist-tab.is-active {
  font-size: 14px !important;
  font-weight: 400 !important;
  padding: 0 2px !important;
  letter-spacing: -0.02em !important;
  line-height: 1 !important;
}

/* Força 14px nas abas de filtro do código de entrega (ativo e inativo) */
html body #overlay.sd-delivery-overlay #deliveryCodeOrderFilters.sd-hist-tabs .sd-hist-tab,
html body #overlay.sd-delivery-overlay #deliveryCodeOrderFilters.sd-hist-tabs .sd-hist-tab.is-active,
html body #overlay.sd-delivery-overlay #deliveryCodeOrderFilters .sd-hist-tab,
html body #overlay.sd-delivery-overlay #deliveryCodeOrderFilters .sd-hist-tab.is-active {
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
}


/* Cards padronizados: fundo cinza + borda (carteira + código de entrega + histórico) */
html body #overlay .wallet-ref .wallet-history-card,
html body #overlay .wallet-ref article.sd-hist-card.wallet-history-card,
html body #overlay .wallet-ref #walletDepositHistory .sd-hist-card,
html body #overlay #profileOrdersList .sd-hist-card,
html body #overlay .sd-hist-page .sd-hist-card,
html body #overlay.sd-delivery-overlay .sd-delivery-order-card,
html body #overlay.sd-delivery-overlay #deliveryCodeOrdersList .sd-delivery-order-card,
html body #overlay.sd-delivery-overlay article.sd-hist-card {
  background: #f5f5f7 !important;
  border: 1px solid #e8e8e8 !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

html body #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-order-card,
html body #overlay.sd-delivery-overlay #deliveryCodeOrdersList .sd-delivery-order-card {
  background: #f5f5f7 !important;
  border: 1px solid #e8e8e8 !important;
  box-shadow: none !important;
}
