/* Николай Шарапов chatbot widget styles — matches nikvegas.com forest+gold palette. */

#nvc-root {
  --nvc-forest: #133b27;
  --nvc-forest-deep: #0d2e1d;
  --nvc-gold: #ad7f2f;
  --nvc-gold-deep: #8a6320;
  --nvc-cream: #faf6ee;
  --nvc-ink: #32302a;
  --nvc-muted: #867d6d;
  --nvc-border: #e9dfce;
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

#nvc-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--nvc-forest);
  color: var(--nvc-gold);
  border: 2px solid var(--nvc-gold);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  transition: transform 0.15s ease;
}
#nvc-button:hover { transform: translateY(-2px); }

#nvc-badge {
  display: none;
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e63946;
  border: 2px solid white;
}

#nvc-panel {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 9999;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 140px));
  background: white;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  flex-direction: column;
  overflow: hidden;
}

#nvc-header {
  background: var(--nvc-forest);
  color: white;
  padding: 14px 18px;
}
#nvc-eyebrow {
  color: var(--nvc-gold);
  font-size: 10px;
  letter-spacing: 0.25em;
  font-weight: 700;
  text-transform: uppercase;
}
#nvc-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  margin-top: 3px;
}

#nvc-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  background: var(--nvc-cream);
}

.nvc-row {
  margin-bottom: 10px;
  display: flex;
}
.nvc-row-user { justify-content: flex-end; }
.nvc-row-assistant { justify-content: flex-start; }

.nvc-bubble {
  max-width: 85%;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 14.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.nvc-bubble-user {
  background: var(--nvc-forest);
  color: white;
}
.nvc-bubble-assistant {
  background: white;
  color: var(--nvc-ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.nvc-typing { color: #888; font-style: italic; }

#nvc-input-wrap {
  border-top: 1px solid #eee;
  background: white;
  padding: 10px;
}
#nvc-textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  resize: none;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  color: var(--nvc-ink);
  box-sizing: border-box;
}
#nvc-textarea:focus {
  border-color: var(--nvc-gold);
}

#nvc-input-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}
#nvc-hint {
  font-size: 10px;
  color: #888;
}
#nvc-send {
  background: var(--nvc-gold);
  color: #241c0c;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: inherit;
}
#nvc-send:hover { background: var(--nvc-gold-deep); }

@media (max-width: 480px) {
  #nvc-button { bottom: 16px; right: 16px; }
  #nvc-panel { bottom: 88px; right: 16px; left: 16px; width: auto; }
}
