#shf-root{font:14px/1.5 system-ui,-apple-system,Segoe UI,sans-serif;color:#17244b}#shf-root *{box-sizing:border-box}#shf-bubble{position:fixed;right:22px;bottom:20px;z-index:999990;width:60px;height:60px;border:0;border-radius:50%;background:#ff4d35;color:white;font-size:29px;cursor:pointer;box-shadow:0 5px 20px #17244b40}#shf-panel{position:fixed;z-index:999991;right:20px;bottom:90px;width:min(390px,calc(100vw - 26px));height:min(620px,calc(100dvh - 115px));display:flex;flex-direction:column;background:#fff;border:1px solid #d9dce5;border-radius:17px;overflow:hidden;box-shadow:0 10px 40px #17244b35}#shf-panel[hidden]{display:none}#shf-panel header{background:#17244b;color:white;padding:14px 16px;display:flex;justify-content:space-between;align-items:center}#shf-panel header strong{display:block;font-size:16px}#shf-panel header small{display:block;color:#e3e7f0;font-size:11px}#shf-close{background:transparent;color:white;border:0;font-size:27px;cursor:pointer}#shf-panel .shf-agents{display:flex;gap:14px;justify-content:center;background:#f4f6fb;padding:10px;font-size:12px}#shf-messages{padding:14px;overflow:auto;flex:1;background:#fff}#shf-panel .shf-msg{background:#f2f4f8;border-radius:12px;padding:9px 12px;margin:0 20px 12px 0;overflow-wrap:anywhere}#shf-panel .shf-msg.shf-mine{background:#17244b;color:white;margin:0 0 12px 32px}#shf-panel .shf-msg p{margin:3px 0;white-space:pre-wrap}#shf-panel .shf-msg small{opacity:.7}#shf-extras{max-height:260px;overflow:auto;padding:0 10px}#shf-panel .shf-info{background:#fff1ed;border-radius:8px;padding:8px}#shf-panel form{margin:0}#shf-panel #shf-chat-form{display:flex;border-top:1px solid #eee;padding:8px;gap:6px}#shf-input{flex:1;min-width:0;padding:10px;border:1px solid #ccd2dc;border-radius:10px;font:inherit}#shf-chat-form button,#shf-handoff button,#shf-feedback button{border:0;background:#ff4d35;color:white;border-radius:9px;padding:9px 13px;cursor:pointer}#shf-panel footer{display:flex;justify-content:space-between;gap:8px;padding:8px;border-top:1px solid #eee}#shf-panel footer button{border:0;background:none;color:#17244b;text-decoration:underline;cursor:pointer;font-size:12px}#shf-handoff,#shf-feedback{padding:10px;background:#f7f8fb;border-radius:9px}#shf-handoff label,#shf-feedback label{display:block;margin:6px 0;font-size:12px}#shf-handoff input,#shf-feedback select,#shf-feedback textarea{display:block;width:100%;padding:7px;border:1px solid #ccd2dc;border-radius:6px}#shf-dashboard,#shf-dashboard *{box-sizing:border-box}.shf-ticket{background:#fff;border:1px solid #ddd;border-radius:9px;padding:16px;margin:16px 0}.shf-history{max-height:320px;overflow:auto;background:#f5f6fa;padding:12px}.shf-controls textarea{display:block;width:100%;min-height:75px;margin:10px 0}.shf-controls button{margin:6px;padding:9px 12px;cursor:pointer}@media(max-width:480px){#shf-panel{right:8px;bottom:78px;width:calc(100vw - 16px);height:min(660px,calc(100dvh - 95px))}#shf-bubble{right:13px;bottom:12px}}

#shf-panel .shf-end-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}#shf-panel .shf-end-actions button{border:1px solid #ff4d35;background:#ff4d35;color:#fff;border-radius:7px;padding:7px 9px;cursor:pointer;font:inherit;font-size:12px}#shf-panel .shf-end-actions button+button{background:#fff;color:#17244b;border-color:#cbd0dd}#shf-panel footer button:disabled{opacity:.4;cursor:not-allowed}

#shf-root .shf-mode{font-size:12px;color:#415176;padding:4px 12px;margin:0;}

#shf-root .shf-typing p{display:flex;align-items:center;gap:8px}#shf-root .shf-dots{display:inline-flex;align-items:center;gap:4px}#shf-root .shf-dots i{width:6px;height:6px;background:#53627f;border-radius:50%;animation:shf-dot 1.1s infinite ease-in-out}#shf-root .shf-dots i:nth-child(2){animation-delay:.15s}#shf-root .shf-dots i:nth-child(3){animation-delay:.3s}@keyframes shf-dot{0%,65%,100%{opacity:.25;transform:translateY(0)}30%{opacity:1;transform:translateY(-4px)}}#shf-root #shf-transfer-cta{display:block;background:#ff4d35;color:white;border:0;border-radius:8px;padding:10px 12px;margin:8px 0;cursor:pointer;font-weight:600}#shf-root .shf-info small{display:block;font-size:12px}

#shf-panel footer #shf-switch{font-size:11px;}

#shf-panel footer button[hidden]{display:none!important}#shf-panel footer{flex-wrap:wrap}#shf-panel footer button{min-height:32px} @media(max-width:480px){.shf-ticket{padding:10px}.shf-controls button{min-height:42px}#shf-dashboard{max-width:100%;overflow-wrap:anywhere}.shf-history{max-height:45vh}}

/* Branded staff login: WordPress core handles authentication and reset tokens. */
.shf-agent-login{box-sizing:border-box;max-width:440px;margin:30px auto;padding:28px;background:#fff;color:#17244b;border:1px solid #e1e5ed;border-radius:18px;box-shadow:0 12px 35px rgba(23,36,75,.08);font-family:system-ui,-apple-system,sans-serif}.shf-agent-login-brand{display:flex;gap:14px;align-items:center;margin-bottom:20px}.shf-agent-login-brand h2{margin:0;font-size:24px;color:#17244b}.shf-agent-login-brand p{margin:4px 0 0;color:#59667c}.shf-agent-login-logo{display:grid;place-items:center;background:#ff4d35;color:#fff;border-radius:12px;width:50px;height:50px;font-weight:800;font-size:26px}.shf-agent-login #shf-staff-login p{margin:0 0 16px}.shf-agent-login #shf-staff-login label{display:block;font-weight:600;margin-bottom:7px}.shf-agent-login #shf-staff-login input[type=text],.shf-agent-login #shf-staff-login input[type=password]{box-sizing:border-box;display:block;width:100%;padding:12px;border:1px solid #cbd3e1;border-radius:9px;font:inherit;background:#fff;color:#17244b}.shf-agent-login #shf-staff-login input[type=submit],.shf-agent-login-primary{display:block;box-sizing:border-box;width:100%;padding:12px;background:#ff4d35;border:0;border-radius:9px;color:#fff;text-align:center;text-decoration:none;font:inherit;font-weight:700;cursor:pointer}.shf-agent-login #shf-staff-login input[type=submit]:focus-visible,.shf-agent-login a:focus-visible{outline:3px solid #17244b;outline-offset:3px}.shf-agent-login #shf-staff-login .login-remember{font-size:13px}.shf-agent-login-reset{text-align:center}.shf-agent-login-reset a{color:#17244b;text-decoration:underline}.shf-agent-login-help{font-size:12px;color:#647084;text-align:center}@media(max-width:480px){.shf-agent-login{margin:16px 10px;padding:20px}}

/* v1.6: Mobile viewport and keyboard-safe chat. Scoped to Shufeyr only. */
#shf-root{--shf-vh:100dvh;--shf-keyboard-bottom:0px;position:relative;max-width:100%;}
#shf-root #shf-panel{box-sizing:border-box!important;max-width:calc(100vw - 16px)!important;max-height:calc(var(--shf-vh) - 20px)!important;min-width:0!important;min-height:0!important;overflow:hidden!important;overscroll-behavior:contain;}
#shf-root #shf-panel header,#shf-root #shf-panel .shf-agents,#shf-root #shf-panel #shf-chat-form,#shf-root #shf-panel footer{flex-shrink:0;min-width:0;max-width:100%;}
#shf-root #shf-messages{min-height:0!important;min-width:0!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;}
#shf-root .shf-msg{max-width:100%!important;min-width:0!important;overflow-wrap:anywhere;word-break:normal;}
#shf-root .shf-msg p{max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;}
#shf-root #shf-chat-form{display:flex!important;align-items:stretch!important;gap:6px!important;width:100%!important;}
#shf-root #shf-input{box-sizing:border-box!important;min-width:0!important;width:0!important;flex:1 1 0%!important;max-width:none!important;font-size:16px!important;line-height:1.4!important;min-height:44px!important;box-shadow:none!important;}
#shf-root #shf-chat-form button{flex:0 0 46px!important;min-width:46px!important;max-width:46px!important;padding:8px!important;}
#shf-root #shf-panel footer{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px!important;align-items:center!important;}
#shf-root #shf-panel footer button{min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;padding:7px 3px!important;font-size:12px!important;line-height:1.3!important;text-align:center!important;}
#shf-root #shf-panel .shf-agents{flex-wrap:wrap!important;gap:8px!important;}
@media(max-width:600px){
 #shf-root #shf-panel{left:8px!important;right:8px!important;width:auto!important;bottom:calc(8px + var(--shf-keyboard-bottom))!important;height:min(650px,calc(var(--shf-vh) - 16px))!important;border-radius:14px!important;}
 #shf-root #shf-bubble{right:12px!important;bottom:12px!important;}
 #shf-root #shf-panel header{padding:12px!important;}
 #shf-root #shf-panel #shf-extras{max-height:30%!important;overflow-y:auto!important;}
}

/* v1.7 welcome questions and WhatsApp fallback */
#shf-root .shf-quick{padding:9px 3px;display:grid;gap:6px}#shf-root .shf-quick strong{font-size:12px;color:#17244b}#shf-root .shf-quick button{display:block;width:100%;text-align:left;background:#f5f7fb;border:1px solid #dbe0ec;color:#17244b;border-radius:9px;padding:9px 11px;cursor:pointer;font:inherit;font-size:12px}#shf-root .shf-quick button:last-child{border-color:#e8a394;background:#fff3f0}#shf-root .shf-whatsapp{display:block;text-align:center;padding:10px 12px;margin:8px 0;background:#168a55;color:#fff!important;text-decoration:none;border-radius:9px;font-weight:700}#shf-root .shf-whatsapp:focus-visible,#shf-root .shf-quick button:focus-visible{outline:3px solid #17244b;outline-offset:2px}
