.chat-launcher{position:fixed;right:24px;bottom:24px;z-index:35;display:flex;align-items:center;gap:11px;min-height:56px;padding:15px 21px;border:1px solid #31506b;border-radius:30px;background:var(--navy);color:#fff;box-shadow:0 8px 28px #08264230;font-size:14px;font-weight:700}.chat-launcher:hover{background:#123b5e}.chat-launcher svg{width:23px;height:23px;stroke-width:1.7}.chat-launcher[aria-expanded=true]{background:#fff;color:var(--navy)}
.chat-panel{position:fixed;inset:auto 24px 94px auto;margin:0;padding:0;width:404px;max-width:calc(100vw - 32px);height:min(690px,calc(100dvh - 120px));max-height:none;z-index:36;overflow:hidden;border:1px solid #d2dce5;border-radius:16px;color:var(--ink);background:#fff;box-shadow:0 16px 65px #08264235;font-size:16px}.chat-panel[open]{display:flex;flex-direction:column}.chat-header{display:flex;align-items:center;gap:12px;background:var(--navy);padding:21px 20px;color:#fff;flex-shrink:0;border-bottom:3px solid var(--red)}.chat-avatar{width:42px;height:42px;border-radius:11px;background:#ffffff15;border:1px solid #ffffff24;display:grid;place-items:center;flex-shrink:0}.chat-avatar svg{width:25px;height:25px}.chat-heading{flex:1;min-width:0}.chat-heading h2{font-size:18px;line-height:1.3;letter-spacing:-.3px;margin:0}.chat-heading p{font-size:12px;color:#c0d1e0;margin:4px 0 0;line-height:1.4}.chat-close{border:0;border-radius:50%;background:#ffffff0c;color:#fff;width:40px;height:40px;flex-shrink:0;display:grid;place-items:center;font-size:28px;font-weight:400;line-height:1;padding:0}.chat-close:hover{background:#ffffff20}.chat-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #e8edf1;padding:5px 18px;color:var(--muted);flex-shrink:0}.chat-toolbar>span{font-size:12px}.chat-toolbar>button{border:0;background:none;color:var(--blue);font-size:12px;text-decoration:underline;text-underline-offset:3px;padding:10px 0;min-height:40px}
.chat-messages{flex:1;min-height:80px;overflow:auto;overscroll-behavior:contain;padding:22px 18px 16px;scroll-behavior:auto;background:#f5f7f9;scrollbar-width:thin}.chat-message{margin-bottom:19px;max-width:100%;overflow-wrap:anywhere}.chat-speaker{display:block;font-size:12px;font-weight:700;color:var(--muted);margin:0 0 7px 2px}.chat-bubble{background:#fff;border:1px solid #e0e7ed;border-radius:2px 14px 14px 14px;padding:14px 15px;font-size:15px;line-height:1.6;white-space:pre-line}.chat-message.user{margin-left:36px}.chat-message.user .chat-speaker{text-align:right;padding-right:3px}.chat-message.user .chat-bubble{background:#e3ecf4;border-color:#d3dfeb;border-radius:14px 2px 14px 14px}.chat-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.chat-action{display:inline-flex;align-items:center;justify-content:center;text-align:left;gap:8px;min-height:42px;max-width:100%;padding:10px 12px;border:1px solid #c7d5e1;border-radius:8px;color:var(--navy);background:#fff;font-size:14px;line-height:1.4;font-weight:600;text-decoration:none}.chat-action:hover{background:#edf3f8;border-color:#7695b0}.chat-action.primary{background:var(--red);border-color:var(--red);color:#fff}.chat-action.primary:hover{background:#bd1b2c}.chat-progress{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 16px;border-top:1px solid #dce5ed;background:#eef3f7;flex-shrink:0}.chat-progress>span{font-size:12px;font-weight:700;color:var(--blue)}.chat-progress>div{display:flex;gap:10px}.chat-progress button{min-height:36px;border:0;background:none;padding:5px 0;font-size:12px;color:var(--blue);text-decoration:underline;text-underline-offset:3px}.chat-form{display:flex;align-items:center;gap:9px;padding:14px 16px 9px;flex-shrink:0;border-top:1px solid #e3e9ee;margin:0;background:#fff}.chat-form input{flex:1;min-width:0;height:46px;margin:0;font-size:16px;padding:12px;border:1px solid #cdd8e2;background:#f9fbfc;border-radius:8px}.chat-form button{width:44px;height:46px;display:grid;place-items:center;border:0;border-radius:8px;background:var(--red);color:#fff;padding:0;flex-shrink:0}.chat-form button:disabled{background:#dce4eb;color:#7b8d9d;cursor:default}.chat-form button:not(:disabled):hover{background:#bd1b2c}.chat-form svg{width:21px;height:21px}.chat-disclosure{font-size:12px;line-height:1.5;color:var(--muted);margin:0;padding:0 18px 13px;flex-shrink:0}.chat-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.chat-summary{border-top:1px solid #dce4eb;margin:13px 0 0;padding-top:3px;white-space:normal}.chat-summary>div{display:flex;justify-content:space-between;gap:16px;padding:8px 0;border-bottom:1px solid #edf1f5;font-size:14px;line-height:1.5}.chat-summary dt{color:var(--muted);font-weight:400}.chat-summary dd{margin:0;text-align:right;font-weight:700}.chat-panel:focus-visible,.chat-messages:focus-visible{outline-offset:-3px}
@media(max-width:620px){.chat-launcher{right:16px;bottom:16px;padding:14px 18px;min-height:54px;font-size:14px}.chat-panel{right:12px;bottom:83px;width:calc(100vw - 24px);max-width:none;height:min(640px,calc(100dvh - 98px));border-radius:14px}.chat-header{padding:17px 16px;gap:10px}.chat-heading h2{font-size:17px}.chat-messages{padding:18px 14px 13px}.chat-bubble{font-size:15px;padding:12px}.chat-toolbar{padding-inline:15px}.chat-toolbar>span{font-size:12px}.chat-form{padding:12px 13px 8px}.chat-disclosure{padding:0 15px 11px}.chat-progress{padding-inline:14px}.chat-message.user{margin-left:24px}}
@media(max-width:370px){.chat-heading h2{font-size:16px}.chat-avatar{width:35px;height:35px}.chat-header{padding:15px 13px;gap:8px}.chat-toolbar>span{max-width:125px;line-height:1.4}.chat-action{font-size:14px;padding:9px 10px}.chat-progress{flex-wrap:wrap;gap:0}.chat-progress>div{margin-left:auto}}
@media(max-height:520px){.chat-panel{bottom:12px;height:calc(100dvh - 24px)}.chat-launcher[aria-expanded=true]{visibility:hidden}.chat-header{padding-block:11px}.chat-toolbar{padding-block:0}.chat-disclosure{padding-bottom:8px}.chat-form{padding-top:9px}.chat-messages{padding-top:12px}}
.chat-message.team .chat-bubble{border-left:3px solid var(--red);background:#fff}.chat-message.team .chat-speaker{color:var(--navy)}.chat-time{display:block;font-size:11px;color:var(--muted);margin:6px 2px 0}.chat-message.user .chat-time{text-align:right}.chat-action:disabled,.chat-toolbar button:disabled{opacity:.6;cursor:wait}

/* Slightly smaller conversation type, with comfortable line spacing. */
.chat-bubble{font-size:14px;line-height:1.7}.chat-action{font-size:13px}.chat-summary>div{font-size:13px}.chat-heading h2{font-size:17px}.chat-form input{font-size:16px}

/* Fixed customer contact buttons: on-site assistant and TodoMex WhatsApp. */
.chat-launcher{right:78px;bottom:max(22px,env(safe-area-inset-bottom));gap:0;padding:0;min-height:48px;border:0;border-radius:12px;background:transparent;color:var(--navy);box-shadow:none;isolation:isolate;transition:transform .18s ease}.chat-launcher:hover,.chat-launcher[aria-expanded=true]{background:transparent;color:var(--navy)}.chat-launcher:hover{transform:translateY(-3px)}.chat-robot{display:block;width:48px;height:48px;object-fit:contain;position:relative;z-index:1;filter:drop-shadow(0 3px 4px #08264220)}.chat-invitation{position:relative;display:flex;flex-direction:column;align-items:start;gap:2px;margin-right:-5px;padding:7px 9px;background:#fff;border:1px solid #d2dce5;border-radius:13px 13px 3px 13px;box-shadow:0 5px 20px #08264218;white-space:nowrap}.chat-invitation strong{font-size:14px;line-height:1.3}.chat-invitation small{display:none}.chat-launcher[aria-expanded=true] .chat-invitation{border-color:#9eafbf}.chat-avatar{width:45px;height:45px;border:0;background:transparent}.chat-avatar img{width:48px;height:48px;object-fit:contain;display:block}.whatsapp-launcher{position:fixed;right:24px;bottom:max(24px,env(safe-area-inset-bottom));width:44px;height:44px;display:grid;place-items:center;border-radius:50%;border:0;background:transparent;box-shadow:none;z-index:35;transition:background .18s ease,transform .18s ease;text-decoration:none}.whatsapp-launcher>img{box-sizing:border-box;width:38px;height:38px;padding:8px;display:block;border:1px solid #fff;border-radius:50%;background:#25d366;box-shadow:0 4px 16px #075e5433}.whatsapp-launcher:hover{background:transparent;transform:translateY(-2px)}.whatsapp-launcher:hover>img{background:#18b958}.whatsapp-label{position:absolute;right:0;bottom:calc(100% + 9px);border-radius:6px;padding:8px 11px;font-size:12px;font-weight:700;color:#fff;background:#075e54;pointer-events:none;opacity:0;transition:opacity .15s ease}.whatsapp-launcher:hover .whatsapp-label,.whatsapp-launcher:focus-visible .whatsapp-label{opacity:1}.chat-panel{bottom:calc(110px + env(safe-area-inset-bottom));height:min(690px,calc(100dvh - 132px - env(safe-area-inset-bottom)))}footer{padding-bottom:110px}
@media(max-width:620px){.chat-launcher{right:70px;bottom:max(18px,env(safe-area-inset-bottom));min-height:44px;padding:0}.chat-robot{width:44px;height:44px}.chat-invitation{padding:6px 8px}.chat-invitation strong{font-size:13px}.chat-invitation small{font-size:12px}.whatsapp-launcher{right:16px;bottom:max(18px,env(safe-area-inset-bottom));width:44px;height:44px}.whatsapp-launcher>img{width:36px;height:36px;padding:7px}.chat-panel{bottom:calc(96px + env(safe-area-inset-bottom));height:min(640px,calc(100dvh - 112px - env(safe-area-inset-bottom)))}.chat-avatar{width:40px;height:40px}.chat-avatar img{width:43px;height:43px}footer{padding-bottom:106px}}
@media(max-height:520px){.chat-panel{bottom:88px;height:calc(100dvh - 100px)}.chat-launcher[aria-expanded=true]{visibility:visible}.chat-messages{min-height:40px}.chat-header{padding-block:9px}.chat-heading p{display:none}.chat-avatar{width:32px;height:32px}.chat-avatar img{width:36px;height:36px}.chat-disclosure{font-size:11px;padding-bottom:6px}.chat-toolbar>button{min-height:32px;padding-block:6px}.chat-form{padding-top:8px;padding-bottom:6px}}
@media(prefers-reduced-motion:reduce){.chat-launcher,.whatsapp-launcher,.whatsapp-label{transition:none}.chat-launcher:hover,.whatsapp-launcher:hover{transform:none}}
