/* ----- Dudley embedded chat polish ----- */

.chat-heading{
  display:flex;
  align-items:center;
  gap:10px;
}

.chat-heading-logo{
  width:60px;
  height:auto;
  flex-shrink:0;
}

.embedded-chat-section .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Center the whole chat panel and make it feel modern */
.chat-panel.chat-panel-embedded {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  overflow: hidden;
}

/* Make the history area look clean */
.chat-messages {
  padding: 18px;
  max-height: 420px;
  overflow: auto;
  background: #fff;
}

/* Remove the Windows look from the input area */
.chat-input-row,
.chat-input-row-inline {
  display: flex;
  gap: 12px;
  align-items: stretch;
  padding: 14px;
  border-top: 1px solid rgba(0,0,0,0.08);
  background: #f7f8fa;
}

/* The textarea should be fixed and modern */
#chat-input {
  flex: 1;
  width: 100%;
  min-height: 56px;
  max-height: 140px;
  resize: none;              /* <— THIS stops resizing */
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.15);
  font: inherit;
  line-height: 1.4;
  outline: none;
  background: #fff;
}

#chat-input:focus {
  border-color: rgba(0,0,0,0.35);
}

/* Buttons: make them match your site buttons */
.chat-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.chat-actions .btn-primary,
.chat-actions .btn-outline {
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* ----- Typing indicator (3 coloured dots) ----- */

.chat-typing{
  display:inline-flex;
  align-items:center;
  gap:6px;
  height: 16px;
}

.chat-typing span{
  width:6px;
  height:6px;
  border-radius:50%;
  animation: chatTypingBounce 1s infinite ease-in-out;
}

/* Dudley colours (tweak hexes if you want them exact) */
.chat-typing span:nth-child(1){ background:#D60078; } /* pink */
.chat-typing span:nth-child(2){ background:#009CDD; } /* pale blue */
.chat-typing span:nth-child(3){ background:#004C97; } /* dark blue */

.chat-typing span:nth-child(2){ animation-delay: 0.15s; }
.chat-typing span:nth-child(3){ animation-delay: 0.30s; }

@keyframes chatTypingBounce{
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40% { transform: translateY(-4px); opacity: 0.9; }
}

/* Compact typing bubble */
.chat-msg[data-typing="1"]{
  padding: 10px 14px;
  min-height: auto;
  line-height: 1;
}
