/* Nokumo AI support chatbot widget — self-contained, theme-agnostic styles. */
#chat-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2147483000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#chat-widget * {
  box-sizing: border-box;
}

.nk-chat__launcher {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: #1f2937;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  padding: 0;
}
.nk-chat__launcher:hover {
  background: #111827;
}

.nk-chat__panel {
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 40px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.nk-chat__header {
  background: #1f2937;
  color: #fff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nk-chat__title {
  font-weight: 600;
  font-size: 15px;
}
.nk-chat__close {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.nk-chat__log {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  background: #f7f7f8;
}

.nk-chat__msg {
  display: flex;
  margin-bottom: 10px;
}
.nk-chat__msg--user {
  justify-content: flex-end;
}
.nk-chat__msg--bot {
  justify-content: flex-start;
}
.nk-chat__bubble {
  display: inline-block;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  max-width: 80%;
  word-wrap: break-word;
  white-space: normal;
}
.nk-chat__msg--user .nk-chat__bubble {
  background: #2563eb;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.nk-chat__msg--bot .nk-chat__bubble {
  background: #fff;
  color: #111827;
  border: 1px solid #e5e7eb;
  border-bottom-left-radius: 4px;
}
.nk-chat__bubble a {
  color: inherit;
  text-decoration: underline;
}

.nk-chat__cta {
  display: inline-block;
  margin: 2px 0 4px;
  padding: 9px 14px;
  background: #2563eb;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.nk-chat__cta:hover {
  background: #1d4ed8;
}

.nk-chat__status {
  font-size: 12px;
  color: #6b7280;
  font-style: italic;
  padding: 2px 4px 8px;
}

.nk-chat__input {
  display: flex;
  border-top: 1px solid #e5e7eb;
  padding: 8px;
  background: #fff;
}
.nk-chat__input input {
  flex: 1;
  border: 1px solid #d1d5db;
  border-radius: 20px;
  padding: 9px 14px;
  font-size: 14px;
  outline: none;
}
.nk-chat__input input:focus {
  border-color: #2563eb;
}
.nk-chat__input button {
  margin-left: 8px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.nk-chat__input button:disabled {
  background: #9ca3af;
  cursor: default;
}

.nk-chat__notice {
  padding: 6px 12px 9px;
  font-size: 10px;
  line-height: 1.35;
  color: #9ca3af;
  background: #fff;
  text-align: center;
}
.nk-chat__notice a {
  color: #6b7280;
  text-decoration: underline;
}
