/* One concierge, one contact menu. No modal or conversation opens on arrival. */
.zen-support-dock{position:fixed;right:24px;bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:80;display:flex;align-items:center;gap:12px;max-width:calc(100vw - 32px)}
.zen-support-dock[hidden],.zen-assistant-greeting[hidden],.zen-help-tabs[hidden],.zen-assistant-portrait[hidden],.zen-help-direct[hidden],.zen-help-intro[hidden]{display:none!important}
.zen-support-dock .zen-help-launcher{position:static;min-height:48px;padding:13px 19px;font-size:15px}
.zen-assistant-avatar{position:relative;display:block;flex:0 0 68px;width:68px;height:68px;padding:0;border:2px solid #b59a68;border-radius:50%;background:#f3f0e9;box-shadow:0 8px 30px #45454526;cursor:pointer;overflow:visible;touch-action:manipulation}
.zen-assistant-avatar>img{display:block;width:100%;height:100%;object-fit:contain;border-radius:50%;overflow:hidden}
.zen-avatar-badge{position:absolute;right:-3px;bottom:-2px;border:2px solid #fff;border-radius:99px;background:#76582d;color:#fff;font:600 10px/1.3 system-ui,sans-serif;padding:3px 5px;letter-spacing:.03em}
.zen-assistant-greeting{position:absolute;right:0;bottom:84px;width:276px;max-width:calc(100vw - 40px);border:1px solid #d7c7a9;border-radius:22px 22px 5px 22px;background:#fffdf9;box-shadow:0 10px 36px #45454520;display:grid;grid-template-columns:1fr 44px;align-items:start}
.zen-greeting-open{font-family:inherit;font-size:15px;line-height:1.6;text-align:left;color:#4d4d4d;background:transparent;border:0;cursor:pointer;padding:19px 0 19px 20px;border-radius:22px;min-height:56px}
.zen-greeting-close{font:inherit;font-size:23px;line-height:1;background:transparent;color:#746b5e;border:0;cursor:pointer;width:44px;height:44px;border-radius:50%}
.zen-assistant-avatar:hover{border-color:#8a6b36;box-shadow:0 8px 30px #76582d35}
.zen-assistant-avatar:focus-visible,.zen-greeting-open:focus-visible,.zen-greeting-close:focus-visible{outline:3px solid #8a6b36;outline-offset:4px}
.zen-help-panel[data-entry=assistant]{bottom:calc(20px + env(safe-area-inset-bottom,0px));max-height:calc(100dvh - 40px - env(safe-area-inset-bottom,0px));width:420px;padding:0;border-radius:25px}
.zen-help-panel[data-entry=assistant] .zen-help-head{letter-spacing:0;gap:12px;align-items:center;padding-bottom:16px;border-bottom:1px solid #e6e1d8}
.zen-assistant-portrait{background:#f3f0e9;border-radius:50%;border:1px solid #d0bc93;object-fit:contain;flex:0 0 44px}
.zen-help-panel[data-entry=assistant] .zen-help-head>div{flex:1}
.zen-assistant-identity{display:block;margin-top:4px;color:#777;font-size:12px;line-height:1.4;font-weight:400;letter-spacing:.01em}
.zen-help-panel[data-entry=assistant] .zen-chat{margin-top:14px}
.zen-help-panel .zen-chat-assistant{background:#f3f0e9;border-radius:16px 16px 16px 3px}
.zen-help-panel .zen-chat-user{background:#ededeb;border-radius:16px 16px 3px 16px}
.zen-chat-compose .zen-chat-consent{display:grid;grid-template-columns:18px 1fr;gap:10px;align-items:start;line-height:1.55;font-size:13px;font-weight:400;padding:6px 0;color:#666}
.zen-chat-consent input{width:17px;height:17px;margin:2px 0 0;accent-color:#76582d}
.zen-chat-about{margin-top:14px;font-size:12px;color:#777;line-height:1.6}
.zen-chat-about summary{cursor:pointer;min-height:36px;display:list-item;align-content:center}
.zen-chat-about .zen-capture-small,.zen-chat-about a{font-size:12px}
.zen-help-panel .zen-chat-compose>.zen-capture-primary{background:#76582d;border-color:#76582d;border-radius:999px;min-height:46px}
.zen-help-panel .zen-chat-compose textarea{border-radius:14px}
@media(max-width:600px){.zen-support-dock{right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));gap:10px}.zen-assistant-avatar{flex-basis:62px;width:62px;height:62px}.zen-assistant-greeting{bottom:78px;width:260px}.zen-help-panel[data-entry=assistant]{right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px - env(safe-area-inset-bottom,0px));padding:0}.zen-chat-log{max-height:32dvh}}

.zen-help-panel .zen-chat-log{overflow:auto;max-height:min(280px,32dvh);min-height:0;overscroll-behavior:contain}
.zen-help-panel .zen-chat-compose>.zen-capture-primary{color:#fff}
.zen-assistant-guide{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 12px}
.zen-assistant-guide[hidden],.zen-voice-status[hidden]{display:none!important}
.zen-assistant-guide a{display:inline-flex;align-items:center;font-size:12px;line-height:1.4;min-height:38px;padding:8px 11px;border:1px solid #d7c7a9;border-radius:999px;background:#f8f5ee;text-decoration:none}
.zen-voice-toggle{font:inherit;font-size:13px;background:transparent;color:#76582d;border:1px solid #d7c7a9;padding:9px 13px;min-height:42px;border-radius:999px;cursor:pointer;display:inline-flex;align-items:center;gap:8px}
.zen-voice-toggle:before{content:'◖))';font-size:15px;font-weight:600;letter-spacing:-2px}
.zen-voice-toggle[aria-pressed=true]{background:#76582d;color:white}
.zen-voice-status{font-size:12px;line-height:1.55;color:#6f6352}
.zen-guide-links{display:flex;flex-wrap:wrap;gap:9px 16px;margin:0;padding:8px 2px}
.zen-guide-links a{min-height:38px;display:inline-flex;align-items:center;line-height:1.5}
.zen-guided-section{scroll-margin-top:110px;outline:2px solid #b59a68;outline-offset:12px;border-radius:16px}
.zen-portrait-wrap{display:block;position:relative;flex:0 0 44px;width:44px;height:44px;border-radius:50%;overflow:hidden}
.zen-portrait-wrap[hidden]{display:none!important}
.zen-avatar-motion{display:block;position:absolute;inset:0;border-radius:50%;background:#f3f0e9 url('/assets/zen-assistant-sprite.webp') 0 0/400% 200% no-repeat;animation:zen-avatar-idle 9s steps(1,end) infinite;pointer-events:none}
.zen-avatar-badge{z-index:1}
.is-speaking .zen-avatar-motion{animation:zen-avatar-talk .95s steps(1,end) infinite}
@keyframes zen-avatar-idle{0%,35%,39%,80%,100%{background-position:0 0}36%,38%{background-position:33.3333% 0}62%,70%{background-position:66.6667% 0}74%,79%{background-position:100% 0}}
@keyframes zen-avatar-talk{0%,100%{background-position:0 100%}20%{background-position:33.3333% 100%}44%{background-position:66.6667% 100%}68%{background-position:100% 100%}84%{background-position:0 100%}}
@media(prefers-reduced-motion:reduce){.zen-avatar-motion,.is-speaking .zen-avatar-motion{animation:none;background-position:0 0}}

/* The avatar is the only floating entry; it grows as the visitor explores. */
.zen-support-dock{--zen-avatar-size:68px;display:block}
.zen-support-dock.is-expanded{--zen-avatar-size:104px}
.zen-support-dock .zen-assistant-avatar{width:var(--zen-avatar-size);height:var(--zen-avatar-size);transition:width .3s ease,height .3s ease,box-shadow .3s ease}
.zen-support-dock .zen-assistant-greeting{bottom:calc(var(--zen-avatar-size) + 16px)}
.zen-avatar-offers{position:absolute;right:0;bottom:calc(var(--zen-avatar-size) + 16px);width:310px;max-width:calc(100vw - 32px);border:1px solid #d7c7a9;border-radius:24px 24px 6px 24px;background:#fffdf9;box-shadow:0 12px 40px #45454522;padding:22px;box-sizing:border-box;color:#4d4d4d}
.zen-avatar-offers[hidden],.zen-avatar-offers a[hidden]{display:none!important}
.zen-avatar-offers h2{font:400 22px/1.2 Georgia,serif;letter-spacing:-.02em;margin:0 24px 10px 0;color:#4d4d4d}
.zen-avatar-offers>p{font-size:14px;line-height:1.6;margin:0 0 16px;color:#666}
.zen-offers-close{position:absolute;top:6px;right:7px;font:400 23px/1 system-ui,sans-serif;width:44px;height:44px;border:0;border-radius:50%;background:transparent;color:#746b5e;cursor:pointer}
.zen-avatar-offer-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.zen-avatar-offer-actions button,.zen-avatar-offer-actions a{font-weight:500;font-family:inherit;font-size:13px;line-height:1.45;display:flex;justify-content:center;align-items:center;gap:7px;min-height:46px;padding:10px 12px;box-sizing:border-box;border:1px solid #c9b58f;border-radius:15px;background:#f6f2ea;color:#624b25;text-align:center;text-decoration:none;cursor:pointer}
.zen-avatar-offer-actions .zen-avatar-ask,.zen-avatar-offer-actions .zen-avatar-quote{grid-column:1/-1}
.zen-avatar-offer-actions .zen-avatar-ask{background:#76582d;border-color:#76582d;color:#fff}
.zen-avatar-offer-actions .zen-channel-link{font-size:12px}
.zen-avatar-offer-actions :focus-visible,.zen-offers-close:focus-visible{outline:3px solid #8a6b36;outline-offset:3px}
.zen-avatar-offer-actions .zen-contact-icon{width:18px;height:18px;flex-basis:18px}
@media(max-width:600px){.zen-support-dock{--zen-avatar-size:62px}.zen-support-dock.is-expanded{--zen-avatar-size:86px}.zen-avatar-offers{width:282px;max-width:calc(100vw - 32px);padding:20px}.zen-avatar-offers h2{font-size:21px}.zen-avatar-offers>p{font-size:13px}}
@media(prefers-reduced-motion:reduce){.zen-support-dock .zen-assistant-avatar{transition:none}}

/* Alma's open conversation reuses the same log, composer and voice controls. */
.zen-avatar-offers{width:340px;padding:16px 0 0;max-height:min(550px,calc(100dvh - var(--zen-avatar-size) - 48px));display:flex;flex-direction:column;overflow:hidden}
.zen-avatar-offers>h2{flex:0 0 auto;font-family:inherit;font-size:20px;line-height:1.25;font-weight:600;letter-spacing:0;margin:0 145px 3px 17px}
.zen-avatar-offers>.zen-inline-identity{flex:0 0 auto;margin:0 125px 12px 17px;font-size:11px;line-height:1.5;color:#777}
.zen-inline-assistant{min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 15px 12px}
.zen-chat.is-inline{margin:0;position:static}
.is-inline .zen-voice-toggle{position:absolute;top:14px;right:44px;min-height:34px;max-width:116px;padding:5px 9px;font-size:12px;background:#fffdf9}
.is-inline .zen-voice-toggle[aria-pressed=true]{background:#76582d}
.is-inline .zen-voice-status{margin:0 0 8px;font-size:12px}
.is-inline .zen-chat-log{max-height:145px;overflow:auto;gap:8px;padding:4px 0}
.is-inline .zen-chat-message{font-size:14px;line-height:1.55;padding:10px 11px}
.is-inline .zen-chat-assistant{background:#f3f0e9;border-radius:14px 14px 14px 3px}
.is-inline .zen-chat-compose{display:grid;gap:8px;margin-top:8px;padding:0;background:transparent}
.is-inline .zen-chat-compose>label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.is-inline .zen-chat-compose textarea{font-size:16px;border-radius:14px;height:64px;min-height:64px;max-height:140px}
.is-inline .zen-chat-compose>.zen-capture-primary{background:#76582d;border-color:#76582d;color:white;min-height:44px;border-radius:999px}
.zen-chat-send-notice{font-size:11px;line-height:1.55;margin:0;color:#777}
.zen-chat-send-notice a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.zen-chat-guide-details,.zen-chat-team-details{margin-top:8px;font-size:12px;line-height:1.6;color:#777}
.zen-chat-guide-details summary,.zen-chat-team-details summary{cursor:pointer;min-height:32px;align-content:center}
.zen-chat-guide-details .zen-assistant-guide{padding-top:6px}
.zen-chat-team-details .zen-avatar-offer-actions{padding-top:8px}
.is-inline .zen-chat-about{margin-top:8px;font-size:12px}
.is-inline .zen-chat-about summary{min-height:30px}
.zen-avatar-offers .zen-chat :focus-visible{outline:3px solid #8a6b36;outline-offset:2px}
@media(max-width:600px){.zen-avatar-offers{width:320px;max-width:calc(100vw - 32px);padding:15px 0 0}.zen-avatar-offers>h2{font-size:19px}.zen-avatar-offers>.zen-inline-identity{font-size:10px;margin-right:118px}.zen-inline-assistant{padding-inline:13px}.is-inline .zen-voice-toggle{font-size:11px;max-width:107px}}

/* A single, larger Alma portrait becomes the visual focus of the conversation. */
.zen-support-dock{--zen-avatar-size:88px}
.zen-support-dock.is-expanded{--zen-avatar-size:116px}
.zen-support-dock.has-conversation{width:340px;max-width:calc(100vw - 32px)}
.has-conversation .zen-avatar-offers{--zen-portrait-height:208px;bottom:0;padding:0;max-height:min(700px,calc(100dvh - 40px));border-radius:28px}
.zen-alma-portrait-stage{position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 var(--zen-portrait-height);height:var(--zen-portrait-height);overflow:hidden;background:radial-gradient(ellipse at 50% 70%,#eadfc940,transparent 72%),linear-gradient(#f7f7f5,#fffdf9)}
.zen-alma-portrait-stage .zen-assistant-avatar{flex:0 0 auto;width:200px;height:200px;border:0;border-radius:38% 38% 24% 24%;background:transparent;box-shadow:none;transition:none}
.zen-alma-portrait-stage .zen-assistant-avatar>img,.zen-alma-portrait-stage .zen-avatar-motion{border-radius:38% 38% 24% 24%;background-color:transparent}
.zen-avatar-motion{background-image:url('/assets/zen-assistant-sprite-2x.webp')}
@media(max-width:600px){
 .zen-support-dock:not(.has-conversation) .zen-avatar-motion{background-image:url('/assets/zen-assistant-sprite.webp')}
 body:has(.zen-valencia-photo) .zen-support-dock:not(.has-conversation):not(.is-expanded) .zen-avatar-motion{display:none}
}
.zen-alma-portrait-stage .zen-avatar-badge{right:13px;bottom:6px}
.has-conversation.is-expanded .zen-avatar-offers{--zen-portrait-height:228px}
.is-expanded .zen-alma-portrait-stage .zen-assistant-avatar{width:220px;height:220px}
.has-conversation .zen-avatar-offers>h2{font-size:20px;line-height:1.25;margin:10px 140px 3px 17px}
.has-conversation .zen-inline-identity{margin-bottom:10px}
.has-conversation .is-inline .zen-voice-toggle{top:calc(var(--zen-portrait-height) + 10px);right:16px}
.is-inline .zen-chat-message{font-size:16px;line-height:1.55}
.zen-chat-options{font-size:12px;line-height:1.6;color:#777;margin-top:6px}
.zen-chat-options>summary{cursor:pointer;min-height:32px;align-content:center}
.zen-chat-options[open]{padding-bottom:6px}
.zen-chat-options .zen-chat-about{margin-top:8px}
.zen-help-panel[data-entry=assistant] .zen-portrait-wrap{width:84px;height:84px;flex-basis:84px;border-radius:24px}
.zen-help-panel[data-entry=assistant] .zen-assistant-portrait{width:100%;height:100%;border-radius:24px}
.zen-help-panel .zen-portrait-wrap .zen-avatar-motion{border-radius:24px}
@media(max-width:600px){
 .zen-support-dock{--zen-avatar-size:78px}.zen-support-dock.is-expanded{--zen-avatar-size:100px}
 .zen-support-dock.has-conversation{width:320px}
 .has-conversation .zen-avatar-offers{--zen-portrait-height:176px;max-height:calc(100dvh - 32px);padding:0}
 .zen-alma-portrait-stage .zen-assistant-avatar{width:168px;height:168px}
 .has-conversation.is-expanded .zen-avatar-offers{--zen-portrait-height:192px}
 .is-expanded .zen-alma-portrait-stage .zen-assistant-avatar{width:184px;height:184px}
 .has-conversation .zen-avatar-offers>h2{font-size:19px}
}
@media(max-height:640px){
 .has-conversation .zen-avatar-offers{--zen-portrait-height:132px}
 .zen-alma-portrait-stage .zen-assistant-avatar{width:124px;height:124px}
 .has-conversation.is-expanded .zen-avatar-offers{--zen-portrait-height:132px}
 .is-expanded .zen-alma-portrait-stage .zen-assistant-avatar{width:124px;height:124px}
}

/* Direct channels sit immediately after the conversation text. */
.zen-chat>.zen-avatar-offer-actions{display:grid;grid-template-columns:44px 44px 44px minmax(0,1fr);gap:6px;margin:8px 0 10px;flex:0 0 auto}
.zen-chat>.zen-avatar-offer-actions a{position:relative;width:44px;height:44px;min-height:44px;padding:0;border-radius:13px}
.zen-chat>.zen-avatar-offer-actions a .zen-channel-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.zen-chat>.zen-avatar-offer-actions .zen-contact-icon{width:21px;height:21px;flex-basis:21px}
.zen-chat>.zen-avatar-offer-actions .zen-avatar-quote{grid-column:auto;min-height:44px;height:44px;padding:5px 7px;font-size:13px;line-height:1.35;border-radius:13px}
.zen-offers-close{z-index:2}
.zen-return-conversation{font:inherit;border:0;background:transparent;padding:8px 0;margin:10px 0;min-height:44px;cursor:pointer}
.zen-return-conversation[hidden]{display:none!important}
@media(max-width:600px), (max-height:480px){
 .zen-support-dock{right:16px;bottom:calc(12px + env(safe-area-inset-bottom,0px) + var(--zen-keyboard-offset,0px))}
 .has-conversation .zen-avatar-offers,.has-conversation.is-expanded .zen-avatar-offers{--zen-portrait-height:clamp(96px,16dvh,128px);width:320px;max-width:calc(100vw - 32px);max-height:min(var(--zen-chat-max-height,62dvh),calc(var(--zen-viewport-height,100dvh) - 24px - env(safe-area-inset-bottom,0px)));border-radius:23px}
 .has-conversation.is-expanded .zen-avatar-offers{--zen-portrait-height:clamp(104px,17dvh,136px)}
 .zen-alma-portrait-stage .zen-assistant-avatar,.is-expanded .zen-alma-portrait-stage .zen-assistant-avatar{width:calc(var(--zen-portrait-height) - 8px);height:calc(var(--zen-portrait-height) - 8px)}
 .has-conversation .zen-avatar-offers>h2{margin-top:6px;font-size:18px}
 .has-conversation .zen-inline-identity{margin-bottom:7px}
 .has-conversation .is-inline .zen-voice-toggle{top:calc(var(--zen-portrait-height) + 5px)}
 .zen-inline-assistant{display:flex;flex:1 1 auto}
 .zen-chat.is-inline{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;min-width:0}
 .is-inline .zen-chat-log{flex:1 1 auto;min-height:32px;max-height:100px;gap:6px}
 .is-inline .zen-chat-message{padding:8px 10px;font-size:16px;line-height:1.5}
 .is-inline .zen-chat-compose{flex:0 0 auto;grid-template-columns:minmax(0,1fr) 70px;gap:7px;margin-top:0}
 .is-inline .zen-chat-compose textarea{height:48px;min-height:48px;max-height:100px;padding:10px;font-size:16px}
 .is-inline .zen-chat-compose>.zen-capture-primary{height:48px;min-height:48px;padding:6px 8px;font-size:14px}
 .is-inline .zen-chat-send-notice{grid-column:1/-1;font-size:11px;line-height:1.45}
 .zen-chat>.zen-avatar-offer-actions{margin-block:6px 8px}
 .zen-help-panel[data-entry=assistant]{bottom:calc(12px + env(safe-area-inset-bottom,0px) + var(--zen-keyboard-offset,0px));max-height:min(var(--zen-chat-max-height,62dvh),calc(var(--zen-viewport-height,100dvh) - 24px - env(safe-area-inset-bottom,0px)));max-width:calc(100vw - 24px)}
 .zen-support-dock.is-short-screen.has-conversation .zen-avatar-offers,.zen-support-dock.is-short-screen.has-conversation.is-expanded .zen-avatar-offers{--zen-portrait-height:56px}
 .is-short-screen .is-inline .zen-chat-log{max-height:32px}
 .is-short-screen .is-inline .zen-chat-options{display:none}
 .is-short-screen .is-inline .zen-chat-compose textarea,.is-short-screen .is-inline .zen-chat-compose>.zen-capture-primary{height:44px;min-height:44px}
 .zen-help-panel.is-short-screen .zen-portrait-wrap{width:48px;height:48px;flex-basis:48px}
}
@media(max-width:600px) and (max-height:640px){
 .has-conversation .zen-avatar-offers,.has-conversation.is-expanded .zen-avatar-offers{--zen-portrait-height:64px}
}

/* Keep the invitation clear of the page until the visitor opens Alma. */
.has-conversation .zen-avatar-offers:has(.has-tracking){--zen-portrait-height:96px}
.zen-chat.has-tracking .zen-chat-log{min-height:38px;max-height:100px}
.zen-chat.has-tracking .zen-avatar-offer-actions{display:none}
@media(max-height:640px){.has-conversation .zen-avatar-offers:has(.has-tracking){--zen-portrait-height:54px}}

.zen-support-dock:not(.has-conversation){--zen-avatar-size:64px}
.zen-support-dock.is-expanded:not(.has-conversation){--zen-avatar-size:76px}
.zen-support-dock .zen-avatar-motion{background-color:transparent}
.zen-assistant-greeting:not(.zen-greeting-guide){bottom:7px;right:calc(var(--zen-avatar-size) + 10px);width:max-content;max-width:calc(100vw - var(--zen-avatar-size) - 48px);border-radius:22px 22px 5px 22px;align-items:center}
.zen-assistant-greeting:not(.zen-greeting-guide) .zen-greeting-open{min-height:44px;padding:8px 0 8px 14px;font-size:.875rem;line-height:1.35}
.zen-chat>.zen-avatar-offer-actions:not(:has(.zen-channel-whatsapp:not([hidden]))){grid-template-columns:44px 44px minmax(0,1fr)}
.zen-chat>.zen-avatar-offer-actions .zen-avatar-quote{height:auto;min-height:44px;width:100%;text-wrap:balance;overflow-wrap:anywhere}
.zen-chat.is-inline .zen-chat-compose textarea{box-sizing:border-box;line-height:1.35;min-width:0;resize:vertical}
@media(max-width:600px){
 body:has(.zen-submit-feedback:focus) .zen-support-dock:not(.has-conversation){visibility:hidden}
 .zen-support-dock:not(.has-conversation){--zen-avatar-size:52px}
 .zen-support-dock.is-expanded:not(.has-conversation){--zen-avatar-size:60px}
 .zen-chat.is-inline .zen-chat-compose{align-items:stretch;grid-template-columns:minmax(0,1fr) minmax(64px,auto)}
 .zen-chat.is-inline .zen-chat-compose textarea,.zen-chat.is-inline .zen-chat-compose>.zen-capture-primary{height:54px;min-height:54px}
 .is-short-screen .zen-chat.is-inline .zen-chat-compose textarea,.is-short-screen .zen-chat.is-inline .zen-chat-compose>.zen-capture-primary{height:44px;min-height:44px}
}
