/* Nicco Web Solutions — site chatbot */

.nicco-chatbot {
  --chat-accent: #f2520d;
  --chat-accent-soft: rgba(242, 82, 13, 0.12);
  --chat-ink: #12141a;
  --chat-muted: #6b7280;
  --chat-surface: #ffffff;
  --chat-border: rgba(18, 20, 26, 0.08);
  --chat-shadow: 0 20px 50px rgba(18, 20, 26, 0.16);
  --fab-bottom: 12px;
  --fab-side: 18px;
  position: fixed;
  left: var(--fab-side);
  right: auto;
  bottom: var(--fab-bottom);
  z-index: 999990;
  font-family: "Kumbh Sans", system-ui, sans-serif;
  opacity: 0;
  transform: translateY(10px);
  animation: nicco-chatbot-enter 0.45s ease forwards;
}

@keyframes nicco-chatbot-enter {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nicco-chatbot {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.nicco-chatbot * {
  box-sizing: border-box;
}

.nicco-chatbot-fab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.nicco-chatbot-launcher {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 14px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--chat-border);
  box-shadow: 0 16px 40px rgba(18, 20, 26, 0.16);
  transform-origin: bottom left;
  width: min(236px, calc(100vw - 28px));
  max-width: min(236px, calc(100vw - 28px));
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.96);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nicco-chatbot.is-menu-open .nicco-chatbot-launcher {
  display: flex;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  animation: nicco-chatbot-badge-in 0.28s ease both;
}

.nicco-chatbot-launcher[hidden] {
  display: none !important;
}

.nicco-chatbot-online-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--chat-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  animation: none;
}

.nicco-chatbot-online-dot,
.nicco-chatbot-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  flex-shrink: 0;
  animation: nicco-chatbot-pulse 1.8s ease infinite;
}

.nicco-chatbot-online-text {
  background: linear-gradient(90deg, #12141a 0%, #22c55e 45%, #12141a 90%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: nicco-chatbot-shimmer 2.8s linear infinite;
}

.nicco-chatbot-channels {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.nicco-chatbot-channel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  min-height: 108px;
  padding: 12px 8px 10px;
  border: 1px solid var(--chat-border);
  border-radius: 14px;
  background: #fafafa;
  color: var(--chat-ink);
  cursor: pointer;
  font: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.nicco-chatbot-channel:hover,
.nicco-chatbot-channel:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.nicco-chatbot-channel.is-ai:hover,
.nicco-chatbot-channel.is-ai:focus-visible {
  border-color: rgba(242, 82, 13, 0.35);
  background: #fff7f3;
  box-shadow: 0 8px 18px rgba(242, 82, 13, 0.14);
}

.nicco-chatbot-channel.is-wa:hover,
.nicco-chatbot-channel.is-wa:focus-visible {
  border-color: rgba(37, 211, 102, 0.45);
  background: #f3fff7;
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.16);
}

.nicco-chatbot-channel-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.nicco-chatbot-channel.is-ai .nicco-chatbot-channel-icon {
  background: #fff;
  border: 1px solid rgba(242, 82, 13, 0.18);
  box-shadow: 0 4px 12px rgba(242, 82, 13, 0.12);
}

.nicco-chatbot-channel.is-ai .nicco-chatbot-channel-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.nicco-chatbot-channel.is-wa .nicco-chatbot-channel-icon {
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.28);
}

.nicco-chatbot-channel-label {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.nicco-chatbot-channel-sub {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  color: var(--chat-muted);
  white-space: normal;
  max-width: 9.5ch;
}

.nicco-chatbot.is-open .nicco-chatbot-launcher {
  display: none !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.nicco-chatbot-toggle {
  width: 56px;
  height: 56px;
  border: 1px solid var(--chat-border);
  border-radius: 50%;
  background: #fff;
  color: #fff;
  box-shadow: 0 12px 30px rgba(18, 20, 26, 0.16), 0 0 0 3px rgba(242, 82, 13, 0.12);
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  overflow: visible;
  padding: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nicco-chatbot-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(18, 20, 26, 0.2);
}

.nicco-chatbot-toggle-online {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  z-index: 2;
  box-shadow: 0 0 0 1px rgba(18, 20, 26, 0.06);
}

.nicco-chatbot-toggle-online .nicco-chatbot-online-dot {
  width: 8px;
  height: 8px;
}

.nicco-chatbot-toggle .icon-main {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nicco-chatbot-toggle .icon-close {
  width: 20px;
  height: 20px;
  position: absolute;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.18s ease, transform 0.18s ease;
  color: #fff;
}

.nicco-chatbot.is-menu-open .nicco-chatbot-toggle,
.nicco-chatbot.is-open .nicco-chatbot-toggle {
  background: linear-gradient(135deg, #f2520d, #ff7a3d);
  border-color: transparent;
  box-shadow: 0 14px 34px rgba(242, 82, 13, 0.38);
}

.nicco-chatbot.is-menu-open .nicco-chatbot-toggle .icon-main,
.nicco-chatbot.is-open .nicco-chatbot-toggle .icon-main,
.nicco-chatbot.is-menu-open .nicco-chatbot-toggle-online,
.nicco-chatbot.is-open .nicco-chatbot-toggle-online {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.nicco-chatbot.is-menu-open .nicco-chatbot-toggle .icon-close,
.nicco-chatbot.is-open .nicco-chatbot-toggle .icon-close {
  opacity: 1;
  transform: scale(1);
}

.nicco-chatbot-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.nicco-chatbot-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 3px;
}

.nicco-chatbot-panel {
  position: absolute;
  left: 0;
  right: auto;
  bottom: 72px;
  width: min(400px, calc(100vw - 24px));
  height: min(540px, calc(100vh - 110px));
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: var(--chat-surface);
  border: 1px solid var(--chat-border);
  box-shadow: var(--chat-shadow);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transform-origin: bottom left;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nicco-chatbot.is-open .nicco-chatbot-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nicco-chatbot-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  background: linear-gradient(135deg, #171a22, #252a35);
  color: #fff;
  flex-shrink: 0;
}

.nicco-chatbot-header-copy {
  flex: 1;
  min-width: 0;
}

.nicco-chatbot-header-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nicco-chatbot-header-copy span {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nicco-chatbot-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #a7f3c5;
  white-space: nowrap;
  flex-shrink: 0;
}

.nicco-chatbot-status-live {
  color: #bbf7d0;
}

.nicco-chatbot-status.is-typing {
  color: #fde68a;
}

.nicco-chatbot-status.is-typing .nicco-chatbot-status-dot {
  display: none;
}

.nicco-chatbot-close {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  margin-left: 4px;
}

.nicco-chatbot-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.nicco-chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  background: #f6f8fb;
}

.nicco-chatbot-msg {
  display: flex;
  margin-bottom: 12px;
}

.nicco-chatbot-msg.is-user {
  justify-content: flex-end;
}

.nicco-chatbot-bubble {
  max-width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: 16px;
  font-family: "Kumbh Sans", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--chat-ink);
  background: #fff;
  border: 1px solid var(--chat-border);
}

.nicco-chatbot-bubble,
.nicco-chatbot-bubble p,
.nicco-chatbot-bubble li,
.nicco-chatbot-bubble a:not(.nicco-answer__btn),
.nicco-chatbot-bubble strong,
.nicco-chatbot-bubble h1,
.nicco-chatbot-bubble h2,
.nicco-chatbot-bubble h3,
.nicco-chatbot-bubble h4 {
  font-family: "Kumbh Sans", system-ui, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  letter-spacing: 0 !important;
}

.nicco-chatbot-bubble p,
.nicco-chatbot-bubble h1,
.nicco-chatbot-bubble h2,
.nicco-chatbot-bubble h3,
.nicco-chatbot-bubble h4 {
  margin: 0 0 8px !important;
  padding: 0 !important;
}

.nicco-chatbot-bubble ul,
.nicco-chatbot-bubble ol {
  margin: 0 0 10px !important;
  padding: 0 0 0 18px !important;
}

.nicco-chatbot-bubble p:last-child,
.nicco-chatbot-bubble ul:last-child {
  margin-bottom: 0 !important;
}

.nicco-chatbot-bubble strong {
  font-weight: 700 !important;
}

.nicco-chatbot-msg.is-user .nicco-chatbot-bubble {
  background: var(--chat-accent);
  color: #fff;
  border-color: transparent;
  max-width: 88%;
}

.nicco-answer {
  display: block;
}

.nicco-answer__title {
  margin: 0 0 8px !important;
  font-weight: 700 !important;
  color: var(--chat-ink);
}

.nicco-answer__text {
  margin: 0 0 8px !important;
  font-weight: 400 !important;
  color: var(--chat-ink);
}

.nicco-answer__list {
  margin: 0 0 10px !important;
  padding: 0 0 0 18px !important;
}

.nicco-answer__list li {
  margin: 0 0 6px !important;
  padding: 0 !important;
  font-weight: 400 !important;
}

.nicco-answer__list li:last-child {
  margin-bottom: 0 !important;
}

.nicco-answer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.nicco-answer__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px !important;
  border-radius: 999px;
  border: 1px solid rgba(242, 82, 13, 0.28);
  background: #fff;
  color: var(--chat-accent) !important;
  font-family: "Kumbh Sans", system-ui, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
}

.nicco-answer__btn:hover {
  background: var(--chat-accent-soft);
}

.nicco-chatbot-msg.is-bot .nicco-chatbot-bubble a:not(.nicco-answer__btn) {
  color: var(--chat-accent) !important;
  font-weight: 600 !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nicco-answer--ai ul,
.nicco-answer--ai ol {
  margin: 0 0 10px !important;
  padding: 0 0 0 18px !important;
}

.nicco-chatbot-bubble .nicco-answer__actions {
  margin-top: 12px !important;
  margin-bottom: 0 !important;
}

.nicco-chatbot-suggestions {
  display: grid;
  gap: 6px;
  margin-top: 4px;
  margin-bottom: 4px;
}

.nicco-chatbot-suggestions button {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--chat-border);
  border-radius: 12px;
  background: #fff;
  color: var(--chat-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.nicco-chatbot-suggestions button:hover {
  border-color: rgba(242, 82, 13, 0.35);
  background: var(--chat-accent-soft);
  color: var(--chat-accent);
}

.nicco-chatbot-suggestions button strong {
  display: block;
  font-size: 14px;
}

.nicco-chatbot-suggestions button span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 500;
  color: var(--chat-muted);
}

.nicco-chatbot-list {
  margin: 8px 0 10px;
  padding-left: 18px;
}

.nicco-chatbot-list li {
  margin: 3px 0;
}

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

.nicco-chatbot-quick-reply {
  appearance: none;
  border: 1px solid rgba(242, 82, 13, 0.28);
  background: #fff;
  color: var(--chat-accent);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.nicco-chatbot-quick-reply:hover {
  background: var(--chat-accent-soft);
  border-color: rgba(242, 82, 13, 0.45);
}

.nicco-chatbot-typing {
  display: inline-flex;
  gap: 4px;
  padding: 2px 0;
}

.nicco-chatbot-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b6bdc8;
  animation: niccoChatTyping 1s infinite ease-in-out;
}

.nicco-chatbot-typing span:nth-child(2) {
  animation-delay: 0.12s;
}

.nicco-chatbot-typing span:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes niccoChatTyping {
  0%,
  80%,
  100% {
    opacity: 0.4;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.nicco-chatbot-compose {
  display: flex;
  gap: 6px;
  padding: 10px;
  border-top: 1px solid var(--chat-border);
  background: #fff;
}

.nicco-chatbot-compose input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--chat-border);
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
}

.nicco-chatbot-compose input:focus {
  outline: none;
  border-color: rgba(242, 82, 13, 0.45);
  box-shadow: 0 0 0 3px rgba(242, 82, 13, 0.1);
}

.nicco-chatbot-compose input:disabled {
  background: #f3f5f9;
}

.nicco-chatbot-send {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 10px;
  background: var(--chat-accent);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.nicco-chatbot-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.nicco-chatbot-lead {
  width: 100%;
  padding: 2px 0 0;
}

.nicco-chatbot-lead h4 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
}

.nicco-chatbot-lead label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--chat-muted);
}

.nicco-chatbot-lead input,
.nicco-chatbot-lead textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 9px 10px;
  border: 1px solid var(--chat-border);
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
}

.nicco-chatbot-lead textarea {
  min-height: 64px;
  resize: vertical;
}

.nicco-chatbot-lead-error {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff1f1;
  color: #c62828;
  font-size: 12px;
  font-weight: 600;
}

.nicco-chatbot-lead-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.nicco-chatbot-lead-actions button {
  flex: 1;
  min-height: 36px;
  border-radius: 10px;
  border: none;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.nicco-chatbot-lead-actions .is-primary {
  background: var(--chat-accent);
  color: #fff;
}

.nicco-chatbot-lead-actions .is-ghost {
  background: #eef1f5;
  color: var(--chat-ink);
}

.nicco-chatbot-note {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--chat-muted);
}

.nicco-chatbot-hidden {
  display: none !important;
}

.nicco-chatbot-footer-hint {
  padding: 0 10px 8px;
  font-size: 10px;
  color: var(--chat-muted);
  text-align: center;
  background: #fff;
}

/* WhatsApp mode inside panel */
.nicco-chatbot-panel.is-wa-mode .nicco-chatbot-header:not(.nicco-chatbot-header-wa),
.nicco-chatbot-panel.is-wa-mode [data-assistant-messages],
.nicco-chatbot-panel.is-wa-mode [data-assistant-compose],
.nicco-chatbot-panel.is-wa-mode [data-assistant-footer],
.nicco-chatbot-panel.is-wa-mode [data-back-options-assistant] {
  display: none;
}

.nicco-chatbot-header-wa,
.nicco-chatbot-wa-body {
  display: none;
}

.nicco-chatbot-panel.is-wa-mode .nicco-chatbot-header-wa,
.nicco-chatbot-panel.is-wa-mode .nicco-chatbot-wa-body {
  display: flex;
}

.nicco-chatbot-header-wa {
  background: #075e54;
}

.nicco-chatbot-back {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.nicco-chatbot-wa-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.nicco-chatbot-header-wa .nicco-chatbot-status {
  color: #b8f5c8;
}

.nicco-chatbot-panel.is-wa-mode .nicco-chatbot-wa-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.nicco-chatbot-wa-body {
  display: none;
}

.nicco-chatbot-hidden {
  display: none !important;
}

.nicco-chatbot-wa-lead-panel {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 18px;
  background: #e5ddd5 url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4cdc4' fill-opacity='0.45'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.nicco-chatbot-wa-lead-intro {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #2f3b2f;
}

.nicco-chatbot-wa-lead-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nicco-chatbot-wa-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nicco-chatbot-wa-field span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #3d5c34;
}

.nicco-chatbot-wa-field input,
.nicco-chatbot-wa-field textarea {
  width: 100%;
  border: 1px solid #d4cdc4;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  color: #111;
  background: #fff;
  resize: vertical;
}

.nicco-chatbot-wa-field input:focus,
.nicco-chatbot-wa-field textarea:focus {
  outline: none;
  border-color: #25d366;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.18);
}

.nicco-chatbot-wa-lead-error {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #b42318;
}

.nicco-chatbot-wa-lead-submit {
  width: 100%;
  min-height: 42px;
  border: none;
  border-radius: 999px;
  background: #075e54;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.nicco-chatbot-wa-lead-submit:hover {
  background: #064a42;
}

.nicco-chatbot-wa-success {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #dcf8c6;
  color: #1f3b1f;
  font-size: 13px;
  line-height: 1.5;
}

.nicco-chatbot-wa-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.nicco-chatbot-wa-open-btn:hover {
  background: #1fb855;
}

.nicco-chatbot-back-options-btn {
  display: block;
  width: calc(100% - 24px);
  margin: 0 12px 8px;
  min-height: 36px;
  border: 1px solid var(--chat-border, #e5e7eb);
  border-radius: 999px;
  background: #fff;
  color: var(--chat-accent, #111827);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.nicco-chatbot-back-options-btn:hover {
  background: #f8fafc;
}

.nicco-chatbot-wa-back-options {
  width: 100%;
  min-height: 40px;
  margin-top: 10px;
  border: 1px solid #c8e6b5;
  border-radius: 999px;
  background: #fff;
  color: #075e54;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.nicco-chatbot-wa-back-options:hover {
  background: #f4fff0;
}

.nicco-chatbot-wa-connect-note {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: #3d5c34;
  text-align: center;
}

@media (max-width: 575.98px) {
  .nicco-chatbot {
    --fab-side: 12px;
    --fab-bottom: 10px;
  }

  .back-to-top-wrapper.back-to-top-btn-show {
    right: 12px;
    bottom: 10px;
  }

  .nicco-chatbot-launcher {
    width: min(220px, calc(100vw - 24px));
    max-width: min(220px, calc(100vw - 24px));
    padding: 12px;
    gap: 8px;
  }

  .nicco-chatbot-channel {
    min-height: 100px;
    padding: 10px 6px 8px;
  }

  .nicco-chatbot-channel-icon {
    width: 36px;
    height: 36px;
  }

  .nicco-chatbot-header {
    gap: 8px;
    padding: 10px;
  }

  .nicco-chatbot-header-copy span {
    display: none;
  }

  .nicco-chatbot-status {
    font-size: 0;
    gap: 0;
  }

  .nicco-chatbot-status .nicco-chatbot-status-dot {
    margin: 0;
  }

  .nicco-chatbot-panel {
    bottom: 70px;
    width: min(100vw - 16px, 400px);
    height: min(72vh, calc(100vh - 96px));
  }
}

/* Lift both floating buttons above cookie banner */
body:has(.nicco-cookie-banner.is-visible) .nicco-chatbot {
  --fab-bottom: 100px;
}

body:has(.nicco-cookie-banner.is-visible) .back-to-top-wrapper.back-to-top-btn-show {
  bottom: 100px;
}

@keyframes nicco-chatbot-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

@keyframes nicco-chatbot-shimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 220% center;
  }
}

@keyframes nicco-chatbot-badge-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nicco-chatbot-badge-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@media (min-width: 481px) {
  .nicco-chatbot-panel {
    height: min(620px, calc(100vh - 110px));
  }
}

.nicco-chatbot-header-tools {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.nicco-chatbot-icon-btn {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.nicco-chatbot-icon-btn:hover,
.nicco-chatbot-icon-btn:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.nicco-answer__kicker {
  margin: 0 0 6px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase;
  color: var(--chat-muted) !important;
}

.nicco-answer + .nicco-answer__kicker,
.nicco-service-stack + .nicco-answer__kicker {
  margin-top: 14px !important;
}

.nicco-chatbot-chip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.nicco-chatbot-chip-grid.is-one {
  grid-template-columns: 1fr;
}

.nicco-chatbot-chip {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--chat-border);
  border-radius: 12px;
  background: #fff;
  color: var(--chat-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.nicco-chatbot-chip:hover,
.nicco-chatbot-chip:focus-visible {
  border-color: rgba(242, 82, 13, 0.4);
  background: var(--chat-accent-soft);
  color: var(--chat-accent);
  outline: none;
  box-shadow: 0 4px 12px rgba(242, 82, 13, 0.08);
}

.nicco-chatbot-chip.is-primary {
  background: var(--chat-accent);
  border-color: transparent;
  color: #fff;
}

.nicco-chatbot-chip.is-primary:hover,
.nicco-chatbot-chip.is-primary:focus-visible {
  background: #d9480a;
  color: #fff;
}

.nicco-product-stack,
.nicco-service-stack {
  display: grid;
  gap: 8px;
  margin: 10px 0 2px;
}

.nicco-product-card,
.nicco-service-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--chat-border);
  border-radius: 14px;
  background: #fbfcfe;
  box-shadow: 0 4px 12px rgba(18, 20, 26, 0.04);
}

.nicco-service-card {
  grid-template-columns: 1fr auto;
}

.nicco-product-card img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.nicco-product-card strong,
.nicco-service-card strong {
  display: block;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: var(--chat-ink) !important;
}

.nicco-product-card em,
.nicco-service-card em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: var(--chat-muted) !important;
}

.nicco-product-card p,
.nicco-service-card p {
  margin: 3px 0 0 !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  color: #4b5563 !important;
}

.nicco-product-explore,
.nicco-service-explore {
  appearance: none;
  border: 1px solid rgba(242, 82, 13, 0.28);
  background: #fff;
  color: var(--chat-accent);
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.nicco-product-explore:hover,
.nicco-service-explore:hover,
.nicco-product-explore:focus-visible,
.nicco-service-explore:focus-visible {
  background: var(--chat-accent-soft);
  outline: none;
}

.nicco-suggest-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.nicco-suggest-row button {
  appearance: none;
  border: 1px dashed rgba(18, 20, 26, 0.14);
  background: transparent;
  color: #374151;
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.nicco-suggest-row button:hover,
.nicco-suggest-row button:focus-visible {
  border-color: rgba(242, 82, 13, 0.4);
  color: var(--chat-accent);
  outline: none;
}

.nicco-nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.nicco-nav-row button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--chat-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0;
}

.nicco-nav-row button:hover,
.nicco-nav-row button:focus-visible {
  color: var(--chat-accent);
  outline: none;
}

.nicco-lead-form {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--chat-border);
  border-radius: 14px;
  background: #fff;
}

.nicco-lead-form label {
  display: grid;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--chat-muted);
}

.nicco-lead-form input,
.nicco-lead-form textarea,
.nicco-lead-form select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--chat-border);
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  color: var(--chat-ink);
  background: #fff;
}

.nicco-lead-form input:focus,
.nicco-lead-form textarea:focus,
.nicco-lead-form select:focus {
  outline: none;
  border-color: rgba(242, 82, 13, 0.45);
  box-shadow: 0 0 0 3px rgba(242, 82, 13, 0.1);
}

.nicco-lead-form textarea {
  min-height: 68px;
  resize: vertical;
}

.nicco-lead-form .nicco-lead-submit {
  min-height: 40px;
  border: none;
  border-radius: 999px;
  background: var(--chat-accent);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.nicco-lead-form .nicco-lead-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.nicco-lead-error {
  margin: 0;
  color: #b42318;
  font-size: 12px;
  font-weight: 600;
}

.nicco-chatbot-compose textarea {
  flex: 1;
  min-width: 0;
  min-height: 38px;
  max-height: 88px;
  padding: 9px 12px;
  border: 1px solid var(--chat-border);
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  resize: none;
  line-height: 1.35;
}

.nicco-chatbot-compose textarea:focus {
  outline: none;
  border-color: rgba(242, 82, 13, 0.45);
  box-shadow: 0 0 0 3px rgba(242, 82, 13, 0.1);
}

.nicco-chatbot-compose textarea:disabled {
  background: #f3f5f9;
}

.nicco-chatbot-quick-reply:focus-visible,
.nicco-chatbot-suggestions button:focus-visible,
.nicco-chatbot-send:focus-visible,
.nicco-chatbot-close:focus-visible {
  outline: 2px solid var(--chat-accent);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .nicco-chatbot-header-copy span {
    display: block;
    font-size: 10px;
  }

  .nicco-chatbot-chip-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nicco-chatbot-status {
    font-size: 9px;
    gap: 4px;
  }

  .nicco-product-card,
  .nicco-service-card {
    grid-template-columns: 40px 1fr;
  }

  .nicco-service-card {
    grid-template-columns: 1fr;
  }

  .nicco-product-explore,
  .nicco-service-explore {
    grid-column: 1 / -1;
    justify-self: start;
  }
}
