#dbm-chatbot-root {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  /* Keep the help control clear of the site's footer and phone browser chrome. */
  bottom: max(88px, calc(68px + env(safe-area-inset-bottom)));
  z-index: 2400;
  width: min(620px, calc(100vw - 32px));
  color: var(--signal, #f3fdff);
  font-family: "Poppins", var(--dbm-font, ui-sans-serif), system-ui, sans-serif !important;
  pointer-events: none;
}

#dbm-chatbot-root.is-collapsed {
  right: 20px;
  bottom: max(88px, calc(68px + env(safe-area-inset-bottom)));
  width: 56px;
}

#dbm-chatbot-root.is-collapsed .dbm-chatbot-panel {
  display: none;
}

#dbm-chatbot-root.is-collapsed .dbm-chatbot-launch {
  display: grid;
  width: 56px;
  min-width: 56px;
  min-height: 56px;
  margin: 0;
  border: 1px solid var(--green, #52ff91);
  border-radius: 50%;
  color: var(--green, #52ff91);
  background: rgba(3, 10, 16, .98);
  font-size: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .58);
}

#dbm-chatbot-root.is-collapsed .dbm-chatbot-mascot-wrap,
#dbm-chatbot-root.is-collapsed .dbm-chatbot-launch-copy {
  display: none;
}

#dbm-chatbot-root.is-collapsed .dbm-chatbot-launch::before {
  content: "💬 MAC";
}

#dbm-chatbot-root *,
#dbm-chatbot-root *::before,
#dbm-chatbot-root *::after {
  box-sizing: border-box;
}

.dbm-chatbot-launch,
.dbm-chatbot-panel {
  pointer-events: auto;
}

.dbm-chatbot-launch {
  width: min(174px, calc(100vw - 32px));
  min-height: 0;
  margin-left: auto;
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 0;
  padding: 0;
  border: 0;
  color: var(--signal, #f3fdff);
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  font: inherit;
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
  filter: drop-shadow(0 20px 36px rgba(0, 0, 0, .56));
  isolation: isolate;
}

.dbm-chatbot-launch:hover,
.dbm-chatbot-launch:focus-visible {
  transform: translateY(-3px);
}

.dbm-chatbot-mascot-wrap {
  position: relative;
  z-index: 2;
  width: min(132px, 70vw);
  display: grid;
  place-items: center;
  transform-origin: 50% 82%;
  animation: dbmMascotReady 4.2s ease-in-out infinite;
}

.dbm-chatbot-mascot {
  width: 100%;
  min-width: 360px;
  height: auto;
  max-height: 190px;
  object-fit: contain;
  pointer-events: none;
}

.dbm-chatbot-led {
  position: absolute;
  right: 8px;
  bottom: 18px;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(1, 20, 12, .96);
  border-radius: 50%;
  background: var(--green, #52ff91);
  box-shadow: 0 0 0 0 rgba(82, 255, 145, .72), 0 0 18px rgba(82, 255, 145, .9);
  animation: dbmChatbotPulse 1.6s infinite;
}

.dbm-chatbot-launch-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: -11px;
  padding: 9px 10px 10px;
  border: 1px solid rgba(82, 255, 145, .72);
  border-radius: 8px;
  color: var(--signal, #f3fdff);
  background: rgba(3, 10, 16, .92);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .48), inset 0 0 24px rgba(82, 255, 145, .09);
  backdrop-filter: blur(12px);
}

.dbm-chatbot-launch strong,
.dbm-chatbot-launch span {
  display: block;
}

.dbm-chatbot-launch small {
  display: block;
  margin-top: 2px;
  color: var(--green, #52ff91);
  font-size: 14px;
  font-weight: 900;
}

.dbm-chatbot-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: 100%;
  min-height: min(600px, calc(100dvh - 90px));
  max-height: min(820px, calc(100dvh - 90px));
  display: none;
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border: 1px solid var(--line, rgba(53, 223, 255, .24));
  border-radius: 8px;
  background: rgba(3, 10, 16, .98);
  box-shadow: 0 30px 92px rgba(0, 0, 0, .62), inset 4px 0 0 rgba(82, 255, 145, .62);
}

#dbm-chatbot-root.is-open .dbm-chatbot-panel {
  display: grid;
}

#dbm-chatbot-root.is-open .dbm-chatbot-launch {
  display: none;
  opacity: 0;
  pointer-events: none;
}

body.dbm-chatbot-open .sticky-cta {
  opacity: 0;
  pointer-events: none;
}

.dbm-chatbot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line, rgba(53, 223, 255, .24));
  background: rgba(6, 18, 28, .96);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.dbm-chatbot-head:active {
  cursor: grabbing;
}

.dbm-chatbot-id {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dbm-chatbot-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--green, #52ff91);
  color: var(--green, #52ff91);
  background: rgba(82, 255, 145, .08);
  overflow: hidden;
  font-size: 12px;
  font-weight: 950;
}

.dbm-chatbot-avatar img {
  width: 32px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(82, 255, 145, .38));
}

.dbm-chatbot-title {
  min-width: 0;
}

.dbm-chatbot-title strong,
.dbm-chatbot-title span {
  display: block;
}

.dbm-chatbot-title strong {
  color: var(--signal, #f3fdff);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.15;
}

.dbm-chatbot-title span {
  margin-top: 2px;
  color: var(--green, #52ff91);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.dbm-chatbot-close {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--line, rgba(53, 223, 255, .24));
  border-radius: 4px;
  color: var(--signal, #f3fdff);
  background: rgba(2, 8, 14, .86);
  cursor: pointer;
  font: inherit;
  font-weight: 950;
}

.dbm-chatbot-log {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  scrollbar-width: thin;
  min-height: 300px;
}

.dbm-chatbot-message {
  width: fit-content;
  max-width: 94%;
  padding: 11px 13px;
  border: 1px solid var(--line-soft, rgba(145, 174, 185, .16));
  border-radius: 8px;
  color: var(--signal, #f3fdff);
  background: rgba(6, 18, 28, .88);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.58;
  white-space: pre-wrap;
}

.dbm-chatbot-message.user {
  justify-self: end;
  color: #00140c;
  background: var(--green, #52ff91);
}

.dbm-chatbot-message.status {
  color: var(--muted, #91aeb9);
}

.dbm-chatbot-chips,
.dbm-chatbot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dbm-chatbot-chip,
.dbm-chatbot-action,
.dbm-chatbot-send,
.dbm-chatbot-contact-toggle,
.dbm-chatbot-contact-submit,
.dbm-chatbot-contact-cancel {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 11px;
  border: 1px solid var(--line, rgba(53, 223, 255, .24));
  border-radius: 4px;
  color: var(--signal, #f3fdff);
  background: rgba(2, 8, 14, .88);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
}

.dbm-chatbot-send {
  min-width: 44px;
  min-height: 44px;
}

.dbm-chatbot-chip:hover,
.dbm-chatbot-action.primary,
.dbm-chatbot-send,
.dbm-chatbot-contact-submit {
  border-color: var(--green, #52ff91);
  color: #00140c;
  background: var(--green, #52ff91);
}

.dbm-chatbot-chip:disabled,
.dbm-chatbot-send:disabled,
.dbm-chatbot-contact-submit:disabled {
  cursor: wait;
  opacity: .62;
}

.dbm-chatbot-footer {
  max-height: min(430px, calc(100dvh - 180px));
  overflow-y: auto;
  display: grid;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line, rgba(53, 223, 255, .24));
  background: rgba(2, 8, 14, .94);
}

.dbm-chatbot-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.dbm-chatbot-input,
.dbm-chatbot-field input,
.dbm-chatbot-field textarea {
  width: 100%;
  border: 1px solid var(--line, rgba(53, 223, 255, .24));
  border-radius: 4px;
  color: var(--signal, #f3fdff);
  background: rgba(6, 18, 28, .94);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
}

.dbm-chatbot-input {
  min-height: 44px;
  max-height: 112px;
  padding: 10px 11px;
  resize: vertical;
}

.dbm-chatbot-input::placeholder,
.dbm-chatbot-field input::placeholder,
.dbm-chatbot-field textarea::placeholder {
  color: rgba(145, 174, 185, .78);
}

.dbm-chatbot-utility {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dbm-chatbot-footer.contact-open .dbm-chatbot-input-row,
.dbm-chatbot-footer.contact-open > .dbm-chatbot-utility {
  display: none;
}

.dbm-chatbot-contact {
  display: grid;
  gap: 9px;
  padding: 11px;
  border: 1px solid rgba(82, 255, 145, .28);
  border-radius: 8px;
  background: rgba(3, 24, 15, .52);
}

.dbm-chatbot-contact[hidden] {
  display: none;
}

.dbm-chatbot-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dbm-chatbot-field {
  display: grid;
  gap: 5px;
  color: var(--muted, #91aeb9);
  font-size: 14px;
  font-weight: 900;
}

.dbm-chatbot-field.full {
  grid-column: 1 / -1;
}

.dbm-chatbot-field input {
  min-height: 40px;
  padding: 8px 9px;
}

.dbm-chatbot-field textarea {
  min-height: 72px;
  padding: 9px;
  resize: vertical;
}

.dbm-chatbot-contact-status {
  min-height: 18px;
  margin: 0;
  color: var(--green, #52ff91);
  font-size: 12px;
  font-weight: 850;
}

.dbm-chatbot-contact-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.dbm-chatbot-contact-status.error {
  color: var(--red, #ff5f73);
}

.dbm-chatbot-fine {
  margin: 0;
  color: var(--muted, #91aeb9);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.4;
}

#dbm-chatbot-root :is(button, input, textarea, a, p, span, strong, small, label) {
  font-family: "Poppins", var(--dbm-font, ui-sans-serif), system-ui, sans-serif !important;
}

#dbm-chatbot-root :is(.dbm-chatbot-action, .dbm-chatbot-chip, .dbm-chatbot-send, .dbm-chatbot-contact-toggle, .dbm-chatbot-contact-submit, .dbm-chatbot-contact-cancel) {
  font-size: 15px;
  line-height: 1.35;
}

@media (max-width: 760px) {
  #dbm-chatbot-root {
    left: 16px;
    right: 16px;
    bottom: max(88px, calc(68px + env(safe-area-inset-bottom)));
    width: auto;
  }

  #dbm-chatbot-root.is-collapsed {
    left: auto;
    right: 20px;
    bottom: max(88px, calc(68px + env(safe-area-inset-bottom)));
    width: 56px;
  }

  body.dbm-chatbot-open #dbm-chatbot-root {
    top: max(12px, env(safe-area-inset-top));
    bottom: auto;
    height: min(820px, calc(100dvh - 56px));
  }

  .dbm-chatbot-launch {
    width: min(154px, 48vw);
    justify-content: center;
    text-align: center;
  }

  .dbm-chatbot-mascot-wrap {
    width: min(108px, 38vw);
  }

  .dbm-chatbot-mascot {
    max-height: 156px;
  }

  .dbm-chatbot-panel {
    position: static;
    width: 100%;
    height: 70vh;
    min-height: 0;
    min-width: 0;
    max-height: none;
    grid-template-rows: auto minmax(0, 1fr) 46%;
  }

  .dbm-chatbot-footer {
    height: auto;
    max-height: none;
  }

  .dbm-chatbot-fields,
  .dbm-chatbot-input-row {
    grid-template-columns: 1fr;
  }

  .dbm-chatbot-send,
  .dbm-chatbot-contact-submit,
  .dbm-chatbot-contact-cancel,
  .dbm-chatbot-contact-toggle,
  .dbm-chatbot-action {
    width: 100%;
  }

  .dbm-chatbot-contact-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dbm-chatbot-mascot-wrap,
  .dbm-chatbot-led {
    animation: none;
  }

  .dbm-chatbot-launch:hover,
  .dbm-chatbot-launch:focus-visible {
    transform: none;
  }
}

@keyframes dbmChatbotPulse {
  0% { box-shadow: 0 0 0 0 rgba(82, 255, 145, .72); }
  70% { box-shadow: 0 0 0 12px rgba(82, 255, 145, 0); }
  100% { box-shadow: 0 0 0 0 rgba(82, 255, 145, 0); }
}

@keyframes dbmMascotReady {
  0%, 100% { transform: translateY(0) rotate(0deg); filter: drop-shadow(0 0 10px rgba(82, 255, 145, .24)); }
  45% { transform: translateY(-5px) rotate(-1.4deg); filter: drop-shadow(0 0 18px rgba(82, 255, 145, .42)); }
  62% { transform: translateY(-2px) rotate(1deg); }
}
