/* ELITE AI SUITE — website stage shared by pre-purchase and customer dashboard.
   A real HTTPS website loads in an iframe only when that site's framing policy permits. */
.elite-site-stage{--stage-brand:#94ff1c;--stage-panel:#071932;--stage-bubble:#10315d;--stage-line:#2663ad;--stage-text:#f3f9ff;--stage-radius:18px;position:relative;color:#edf8ff;font-family:inherit}
.elite-site-stage *{box-sizing:border-box}
.ess-frame{border:1px solid #2362a3;border-radius:16px;overflow:hidden;position:relative;min-height:390px;background:#071321;isolation:isolate}
.ess-browserbar{height:43px;display:flex;align-items:center;gap:11px;border-bottom:1px solid #225b90;background:#061529;padding:8px 12px;color:#a8c7e9;font:12px/1.2 system-ui,sans-serif}
.ess-dots{display:flex;gap:5px;flex:none}.ess-dots i{height:8px;width:8px;border-radius:50%;background:#fa6371}.ess-dots i:nth-child(2){background:#f1ce54}.ess-dots i:nth-child(3){background:#73e988}
.ess-url{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;text-align:center;border-radius:8px;background:#020c1c;padding:7px 8px;border:1px solid #16416a;font-size:11px}
.ess-page{position:relative;height:390px;background:radial-gradient(circle at 78% 8%,#183b4d,transparent 55%),linear-gradient(155deg,#0c1c35,#031020)}
.ess-iframe{height:100%;width:100%;border:0;display:block;background:#f5f8ff}
.ess-placeholder{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:20px;text-align:center;background:radial-gradient(ellipse at 50% 35%,#0b294b,#041020 70%);color:#b5cce7}
.ess-placeholder strong{color:#fff;font-size:20px}.ess-placeholder span{max-width:360px;font-size:12px}
.ess-overlay{position:absolute;right:18px;bottom:18px;display:flex;align-items:flex-end;flex-direction:column;gap:10px;z-index:5;pointer-events:none}
.ess-overlay button,.ess-overlay input,.ess-overlay form{pointer-events:auto}
.ess-launch{background:var(--stage-brand);color:#07170c;border:1px solid #ffffff55;padding:11px 18px;min-height:45px;max-width:260px;font-weight:800;box-shadow:0 4px 18px #0008;cursor:pointer;border-radius:999px;overflow-wrap:anywhere}
.ess-launch.shape-rounded{border-radius:12px}
.ess-launch.shape-square{border-radius:3px}
.ess-launch.shape-bubble{border-radius:999px 999px 5px 999px}
.ess-launch.shape-bubble:before{content:"✦";margin-right:7px}
.ess-chat{height:min(325px,calc(100vw - 110px));width:min(300px,calc(100vw - 60px));border-radius:var(--stage-radius);background:var(--stage-panel);color:var(--stage-text);border:1px solid var(--stage-line);box-shadow:0 12px 30px #000b;overflow:hidden;display:flex;flex-direction:column;pointer-events:auto}
.ess-chat[hidden]{display:none}
.ess-chathead{padding:12px 13px;background:#001020d9;border-bottom:1px solid var(--stage-line);display:flex;gap:7px;align-items:center;justify-content:space-between;font-size:12px;font-weight:800}
.ess-chathead button{color:#e8f4ff;background:none;border:0;font-size:20px;cursor:pointer}
.ess-log{min-height:0;overflow:auto;flex:1;display:flex;flex-direction:column;gap:9px;padding:11px}
.ess-bubble{font-size:11px;line-height:1.45;padding:9px 10px;border-radius:11px;background:var(--stage-bubble);max-width:90%;overflow-wrap:anywhere}
.ess-bubble.user{background:var(--stage-brand);color:#08150f;align-self:flex-end}
.ess-compose{padding:8px;display:flex;gap:6px;border-top:1px solid var(--stage-line)}
.ess-compose input{width:100%;min-width:0;padding:9px;border:1px solid var(--stage-line);border-radius:8px;background:#071328;color:var(--stage-text);font-size:11px}
.ess-compose button{background:var(--stage-brand);color:#07150e;border:none;border-radius:7px;padding:0 12px;cursor:pointer;font-weight:800}
.elite-site-stage[data-template="minimal"]{--stage-panel:#fff;--stage-bubble:#f1f4f8;--stage-line:#d4dee7;--stage-text:#1b2b44;--stage-radius:11px}
.elite-site-stage[data-template="minimal"] .ess-chathead{background:var(--stage-brand);color:#061310}
.elite-site-stage[data-template="minimal"] .ess-compose input{background:#fff;color:#1b2b44}
.elite-site-stage[data-template="glass"]{--stage-panel:#132e3cdb;--stage-bubble:#3d656c;--stage-line:#b6fffa80;--stage-text:#ebffff;--stage-radius:24px}
.elite-site-stage[data-template="glass"] .ess-chat{backdrop-filter:blur(15px)}
.elite-site-stage[data-template="midnight"]{--stage-panel:#080820;--stage-bubble:#25235a;--stage-line:#4741a7;--stage-text:#e9e7ff;--stage-radius:9px}
.ess-hint{font-size:11px;color:#9dbbdf;line-height:1.5;margin:9px 0 0;display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap}
.ess-hint a{color:#a0ff47;white-space:nowrap}
.ess-controls{display:grid;grid-template-columns:minmax(0,1.5fr) auto;gap:9px;align-items:end;margin:12px 0}
.ess-controls label{display:block;font-size:12px;color:#e3f3ff}
.ess-controls input{display:block;width:100%;min-width:0;margin-top:5px;padding:11px;border:1px solid #2d71b1;border-radius:9px;background:#04142a;color:#eaf4ff}
.ess-controls button{padding:11px 15px;background:#a0ff30;color:#081708;border:none;border-radius:8px;min-height:43px;font-weight:800;cursor:pointer}
@media(max-width:420px){.ess-controls{grid-template-columns:1fr}.ess-overlay{bottom:11px;right:11px}.ess-chat{width:min(270px,calc(100vw - 80px));height:290px}.ess-page{height:355px}.ess-frame{min-height:355px}}


/* Full-screen website and chatbot preview. This is the preview stage, not the checkout or customer dashboard. */
.elite-site-stage{min-width:0}
.elite-site-stage .ess-frame{min-width:0}
.ess-url{min-width:0}
.ess-fullscreen{flex:none;color:#bbff76;border:1px solid #467c99;background:#06172b;border-radius:7px;padding:7px 10px;min-height:30px;font:700 11px/1 system-ui,sans-serif;cursor:pointer}
.ess-fullscreen:hover,.ess-fullscreen:focus-visible{border-color:#9dff37;outline-offset:2px}
.ess-quick{display:flex;flex-direction:column;gap:5px;padding:5px 9px;max-height:105px;overflow-y:auto;border-top:1px solid var(--stage-line)}
.ess-quick:empty{display:none}
.ess-quick button{display:block;min-height:28px;padding:6px 8px;cursor:pointer;text-align:left;white-space:normal;line-height:1.3;font-size:11px;background:var(--stage-bubble);color:var(--stage-text);border:1px solid var(--stage-line);border-radius:7px}
.ess-quick button:hover,.ess-quick button:focus-visible{outline:1px solid var(--stage-brand)}
.ess-hint [data-state="invalid"]{color:#ffc8cb}
.ess-hint [data-state="loading"]{color:#b8f87d}
.elite-site-stage:fullscreen,.elite-site-stage.ess-expanded{background:#020b17;color:#eefaff;padding:16px;display:flex;flex-direction:column;height:100dvh;width:100vw;max-height:100dvh;overflow:hidden;box-sizing:border-box}
.elite-site-stage:fullscreen .ess-controls,.elite-site-stage.ess-expanded .ess-controls{margin:0 0 8px}
.elite-site-stage:fullscreen .ess-frame,.elite-site-stage.ess-expanded .ess-frame{flex:1;min-height:0;display:flex;flex-direction:column}
.elite-site-stage:fullscreen .ess-page,.elite-site-stage.ess-expanded .ess-page{flex:1;height:auto;min-height:0}
.elite-site-stage:fullscreen .ess-chat,.elite-site-stage.ess-expanded .ess-chat{height:min(470px,calc(100dvh - 165px));width:min(365px,calc(100vw - 64px))}
.elite-site-stage:fullscreen .ess-overlay,.elite-site-stage.ess-expanded .ess-overlay{right:25px;bottom:25px}
.elite-site-stage:fullscreen .ess-hint,.elite-site-stage.ess-expanded .ess-hint{padding-bottom:0;flex:none}
.elite-site-stage.ess-expanded{position:fixed!important;inset:0!important;z-index:99999!important}
body.ess-page-expanded{overflow:hidden!important}
@media(max-width:680px){.ess-browserbar{gap:6px;padding:7px}.ess-fullscreen{font-size:10px;padding:7px}.ess-url{font-size:10px}.ess-quick{max-height:94px}}

/* Explicit hidden beats component display:flex/grid; without it the URL iframe is covered by its placeholder. */
.elite-site-stage .ess-controls[hidden],.elite-site-stage .ess-placeholder[hidden],.elite-site-stage .ess-iframe[hidden],.elite-site-stage .ess-hint a[hidden]{display:none!important}
