/* HADUIT customer widget — isolated styles */
/* Elevated viewport portal; not clipped by transformed/carousel/product/footer wrappers.
   The overlay itself never intercepts clicks outside the HADUIT interface. */
html > #haduit-widget-root{position:fixed!important;inset:0 auto auto 0!important;width:0!important;height:0!important;overflow:visible!important;z-index:2147483647!important;pointer-events:none!important;visibility:visible!important}
html > #haduit-widget-root[hidden]{display:none!important}
#haduit-widget-root,.haduit-inline{--haduit-accent:#baff6b;--haduit-ink:#111827;--haduit-dark:#121823;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.45;color:var(--haduit-ink);box-sizing:border-box}
#haduit-widget-root *, .haduit-inline *{box-sizing:border-box}
#haduit-widget-root .haduit-shell{position:fixed!important;right:26px!important;bottom:25px!important;z-index:1;font-size:14px;pointer-events:auto!important;transform:none!important;overflow:visible!important;filter:none!important}
.haduit-launch{appearance:none;cursor:pointer;border:1px solid rgba(255,255,255,.22);background:linear-gradient(115deg,#151b29,#252d3e);color:white;border-radius:999px;height:64px;box-shadow:0 16px 48px #06112155,0 4px 12px #06112133;display:flex;align-items:center;gap:12px;padding:8px 19px 8px 9px;transform:translate(var(--float-x,0),var(--float-y,0));transition:transform .18s ease,box-shadow .2s ease;font:700 14px inherit;letter-spacing:.15px;position:relative}
.haduit-launch:hover{box-shadow:0 20px 52px #05101c88;transform:translate(var(--float-x,0),calc(var(--float-y,0px) - 3px))}
.haduit-launch-icon{width:47px;height:47px;display:grid;place-items:center;border-radius:50%;background:var(--haduit-accent);color:#13191e;font-size:29px;font-weight:900}
.haduit-launch-label{font-family:inherit;font-size:14px;white-space:nowrap}.haduit-launch-dot{width:8px;height:8px;background:#baff6b;border:2px solid #25352a;border-radius:50%;position:absolute;top:6px;left:44px}
.haduit-panel{position:absolute;right:0;bottom:80px;width:390px;height:min(650px,calc(100dvh - 112px));max-height:calc(100dvh - 112px);max-width:calc(100vw - 24px);border-radius:24px;background:#fff;box-shadow:0 28px 96px #05102355,0 3px 16px #0f172a25;overflow:hidden;display:flex;flex-direction:column;border:1px solid #e6eaf0;animation:haduit-appear .25s ease both}
.haduit-panel[hidden],.haduit-profile[hidden],.haduit-notice[hidden],.haduit-toast[hidden]{display:none!important}
@keyframes haduit-appear{from{opacity:0;transform:translateY(16px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
.haduit-head{background:#151c29;color:#fff;min-height:78px;padding:17px 18px;display:flex;align-items:center;gap:11px;flex-shrink:0}
.haduit-head-icon{background:var(--haduit-accent);color:#18202e;border-radius:14px;width:42px;height:42px;display:flex;align-items:center;justify-content:center;font-weight:950;font-size:22px;letter-spacing:-3px;box-shadow:0 4px 16px #baff6b33}.haduit-head-icon span{font-size:12px;letter-spacing:0;align-self:flex-start;margin-top:4px}
.haduit-head-title{display:flex;flex:1;flex-direction:column;line-height:1.15;gap:5px;min-width:0}.haduit-head-title strong{font-size:18px;font-weight:900;letter-spacing:1px}.haduit-head-title small{color:#c2cad5;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.haduit-head-title i{display:inline-block;width:6px;height:6px;background:var(--haduit-accent);border-radius:100%;vertical-align:middle;margin-right:3px}
.haduit-head-controls{display:flex;gap:4px}.haduit-head-controls button{background:#ffffff15;border:0;border-radius:11px;color:#e5e7eb;font-size:23px;width:33px;height:33px;cursor:pointer;line-height:1}.haduit-head-controls button:hover{background:#ffffff2b}
.haduit-intro{padding:19px 21px 15px;background:linear-gradient(150deg,#f6f9f2,#ffffff);border-bottom:1px solid #eef0f3;flex-shrink:0}.haduit-eyebrow{font-size:9px;font-weight:900;color:#62704b;letter-spacing:2px}.haduit-intro h3{font-size:22px;font-weight:860;line-height:1.2;color:#182330;margin:7px 0 5px;letter-spacing:-.8px}.haduit-intro p{margin:0;color:#75808b;font-size:12px}
.haduit-messages{min-height:60px;flex:1;overflow:auto;display:flex;flex-direction:column;gap:15px;padding:17px 16px 12px;overscroll-behavior:contain;background:#fcfdfe}
.haduit-line{display:flex;align-items:flex-end;gap:8px;max-width:100%}.haduit-avatar{background:#181f2c;color:var(--haduit-accent);height:25px;width:25px;flex:none;display:grid;place-items:center;border-radius:9px;font-weight:900;font-size:12px}
.haduit-bubble{background:#f0f3f7;padding:11px 13px;border-radius:14px 14px 14px 4px;font-size:13px;line-height:1.55;overflow-wrap:anywhere;color:#263342;white-space:normal;max-width:calc(100% - 37px);box-shadow:0 1px 1px #00000005}.haduit-bubble a{color:#215aaa;text-decoration:underline}.haduit-user{justify-content:flex-end}.haduit-user .haduit-bubble{background:#202b39;color:white;border-radius:14px 14px 4px 14px;max-width:90%}
.haduit-typing{font-size:11px;color:#7d8995;padding-left:35px;animation:haduit-pulse 1s infinite alternate}@keyframes haduit-pulse{to{opacity:.4}}
.haduit-suggestions{display:flex;gap:7px;overflow-x:auto;padding:10px 14px 11px;border-top:1px solid #eff1f5;flex:none;scrollbar-width:thin}.haduit-chip{white-space:nowrap;border:1px solid #dce4e8;background:#fff;border-radius:999px;color:#293746;padding:7px 11px;font-size:11px;font-weight:750;cursor:pointer;display:flex;align-items:center;gap:4px;transition:background .12s}.haduit-chip:hover{background:#eff8e7;border-color:#a5df7b}.haduit-chip span{color:#5b963b;font-size:12px}
.haduit-notice{padding:9px 14px;background:#f7f8fa;border-top:1px solid #e8ebee;color:#647282;font-size:10px}.haduit-notice label{display:flex;align-items:start;gap:7px;line-height:1.4}.haduit-notice input{margin:1px 0 0;flex:none}.haduit-notice a{color:#335d73;text-decoration:underline}
.haduit-compose{padding:11px 13px 9px;background:white;flex:none;border-top:1px solid #ebeff2}.haduit-compose-row{border:1px solid #dce3e9;border-radius:16px;display:flex;align-items:flex-end;gap:5px;padding:6px 6px 6px 11px}.haduit-compose-row:focus-within{border-color:#718d5c;box-shadow:0 0 0 3px #a7d47529}.haduit-input{background:transparent!important;border:0!important;box-shadow:none!important;resize:none!important;outline:none!important;min-height:34px!important;max-height:95px;width:100%;font-family:inherit!important;color:#1f2937!important;font-size:12px!important;line-height:24px!important;margin:0!important;padding:5px 0!important}
.haduit-send{background:var(--haduit-accent);color:#18202c;border:0;width:37px;height:37px;border-radius:11px;font-size:23px;font-weight:800;cursor:pointer;flex:none}.haduit-send:hover{filter:brightness(.93)}.haduit-send:disabled{opacity:.4;cursor:not-allowed}.haduit-compose-bottom{display:flex;justify-content:space-between;align-items:center;padding:9px 2px 0;color:#98a2ad;font-size:9px}.haduit-compose-bottom b{color:#3d4a52;letter-spacing:.3px}.haduit-share{border:0;background:transparent;text-decoration:underline;color:#586978;cursor:pointer;font-size:10px;padding:0}
.haduit-profile{position:absolute;left:16px;right:16px;bottom:18px;background:#fff;z-index:2;padding:18px;border:1px solid #e2e9ed;box-shadow:0 14px 46px #10172233;border-radius:17px}.haduit-profile-title{font-size:16px;font-weight:800;display:flex;justify-content:space-between}.haduit-profile-close{background:transparent;border:0;font-size:24px;cursor:pointer}.haduit-profile p{font-size:11px;color:#657383}.haduit-profile input{width:100%;border:1px solid #dce4e9;border-radius:10px;margin-bottom:9px;padding:11px;font-size:12px}.haduit-save-profile{background:#17202d;color:#fff;border:0;border-radius:10px;padding:10px 15px;cursor:pointer;font-weight:800;width:100%}
.haduit-toast{position:absolute;left:14px;right:14px;bottom:110px;background:#202a3a;color:#fff;border-radius:10px;padding:10px 12px;font-size:11px;z-index:3;box-shadow:0 4px 16px #0003}.haduit-rating{display:flex;align-items:center;gap:4px;font-size:11px;color:#64748b;flex-wrap:wrap}.haduit-rating button{border:0;background:none;font-size:17px;color:#efac38;cursor:pointer;padding:2px}
.haduit-embedded .haduit-panel{position:relative;right:auto;bottom:auto;width:100%;height:640px;max-width:100%;max-height:80vh;border-radius:20px}.haduit-embedded .haduit-close{display:none}
@media(max-width:500px){#haduit-widget-root .haduit-shell{bottom:13px!important;right:12px!important}.haduit-launch{height:57px;padding:7px 13px 7px 7px}.haduit-launch-icon{width:42px;height:42px}.haduit-panel{position:fixed;bottom:79px;right:10px;width:calc(100vw - 20px);max-width:calc(100vw - 20px);height:min(660px,calc(100dvh - 99px));border-radius:18px}.haduit-embedded .haduit-panel{position:relative;right:auto;bottom:auto}}
@media(prefers-reduced-motion:reduce){.haduit-panel{animation:none}.haduit-launch{transition:none!important;transform:none!important}}

/* Prevent global WordPress themes/builders from overriding dialog visibility or layout. */
#haduit-widget-root .haduit-panel:not([hidden]){display:flex!important;opacity:1}
#haduit-widget-root .haduit-launch{z-index:2}
#haduit-widget-root .haduit-messages{overscroll-behavior:contain;scrollbar-gutter:stable;min-height:0}
#haduit-widget-root .haduit-input{scroll-margin:0}
@media(max-height:470px){#haduit-widget-root .haduit-panel{bottom:70px;height:calc(100dvh - 80px);max-height:calc(100dvh - 80px)}#haduit-widget-root .haduit-intro{display:none}}

/* HADUIT Pro voice controls */
.haduit-mic,.haduit-audio-mode,.haduit-play{cursor:pointer;font:inherit;border:0}.haduit-mic{align-self:center;background:#edf4e7;border-radius:9px;color:#172333;padding:6px 8px;font-size:17px}.haduit-mic[hidden],.haduit-audio-mode[hidden]{display:none!important}.haduit-mic.haduit-listening{background:#fee2e2;color:#b91c1c;animation:haduit-pulse 1s infinite}.haduit-audio-mode{background:transparent;color:#465a67;font-size:10px;font-weight:700}.haduit-play{display:block;margin-top:8px;border-radius:12px;background:#e8f6d9;color:#253c19;padding:5px 10px;font-size:10px;font-weight:700}@keyframes haduit-pulse{50%{opacity:.45}}

/* Private photo troubleshooting */
.haduit-photo{align-self:center;cursor:pointer;font-size:18px;border:0;background:#eef2f6;border-radius:9px;padding:6px 7px}.haduit-photo[hidden]{display:none!important}.haduit-photo:disabled{opacity:.45}

/* HADUIT Pro 1.5.1: microphone at the right of the message field.
   Widget footer remains inside the popup; no page-level scroll or fixed mic. */
.haduit-compose-row .haduit-input{flex:1 1 auto;min-width:0!important;width:auto!important;}
.haduit-compose-row .haduit-mic{display:grid;place-items:center;position:relative;flex:0 0 39px;align-self:center;width:39px;height:39px;padding:0;border:1px solid #cbdccb;background:#eff8e8;color:#243b22;border-radius:12px;transition:background .15s ease,box-shadow .15s ease,color .15s ease;touch-action:manipulation;}
.haduit-compose-row .haduit-mic:hover{background:#dff3d1;box-shadow:0 0 0 3px #baff6b55;}
.haduit-compose-row .haduit-mic:focus-visible{outline:3px solid #569c38;outline-offset:2px;}
.haduit-mic-icon{width:20px;height:20px;display:block;}
.haduit-mic-stop{display:none;font-size:16px;}
.haduit-compose-row .haduit-mic.haduit-listening{background:#ffefeb;border-color:#dc6c5c;color:#ad2d1e;animation:haduit-mic-pulse 1.35s infinite;}
.haduit-compose-row .haduit-mic.haduit-listening .haduit-mic-icon{display:none;}
.haduit-compose-row .haduit-mic.haduit-listening .haduit-mic-stop{display:block;}
.haduit-compose-row .haduit-mic.haduit-processing{opacity:.55;cursor:wait;animation:none;}
.haduit-compose-row .haduit-mic[hidden]{display:none!important;}
.haduit-voice-status{padding:5px 4px 0;color:#53677b;font-size:11px;font-weight:600;min-height:0;}
.haduit-voice-status[hidden]{display:none!important;}
@keyframes haduit-mic-pulse{0%,100%{box-shadow:0 0 0 0 #d753534a;}55%{box-shadow:0 0 0 7px #d7535300;}}
@media(max-width:500px){.haduit-compose-row{gap:4px;padding-left:7px;}.haduit-compose-row .haduit-mic{flex-basis:40px;height:40px;width:40px;}.haduit-compose-row .haduit-send{width:40px;height:40px;}}
@media(prefers-reduced-motion:reduce){.haduit-compose-row .haduit-mic.haduit-listening{animation:none;}}
