#jlt-chatbot-root { position:fixed; left:18px; bottom:20px; z-index:990; font-family:Arial,Helvetica,sans-serif; font-size:14px; color:#272727; }
#jlt-chatbot-root * { box-sizing:border-box; }
#jlt-chatbot-root .jlt-chat-toggle { border:0; border-radius:32px; padding:13px 18px; background:#f5a34f; color:#222; font-weight:bold; box-shadow:0 3px 15px #0003; cursor:pointer; }
#jlt-chatbot-root .jlt-chat-panel { width:min(360px,calc(100vw - 24px)); height:min(490px,78vh); margin-bottom:10px; background:#fff; border-radius:13px; box-shadow:0 5px 28px #0004; overflow:hidden; display:flex; flex-direction:column; border:1px solid #eee; }
#jlt-chatbot-root .jlt-chat-panel[hidden] { display:none; }
#jlt-chatbot-root .jlt-chat-header { background:#f5a34f; padding:13px; display:flex; align-items:center; justify-content:space-between; }
#jlt-chatbot-root .jlt-chat-close {border:0; background:transparent; font-size:24px; cursor:pointer;}
#jlt-chatbot-root .jlt-chat-log { flex:1; overflow-y:auto; padding:12px; background:#fbfaf7; }
#jlt-chatbot-root .jlt-chat-bubble { padding:10px 12px; border-radius:11px; margin:8px 0; max-width:92%; background:#ebebeb; overflow-wrap:anywhere; }
#jlt-chatbot-root .jlt-chat-bubble.user { margin-left:auto; background:#ffe1bc; }
#jlt-chatbot-root .jlt-chat-bubble a { display:block; margin-top:7px; color:#145e9a; text-decoration:underline; }
#jlt-chatbot-root .jlt-chat-quick { display:flex; flex-wrap:wrap; gap:5px; padding:7px; }
#jlt-chatbot-root .jlt-chat-quick button { border:1px solid #d5d5d5; background:#fff; border-radius:15px; padding:5px 8px; cursor:pointer; font-size:11px; }
#jlt-chatbot-root .jlt-chat-form { display:flex; gap:5px; padding:9px; border-top:1px solid #eee; }
#jlt-chatbot-root .jlt-chat-form input { flex:1; min-width:0; padding:8px; border:1px solid #bbb; border-radius:7px; }
#jlt-chatbot-root .jlt-chat-form button { background:#f5a34f; border:0; border-radius:7px; padding:8px 12px; cursor:pointer; }
#jlt-chatbot-root .jlt-chat-form button:disabled { opacity:.6; cursor:wait; }
#jlt-chatbot-root .jlt-chat-note { font-size:10px; text-align:center; color:#777; padding:0 0 7px; }
@media(max-width:480px){#jlt-chatbot-root{left:12px;bottom:12px;} #jlt-chatbot-root .jlt-chat-panel{height:min(490px,70vh);}}

.jlt-live-controls {padding: 8px 12px; border-top: 1px solid #eee;}
.jlt-request-human {border:1px solid #dd8634;background:#fff;color:#663600;border-radius:8px;padding:7px 10px;cursor:pointer;}
.jlt-live-controls label {color:#444;}

/* Required pre-chat contact form */
#jlt-chatbot-root [hidden] {display:none !important;}
#jlt-chatbot-root .jlt-contact-form {display:flex;flex-direction:column;gap:10px;padding:16px;overflow-y:auto;flex:1;background:#fff;}
#jlt-chatbot-root .jlt-contact-form p {margin:0;color:#555;line-height:1.45;}
#jlt-chatbot-root .jlt-contact-form label {display:flex;flex-direction:column;gap:5px;font-weight:600;font-size:13px;}
#jlt-chatbot-root .jlt-contact-form label input:not([type=checkbox]) {width:100%;padding:9px;border:1px solid #aaa;border-radius:6px;font:inherit;}
#jlt-chatbot-root .jlt-contact-form .jlt-privacy-label {display:block;font-weight:normal;line-height:1.4;font-size:12px;}
#jlt-chatbot-root .jlt-contact-form .jlt-privacy-label input {margin-right:6px;}
#jlt-chatbot-root .jlt-contact-form button {background:#f5a34f;border:0;border-radius:7px;padding:11px;cursor:pointer;font-weight:bold;}
#jlt-chatbot-root .jlt-contact-form button:disabled {opacity:.5;cursor:wait;}
#jlt-chatbot-root .jlt-contact-error {color:#a11919;font-size:12px;}

/* Searchable Help Centre inside the chatbot */
#jlt-chatbot-root .jlt-chat-tabs {display:flex;border-bottom:1px solid #e5e5e5;background:#fff;}
#jlt-chatbot-root .jlt-chat-tabs button {width:50%;border:0;background:#fff;padding:12px;font-weight:600;cursor:pointer;color:#444;}
#jlt-chatbot-root .jlt-chat-tabs button[aria-pressed="true"] {border-bottom:3px solid #ec953f;color:#292929;}
#jlt-chatbot-root .jlt-help-centre {flex:1;min-height:0;overflow-y:auto;padding:14px;background:#fff;}
#jlt-chatbot-root .jlt-help-centre > p {font-size:12px;line-height:1.5;color:#555;}
#jlt-chatbot-root .jlt-help-centre label {display:block;font-size:12px;font-weight:600;margin:12px 0 6px;}
#jlt-chatbot-root .jlt-help-centre input {width:100%;padding:10px;border:1px solid #aaa;border-radius:7px;font:inherit;}
#jlt-chatbot-root .jlt-help-results {margin-top:12px;}
#jlt-chatbot-root .jlt-help-results details {border-bottom:1px solid #e3e3e3;padding:11px 0;}
#jlt-chatbot-root .jlt-help-results summary {font-weight:600;cursor:pointer;line-height:1.4;}
#jlt-chatbot-root .jlt-help-results details p {margin:8px 0 0;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;}

/* Version 2: customer actions; no external CSS dependencies */
#jlt-chatbot-root .jlt-chat-extras {max-height:150px;overflow-y:auto;border-top:1px solid #eee;background:#fff;padding:5px 12px;font-size:12px;}
#jlt-chatbot-root .jlt-chat-extras details {border-bottom:1px solid #eee;padding:6px 0;}
#jlt-chatbot-root .jlt-chat-extras summary {cursor:pointer;font-weight:600;padding:3px;}
#jlt-chatbot-root .jlt-chat-extras form {display:grid;gap:7px;padding:8px 2px;}
#jlt-chatbot-root .jlt-chat-extras label {display:grid;gap:4px;}
#jlt-chatbot-root .jlt-chat-extras input:not([type=file]),
#jlt-chatbot-root .jlt-chat-extras select,#jlt-chatbot-root .jlt-chat-extras textarea {border:1px solid #bbb;border-radius:5px;padding:7px;width:100%;font:inherit;}
#jlt-chatbot-root .jlt-chat-extras button {background:#f5a34f;border:0;border-radius:6px;padding:8px;cursor:pointer;}
#jlt-chatbot-root .jlt-chat-extras small {color:#5c5c5c;line-height:1.4;display:block;}
#jlt-chatbot-root .jlt-category-control {margin-top:8px;}
#jlt-chatbot-root .jlt-staff-availability {display:block;color:#555;margin:6px 0;}
@media(max-width:480px) {#jlt-chatbot-root .jlt-chat-panel{height:min(660px,80vh);}#jlt-chatbot-root .jlt-chat-extras{max-height:130px;}}

/* v3: safe, compact product cards */
.jlt-product-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
.jlt-product-card{background:#fff;border:1px solid #e3d7c7;border-radius:9px;padding:8px;display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;text-decoration:none!important;color:#302821!important;min-width:0;font-size:12px}
.jlt-product-card img{width:86px;height:86px;object-fit:contain}
.jlt-product-card strong{overflow-wrap:anywhere}.jlt-product-card small{font-weight:700;color:#8d2828}.jlt-product-card span{text-decoration:underline}
.jlt-claim-form label{display:block;margin:7px 0;font-size:12px}.jlt-claim-form input,.jlt-claim-form select,.jlt-claim-form textarea{display:block;width:100%;box-sizing:border-box;margin-top:3px}
.jlt-claim-form button{margin-top:6px}

/* v3.1 customer inactivity confirmation, only visible on bot-only chats */
#jlt-chatbot-root .jlt-idle-choices {display:flex;gap:8px;flex-wrap:wrap;padding:10px;border-top:1px solid #eedac6;background:#fff8f0}
#jlt-chatbot-root .jlt-idle-choices button {flex:1;min-width:105px;border-radius:7px;padding:9px 12px;border:1px solid #cc8b44;background:#fff;cursor:pointer;font:inherit}
#jlt-chatbot-root .jlt-idle-choices .jlt-idle-yes {background:#f5a34f;border-color:#f5a34f;font-weight:bold}
#jlt-chatbot-root .jlt-chat-restart {margin:10px;border:0;border-radius:7px;background:#f5a34f;padding:11px;cursor:pointer;font-weight:bold}

/* v3.4: One-time proactive nudge, deliberately not a full-screen modal. */
.jlt-ai-nudge{position:fixed;left:16px;bottom:95px;max-width:270px;z-index:9990;display:flex;align-items:flex-start;gap:4px;background:#fff;border:1px solid #e4d6c9;border-radius:12px;padding:7px;box-shadow:0 5px 24px rgba(0,0,0,.16)}
.jlt-ai-nudge-open{background:#fff;color:#3e2b21;border:0;padding:8px;text-align:left;cursor:pointer;font-size:13px;line-height:1.4}
.jlt-ai-nudge-close{border:0;background:#eee;border-radius:50%;width:24px;height:24px;flex-shrink:0;cursor:pointer;color:#333}
@media(max-width:480px){.jlt-ai-nudge{left:8px;bottom:90px;max-width:65vw}}

.jlt-ai-opt-out{font-size:11px;display:inline-block;margin-top:8px;background:none;border:0;color:#5b3626;text-decoration:underline;cursor:pointer}

/* ---------------------------------------------------------------
   JLT Customer Chat UI 2026-11 — cosmetic/accessibility upgrade.
   All selectors are scoped to #jlt-chatbot-root; no backend changes.
   --------------------------------------------------------------- */
#jlt-chatbot-root {
  --jlt-peach: #F7BB82;
  --jlt-amber: #E99340;
  --jlt-ink: #34291F;
  --jlt-muted: #75685E;
  --jlt-edge: #EEE5DB;
  --jlt-wash: #FFF9F2;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  position: fixed;
  left: 22px;
  right: auto;
  bottom: 22px;
  z-index: 100100;
  line-height: 1.5;
  color: var(--jlt-ink);
}
#jlt-chatbot-root .jlt-chat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 17px;
  background: var(--jlt-amber);
  border: 0;
  border-radius: 999px;
  color: #231C16;
  box-shadow: 0 7px 22px rgba(65,33,12,.19);
  font-family: inherit;
  font-weight: 700;
  line-height: 1.3;
  font-size: 14px;
  cursor: pointer;
}
#jlt-chatbot-root .jlt-chat-launch-icon {display:inline-flex;font-size:19px;line-height:1}
#jlt-chatbot-root .jlt-chat-toggle:hover {background:#F3AB60}
#jlt-chatbot-root .jlt-chat-toggle:focus-visible,
#jlt-chatbot-root .jlt-chat-panel button:focus-visible,
#jlt-chatbot-root .jlt-chat-panel input:focus-visible,
#jlt-chatbot-root .jlt-chat-panel select:focus-visible,
#jlt-chatbot-root .jlt-chat-panel textarea:focus-visible,
#jlt-chatbot-root .jlt-chat-panel summary:focus-visible {outline:2px solid #8A4D1A;outline-offset:2px}
#jlt-chatbot-root .jlt-chat-panel {
  width: min(398px, calc(100vw - 30px));
  height: min(640px, calc(100dvh - 105px));
  min-height: 300px;
  margin-bottom: 12px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border: 1px solid var(--jlt-edge);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 17px 48px rgba(38,28,20,.20);
  font-size:14px;
}
#jlt-chatbot-root .jlt-chat-header {
  flex: 0 0 auto;
  min-height: 76px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap:11px;
  background: var(--jlt-peach);
  color:var(--jlt-ink);
}
#jlt-chatbot-root .jlt-chat-avatar {
  display:flex;
  justify-content:center;
  align-items:center;
  flex:0 0 40px;
  height:40px;
  background:#fff7ed;
  color:#A75B22;
  border-radius:50%;
  font-size:12px;
  font-weight:800;
  letter-spacing:-.3px;
  box-shadow:0 1px 4px #0001;
}
#jlt-chatbot-root .jlt-chat-brand {display:flex; flex-direction:column; gap:1px; min-width:0; flex:1;}
#jlt-chatbot-root .jlt-chat-brand strong {font-size:16px;line-height:1.3;font-weight:700}
#jlt-chatbot-root .jlt-chat-brand small {font-size:11px;line-height:1.3;opacity:.79}
#jlt-chatbot-root .jlt-chat-close {border:0;background:transparent;color:#4B3321;font:400 24px/1 inherit;font-size:25px;cursor:pointer;padding:5px 8px;border-radius:8px}
#jlt-chatbot-root .jlt-chat-close:hover {background:#F7D3AE}
#jlt-chatbot-root .jlt-chat-tabs {flex:0 0 auto;display:flex;gap:0;background:#fff;border-bottom:1px solid var(--jlt-edge);}
#jlt-chatbot-root .jlt-chat-tabs button {flex:1;width:auto;min-width:0;padding:13px 4px;background:white;border:0;border-bottom:3px solid transparent;color:var(--jlt-muted);font-size:13px;font-weight:650;cursor:pointer}
#jlt-chatbot-root .jlt-chat-tabs button[aria-pressed='true'] {color:#8D4A14;border-color:var(--jlt-amber)}
#jlt-chatbot-root .jlt-chat-log {
  flex:1 1 auto;
  min-height:0;
  padding:17px 15px 14px;
  overflow-y:auto;
  background:#FFFCF9;
  overscroll-behavior:contain;
}
#jlt-chatbot-root .jlt-chat-bubble {max-width:86%;padding:12px 14px;margin:0 0 14px;background:#F1ECE5;border-radius:15px 15px 15px 4px;color:#3B332D;font-size:13px;line-height:1.5}
#jlt-chatbot-root .jlt-chat-bubble.user {background:#F8C491;border-radius:15px 15px 4px 15px;margin-left:auto;}
#jlt-chatbot-root .jlt-chat-bubble a {word-break:break-word}
#jlt-chatbot-root .jlt-chat-quick {flex:0 0 auto;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;padding:11px 13px 6px;gap:7px;border-top:1px solid #F1EBE5;background:#fff;min-height:44px}
#jlt-chatbot-root .jlt-chat-quick button {flex-shrink:0;padding:7px 10px;white-space:nowrap;border:1px solid #E9D6C3;border-radius:99px;color:#78431F;background:#FFF9F4;font-size:11px;line-height:1.2;}
#jlt-chatbot-root .jlt-chat-actionbar {display:flex;justify-content:space-between;align-items:center;gap:8px;padding:5px 14px 8px;background:#fff;flex:0 0 auto}
#jlt-chatbot-root .jlt-chat-actionbar .jlt-action-human {background:transparent;border:0;padding:4px 2px;color:#925015;font-size:12px;font-weight:700;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
#jlt-chatbot-root .jlt-chat-actionbar span {color:#8E8378;font-size:10px}
#jlt-chatbot-root .jlt-chat-form {flex:0 0 auto;display:flex;gap:9px;align-items:center;padding:9px 13px 11px;border-top:1px solid var(--jlt-edge);background:#fff;}
#jlt-chatbot-root .jlt-chat-form input {height:42px;min-width:0;flex:1;border:1px solid #DED7CF;border-radius:12px;background:#FAF9F7;padding:10px 12px;font:inherit;font-size:13px;}
#jlt-chatbot-root .jlt-chat-form button {height:42px;border-radius:11px;background:var(--jlt-amber);padding:9px 14px;color:#28211A;font-weight:700}
#jlt-chatbot-root .jlt-chat-note {flex:0 0 auto;padding:2px 8px 9px;font-size:10px;background:white;text-align:center;color:#948980}
#jlt-chatbot-root .jlt-contact-form {flex:1 1 auto;min-height:0;padding:22px 18px 20px;background:white;gap:13px;overflow-y:auto;}
#jlt-chatbot-root .jlt-contact-form > strong {font-size:19px;line-height:1.3;color:#3A2D24}
#jlt-chatbot-root .jlt-contact-form p {font-size:13px;color:#766960}
#jlt-chatbot-root .jlt-contact-form label {color:#4E4035;font-size:12px}
#jlt-chatbot-root .jlt-contact-form label input:not([type=checkbox]) {border:1px solid #DED7CF;border-radius:10px;padding:11px;font-size:14px}
#jlt-chatbot-root .jlt-contact-form button[type=submit] {background:var(--jlt-amber);border-radius:10px;padding:12px}
#jlt-chatbot-root .jlt-help-centre {flex:1 1 auto;min-height:0;padding:20px 18px;overflow-y:auto;background:#fff;overscroll-behavior:contain}
#jlt-chatbot-root .jlt-help-centre > strong {display:block;font-size:19px;margin-bottom:6px}
#jlt-chatbot-root .jlt-help-centre input {border-radius:10px;border-color:#DED7CF}
#jlt-chatbot-root .jlt-help-results details {border-bottom:1px solid #EFE7DD;padding:13px 0}
#jlt-chatbot-root .jlt-help-results summary {font-size:13px}
#jlt-chatbot-root .jlt-services-intro {flex:0 0 auto;padding:20px 17px 9px;background:#fff}
#jlt-chatbot-root .jlt-services-intro strong {display:block;font-size:19px;line-height:1.2}
#jlt-chatbot-root .jlt-services-intro p {margin:8px 0 0;font-size:12px;color:var(--jlt-muted);}
#jlt-chatbot-root .jlt-live-controls {flex:0 0 auto;padding:10px 16px;background:white;border-top:0}
#jlt-chatbot-root .jlt-request-human {border-radius:10px;background:#FFF6E9;padding:10px 13px;color:#824617;font-weight:700}
#jlt-chatbot-root .jlt-chat-extras {flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;border-top:1px solid var(--jlt-edge);background:white;padding:8px 17px 18px;font-size:13px;overscroll-behavior:contain}
#jlt-chatbot-root .jlt-chat-extras details {padding:12px 0}
#jlt-chatbot-root .jlt-chat-extras summary {font-size:13px;line-height:1.35}
#jlt-chatbot-root .jlt-chat-extras form {padding:12px 0}
#jlt-chatbot-root .jlt-chat-extras button {background:var(--jlt-amber);border-radius:9px;padding:10px}
#jlt-chatbot-root .jlt-chat-restart {flex:0 0 auto}
#jlt-chatbot-root .jlt-idle-choices {flex:0 0 auto}
#jlt-chatbot-root .jlt-ai-nudge {max-width:260px}
#jlt-chatbot-root [hidden] {display:none !important}
@media(max-width:480px) {
  #jlt-chatbot-root {left:10px;bottom:10px}
  #jlt-chatbot-root .jlt-chat-panel {width:calc(100vw - 20px);height:min(660px,calc(100dvh - 92px));border-radius:16px}
  #jlt-chatbot-root .jlt-chat-header {min-height:72px}
  #jlt-chatbot-root .jlt-chat-quick button {font-size:11px}
}
