/* WebSolNet AI / FAQ chatbot */
.wn-chat .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.wn-chat {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 12000;
  font-family: var(--font, "Poppins", sans-serif);
}
.wn-chat__launcher {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 0;
  cursor: pointer;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  background: var(--lime, #c6f035);
  color: var(--deep, #062418);
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: 0 14px 36px rgba(6, 36, 24, 0.22);
  transition: transform 0.2s var(--ease, ease), background 0.2s;
}
.wn-chat__launcher:hover {
  background: #d4ff4a;
  transform: translateY(-2px);
}
.wn-chat__launcher-icon {
  display: inline-flex;
  width: 1.6rem;
  height: 1.6rem;
  align-items: center;
  justify-content: center;
}
.wn-chat.is-open .wn-chat__launcher-label {
  display: none;
}
.wn-chat__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: min(380px, calc(100vw - 1.5rem));
  max-height: min(560px, calc(100vh - 6.5rem));
  display: none;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line, #d5ddd6);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(6, 36, 24, 0.18);
  overflow: hidden;
}
.wn-chat.is-open .wn-chat__panel {
  display: flex !important;
}
.wn-chat__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.85rem;
  background:
    radial-gradient(420px 160px at 0% 0%, rgba(198, 240, 53, 0.55), transparent 70%),
    var(--cream, #f6f3ea);
  border-bottom: 1px solid rgba(14, 92, 52, 0.08);
}
.wn-chat__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green, #0e5c34);
}
.wn-chat__head h2 {
  margin: 0;
  font-family: var(--display, "Cabinet Grotesk", sans-serif);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--green, #0e5c34);
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.wn-chat__close {
  border: 0;
  background: rgba(255, 255, 255, 0.75);
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--green, #0e5c34);
  cursor: pointer;
}
.wn-chat__messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.65rem;
  background: #fff;
}
.wn-chat__bubble {
  max-width: 92%;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.wn-chat__bubble a {
  color: var(--green, #0e5c34);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.wn-chat__bubble--bot {
  justify-self: start;
  background: var(--cream, #f6f3ea);
  color: var(--deep, #062418);
  border: 1px solid rgba(14, 92, 52, 0.08);
}
.wn-chat__bubble--user {
  justify-self: end;
  background: var(--green, #0e5c34);
  color: #fff;
}
.wn-chat__bubble--typing {
  opacity: 0.75;
  font-style: italic;
}
.wn-chat__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1rem 0.65rem;
}
.wn-chat__suggestions button {
  border: 1px solid var(--line, #d5ddd6);
  background: #fff;
  color: var(--green, #0e5c34);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.wn-chat__suggestions button:hover {
  background: var(--mint, #e4f78f);
  border-color: rgba(14, 92, 52, 0.25);
}
.wn-chat__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--line, #d5ddd6);
  background: #fafaf7;
}
.wn-chat__form input {
  border: 1px solid var(--line, #d5ddd6);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--deep, #062418);
  background: #fff;
}
.wn-chat__form input:focus {
  outline: 2px solid rgba(198, 240, 53, 0.7);
  border-color: var(--green, #0e5c34);
}
.wn-chat__send {
  border: 0;
  border-radius: 12px;
  padding: 0 1rem;
  background: var(--lime, #c6f035);
  color: var(--deep, #062418);
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
}
.wn-chat__send:disabled {
  opacity: 0.55;
  cursor: wait;
}
@media (max-width: 520px) {
  .wn-chat {
    right: 0.75rem;
    bottom: 0.75rem;
  }
  .wn-chat__launcher-label {
    display: none;
  }
  .wn-chat__launcher {
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    justify-content: center;
  }
  .wn-chat__panel {
    width: calc(100vw - 1.25rem);
    max-height: min(70vh, 520px);
  }
}
