/* ============================================
   WIDGET CZATBOTA WD DESIGN
   ============================================ */
#wd-chatbot-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  height: 52px;
  padding: 0 22px;
  border-radius: 26px;
  background: #FF6F00;
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Figtree', Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.2s ease;
}
#wd-chatbot-toggle:hover { transform: scale(1.08); }

#wd-chatbot-window {
  position: fixed;
  right: 24px;
  bottom: 96px;
  width: 340px;
  max-width: calc(100vw - 32px);
  height: 460px;
  max-height: calc(100vh - 140px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  font-family: 'Figtree', Arial, sans-serif;
}
#wd-chatbot-window.open { display: flex; }

#wd-chatbot-header {
  background: linear-gradient(135deg, #1A237E 0%, #283593 100%);
  color: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#wd-chatbot-header strong { font-family: 'Poppins', Arial, sans-serif; font-size: 1rem; }
#wd-chatbot-header span.subtitle { display: block; font-size: 0.75rem; opacity: 0.85; font-weight: 400; }
#wd-chatbot-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

#wd-chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  background: #F5F5F5;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wd-contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  align-self: center;
  width: 100%;
  margin-top: -4px;
  background: #FF6F00;
  border-radius: 14px;
  padding: 10px;
}
.wd-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid #1A237E;
  color: #1A237E;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 14px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.wd-contact-btn:hover {
  background: #1A237E;
  color: #fff;
}

.wd-msg {
  max-width: 85%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.wd-msg.bot {
  background: #fff;
  color: #212121;
  border: 1px solid #e0e0e0;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.wd-msg.user {
  background: #1A237E;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.wd-msg.typing {
  background: #fff;
  border: 1px solid #e0e0e0;
  align-self: flex-start;
  color: #999;
  font-style: italic;
}

#wd-chatbot-form {
  display: flex;
  border-top: 1px solid #e0e0e0;
  padding: 10px;
  gap: 8px;
  background: #fff;
}
#wd-chatbot-input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
}
#wd-chatbot-input:focus { border-color: #1A237E; }
#wd-chatbot-send {
  background: #FF6F00;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}
#wd-chatbot-send:disabled { opacity: 0.6; cursor: not-allowed; }

@media (max-width: 480px) {
  #wd-chatbot-window {
    right: 16px;
    left: 16px;
    width: auto;
    bottom: 90px;
  }
  #wd-chatbot-toggle { right: 16px; bottom: 16px; }
}

.wd-msg a { color: #1A237E; font-weight: 600; text-decoration: underline; }
