/* Jewellink Chatbot 3.0.0. Scoped to the widget; no external assets or fonts. */
#jlc-widget {
  --jlc-teal: #2d7a78;
  --jlc-ink: #143b39;
  --jlc-muted: #526663;
  --jlc-border: #d3e1dd;
  --jlc-soft: #f3f8f6;
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99999;
  color: var(--jlc-ink);
  font-family: Raleway,"Raleway Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}
#jlc-widget.jlc-left { left: 22px; right: auto; }
#jlc-widget, #jlc-widget * { box-sizing: border-box; }
#jlc-widget [hidden] { display: none !important; }
#jlc-widget button, #jlc-widget input, #jlc-widget textarea { font: inherit; }
#jlc-widget button { cursor: pointer; margin: 0; text-transform: none; letter-spacing: normal; }
#jlc-widget button:disabled { cursor: default; opacity: .65; }
#jlc-widget a { color: var(--jlc-teal); text-decoration: underline; text-underline-offset: 2px; }
#jlc-widget button:focus-visible, #jlc-widget a:focus-visible, #jlc-widget input:focus-visible,
#jlc-widget textarea:focus-visible, #jlc-widget [tabindex]:focus-visible {
  outline: 3px solid #23625f;
  outline-offset: 3px;
}
#jlc-widget .jlc-launcher {
  display: block;
  margin-left: auto;
  min-height: 48px;
  padding: 12px 19px;
  border: 1px solid #226360;
  border-radius: 30px;
  background: var(--jlc-teal);
  color: #fff;
  box-shadow: 0 5px 18px #183e3926;
  font-weight: 700;
}
#jlc-widget.jlc-left .jlc-launcher { margin-left: 0; }
#jlc-widget .jlc-launcher:hover, #jlc-widget .jlc-primary:hover { background: #205b58; color: #fff; }
#jlc-widget .jlc-window {
  width: min(390px, calc(100vw - 32px));
  max-height: calc(100vh - 106px);
  max-height: calc(100dvh - 106px);
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--jlc-border);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 12px 44px #173d392e;
}
#jlc-widget .jlc-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 17px 16px 14px;
  background: #fff;
  border-bottom: 1px solid var(--jlc-border);
  flex: 0 0 auto;
}
#jlc-widget .jlc-heading { flex: 1; min-width: 0; }
#jlc-widget .jlc-logo { flex: 0 0 auto; width: 34px; height: 34px; object-fit: contain; padding: 4px; border: 1px solid var(--jlc-border); border-radius: 50%; }
#jlc-widget h2 { margin: 0; color: var(--jlc-ink); font: inherit; font-size: 16px; font-weight: 750; line-height: 1.4; }
#jlc-widget .jlc-status { margin: 4px 0 0; color: var(--jlc-muted); font-size: 12px; }
#jlc-widget .jlc-close {
  border: 0;
  border-radius: 6px;
  background: var(--jlc-soft);
  color: var(--jlc-ink);
  padding: 7px 9px;
  min-height: 36px;
  font-size: 12px;
}
#jlc-widget .jlc-messages {
  flex: 1 1 240px;
  min-height: 90px;
  max-height: 310px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  background: var(--jlc-soft);
  scrollbar-width: thin;
}
#jlc-widget .jlc-message { margin: 0 0 14px; max-width: 94%; overflow-wrap: anywhere; }
#jlc-widget .jlc-message:last-child { margin-bottom: 0; }
#jlc-widget .jlc-author { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 700; color: var(--jlc-muted); }
#jlc-widget .jlc-message-text {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--jlc-border);
  border-radius: 12px 12px 12px 3px;
  background: #fff;
  white-space: pre-wrap;
  font-size: 13px;
}
#jlc-widget .jlc-visitor { margin-left: auto; }
#jlc-widget .jlc-visitor .jlc-author { text-align: right; }
#jlc-widget .jlc-visitor .jlc-message-text { background: var(--jlc-teal); color: #fff; border-color: var(--jlc-teal); border-radius: 12px 12px 3px 12px; }
#jlc-widget .jlc-system { max-width: 100%; text-align: center; }
#jlc-widget .jlc-system .jlc-message-text { background: transparent; border: 0; padding: 5px; font-size: 11px; color: var(--jlc-muted); }
#jlc-widget .jlc-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
#jlc-widget .jlc-chip {
  display: inline-block;
  min-height: 35px;
  border: 1px solid #86b3aa;
  border-radius: 18px;
  padding: 7px 10px;
  color: #194e48;
  background: #e7f2ed;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
#jlc-widget .jlc-chip:hover { background: #d3e9e0; }
#jlc-widget .jlc-talk { margin: 12px 14px; padding: 10px; min-height: 44px; border: 1px solid var(--jlc-teal); border-radius: 8px; background: #fff; color: #245e5a; font-weight: 700; font-size: 13px; }
#jlc-widget .jlc-talk:hover { background: var(--jlc-soft); }
#jlc-widget .jlc-start, #jlc-widget .jlc-contact { margin: 0; padding: 12px 16px; border: 0; background: #fff; flex: 0 0 auto; }
#jlc-widget .jlc-contact { border-top: 1px solid var(--jlc-border); }
#jlc-widget .jlc-intro { margin: 0 0 12px; font-size: 13px; }
#jlc-widget .jlc-field { margin: 0 0 11px; }
#jlc-widget .jlc-field label { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; }
#jlc-widget .jlc-field input, #jlc-widget .jlc-field textarea, #jlc-widget .jlc-composer textarea {
  display: block;
  width: 100%;
  border: 1px solid #a7bdb6;
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
  color: var(--jlc-ink);
  padding: 9px 10px;
  min-height: 42px;
  font-size: 14px;
  line-height: 1.45;
}
#jlc-widget textarea { resize: vertical; max-height: 170px; }
#jlc-widget .jlc-primary { display: inline-block; min-height: 42px; padding: 10px 13px; border: 1px solid var(--jlc-teal); border-radius: 8px; background: var(--jlc-teal); color: #fff; font-weight: 650; font-size: 13px; white-space: nowrap; }
#jlc-widget .jlc-text-button { border: 0; background: transparent; color: #285e58; padding: 10px 5px; text-decoration: underline; text-underline-offset: 2px; font-size: 12px; min-height: 40px; }
#jlc-widget .jlc-start .jlc-text-button { margin-left: 9px; }
#jlc-widget .jlc-composer { display: flex; align-items: flex-end; gap: 8px; margin: 0; padding: 12px 14px; background: #fff; border-top: 1px solid var(--jlc-border); flex: 0 0 auto; }
#jlc-widget .jlc-composer textarea { flex: 1; min-width: 0; min-height: 48px; }
#jlc-widget .jlc-composer button { flex: 0 0 auto; }
#jlc-widget .jlc-actions { padding: 0 14px 6px; flex: 0 0 auto; }
#jlc-widget .jlc-connection, #jlc-widget .jlc-error { margin: 0; padding: 10px 15px; background: #fff4df; color: #684414; font-size: 12px; flex: 0 0 auto; }
#jlc-widget .jlc-error { background: #fff0ed; color: #8d3023; }
#jlc-widget .jlc-followup-note { margin: 0; padding: 10px 15px; background: #edf6ef; color: #23523a; font-size: 12px; flex: 0 0 auto; }
#jlc-widget .jlc-privacy { margin: 0; padding: 4px 15px 8px; color: var(--jlc-muted); font-size: 10px; flex: 0 0 auto; }
#jlc-widget .jlc-contact-link { display: block; margin: 0 15px 12px; font-size: 11px; align-self: flex-start; }
#jlc-widget .jlc-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 480px) {
  #jlc-widget { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
  #jlc-widget.jlc-left { left: 12px; right: auto; }
  #jlc-widget .jlc-window { width: calc(100vw - 24px); max-height: calc(100dvh - 88px - env(safe-area-inset-bottom)); margin-bottom: 8px; }
  #jlc-widget .jlc-field input, #jlc-widget .jlc-field textarea, #jlc-widget .jlc-composer textarea { font-size: 16px; }
  #jlc-widget .jlc-launcher { min-height: 44px; padding: 10px 16px; font-size: 13px; }
  #jlc-widget .jlc-messages { flex-basis: 180px; max-height: 250px; }
}
@media (prefers-reduced-motion: reduce) { #jlc-widget, #jlc-widget * { scroll-behavior: auto; } }
@media print { #jlc-widget { display: none !important; } }


/* Screenshot-driven composer sizing: isolate the widget from theme-wide form/button rules. */
#jlc-widget {
  width: auto;
  max-width: calc(100vw - 24px);
}
#jlc-widget .jlc-window {
  width: 390px !important;
  max-width: calc(100vw - 32px) !important;
  min-width: 0 !important;
  overflow-x: hidden;
}
#jlc-widget .jlc-composer {
  display: flex !important;
  align-items: flex-end !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
#jlc-widget .jlc-composer[hidden] {
  display: none !important;
}
#jlc-widget .jlc-composer textarea {
  display: block !important;
  box-sizing: border-box !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 56px !important;
  min-height: 56px !important;
  max-height: 120px !important;
  margin: 0 !important;
  padding: 10px !important;
  border: 1px solid #a7bdb6 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--jlc-ink) !important;
  font-family: inherit !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
  resize: vertical;
}
#jlc-widget .jlc-composer .jlc-primary {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 64px;
  max-width: 100%;
  height: 42px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 9px 13px !important;
  border: 1px solid var(--jlc-teal) !important;
  border-radius: 8px !important;
  background: var(--jlc-teal) !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  font-weight: 650 !important;
  box-shadow: none !important;
  white-space: nowrap;
}
#jlc-widget .jlc-composer .jlc-primary:hover {
  background: #205b58 !important;
}
#jlc-widget .jlc-privacy {
  display: block;
  max-width: 100%;
  padding: 8px 15px 4px;
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: normal;
}
#jlc-widget .jlc-privacy a {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-top: 4px;
  white-space: nowrap;
}
#jlc-widget .jlc-contact-link {
  display: block;
  width: max-content;
  max-width: calc(100% - 30px);
  margin: 2px 15px 14px;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}
@media (max-width: 480px) {
  #jlc-widget {
    max-width: calc(100vw - 16px);
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
  }
  #jlc-widget.jlc-left { left: 12px; right: auto; }
  #jlc-widget .jlc-window {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100dvh - 88px - env(safe-area-inset-bottom));
  }
  #jlc-widget .jlc-composer textarea {
    height: 64px !important;
    min-height: 64px !important;
    font-size: 16px !important;
  }
  #jlc-widget .jlc-composer .jlc-primary {
    height: 44px !important;
    min-height: 44px !important;
    font-size: 14px !important;
  }
}
