.ia-up-launcher{position:fixed;z-index:2147482500;top:72px;left:50%;transform:translateX(-50%);width:min(390px,calc(100vw - 24px));padding:12px;border:1px solid rgba(89,225,255,.35);border-radius:20px;background:rgba(2,10,25,.78);backdrop-filter:blur(20px);box-shadow:0 24px 70px rgba(0,0,0,.48);color:#ecfcff;display:none;grid-template-columns:1fr 1fr;gap:10px}.ia-up-launcher.is-open{display:grid}.ia-up-launcher button{min-height:70px;border:1px solid rgba(89,225,255,.28);border-radius:15px;background:linear-gradient(145deg,rgba(8,42,67,.94),rgba(3,18,37,.96));color:#effcff;font-weight:800;cursor:pointer}.ia-up-launcher button span,.ia-up-launcher button small{display:block}.ia-up-launcher button small{margin-top:5px;color:#8fb9ca;font-weight:500}
.ia-up-dialog{position:fixed;z-index:2147483000;inset:0;display:none;place-items:center;padding:14px;background:rgba(0,5,15,.38);backdrop-filter:blur(9px)}.ia-up-dialog.is-open{display:grid}.ia-up-shell{width:min(720px,100%);height:min(760px,calc(100dvh - 28px));display:grid;grid-template-rows:auto auto 1fr auto;border:1px solid rgba(82,222,255,.38);border-radius:24px;overflow:hidden;background:linear-gradient(150deg,rgba(2,13,29,.96),rgba(5,34,51,.91));box-shadow:0 30px 100px rgba(0,0,0,.62);color:#edfaff}.ia-up-head{display:flex;align-items:center;justify-content:space-between;padding:17px 19px;border-bottom:1px solid rgba(255,255,255,.1)}.ia-up-head h2{margin:0;font-size:1.15rem}.ia-up-head p{margin:4px 0 0;color:#8eb8c9;font-size:.82rem}.ia-up-close{border:0;background:transparent;color:#fff;font-size:1.7rem;cursor:pointer}.ia-up-policy{padding:9px 18px;color:#9fc3d2;font-size:.78rem;background:rgba(6,182,212,.08)}.ia-up-messages{overflow:auto;padding:18px;display:flex;flex-direction:column;gap:12px}.ia-up-message{max-width:82%;padding:11px 13px;border-radius:16px;background:rgba(255,255,255,.09);line-height:1.45}.ia-up-message.is-user{align-self:flex-end;background:linear-gradient(135deg,#087ea4,#07536f)}.ia-up-message.is-agent{align-self:flex-start;border:1px solid rgba(92,226,255,.2)}.ia-up-message img{display:block;max-width:100%;max-height:260px;margin-top:8px;border-radius:10px}.ia-up-message time{display:block;margin-top:6px;opacity:.65;font-size:.68rem}.ia-up-empty{text-align:center;margin:auto;color:#9fc3d2;max-width:420px}.ia-up-compose{display:grid;grid-template-columns:auto 1fr auto;gap:9px;padding:13px;border-top:1px solid rgba(255,255,255,.1)}.ia-up-compose textarea{min-height:48px;max-height:130px;resize:vertical;border:1px solid rgba(94,225,255,.25);border-radius:13px;background:rgba(0,7,18,.75);color:#fff;padding:12px}.ia-up-compose button,.ia-up-image-label{display:grid;place-items:center;min-width:48px;border:0;border-radius:13px;background:#22d3ee;color:#00202b;font-weight:900;cursor:pointer}.ia-up-image-label input{display:none}.ia-up-status{position:absolute;left:50%;bottom:8px;transform:translateX(-50%);padding:6px 12px;border-radius:20px;background:#071526;color:#bfefff;font-size:.72rem;display:none}.ia-up-status.is-visible{display:block}
.ia-up-shell{display:flex;flex-direction:column}.ia-up-messages{flex:1;min-height:0}.ia-up-threadbar{display:grid;grid-template-columns:1fr auto;gap:8px;padding:10px 18px;border-bottom:1px solid rgba(255,255,255,.08)}.ia-up-threadbar select,.ia-up-threadbar button{min-height:36px;border:1px solid rgba(94,219,255,.28);border-radius:9px;background:rgba(3,18,34,.82);color:#dffaff;padding:0 10px}.ia-up-threadbar button{cursor:pointer;font-weight:700}.ia-up-geo{align-self:flex-start;margin:10px 18px 0;padding:7px 11px;border:1px solid rgba(94,219,255,.3);border-radius:8px;background:rgba(5,24,38,.58);color:#bfefff;cursor:pointer;font-size:12px}
.ia-up-threadbar{grid-template-columns:minmax(120px,1fr) auto auto}.ia-up-reset{border-color:rgba(255,151,151,.32)!important;color:#ffd1d1!important}
@media(max-width:600px){.ia-up-launcher{top:62px}.ia-up-dialog{padding:0}.ia-up-shell{height:100dvh;border-radius:0}.ia-up-message{max-width:90%}.ia-up-compose{grid-template-columns:44px 1fr 52px}.ia-up-threadbar{grid-template-columns:1fr 1fr}.ia-up-threadbar select{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){.ia-up-dialog,.ia-up-launcher{scroll-behavior:auto}}

/* Surface vitrée de la conversation : la transparence reste visuelle sans réduire la lecture. */
.ia-up-dialog{background:radial-gradient(circle at 50% 15%,rgba(59,229,255,.12),transparent 38%),rgba(0,6,20,.26);backdrop-filter:blur(16px) saturate(124%)}
.ia-up-shell{position:relative;border:1px solid transparent;border-radius:27px;background:linear-gradient(148deg,rgba(5,22,43,.78),rgba(10,35,58,.63) 56%,rgba(32,21,75,.61)) padding-box,linear-gradient(132deg,rgba(192,255,255,.82),rgba(40,225,255,.42) 42%,rgba(160,108,255,.55),rgba(255,255,255,.22)) border-box;box-shadow:0 30px 100px rgba(0,0,0,.52),0 0 0 1px rgba(149,243,255,.08) inset;backdrop-filter:blur(26px) saturate(135%)}
.ia-up-shell::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;border-radius:inherit;background:linear-gradient(120deg,rgba(255,255,255,.12),transparent 22%,transparent 72%,rgba(86,228,255,.12));opacity:.78}.ia-up-shell::after{content:"";position:absolute;z-index:0;pointer-events:none;inset:1px;border-radius:inherit;background:radial-gradient(circle at 88% 10%,rgba(74,237,255,.18),transparent 25%),radial-gradient(circle at 8% 88%,rgba(104,81,255,.14),transparent 30%);mix-blend-mode:screen}.ia-up-shell>*{position:relative;z-index:1}
.ia-up-head{background:linear-gradient(90deg,rgba(255,255,255,.08),rgba(79,229,255,.035));border-bottom-color:rgba(210,255,255,.17)}.ia-up-head h2{letter-spacing:.02em;text-shadow:0 0 20px rgba(88,235,255,.32)}.ia-up-threadbar{background:rgba(4,19,39,.31);border-bottom-color:rgba(201,250,255,.13)}.ia-up-policy{background:linear-gradient(90deg,rgba(9,195,226,.14),rgba(87,72,255,.09));color:#c7eaf5}.ia-up-messages{background:linear-gradient(180deg,rgba(1,11,25,.08),rgba(1,11,25,.2))}.ia-up-message{border:1px solid rgba(199,251,255,.16);background:rgba(214,250,255,.1);box-shadow:inset 0 1px rgba(255,255,255,.12),0 6px 18px rgba(0,0,0,.12)}.ia-up-message.is-user{border-color:rgba(111,243,255,.36);background:linear-gradient(135deg,rgba(5,151,194,.78),rgba(49,74,170,.7))}.ia-up-message.is-agent{background:linear-gradient(135deg,rgba(24,69,95,.54),rgba(22,45,84,.44));border-color:rgba(132,238,255,.31)}.ia-up-compose{background:rgba(2,14,31,.36);border-top-color:rgba(213,255,255,.16)}.ia-up-compose textarea{border-color:rgba(131,239,255,.38);background:rgba(0,13,30,.47);box-shadow:inset 0 1px rgba(255,255,255,.06)}.ia-up-compose button,.ia-up-image-label{border:1px solid rgba(189,254,255,.78);background:linear-gradient(135deg,rgba(97,238,255,.96),rgba(88,158,255,.9));box-shadow:0 8px 20px rgba(21,208,250,.18)}.ia-up-close{width:38px;height:38px;border:1px solid rgba(207,255,255,.42);border-radius:13px;background:rgba(4,29,51,.38);box-shadow:inset 0 1px rgba(255,255,255,.1)}
@media(max-width:600px){.ia-up-dialog{padding:8px}.ia-up-shell{height:calc(100dvh - 16px);border-radius:22px}.ia-up-head{padding:15px}.ia-up-messages{padding:14px}.ia-up-compose{padding:11px}.ia-up-message{max-width:91%}}

/* IA-UP autonome reste visible même si le dernier onglet mobile du centre était Contacts. */
body.ia-up-standalone #ia-up-dialog.is-open{visibility:visible !important;pointer-events:auto !important;display:grid !important}

.ia-up-launcher button .unipay-ia-up-mark.ia-up-launcher-icon{--unipay-ia-up-mark-size:28px;display:block;width:28px;height:28px;margin:0 auto 3px}
.ia-up-providers .unipay-ia-up-mark{--unipay-ia-up-mark-size:23px;width:23px;height:23px}
.ia-up-head h2{display:flex;align-items:center;gap:8px}
.ia-up-head h2 .up-ia-brand{--unipay-ia-up-mark-size:1.45em;width:1.45em;height:1.45em}

/* Shared compact action palette, independent of page typography and page zoom. */
html body #ia-up-launcher { box-sizing:border-box; top:calc(var(--unipay-header-row-top,10px) + var(--unipay-header-row-height,44px) + 8px); width:min(320px,calc(100vw - 20px)); max-width:calc(100vw - 20px); padding:7px; gap:6px; grid-template-columns:repeat(2,minmax(0,1fr)); border:1px solid #55c9ed99; border-radius:17px; background:linear-gradient(120deg,#071a2fee,#141b3af5); box-shadow:0 12px 32px #0005,inset 0 1px #bcefff33; backdrop-filter:none; -webkit-backdrop-filter:none; isolation:isolate; }
html body #ia-up-launcher::before { content:""; position:absolute; top:-1px; left:19%; right:19%; height:2px; background:linear-gradient(90deg,transparent,#56e8ff,#a08bff,transparent); pointer-events:none; }
html body #ia-up-launcher button { box-sizing:border-box; position:relative; min-width:0; min-height:58px; padding:8px; display:grid; grid-template-columns:30px minmax(0,1fr); grid-template-rows:auto auto; align-items:center; align-content:center; justify-items:start; gap:2px 8px; border:1px solid #439eb25c; border-radius:11px; background:linear-gradient(130deg,#12405780,#07172f); color:#eafbff; text-align:left; font:600 12px/1.2 'Segoe UI',sans-serif; box-shadow:inset 0 1px #a0edff14; }
html body #ia-up-launcher button:last-child { background:linear-gradient(130deg,#30396680,#09182e); border-color:#9c96dd55; }
html body #ia-up-launcher button:hover,html body #ia-up-launcher button:focus-visible { border-color:#80e5ff; box-shadow:inset 0 0 15px #2bcdee20; }
html body #ia-up-launcher button:focus-visible { outline:2px solid #80e5ff; outline-offset:2px; }
html body #ia-up-launcher button>span:not(.ia-up-launcher-icon) { grid-column:2; white-space:nowrap; font-size:12px; font-weight:650; }
html body #ia-up-launcher button>small { grid-column:2; margin:0; color:#9cc3d7; font-size:9px; font-weight:400; line-height:1.2; }
html body #ia-up-launcher button .ia-up-launcher-icon,html body #ia-up-launcher button .unipay-ia-up-mark.ia-up-launcher-icon { --unipay-ia-up-mark-size:28px; grid-row:1 / 3; grid-column:1; display:block; position:relative; width:28px; height:28px; margin:0; filter:none; }
html body #ia-up-launcher [data-ia-up-action="fullscreen"] .ia-up-launcher-icon { font-size:0; border:1px solid #63d9eb80; border-radius:8px; background:#133c54; box-shadow:inset 0 0 10px #31c7dd17; }
html body #ia-up-launcher [data-ia-up-action="fullscreen"] .ia-up-launcher-icon::after { content:""; position:absolute; inset:5px; background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c6f8ff' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M8 3H3v5m13-5h5v5M3 16v5h5m13-5v5h-5'/%3E%3C/svg%3E"); }
@media(max-width:680px) {
 html body #ia-up-launcher { width:min(284px,calc(100vw - 16px)); max-width:calc(100vw - 16px); padding:5px; gap:5px; border-radius:14px; }
 html body #ia-up-launcher button { min-height:46px; padding:7px; grid-template-columns:25px minmax(0,1fr); grid-template-rows:1fr; gap:7px; border-radius:9px; }
 html body #ia-up-launcher button>span:not(.ia-up-launcher-icon) { font-size:11px; }
 html body #ia-up-launcher button>small { display:none; }
 html body #ia-up-launcher button .ia-up-launcher-icon,html body #ia-up-launcher button .unipay-ia-up-mark.ia-up-launcher-icon { --unipay-ia-up-mark-size:25px; grid-row:1; width:25px; height:25px; }
}

/* Compact dimensions override generic portal dialog sizing. */
html[class][class] body #ia-up-launcher { width:min(320px,calc(100vw - 20px)) !important; min-width:0 !important; max-width:calc(100vw - 20px) !important; left:50% !important; right:auto !important; height:auto !important; bottom:auto !important; }
@media(max-width:680px) { html[class][class] body #ia-up-launcher { width:min(284px,calc(100vw - 16px)) !important; min-width:0 !important; max-width:calc(100vw - 16px) !important; } }
