/* DOGGA Maria · canal público. Preto e branco, acento mostarda #dd9e21, texto preto, Arial. */
.dmp-root,
.dmp-root * {
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}
.dmp-root {
  color: #101010;
  font-size: 15px;
  line-height: 1.5;
}
.dmp-root [hidden] {
  display: none !important;
}
.dmp-root button,
.dmp-root textarea {
  font: inherit;
}
.dmp-root button {
  cursor: pointer;
}
.dmp-root button:disabled,
.dmp-root textarea:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.dmp-root :focus-visible {
  outline: 3px solid #101010;
  outline-offset: 2px;
}

/* Lançador fixo e discreto (modo site). No modo shortcode a raiz é inline e o lançador fica oculto. */
.dmp-launcher {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 99998;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 14px 6px 6px;
  border: 1px solid #101010;
  border-radius: 999px;
  background: #354c3e;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(16, 16, 16, 0.18);
}
.dmp-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #101010;
  color: #dd9e21;
  font-weight: 800;
}
.dmp-launcher-text {
  max-width: 190px;
  text-align: left;
  line-height: 1.25;
  white-space: normal;
}
.dmp-root[data-dmp-inline] .dmp-launcher {
  display: none;
}

/* Painel */
.dmp-panel {
  position: fixed;
  right: 16px;
  bottom: 72px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  width: 368px;
  max-width: calc(100vw - 32px);
  max-height: min(640px, calc(100vh - 96px));
  background: #ffffff;
  color: #101010;
  border: 2px solid #101010;
  border-top: 6px solid #dd9e21;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(16, 16, 16, 0.22);
}
.dmp-root[data-dmp-inline] .dmp-panel {
  position: static;
  width: 100%;
  max-width: 560px;
  max-height: none;
  margin: 0 auto;
  box-shadow: none;
}
.dmp-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #d6d6d6;
}
.dmp-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.dmp-sub,
.dmp-tag {
  margin: 0;
  font-size: 12px;
  color: #101010;
}
.dmp-tag {
  font-weight: 700;
  margin-top: 4px;
}
.dmp-close {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #101010;
  border-radius: 6px;
  background: #ffffff;
  color: #101010;
  font-size: 20px;
  line-height: 1;
}
.dmp-status {
  margin: 0;
  padding: 8px 16px;
  font-size: 13px;
  background: #f4f4f4;
  border-left: 4px solid #dd9e21;
}
.dmp-status[data-kind="error"] {
  border-left-color: #101010;
  font-weight: 700;
}
.dmp-start {
  padding: 12px 16px;
  border-bottom: 1px solid #d6d6d6;
}
.dmp-note {
  margin: 0 0 10px;
  font-size: 13px;
}

/* Mensagens */
.dmp-log {
  flex: 1 1 auto;
  min-height: 160px;
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dmp-msg {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.dmp-msg-assistant {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid #101010;
  color: #101010;
}
.dmp-msg-user {
  align-self: flex-end;
  background: #dd9e21;
  border: 1px solid #101010;
  color: #101010;
}
.dmp-msg-notice {
  align-self: stretch;
  max-width: 100%;
  background: #f4f4f4;
  border-left: 4px solid #dd9e21;
  font-size: 13px;
}
.dmp-msg a,
.dmp-foot a {
  color: #101010;
  font-weight: 700;
  text-underline-offset: 3px;
}

/* Ações e formulário */
.dmp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px;
}
.dmp-actions:empty {
  display: none;
}
.dmp-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid #d6d6d6;
}
.dmp-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.dmp-input {
  flex: 1 1 auto;
  min-height: 44px;
  max-height: 120px;
  padding: 10px 12px;
  border: 1px solid #101010;
  border-radius: 6px;
  background: #ffffff;
  color: #101010;
  resize: vertical;
}
.dmp-btn {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #101010;
  border-radius: 6px;
  background: #dd9e21;
  color: #101010;
  font-weight: 700;
}
.dmp-secondary {
  background: #ffffff;
  color: #101010;
  font-weight: 700;
}
.dmp-send {
  flex: 0 0 auto;
}

.dmp-foot {
  margin: 0;
  padding: 10px 16px 14px;
  font-size: 11px;
  color: #101010;
}
.dmp-foot p {
  margin: 0 0 4px;
}

@media (max-width: 600px) {
  .dmp-panel {
    right: 0;
    bottom: 0;
    width: 100vw;
    max-width: 100vw;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }
  .dmp-log {
    max-height: none;
    flex: 1 1 auto;
  }
  .dmp-launcher {
    right: 12px;
    bottom: 12px;
  }
  .dmp-launcher-text {
    display: block;
    max-width: 170px;
    font-size: 13px;
  }
  .dmp-launcher {
    padding: 6px 12px 6px 6px;
  }
}
