/* DKOMS chat widget styles */
#dkoms-chat-launcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0d6efd;
  color: #fff;
  border: none;
  padding: 14px 18px;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  z-index: 9999;
}

#dkoms-chat-box {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 340px;
  max-width: 95%;
  height: 520px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  font-family: Arial, sans-serif;
}

#dkoms-chat-header {
  background: #0d6efd;
  color: #fff;
  padding: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-shortcuts-wrap {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid #dde5f3;
  background: #f2f6ff;
  overflow-x: auto;
}

.chat-shortcuts-wrap::-webkit-scrollbar {
  height: 6px;
}

.chat-shortcuts-wrap::-webkit-scrollbar-thumb {
  background: #c7d7f6;
  border-radius: 999px;
}

.chat-shortcut-btn {
  flex: 0 0 auto;
  border: 1px solid #b8caf2;
  border-radius: 999px;
  background: #fff;
  color: #1e3f73;
  font-size: 12px;
  line-height: 1;
  padding: 7px 10px;
  cursor: pointer;
  white-space: nowrap;
}

.chat-shortcut-btn:hover {
  border-color: #0d6efd;
  color: #0d58d1;
}

#dkoms-chat-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

#dkoms-chat-messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  font-size: 14px;
  background: #f8f9fa;
}

#dkoms-chat-typing {
  display: none;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 10px;
  background: #e9ecef;
  font-style: italic;
}

.msg {
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 10px;
  max-width: 85%;
  line-height: 1.4;
}

.bot {
  background: #e9ecef;
  color: #1f2a3a;
}

.user {
  background: #0d6efd;
  color: #fff;
  margin-left: auto;
}

.msg-title {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.3;
}

.msg-text {
  margin: 0;
  white-space: pre-wrap;
}

.msg-follow-up {
  margin: 8px 0 0;
  font-size: 13px;
  color: #37517a;
}

.msg-list {
  margin: 8px 0 0;
  padding-left: 18px;
}

.msg-list li {
  margin: 4px 0;
}

.msg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.msg-action-link {
  display: inline-flex;
  align-items: center;
  border: 1px solid #bed4ff;
  background: #f4f8ff;
  color: #0d58d1;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  text-decoration: none;
}

.msg-action-link:hover {
  background: #e8f0ff;
}

.msg-action-link:focus-visible,
.chat-quick-reply:focus-visible,
.chat-shortcut-btn:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

.msg-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.chat-quick-reply {
  border: 1px dashed #a9b7cf;
  background: #fff;
  color: #28405f;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}

.chat-quick-reply:hover {
  border-color: #0d6efd;
  color: #0d58d1;
}

#dkoms-chat-input-wrap {
  display: flex;
  border-top: 1px solid #ddd;
}

#dkoms-chat-input {
  flex: 1;
  border: none;
  padding: 12px;
  font-size: 14px;
  outline: none;
}

#dkoms-chat-send {
  background: #0d6efd;
  color: #fff;
  border: none;
  padding: 0 16px;
  cursor: pointer;
}

@media (max-width: 500px) {
  #dkoms-chat-launcher {
    bottom: 16px;
    right: 16px;
    padding: 12px 16px;
    font-size: 14px;
  }
  #dkoms-chat-box {
    width: calc(100% - 24px);
    right: 12px;
    bottom: 70px;
    height: 480px;
  }
  #dkoms-chat-input {
    padding: 14px;
    font-size: 15px;
  }
  #dkoms-chat-send {
    padding: 0 18px;
  }
}
