/* Worklance R362: scoped, lightweight public Smart Help. No legacy styles changed. */
#wlcSmartHelp{--help-navy:var(--wc-admin-primary,#12365d);--help-orange:var(--wc-admin-accent,#f66b30);--help-muted:#64748b;--help-line:#e5ebf2;--help-surface:#f6f8fb;font-family:Inter,Arial,sans-serif;color:#17314e;font-size:13px;line-height:1.5}
#wlcSmartHelp, #wlcSmartHelp *{box-sizing:border-box}
#wlcSmartHelp [hidden][hidden]{display:none!important}
#wlcSmartHelp button,#wlcSmartHelp input{font-family:inherit}
#wlcSmartHelp button{cursor:pointer}
#wlcSmartHelp button:focus-visible,#wlcSmartHelp a:focus-visible,#wlcSmartHelp input:focus-visible{outline:3px solid rgba(246,107,48,.48)!important;outline-offset:2px}
#wlcSmartHelp .wlc-smart-help__toggle{position:fixed!important;right:24px!important;bottom:24px!important;z-index:10002!important;width:56px!important;height:56px!important;min-width:56px!important;min-height:56px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;margin:0!important;border:0!important;border-radius:50%!important;color:#fff!important;background:var(--help-navy)!important;box-shadow:0 9px 28px rgba(13,40,73,.24)!important;transform:none!important;transition:transform .2s ease,box-shadow .2s ease!important;appearance:none!important}
#wlcSmartHelp .wlc-smart-help__toggle svg{display:block!important;width:28px!important;height:28px!important;stroke:currentColor!important;fill:none!important}
#wlcSmartHelp .wlc-smart-help__toggle-dot{position:absolute;right:2px;top:2px;width:12px;height:12px;background:var(--help-orange);border:2px solid #fff;border-radius:50%}
#wlcSmartHelp .wlc-smart-help__toggle[aria-expanded="true"]{background:var(--help-orange)!important}
@media(hover:hover){#wlcSmartHelp .wlc-smart-help__toggle:hover{transform:translateY(-3px)!important;box-shadow:0 14px 32px rgba(13,40,73,.29)!important}}
#wlcSmartHelp .wlc-smart-help__panel{position:fixed!important;z-index:10001!important;right:24px!important;bottom:94px!important;width:376px!important;max-width:calc(100vw - 32px)!important;max-height:min(610px,calc(100vh - 119px))!important;max-height:min(610px,calc(100dvh - 119px))!important;display:flex!important;flex-direction:column!important;margin:0!important;padding:0!important;overflow:hidden!important;background:#fff!important;color:#17314e!important;border:1px solid #e1e7ef!important;border-radius:16px!important;box-shadow:0 18px 65px rgba(12,43,77,.22)!important;isolation:isolate!important;text-align:left!important}
#wlcSmartHelp .wlc-smart-help__header{display:flex;align-items:center;gap:11px;flex-shrink:0;min-height:74px;padding:15px 17px;background:var(--help-navy);color:#fff}
#wlcSmartHelp .wlc-smart-help__brand-icon{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.15);border-radius:12px}
#wlcSmartHelp .wlc-smart-help__brand-icon svg{width:23px;height:23px}
#wlcSmartHelp .wlc-smart-help__heading{display:flex;flex-direction:column;gap:1px;min-width:0}
#wlcSmartHelp .wlc-smart-help__heading strong{font-size:15px;line-height:1.25;font-weight:700;letter-spacing:-.025em;color:#fff}
#wlcSmartHelp .wlc-smart-help__heading span{font-size:11px;color:#d0deec}
#wlcSmartHelp .wlc-smart-help__close{display:grid;place-items:center;flex-shrink:0;width:32px;height:32px;min-height:32px;margin-left:auto;padding:6px;border:1px solid rgba(255,255,255,.20);background:rgba(255,255,255,.08);color:#fff;border-radius:9px}
#wlcSmartHelp .wlc-smart-help__close svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;fill:none}
#wlcSmartHelp .wlc-smart-help__body{padding:18px;overflow-y:auto;overscroll-behavior:contain;flex:1 1 auto;min-height:0;background:#fff;scrollbar-width:thin;scrollbar-color:#ced9e4 transparent}
#wlcSmartHelp .wlc-smart-help__intro{margin:0 0 11px}
#wlcSmartHelp .wlc-smart-help__intro strong{font-size:17px;line-height:1.35;font-weight:700;color:#17314e}
#wlcSmartHelp .wlc-smart-help__intro p{margin:4px 0 0;color:var(--help-muted);font-size:12px;line-height:1.5}
#wlcSmartHelp .wlc-smart-help__search-wrap{display:flex;align-items:center;gap:9px;height:42px;padding:0 12px;border:1px solid #dce4ed;border-radius:10px;background:#f9fbfd;transition:border-color .15s}
#wlcSmartHelp .wlc-smart-help__search-wrap:focus-within{border-color:#889eb7;background:#fff}
#wlcSmartHelp .wlc-smart-help__search-wrap svg{height:17px;width:17px;flex-shrink:0;fill:none;stroke:#8493a5;stroke-width:1.8;stroke-linecap:round}
#wlcSmartHelp .wlc-smart-help__search-wrap input{display:block;width:100%;height:38px;min-height:38px;margin:0;padding:0;background:transparent;border:0;outline:0!important;box-shadow:none!important;color:#17314e;font-size:12px;line-height:1.4}
#wlcSmartHelp .wlc-smart-help__search-wrap input::placeholder{color:#8291a1}
#wlcSmartHelp .wlc-smart-help__section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:15px 0 8px;font-size:12px;font-weight:700;color:#314861}
#wlcSmartHelp .wlc-smart-help__tag{font-size:10px;line-height:1.6;letter-spacing:.035em;font-weight:700;color:#8b5e36;background:#fff4e9;border:1px solid #ffe2c8;border-radius:5px;padding:1px 7px}
#wlcSmartHelp .wlc-smart-help__questions{border:1px solid var(--help-line);border-radius:12px;overflow:hidden;background:#fff}
#wlcSmartHelp .wlc-smart-help__question{display:flex;align-items:center;gap:11px;width:100%;min-height:45px;padding:10px 12px 10px 13px;margin:0;background:#fff;border:0;border-bottom:1px solid var(--help-line);border-radius:0;text-align:left;color:#243e58!important;transition:background .15s}
#wlcSmartHelp .wlc-smart-help__question:last-child{border-bottom:0}
#wlcSmartHelp .wlc-smart-help__question:hover{background:#f7fafe}
#wlcSmartHelp .wlc-smart-help__question span{flex:1;min-width:0;font-size:12px;line-height:1.45;font-weight:600}
#wlcSmartHelp .wlc-smart-help__question svg{display:block;width:15px;height:15px;flex-shrink:0;fill:none;stroke:#90a0af;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#wlcSmartHelp .wlc-smart-help__all{display:flex;align-items:center;gap:5px;margin:9px 0 1px;padding:3px 0;border:0;background:transparent;color:var(--help-navy)!important;font-size:11px;font-weight:700}
#wlcSmartHelp .wlc-smart-help__all:hover{text-decoration:underline}
#wlcSmartHelp .wlc-smart-help__footer{flex-shrink:0;padding:13px 17px 15px;border-top:1px solid var(--help-line);background:#fafcfe}
#wlcSmartHelp .wlc-smart-help__footer>div{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:9px}
#wlcSmartHelp .wlc-smart-help__footer strong{font-size:12px;color:#203a54;font-weight:700}
#wlcSmartHelp .wlc-smart-help__footer span{font-size:10.5px;color:#687c90}
#wlcSmartHelp .wlc-smart-help__whatsapp{display:flex!important;align-items:center;justify-content:center;gap:7px;min-height:40px;width:100%;padding:9px 12px;border:1px solid #c9e7d9;border-radius:9px;background:#e8f8ef!important;color:#127646!important;text-decoration:none!important;font-size:12px;font-weight:700;line-height:1.2;transition:background .16s}
#wlcSmartHelp .wlc-smart-help__whatsapp:hover{background:#d9f3e5!important}
#wlcSmartHelp .wlc-smart-help__whatsapp svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
#wlcSmartHelp .wlc-smart-help__back{display:flex;align-items:center;gap:4px;padding:3px 0;margin:0 0 19px;background:transparent;border:0;color:#5b7186!important;font-size:11px;font-weight:650}
#wlcSmartHelp .wlc-smart-help__back:hover{color:var(--help-navy)!important}
#wlcSmartHelp .wlc-smart-help__back svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
#wlcSmartHelp .wlc-smart-help__answer-kicker{display:block;margin-bottom:9px;font-size:10px;font-weight:750;letter-spacing:.11em;color:#da692d}
#wlcSmartHelp .wlc-smart-help__answer h3{margin:0 0 12px;color:#183654;font-size:17px;font-weight:700;line-height:1.4;letter-spacing:-.02em}
#wlcSmartHelp .wlc-smart-help__answer>p{margin:0;color:#52667a;font-size:12.5px;line-height:1.8;white-space:pre-line}
#wlcSmartHelp .wlc-smart-help__action{display:inline-flex;align-items:center;gap:5px;margin-top:15px;padding:9px 12px;background:#f1f5f9;color:#183b5d;text-decoration:none;border:1px solid #dce6ee;border-radius:8px;font-size:11px;font-weight:700}
#wlcSmartHelp .wlc-smart-help__action:hover{background:#e8f0f7}
#wlcSmartHelp .wlc-smart-help__feedback{margin-top:20px;padding-top:15px;border-top:1px solid var(--help-line)}
#wlcSmartHelp .wlc-smart-help__feedback>strong{display:block;color:#344960;font-size:12px;font-weight:700;margin-bottom:10px}
#wlcSmartHelp .wlc-smart-help__feedback-buttons{display:flex;gap:8px}
#wlcSmartHelp .wlc-smart-help__feedback-buttons button{flex:1;min-height:34px;margin:0;padding:6px 10px;border:1px solid #dce4ed;background:#fff;border-radius:8px;color:#2f4860;font-size:11px;font-weight:650}
#wlcSmartHelp .wlc-smart-help__feedback-buttons button:hover{border-color:#9bb0c3;background:#f6f9fc}
#wlcSmartHelp .wlc-smart-help__feedback-result{margin:0;padding:10px 11px;font-size:11.5px;line-height:1.55;border-radius:9px;background:#f1f6fa;color:#36536c}
#wlcSmartHelp .wlc-smart-help__empty{padding:12px 0}
#wlcSmartHelp .wlc-smart-help__empty strong{display:block;color:#233d55;font-size:13px}
#wlcSmartHelp .wlc-smart-help__empty p{margin:5px 0;color:#697f94;font-size:12px}
@media(max-width:600px){#wlcSmartHelp .wlc-smart-help__toggle{right:16px!important;bottom:max(16px,env(safe-area-inset-bottom))!important;width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important}#wlcSmartHelp .wlc-smart-help__panel{right:12px!important;bottom:max(78px,calc(env(safe-area-inset-bottom) + 62px))!important;width:calc(100vw - 24px)!important;max-width:376px!important;max-height:calc(100vh - 100px)!important;max-height:calc(100dvh - 100px)!important;border-radius:14px!important}#wlcSmartHelp .wlc-smart-help__body{padding:16px}#wlcSmartHelp .wlc-smart-help__footer{padding:12px 16px 14px}}
@media(prefers-reduced-motion:reduce){#wlcSmartHelp *,#wlcSmartHelp *:before,#wlcSmartHelp *:after{transition:none!important;animation:none!important}}

/* R362 guard: any cached template with the old green floating WhatsApp must not overlap Smart Help. */
body:has(#wlcSmartHelp) .wlc-global-whatsapp,body:has(#wlcSmartHelp) #wlcGlobalWhatsApp,body:has(#wlcSmartHelp) .float-wa,body:has(#wlcSmartHelp) .float-actions,body:has(#wlcSmartHelp) .wlx-whatsapp{display:none!important}
#wlcSmartHelp .wlc-smart-help__toggle{text-decoration:none!important;cursor:pointer!important}
@media(max-height:480px){#wlcSmartHelp .wlc-smart-help__panel{top:8px!important;right:8px!important;bottom:8px!important;left:auto!important;max-height:calc(100vh - 16px)!important;max-height:calc(100dvh - 16px)!important;width:min(376px,calc(100vw - 16px))!important}#wlcSmartHelp .wlc-smart-help__header{min-height:50px!important;padding:8px 12px!important}#wlcSmartHelp .wlc-smart-help__body{padding:10px 12px!important}#wlcSmartHelp .wlc-smart-help__footer{padding:7px 12px!important}#wlcSmartHelp .wlc-smart-help__footer>div{display:none!important}#wlcSmartHelp .wlc-smart-help__whatsapp{min-height:32px!important;padding:6px 9px!important}}

/* If the main JS cannot load, the fallback questions remain usable. */
#wlcSmartHelp .wlc-smart-help__fallback details{border:1px solid #e1e7ef;border-radius:8px;margin:7px 0;padding:9px;background:#fafcfe}
#wlcSmartHelp .wlc-smart-help__fallback summary{cursor:pointer;font-size:12px;font-weight:650;color:#17314e}
#wlcSmartHelp .wlc-smart-help__fallback p{font-size:12px;color:#64748b;margin:7px 0 0;line-height:1.5}
#wlcSmartHelp[data-help-ready="1"] .wlc-smart-help__fallback{display:none!important}
