/* London Centre FAQ chat — school colors; FAQ in the bottom-right corner, third-party chat stacked above the welcome bus on the left */
.le-faq{
  --le-faq-red:#c8102e;
  --le-faq-red-d:#a50d26;
  --le-faq-navy:#1b2a4a;
  --le-faq-ink:#1f2937;
  --le-faq-muted:#5b6474;
  --le-faq-line:#e8ebf0;
  --le-faq-soft:#f6f8fb;
  --le-faq-green:#06c755;
  --le-faq-green-d:#05a848;
  --le-faq-right:15px;
  --le-faq-bottom:15px;
  position:fixed;
  right:var(--le-faq-right);
  bottom:var(--le-faq-bottom);
  z-index:9985;
  font-family:"IBM Plex Sans Thai","Plus Jakarta Sans",system-ui,sans-serif;
  color:var(--le-faq-ink);
  box-sizing:border-box;
}
.le-faq *,.le-faq *::before,.le-faq *::after{box-sizing:border-box}
.le-faq.is-bus-open{--le-faq-bottom:15px}
.le-faq-bubble{
  display:inline-flex;
  align-items:center;
  gap:10px;
  max-width:min(230px,calc(100vw - 40px));
  border:0;
  border-radius:999px;
  background:var(--le-faq-red);
  color:#fff;
  padding:10px 16px 10px 10px;
  box-shadow:0 10px 24px -10px rgba(200,16,46,.65),0 2px 8px rgba(27,42,74,.18);
  cursor:pointer;
  font:inherit;
  font-weight:700;
  font-size:14px;
  line-height:1.2;
  letter-spacing:.01em;
}
.le-faq-bubble:hover{background:var(--le-faq-red-d);transform:translateY(-1px)}
.le-faq-bubble:focus-visible{outline:2px solid var(--le-faq-navy);outline-offset:3px}
.le-faq-ico{
  width:36px;height:36px;flex:none;
  display:grid;place-items:center;
  background:#fff;color:var(--le-faq-red);
  border-radius:50%;
}
.le-faq-ico svg{width:20px;height:20px;display:block}
.le-faq.is-open .le-faq-bubble{display:none}

.le-faq-panel{
  display:none;
  flex-direction:column;
  width:min(380px,calc(100vw - 24px));
  height:min(600px,calc(100vh - var(--le-faq-bottom) - 16px));
  background:#fff;
  border:1px solid var(--le-faq-line);
  border-radius:20px;
  box-shadow:0 22px 44px -18px rgba(27,42,74,.4);
  overflow:hidden;
}
.le-faq.is-open .le-faq-panel{display:flex}
.le-faq-head{
  display:flex;align-items:center;gap:12px;
  background:var(--le-faq-navy);color:#fff;
  padding:12px 12px 12px 16px;
  flex:none;
}
.le-faq-head-text{flex:1;min-width:0}
.le-faq-head h2{
  margin:0;font-family:"Plus Jakarta Sans","IBM Plex Sans Thai",sans-serif;
  font-size:16px;font-weight:800;letter-spacing:-.02em;line-height:1.2;
}
.le-faq-head p{margin:2px 0 0;font-size:12px;opacity:.85;font-weight:400}
.le-faq-x{
  width:36px;height:36px;flex:none;border:0;border-radius:50%;
  background:rgba(255,255,255,.12);color:#fff;font-size:22px;line-height:36px;
  padding:0;cursor:pointer;
}
.le-faq-x:hover{background:rgba(255,255,255,.22)}
.le-faq-x:focus-visible{outline:2px solid #fff;outline-offset:2px}

.le-faq-log{
  flex:1;overflow:auto;
  padding:14px 14px 8px;
  background:var(--le-faq-soft);
  display:flex;flex-direction:column;gap:10px;
  -webkit-overflow-scrolling:touch;
}
.le-faq-msg{
  max-width:92%;
  padding:10px 12px;
  border-radius:16px;
  font-size:14px;line-height:1.55;
  white-space:pre-wrap;word-wrap:break-word;
}
.le-faq-msg p{margin:0 0 8px}
.le-faq-msg p:last-child{margin-bottom:0}
.le-faq-msg-bot{
  align-self:flex-start;
  background:#fff;color:var(--le-faq-ink);
  border:1px solid var(--le-faq-line);
  border-bottom-left-radius:6px;
}
.le-faq-msg-user{
  align-self:flex-end;
  background:var(--le-faq-red);color:#fff;
  border-bottom-right-radius:6px;
}
.le-faq-links{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.le-faq-link{
  display:inline-flex;align-items:center;justify-content:center;
  padding:6px 10px;border-radius:999px;
  border:1px solid var(--le-faq-line);background:#fff;
  color:var(--le-faq-navy)!important;text-decoration:none!important;
  font-size:12px;font-weight:700;line-height:1.3;
}
.le-faq-link:hover{border-color:var(--le-faq-navy);background:var(--le-faq-soft)}
.le-faq-link.is-line{
  background:var(--le-faq-green);border-color:var(--le-faq-green);color:#fff!important;
}
.le-faq-link.is-line:hover{background:var(--le-faq-green-d);border-color:var(--le-faq-green-d)}
.le-faq-tel{color:inherit;text-decoration:underline;font-weight:700}

.le-faq-qs{
  display:flex;flex-wrap:wrap;gap:6px;
  padding:8px 12px;border-top:1px solid var(--le-faq-line);
  background:#fff;flex:none;
}
.le-faq-q{
  border:1px solid var(--le-faq-line);background:var(--le-faq-soft);
  color:var(--le-faq-navy);border-radius:999px;
  padding:6px 10px;font:inherit;font-size:12px;font-weight:700;
  cursor:pointer;line-height:1.3;
}
.le-faq-q:hover{border-color:var(--le-faq-red);color:var(--le-faq-red);background:#fdeef0}
.le-faq-q:focus-visible{outline:2px solid var(--le-faq-red);outline-offset:2px}

.le-faq-form{
  display:flex;gap:8px;padding:10px 12px 12px;
  border-top:1px solid var(--le-faq-line);background:#fff;flex:none;
}
.le-faq-input{
  flex:1;min-width:0;height:42px;border:1px solid var(--le-faq-line);
  border-radius:12px;padding:0 12px;font:inherit;font-size:14px;color:var(--le-faq-ink);
  background:#fff;
}
.le-faq-input:focus{outline:2px solid var(--le-faq-red);outline-offset:1px;border-color:transparent}
.le-faq-send{
  width:42px;height:42px;flex:none;border:0;border-radius:12px;
  background:var(--le-faq-red);color:#fff;cursor:pointer;display:grid;place-items:center;
}
.le-faq-send:hover{background:var(--le-faq-red-d)}
.le-faq-send:focus-visible{outline:2px solid var(--le-faq-navy);outline-offset:2px}
.le-faq-send svg{width:18px;height:18px;display:block}
.le-faq-vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}


/* Proactive greeting next to the Ask button */
.le-faq-nudge{
  display:none;
  position:absolute;
  right:0;
  bottom:calc(100% + 12px);
  width:max-content;
  max-width:min(230px, calc(100vw - 40px));
  background:#fff;
  color:var(--le-faq-navy);
  border:1px solid var(--le-faq-line);
  border-radius:16px 16px 6px 16px;
  box-shadow:0 12px 28px -14px rgba(27,42,74,.45);
  padding:10px 30px 10px 12px;
  font:inherit;
  font-size:13px;
  font-weight:600;
  line-height:1.4;
  text-align:left;
  cursor:pointer;
  z-index:1;
}
.le-faq.is-nudge .le-faq-nudge{display:block;opacity:1;animation:le-faq-nudge-in .35s ease}
.le-faq.is-open .le-faq-nudge,
.le-faq.is-bus-open .le-faq-nudge{display:none!important;animation:none}
.le-faq-nudge::after{
  content:"";
  position:absolute;
  right:22px;
  bottom:-5px;
  left:auto;
  width:12px;height:12px;
  background:#fff;
  border-right:1px solid var(--le-faq-line);
  border-bottom:1px solid var(--le-faq-line);
  border-top:0;
  transform:rotate(45deg);
}
.le-faq-nudge-th{display:block;color:var(--le-faq-navy)}
.le-faq-nudge-en{display:block;margin-top:2px;font-weight:500;color:var(--le-faq-muted);font-size:12px}
.le-faq-nudge-x{
  position:absolute;top:4px;right:4px;
  width:24px;height:24px;border:0;border-radius:50%;
  background:var(--le-faq-soft);color:var(--le-faq-navy);
  font-size:16px;line-height:24px;padding:0;cursor:pointer;
}
.le-faq-nudge-x:hover{background:#eceff4}
.le-faq-nudge-x:focus-visible{outline:2px solid var(--le-faq-red);outline-offset:1px}
.le-faq-nudge:focus-visible{outline:2px solid var(--le-faq-red);outline-offset:2px}
@keyframes le-faq-nudge-in{
  from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:none}
}
@media (max-width:767px){
  .le-faq{--le-faq-right:15px;--le-faq-bottom:15px}
  .le-faq-nudge{
    right:0;
    bottom:calc(100% + 10px);
    max-width:min(200px, calc(100vw - 84px));
    padding:8px 26px 8px 10px;
    font-size:12px;
    line-height:1.35;
    border-radius:14px 14px 6px 14px;
  }
  .le-faq-nudge-en{font-size:11px}
  .le-faq-nudge-x{width:22px;height:22px;font-size:15px;line-height:22px}
  .le-faq-nudge::after{
    right:18px;
    bottom:-5px;
    left:auto;
    width:10px;height:10px;
    border-right:1px solid var(--le-faq-line);
    border-bottom:1px solid var(--le-faq-line);
    border-top:0;
    transform:rotate(45deg);
  }
  .le-faq.is-bus-open{--le-faq-bottom:250px}
  .le-faq-bubble{padding:0;width:56px;height:56px;justify-content:center;border-radius:50%}
  .le-faq-bubble-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
  .le-faq-ico{width:56px;height:56px;background:transparent;color:#fff}
  .le-faq-ico svg{width:26px;height:26px}
  .le-faq-bubble:hover{transform:none}
  .le-faq-panel{
    width:calc(100vw - 24px);
    height:min(70vh,calc(100vh - var(--le-faq-bottom) - 12px));
    border-radius:18px;
  }
}
@media (prefers-reduced-motion:reduce){
  .le-faq-bubble{transition:none}
  .le-faq-bubble:hover{transform:none}
  .le-faq-nudge,.le-faq.is-nudge .le-faq-nudge{animation:none!important;transition:none!important}
}

/* Beat theme/Elementor button and heading styles */
#le-faq-root .le-faq-head h2{
  color:#fff!important;
  font-size:16px!important;
  font-weight:800!important;
  line-height:1.2!important;
  margin:0!important;
  padding:0!important;
  letter-spacing:-.02em!important;
  background:transparent!important;
  text-transform:none!important;
  border:0!important;
}
#le-faq-root .le-faq-head p{
  color:rgba(255,255,255,.85)!important;
  font-size:12px!important;
  margin:2px 0 0!important;
  padding:0!important;
  line-height:1.3!important;
  font-weight:400!important;
  background:transparent!important;
}
#le-faq-root .le-faq-x{
  background:rgba(255,255,255,.14)!important;
  color:#fff!important;
  border:0!important;
  box-shadow:none!important;
  width:36px!important;height:36px!important;
  border-radius:50%!important;
  font-size:22px!important;
  line-height:36px!important;
  min-width:0!important;
  padding:0!important;
}
#le-faq-root .le-faq-x:hover{background:rgba(255,255,255,.26)!important}
#le-faq-root .le-faq-q{
  background:var(--le-faq-soft)!important;
  color:var(--le-faq-navy)!important;
  border:1px solid var(--le-faq-line)!important;
  box-shadow:none!important;
  border-radius:999px!important;
  padding:6px 10px!important;
  font-size:12px!important;
  font-weight:700!important;
  line-height:1.3!important;
  min-width:0!important;
  text-transform:none!important;
}
#le-faq-root .le-faq-q:hover{
  border-color:var(--le-faq-red)!important;
  color:var(--le-faq-red)!important;
  background:#fdeef0!important;
}
#le-faq-root .le-faq-send{
  background:var(--le-faq-red)!important;
  color:#fff!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:12px!important;
  width:42px!important;height:42px!important;
  min-width:0!important;padding:0!important;
}
#le-faq-root .le-faq-msg,
#le-faq-root .le-faq-msg p{
  font-size:14px!important;
  line-height:1.55!important;
  color:inherit!important;
}
#le-faq-root .le-faq-msg-bot{color:var(--le-faq-ink)!important}
#le-faq-root .le-faq-msg-user{color:#fff!important}
#le-faq-root .le-faq-bubble{
  background:var(--le-faq-red)!important;
  color:#fff!important;
  border:0!important;
  box-shadow:0 10px 24px -10px rgba(200,16,46,.65),0 2px 8px rgba(27,42,74,.18)!important;
  text-transform:none!important;
}

#le-faq-root .le-faq-nudge{
  background:#fff!important;
  color:var(--le-faq-navy)!important;
  border:1px solid var(--le-faq-line)!important;
  box-shadow:0 12px 28px -14px rgba(27,42,74,.45)!important;
  text-transform:none!important;
  font-weight:600!important;
}
#le-faq-root .le-faq-nudge-x{
  background:var(--le-faq-soft)!important;
  color:var(--le-faq-navy)!important;
  border:0!important;
  box-shadow:none!important;
  min-width:0!important;
  padding:0!important;
  border-radius:50%!important;
}


/* Move the Autodigi / plus-adtech contact widget (#unknown) from the bottom-right
   corner to the bottom-left, stacked just above #le-wbus-mini. The vendor sets
   inline right:15px;bottom:15px (no iframe / shadow root on the live script).
   !important beats those inline styles. Do not set top or height so the open
   LINE / Facebook / Call stack still grows upward and stays clickable. */
#unknown,
#unknown.unknown,
body #unknown[style],
iframe[src*="plus-adtech.com"],
iframe[src*="gateway.plus-adtech.com"]{
  left:16px!important;
  right:auto!important;
  bottom:78px!important; /* 16 + 54 mini + 8 gap */
  top:auto!important;
  margin:0!important;
}
#unknown #btn-main,
#unknown #btn-messenger,
#unknown #btn-line,
#unknown #btn-call{
  pointer-events:auto!important;
}

/* Vendor tooltips use right:150% (point left). Flip them to the right so they
   stay on-screen after the move. */
#unknown .tooltip-text,
#unknown .tooltip-main-text,
#unknown .tooltip-main-text-toggle{
  left:150%!important;
  right:auto!important;
  margin-left:7%!important;
  margin-right:0!important;
}
#unknown .tooltip-triangle::before,
#unknown .tooltip-triangle-right::before{
  left:-18px!important;
  right:auto!important;
  border-left:0!important;
  border-right:21px solid #f1f2f6!important;
}

/* Hide the third-party button while the welcome-bus popup is on (it would sit
   on the bus / car). It returns above the mini bus after the popup closes.
   html.le-wbus-popup is toggled from le-faq-chat.js; :has() is a no-JS backup. */
html.le-wbus-popup #unknown,
html.le-wbus-popup #unknown.unknown,
html:has(#le-wbus:not([hidden])) #unknown,
html:has(#le-wbus:not([hidden])) #unknown.unknown,
html.le-wbus-popup iframe[src*="plus-adtech.com"],
html:has(#le-wbus:not([hidden])) iframe[src*="plus-adtech.com"]{
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
}

@media (max-width:767px){
  #unknown,
  #unknown.unknown,
  body #unknown[style],
  iframe[src*="plus-adtech.com"],
  iframe[src*="gateway.plus-adtech.com"]{
    left:10px!important;
    right:auto!important;
    bottom:64px!important; /* 12 + 44 mini + 8 gap */
    top:auto!important;
  }
}
