/* Match the current EnderHost preferences layout, with WHMCS's overlay stack. */
.eh-visitor-panel[hidden]{display:none!important}
.eh-visitor-panel{position:fixed;left:50%;bottom:max(20px,env(safe-area-inset-bottom));transform:translateX(-50%);z-index:1045;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px;width:min(800px,calc(100% - 40px));max-height:calc(100dvh - 40px);overflow-y:auto;overscroll-behavior:contain;padding:18px 48px 18px 24px;border:1px solid #c4b5fd38;border-radius:16px;background:linear-gradient(110deg,#16121e,#100e17 62%);box-shadow:0 20px 64px #0009,0 2px 12px #0005,inset 0 1px #ffffff0a;color:#eeeaf5;font:13px/1.6 Inter,system-ui,sans-serif;text-align:left;box-sizing:border-box}
.eh-visitor-panel:before{content:'';position:absolute;top:0;left:18%;right:18%;height:1px;background:linear-gradient(90deg,transparent,#c4b5fd99,transparent);pointer-events:none}
.eh-visitor-panel svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;color:#c4b5fd}
.eh-visitor-intro,.eh-visitor-decision{min-width:0}.eh-visitor-heading{display:flex;align-items:center;gap:9px}
.eh-visitor-panel h2{font:600 15px/1.3 Inter,system-ui,sans-serif;letter-spacing:-.035em;margin:0;color:#eeeaf5}.eh-visitor-panel h2:focus{outline:none}
.eh-visitor-panel #ehVisitorDescription{font-size:12px;line-height:1.6;color:#b9afc8;margin:7px 0 0}.eh-visitor-panel #ehVisitorDescription a{color:#c4b5fd;white-space:nowrap;text-underline-offset:3px}
.eh-visitor-panel .eh-visitor-close{position:absolute;top:6px;right:6px;display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:6px;background:transparent;color:#b9afc8;font-size:24px;cursor:pointer}
.eh-visitor-close:hover{background:#ffffff09;color:#eeeaf5}
.eh-visitor-speed{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:11px;padding:11px 14px;background:linear-gradient(110deg,#211a32,#191524);border:1px solid #b39bff45;border-radius:11px;box-shadow:inset 0 1px #dfd3ff12}
.eh-visitor-speed[data-enabled=true]{background:linear-gradient(110deg,#29203d,#1c172b);border-color:#bba7ff80}
.eh-visitor-speed strong{display:block;font-size:14px;font-weight:600;letter-spacing:-.025em;color:#e1d5ff}.eh-visitor-speed p{font-size:11px;line-height:1.5;color:#bdb2d2;margin:3px 0 0}
.eh-speed-control{display:flex;align-items:center;gap:7px}.eh-speed-control>[data-eh-speed-label]{font-size:10px;font-weight:600;color:#b5a8cd}
.eh-speed-switch{position:relative;flex-shrink:0;width:48px;height:44px;padding:0;border:0;background:transparent;cursor:pointer}.eh-speed-switch:before{content:'';position:absolute;inset:8px 0;background:#110e1c;border:1px solid #c4b5fd4d;border-radius:32px}.eh-speed-switch span{position:absolute;top:12.5px;left:4.5px;width:19px;height:19px;border-radius:50%;background:#b6acc9}.eh-speed-switch[aria-checked=true]:before{background:#8665e6;border-color:#b59afd}.eh-speed-switch[aria-checked=true] span{left:24.5px;background:#fff}
.eh-visitor-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.eh-visitor-actions button{white-space:nowrap;min-height:45px;padding:10px 13px;border:1px solid #c4b5fd36;border-radius:10px;background:#211b2e;color:#eeeaf5;font:550 12px/1.4 Inter,system-ui,sans-serif;cursor:pointer}.eh-visitor-actions button:hover{background:#2e2541;border-color:#c4b5fd80}

.eh-visitor-panel button:focus-visible,.eh-preferences-link:focus-visible{outline:2px solid #bba0df;outline-offset:3px}
footer .eh-preference-controls{display:flex;align-items:center;justify-content:flex-end;gap:20px;flex-wrap:wrap;margin-top:20px;min-width:0}
footer .eh-preferences-link{display:inline-flex;align-items:center;gap:10px;padding:0;border:0;background:none;color:#ada2bb;font:12px/1.4 Inter,system-ui,sans-serif;cursor:pointer;white-space:nowrap}
footer .eh-preferences-link:hover{color:#d8c9fc}footer .eh-footer-mode{padding:9px 10px;min-height:44px;background:#c4b5fd06;border:1px solid #c4b5fd26;border-radius:10px}footer .eh-footer-mode>span:first-child{display:inline-flex;align-items:center;gap:7px}
footer .eh-preferences-link svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;color:#c4b5fd}
.eh-footer-toggle{position:relative;flex:0 0 29px;height:17px;border:1px solid #c4b5fd40;border-radius:16px;background:#09070f}.eh-footer-toggle>span{position:absolute;left:2px;top:2px;width:11px;height:11px;border-radius:50%;background:#9f95b3}.eh-footer-mode[aria-checked=true] .eh-footer-toggle{background:#795acc;border-color:#a88be9}.eh-footer-mode[aria-checked=true] .eh-footer-toggle>span{left:14px;background:white}
/* Auth has three independent groups; no child can squeeze the legal links. */
body.eh-portal .eh-auth-footer{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center;gap:20px 28px!important;padding:24px!important;box-sizing:border-box;width:100%;max-width:1440px;margin-inline:auto!important}
body.eh-portal .eh-auth-footer>span{white-space:nowrap!important;line-height:1.6}
body.eh-portal .eh-auth-footer nav{display:flex!important;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px 20px!important;min-width:0}
body.eh-portal .eh-auth-footer nav a{white-space:nowrap;margin:0!important}
body.eh-portal .eh-auth-footer .eh-preference-controls{width:auto!important;margin:0!important;gap:16px;justify-content:flex-end}
/* The panel used to drop the actions onto a second row here, because the Lightspeed card made
   three columns too wide to fit. With two columns it stays side by side down to 700px. */
@media(max-width:1100px){.eh-visitor-panel{gap:18px}body.eh-portal .eh-auth-footer{grid-template-columns:auto minmax(0,1fr)!important}body.eh-portal .eh-auth-footer nav{justify-content:flex-end}body.eh-portal .eh-auth-footer .eh-preference-controls{grid-column:1/-1;justify-content:center}}
@media(max-width:700px){.eh-visitor-panel{grid-template-columns:minmax(0,1fr)}.eh-visitor-decision{width:100%}}
@media(max-width:575px){.eh-visitor-panel{bottom:max(12px,env(safe-area-inset-bottom));width:calc(100% - 24px);max-height:calc(100dvh - 24px);padding:16px;border-radius:14px}body.eh-portal .eh-auth-footer{grid-template-columns:minmax(0,1fr)!important;justify-items:center;gap:16px!important;padding:24px 16px!important}body.eh-portal .eh-auth-footer nav{justify-content:center;gap:12px 18px!important}body.eh-portal .eh-auth-footer .eh-preference-controls{gap:14px;justify-content:center}}

html[data-eh-lightspeed=true] .eh-auth-motion video{display:none!important}
html[data-eh-lightspeed=true] .ehr-figure *,html[data-eh-lightspeed=true] .eh-home-v4 [class*="orbit"],html[data-eh-lightspeed=true] .NoBQ3W_art *{animation:none!important}
html[data-eh-lightspeed=true] #ehPageLoader{display:none!important}
/* Keep WHMCS's native checkbox and plugin events underneath a compact switch. */
body.eh-portal.eh-unified .bootstrap-switch{position:relative!important;display:inline-block!important;vertical-align:middle!important;flex:0 0 44px!important;width:44px!important;min-width:44px!important;height:26px!important;min-height:26px!important;border:1px solid #63566e!important;border-radius:20px!important;background:#29232f!important;overflow:hidden!important;box-shadow:none!important;padding:0!important}
body.eh-portal.eh-unified .bootstrap-switch:after{content:'';position:absolute;top:4px;left:4px;width:16px;height:16px;background:#c8bed3;border-radius:50%;pointer-events:none}
body.eh-portal.eh-unified .bootstrap-switch.bootstrap-switch-on{background:#76549c!important;border-color:#a58ac4!important}
body.eh-portal.eh-unified .bootstrap-switch.bootstrap-switch-on:after{left:22px;background:#f2eafa}
body.eh-portal.eh-unified .bootstrap-switch .bootstrap-switch-container{position:static!important;width:44px!important;height:26px!important;margin:0!important;transform:none!important}
body.eh-portal.eh-unified .bootstrap-switch .bootstrap-switch-container>span{display:none!important}
body.eh-portal.eh-unified .bootstrap-switch input[type=checkbox]{display:block!important;visibility:visible!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;opacity:0!important;z-index:2;margin:0!important;padding:0!important;cursor:pointer;pointer-events:auto!important}
body.eh-portal.eh-unified .bootstrap-switch:focus-within{outline:2px solid #baa0db;outline-offset:3px}
body.eh-portal.eh-unified .bootstrap-switch.bootstrap-switch-disabled{opacity:.45}
body.eh-portal.eh-unified.eh-page-clientregister .eh-password-toggle{width:40px!important;height:40px!important;min-height:0!important;right:3px!important;top:3px!important;display:grid;place-items:center;padding:10px!important;border:0!important;background:transparent!important;color:#96909f!important;box-shadow:none!important}
body.eh-portal.eh-unified.eh-page-clientregister .eh-password-toggle[hidden]{display:none!important}
body.eh-portal.eh-unified.eh-page-clientregister .eh-password-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
body.eh-portal.eh-unified.eh-page-clientregister .eh-password-toggle:is(:hover,:focus-visible){color:#d4c5e5!important}
body.eh-portal.eh-unified.eh-page-clientregister .eh-password-toggle:before,body.eh-portal.eh-unified.eh-page-clientregister .eh-password-toggle:after{display:none!important}

.eh-visitor-panel{transform-origin:center bottom}
/* Explicit track sizing keeps the footer switch contained on mobile browsers. */
footer .eh-preference-controls{max-width:100%;box-sizing:border-box}
footer .eh-preferences-link.eh-footer-mode{display:inline-grid;grid-template-columns:minmax(0,1fr) 29px;width:max-content;max-width:100%;min-width:0;flex:0 0 auto;box-sizing:border-box;text-align:left;white-space:normal}
footer .eh-footer-mode>span:first-child{min-width:0;overflow-wrap:anywhere}
footer .eh-footer-mode>span:first-child svg{flex:0 0 14px}
footer .eh-footer-mode .eh-footer-toggle{display:block;width:29px;min-width:29px;max-width:29px;height:17px;box-sizing:border-box}
@media(max-width:575px){footer .eh-preference-controls{column-gap:14px;row-gap:12px}footer .eh-preferences-link:not(.eh-footer-mode){max-width:100%;white-space:normal;text-align:left}}
