/* Dwain Patrick — Floating Chatbot Widget Styles */
#dwain-chat-widget,
.dcw-bubble,
.dcw-window {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  box-sizing: border-box;
}
#dwain-chat-widget * { box-sizing: border-box; }

.dcw-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #111111;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(11,37,69,0.35);
  z-index: 9999;
  font-size: 26px;
  border: none;
  transition: transform 0.15s ease;
}
.dcw-bubble:hover { transform: scale(1.06); }

.dcw-window {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 340px;
  max-width: 90vw;
  height: 460px;
  max-height: 70vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
}
.dcw-window.dcw-open { display: flex; }

.dcw-header {
  background: #111111;
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dcw-header-title { font-size: 0.95rem; font-weight: 700; }
.dcw-header-sub { font-size: 0.72rem; color: #cfd6e2; margin-top: 2px; }
.dcw-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

.dcw-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  background: #f7f5f0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dcw-msg {
  max-width: 80%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.4;
}
.dcw-msg-bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #e6e3da;
  color: #1c1c1c;
  border-bottom-left-radius: 4px;
}
.dcw-msg-user {
  align-self: flex-end;
  background: #111111;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.dcw-panel {
  border-top: 1px solid #eee;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 45%;
  overflow-y: auto;
  background: #fff;
}

.dcw-choice {
  background: #fff;
  color: #111111;
  border: 1.5px solid #111111;
  border-radius: 20px;
  padding: 9px 14px;
  font-size: 0.82rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.dcw-choice:hover { background: #f5f5f5; }
.dcw-choice-primary {
  background: #111111;
  color: #fff;
}
.dcw-choice-primary:hover { background: #333333; }
.dcw-choice:disabled { opacity: 0.5; cursor: default; }

.dcw-panel-row {
  display: flex;
  gap: 8px;
}
.dcw-panel-row .dcw-choice { flex: 1; text-align: center; }

.dcw-textarea {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.85rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  resize: none;
  min-height: 60px;
  outline: none;
}
.dcw-textarea:focus { border-color: #111111; }

.dcw-contact-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dcw-contact-form input,
.dcw-contact-form select {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.85rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}
.dcw-contact-form select { color: #111111; }
.dcw-form-error {
  color: #b3261e;
  font-size: 0.75rem;
  min-height: 1em;
}
