/* Chat com a loja — composição limpa baseada na referência enviada. */
html body #overlay.support-chat-overlay {
  position: fixed !important;
  top: var(--support-chat-viewport-top, 0px) !important;
  right: 0 !important;
  bottom: auto !important;
  left: 0 !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  width: 100vw !important;
  height: var(--support-chat-viewport-height, 100dvh) !important;
  min-height: 0 !important;
  padding: 4px 4px 0 !important;
  overflow: hidden !important;
  background: #f3f4f6 !important;
  box-sizing: border-box !important;
}
html body #overlay.support-chat-overlay > .drawer {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 30px 30px 0 0 !important;
  background: #fff !important;
  box-shadow: 0 1px 10px rgba(0, 0, 0, .08) !important;
}
html body #overlay.support-chat-overlay .support-chat-shell {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: inherit !important;
  background: #fff !important;
  color: #000000 !important;
  font-family: "Inter", sans-serif !important;
  -webkit-font-smoothing: antialiased !important;
}
html body #overlay.support-chat-overlay .support-chat-header {
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  gap: 9px !important;
  min-height: 54px !important;
  padding: max(6px, env(safe-area-inset-top, 6px)) 12px 6px !important;
  border: 0 !important;
  background: #fff !important;
}
html body #overlay.support-chat-overlay .support-chat-back-btn {
  display: grid !important;
  flex: 0 0 32px !important;
  place-items: center !important;
  width: 32px !important;
  height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #000000 !important;
  line-height: 0 !important;
  cursor: pointer !important;
}
html body #overlay.support-chat-overlay .support-chat-back-btn svg {
  display: block !important;
  width: 19px !important;
  height: 19px !important;
  margin: auto !important;
}
html body #overlay.support-chat-overlay .support-chat-store-avatar {
  display: block !important;
  flex: 0 0 32px !important;
  width: 32px !important;
  height: 32px !important;
  margin: 0 !important;
  border: 1px solid #e7ece5 !important;
  border-radius: 50% !important;
  background: #f3f7f0 !important;
  object-fit: cover !important;
}
html body #overlay.support-chat-overlay .support-chat-header-info {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-width: 0 !important;
  gap: 1px !important;
}
html body #overlay.support-chat-overlay .support-chat-store-name {
  overflow: hidden !important;
  margin: 0 !important;
  color: #000000 !important;
  font: 500 14px/1.2 "Inter", sans-serif !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
html body #overlay.support-chat-overlay .support-chat-header-sub {
  margin: 0 !important;
  color: #888888 !important;
  font: 400 12px/1.2 "Inter", sans-serif !important;
}
html body #overlay.support-chat-overlay .support-chat-messages {
  display: flex !important;
  flex: 1 1 0 !important;
  flex-direction: column !important;
  gap: 12px !important;
  min-height: 0 !important;
  padding: 12px 14px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background-color: #f7f6f1 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%23bbb7ad' stroke-width='1.35' stroke-linecap='round' stroke-linejoin='round' opacity='.38'%3E%3Cpath d='M18 24c5-7 14-7 18-1 4 7-2 13-10 12-8-1-12-6-8-11z'/%3E%3Cpath d='M23 35l-5 8m10-8 5 8'/%3E%3Ccircle cx='131' cy='29' r='8'/%3E%3Cpath d='M123 29h16m-8-8v16'/%3E%3Cpath d='M78 74c-8-8-22 1-13 11 7 8 18 0 13-11z'/%3E%3Cpath d='M66 89l-8 9m18-9 8 9'/%3E%3Cpath d='M142 91c-12 1-16 17-5 23 11 6 20-7 12-16-4-5-10-7-7-7z'/%3E%3Cpath d='M145 95l8-8m-4 8 11-3'/%3E%3Cpath d='M18 128c8-9 20-5 19 5-1 8-12 10-18 4'/%3E%3Cpath d='M25 135l-1 12m8-14 8 9'/%3E%3Cpath d='M88 132l12-7 7 14-12 7z'/%3E%3Cpath d='M91 142l13-8'/%3E%3Ccircle cx='165' cy='161' r='5'/%3E%3Ccircle cx='54' cy='23' r='3'/%3E%3C/g%3E%3C/svg%3E") !important;
  background-repeat: repeat !important;
  background-position: 0 0 !important;
  background-size: 180px 180px !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
}
html body #overlay.support-chat-overlay .support-chat-quick-replies {
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  gap: 9px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 4px 12px 7px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  background: #fff !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
}
html body #overlay.support-chat-overlay .support-chat-quick-replies::-webkit-scrollbar { display: none !important; }
html body #overlay.support-chat-overlay .sd-quick-reply {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  min-height: 30px !important;
  height: 30px !important;
  margin: 0 !important;
  padding: 0 13px !important;
  border: 1px solid #e7e7e7 !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: none !important;
  color: #000000 !important;
  font: 400 13px/1 "Inter", sans-serif !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent !important;
}
html body #overlay.support-chat-overlay .sd-quick-reply:active { background: #f5f5f5 !important; }
html body #overlay.support-chat-overlay .sd-quick-reply[data-quick-reply="👍"],
html body #overlay.support-chat-overlay .sd-quick-reply[data-quick-reply="👎"] {
  width: 46px !important;
  padding: 0 !important;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif !important;
  font-size: 16px !important;
}
html body #overlay.support-chat-overlay .support-chat-compose-wrap {
  position: relative !important;
  z-index: 2 !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 12px calc(7px + env(safe-area-inset-bottom, 0px)) !important;
  border: 0 !important;
  background: #fff !important;
}
html body #overlay.support-chat-overlay .support-chat-compose-form {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}
html body #overlay.support-chat-overlay #supportChatInput {
  flex: 1 1 auto !important;
  width: 0 !important;
  min-width: 0 !important;
  min-height: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 15px !important;
  border: 0 !important;
  border-radius: 24px !important;
  outline: 0 !important;
  background: #f4f4f5 !important;
  box-shadow: none !important;
  color: #000000 !important;
  font: 400 14px/1.35 "Inter", sans-serif !important;
}
html body #overlay.support-chat-overlay #supportChatInput:focus,
html body #overlay.support-chat-overlay #supportChatInput:focus-visible {
  border: 0 !important;
  outline: 0 !important;
  background: #f4f4f5 !important;
  box-shadow: none !important;
}
html body #overlay.support-chat-overlay #supportChatInput::placeholder { color: #848484 !important; opacity: 1 !important; }
html body #overlay.support-chat-overlay .support-chat-send-btn {
  display: grid !important;
  flex: 0 0 44px !important;
  place-items: center !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #efeff1 !important;
  color: #757575 !important;
  box-shadow: none !important;
  cursor: pointer !important;
}
html body #overlay.support-chat-overlay .support-chat-send-btn svg {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  margin: auto !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.7 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}
html body #overlay.support-chat-overlay .support-chat-send-btn:disabled { opacity: .55 !important; }
@media (min-width: 600px) {
  html body #overlay.support-chat-overlay {
    align-items: center !important;
    justify-content: center !important;
    padding: 18px !important;
    background: rgba(0, 0, 0, .38) !important;
  }
  html body #overlay.support-chat-overlay > .drawer {
    flex: 0 1 430px !important;
    width: min(430px, 100%) !important;
    height: min(84dvh, 760px) !important;
    max-height: 760px !important;
    border-radius: 28px !important;
  }
}

/* Full-bleed solicitado: chat ocupa a tela sem moldura superior ou margens. */
html body #overlay.support-chat-overlay {
  padding: 0 !important;
  background: #fff !important;
}
html body #overlay.support-chat-overlay > .drawer {
  border-radius: 0 !important;
  box-shadow: none !important;
}
html body #overlay.support-chat-overlay .support-chat-shell {
  border-radius: 0 !important;
}
@media (min-width: 600px) {
  html body #overlay.support-chat-overlay {
    align-items: stretch !important;
    justify-content: stretch !important;
    padding: 0 !important;
    background: #fff !important;
  }
  html body #overlay.support-chat-overlay > .drawer {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
}
