/* Decker IT floating AI chat widget */
#deckerit-chat-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99999;
  font-family: inherit;
}

#deckerit-chat-toggle {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  border: 0;
  background: #0057d9;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#deckerit-chat-toggle:hover,
#deckerit-chat-toggle:focus {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.32);
  background: #003f9e;
  outline: none;
}

#deckerit-chat-panel {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 500px;
  max-height: calc(100vh - 125px);
  background: #ffffff;
  color: #252122;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0,0,0,0.34);
  border: 1px solid rgba(0,0,0,0.10);
  display: none;
}

#deckerit-chat-panel.open {
  display: flex;
  flex-direction: column;
}

.deckerit-chat-header {
  background: #111827;
  color: #ffffff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.deckerit-chat-title {
  line-height: 1.2;
}

.deckerit-chat-title strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.deckerit-chat-title span {
  display: block;
  color: rgba(255,255,255,0.78);
  font-size: 0.78rem;
  margin-top: 3px;
}

#deckerit-chat-close {
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
}

#deckerit-chat-messages {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  background: #f5f7fb;
}

.deckerit-chat-message {
  margin: 0 0 10px 0;
  display: flex;
}

.deckerit-chat-message .bubble {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.42;
  white-space: pre-wrap;
}

.deckerit-chat-message.bot .bubble {
  background: #ffffff;
  color: #252122;
  border: 1px solid rgba(0,0,0,0.08);
  border-bottom-left-radius: 5px;
}

.deckerit-chat-message.user {
  justify-content: flex-end;
}

.deckerit-chat-message.user .bubble {
  background: #0057d9;
  color: #ffffff;
  border-bottom-right-radius: 5px;
}

.deckerit-chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #ffffff;
  border-top: 1px solid rgba(0,0,0,0.08);
}

#deckerit-chat-input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #ffffff;
  color: #252122;
}

#deckerit-chat-input:focus {
  border-color: #0057d9;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,87,217,0.13);
}

#deckerit-chat-send {
  border: 0;
  border-radius: 10px;
  background: #0057d9;
  color: #ffffff;
  padding: 0 14px;
  font-weight: 700;
  cursor: pointer;
}

#deckerit-chat-send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.deckerit-chat-footnote {
  padding: 0 12px 10px 12px;
  background: #ffffff;
  color: rgba(37,33,34,0.68);
  font-size: 0.72rem;
  line-height: 1.25;
}

@media screen and (max-width: 480px) {
  #deckerit-chat-widget {
    right: 16px;
    bottom: 16px;
  }

  #deckerit-chat-panel {
    position: fixed;
    right: 10px;
    left: 10px;
    bottom: 88px;
    width: auto;
    height: 70vh;
    max-width: none;
  }

  #deckerit-chat-toggle {
    width: 58px;
    height: 58px;
  }
}
