/* APSA: delayed glass support with a footer-aware floating position. */
.apsa-support{position:fixed;inset-inline-end:22px;bottom:calc(96px + env(safe-area-inset-bottom,0px));z-index:42;color:var(--text)}
.support-launcher{position:relative;width:60px;height:68px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:1px solid #d5bb8090;border-radius:22px;background:linear-gradient(150deg,#21392ee8,#0b1725e8);color:#efdbb2;box-shadow:0 12px 34px #0003,inset 0 1px #ffffff32;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);transition:transform .2s,box-shadow .2s;animation:support-arrive .45s ease-out}
.support-launcher:hover{transform:translateY(-3px);box-shadow:0 14px 42px #0004}.support-launcher>span{font-size:10px;font-weight:700;letter-spacing:.05em;line-height:1.4}.support-launcher>i{position:absolute;top:8px;inset-inline-end:8px;width:6px;height:6px;border-radius:50%;background:#d5bb80}
.support-teaser{position:absolute;inset-inline-end:0;bottom:84px;width:310px;padding:22px 19px 18px;display:flex;align-items:start;gap:12px;border:1px solid #d5bb8050;border-radius:22px 22px 8px 22px;background:color-mix(in srgb,var(--surface) 88%,transparent);box-shadow:0 16px 50px #0002,inset 0 1px #ffffff30;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);animation:support-arrive .3s ease-out}
.support-teaser strong{font-size:14px;line-height:1.6}.support-teaser p{font-size:12px;line-height:1.9;color:var(--muted);margin-top:3px}.support-teaser>div>button{display:flex;align-items:center;gap:7px;background:none;border:0;padding:8px 0 0;color:var(--gold);font-size:12px;font-weight:700}.support-teaser-close{position:absolute;top:7px;inset-inline-end:7px;background:none;border:0;display:grid;place-items:center;width:25px;height:25px;color:var(--muted)}
.support-avatar{width:44px;height:44px;display:grid;place-items:center;flex:none;border:1px solid #d5bb8055;border-radius:16px;background:linear-gradient(145deg,#244534,#102231);color:#e0c58b;box-shadow:inset 0 1px #ffffff22}
.support-panel{position:fixed!important;top:auto!important;left:auto!important;right:auto!important;inset-inline-end:22px!important;bottom:calc(22px + env(safe-area-inset-bottom,0px))!important;transform:none!important;translate:none!important;display:flex!important;flex-direction:column!important;gap:0!important;width:min(420px,calc(100vw - 32px))!important;max-width:420px!important;height:min(660px,calc(100dvh - 44px))!important;max-height:calc(100dvh - 44px)!important;overflow:hidden;padding:0!important;border:1px solid #d5bb8055!important;border-radius:24px!important;color:var(--text);background:color-mix(in srgb,var(--surface) 95%,transparent)!important;box-shadow:0 24px 90px #0005;backdrop-filter:blur(30px);-webkit-backdrop-filter:blur(30px);animation:support-arrive .2s ease-out}
.support-panel-heading{display:flex;align-items:center;gap:11px;padding:19px;border-bottom:1px solid var(--line);background:linear-gradient(130deg,#194b3c12,#d5bb8010);flex:none}.support-panel-heading>div{flex:1;min-width:0}.support-panel-heading h2{font-size:19px!important;line-height:1.5;font-weight:700;letter-spacing:0!important;display:flex;align-items:center;gap:8px;white-space:normal}.support-panel-heading h2 small{font-size:8px;font-weight:500;color:var(--gold);letter-spacing:.06em}.support-panel-heading [data-slot=dialog-description]{font-size:10px;line-height:1.8;color:var(--muted);margin-top:2px}.support-icon-button{display:grid;place-items:center;flex:none;width:29px;height:32px;border:0;background:transparent;color:var(--muted);border-radius:8px}.support-icon-button:hover{background:var(--subtle)}.support-icon-button:disabled{opacity:.3;cursor:default}
.support-conversation{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:20px;scrollbar-width:thin}.support-welcome{padding:5px 0 22px}.support-welcome>span{color:var(--gold);display:block;margin-bottom:10px}.support-welcome h3{font-size:18px;line-height:1.6}.support-welcome p{font-size:12px;line-height:1.9;color:var(--muted);margin-top:7px}.support-suggestions{display:grid;gap:7px;margin-top:17px}.support-suggestions>button{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:11px;text-align:start;border:1px solid var(--line);border-radius:11px;background:color-mix(in srgb,var(--surface) 70%,transparent);padding:10px 12px}.support-suggestions>button:hover{border-color:var(--gold);background:var(--subtle)}
.support-message{margin-bottom:16px;max-width:94%;padding:13px 15px;border:1px solid var(--line);border-radius:15px 15px 15px 4px;background:var(--subtle);overflow-wrap:anywhere}.support-message>span{display:block;color:var(--gold);font-size:9px;margin-bottom:6px}.support-message>p{font-size:12px;line-height:1.95;white-space:pre-wrap}.support-message.user{margin-inline-start:auto;background:linear-gradient(140deg,#194b3c,#183646);border-color:#ffffff12;color:#f3f5f4;border-radius:15px 15px 4px 15px}.support-message.user>span{color:#d5bb80}.support-sources{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px;padding-top:9px;border-top:1px solid var(--line)}.support-sources>a{display:flex;align-items:center;gap:5px;font-size:10px;color:var(--gold);border:1px solid var(--line);padding:4px 7px;border-radius:6px;max-width:100%;line-height:1.6}
.support-typing{display:flex;align-items:center;gap:4px;margin-bottom:16px}.support-typing>span{width:5px;height:5px;background:var(--gold);border-radius:50%;animation:support-pulse 1s infinite}.support-typing>span:nth-child(2){animation-delay:.15s}.support-typing>span:nth-child(3){animation-delay:.3s}.support-typing>small{font-size:10px;color:var(--muted);margin-inline-start:5px}
.support-compose-area{flex:none;padding:15px 19px 17px;border-top:1px solid var(--line);background:color-mix(in srgb,var(--surface) 90%,transparent)}.support-compose-area form{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:14px;background:var(--bg);padding:8px}.support-compose-area form:focus-within{border-color:var(--gold)}.support-compose-area textarea{font:inherit;flex:1;min-width:0;resize:none;border:0;background:none;color:var(--text);font-size:12px;line-height:1.8;padding:3px 6px;outline:0}.support-send{width:38px;height:38px;display:grid;place-items:center;border:0;border-radius:11px;background:#194b3c;color:#e5d0a4;flex:none}.support-send:disabled{opacity:.35;cursor:default}.support-privacy{font-size:9px;color:var(--muted);display:flex;align-items:center;gap:5px;margin-top:10px;flex-wrap:wrap}.support-privacy a{text-decoration:underline}.support-team-link{display:flex;align-items:center;gap:5px;color:var(--gold);font-size:10px;margin-top:7px}.support-error,.support-notice{font-size:11px;line-height:1.8;margin-bottom:8px}.support-error{color:#ba4646}.support-notice{color:var(--muted)}
.equipment-whatsapp{gap:10px;background:#194b3c!important;color:#fff!important;flex-wrap:wrap}.equipment-whatsapp small{font-size:10px;font-weight:400}.equipment-hero-actions{flex-wrap:wrap}.equipment-hero-actions .equipment-whatsapp:hover{background:#23614c!important}
@keyframes support-arrive{from{opacity:0;translate:0 12px}to{opacity:1;translate:0 0}}@keyframes support-pulse{50%{opacity:.35}}
@media(max-width:700px){.apsa-support{inset-inline-end:14px;bottom:calc(88px + env(safe-area-inset-bottom,0px))}.support-launcher{width:54px;height:62px;border-radius:19px}.support-teaser{width:min(300px,calc(100vw - 28px));bottom:77px}.support-panel{inset-inline-end:12px!important;bottom:calc(12px + env(safe-area-inset-bottom,0px))!important;width:calc(100vw - 24px)!important;max-width:420px!important;height:min(620px,calc(100dvh - 24px))!important;max-height:calc(100dvh - 24px)!important;border-radius:21px!important}.support-panel-heading{padding:15px}.support-conversation{padding:16px}.support-compose-area{padding:12px 15px 15px}}
@media(prefers-reduced-motion:reduce){.support-launcher,.support-teaser,.support-panel,.support-typing>span{animation:none;transition:none}}
@media print{.ries-support,.support-panel{display:none!important}}
.support-onboarding{text-align:start;padding:8px 0}.support-onboarding h3{font-size:21px;margin:14px 0 8px}.support-onboarding p{font-size:12px;line-height:1.9;color:var(--muted)}.support-country-options{display:grid;gap:12px;margin-top:24px}.support-country-options button{display:grid;gap:6px;padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--subtle);text-align:start;color:var(--text)}.support-country-options button:hover{border-color:var(--gold)}.support-country-options small{color:var(--muted)}.support-intake{display:grid;gap:13px;margin-top:15px}.support-intake label{display:grid;gap:6px;font-size:12px}.support-intake input:not([type=checkbox]){width:100%;height:42px;padding:8px 12px;border:1px solid var(--line);background:var(--bg);color:var(--text);border-radius:10px;outline-color:var(--gold)}.support-intake .support-consent{display:flex;align-items:flex-start;font-size:10px;line-height:1.7}.support-consent input{margin-top:4px;flex:none}.support-start{padding:13px;border-radius:12px;background:#194b3c;color:#fff}.support-reference{font-size:10px;color:var(--muted)}.support-panel-heading .support-icon-button{flex:none}.support-panel-heading{gap:8px!important}.support-team-link:disabled{opacity:.5}.support-intake button:disabled{opacity:.6}
.support-admin-grid{display:grid;grid-template-columns:minmax(230px,.8fr) minmax(280px,1.2fr);gap:24px}.support-admin-thread{max-height:460px;overflow:auto;margin:18px 0;padding:12px;background:var(--bg);border:1px solid var(--line);border-radius:16px}.support-admin-thread .support-message{max-width:100%}@media(max-width:900px){.support-admin-grid{grid-template-columns:1fr}}
.support-finish{display:block;margin-top:10px;width:100%;padding:10px;border-radius:12px;border:1px solid #baa06455;color:var(--gold,#d2b87c);background:#ba995c0d;font:inherit;font-size:.78rem}.support-finish:disabled{opacity:.4;cursor:not-allowed}
.support-intake .support-phone-field{display:flex;align-items:center;border:1px solid var(--support-line,#8d9aa344);border-radius:12px;overflow:hidden;background:var(--support-input,transparent)}.support-phone-prefix{padding-inline:13px;border-inline-end:1px solid #bda36944;color:var(--gold,#ad8645);font-size:.9rem;flex-shrink:0}.support-intake .support-phone-field input{border:0;border-radius:0;min-width:0;flex:1;background:transparent}.support-phone-field:focus-within{outline:2px solid #ad8645;outline-offset:2px}.support-intake label>small{font-size:.7rem;line-height:1.6;opacity:.75}

/* Keep the launcher above browser controls, and free the page while typing. */
.apsa-support{bottom:calc(112px + env(safe-area-inset-bottom,0px));inset-inline-end:20px;pointer-events:none}
.apsa-support>.support-launcher,.apsa-support>.support-teaser{pointer-events:auto}
.support-launcher>span{max-width:64px;max-height:28px;overflow:hidden;overflow-wrap:anywhere}
body:has(main input:focus,main textarea:focus,main select:focus) .apsa-support:not([data-open="true"]){visibility:hidden}
@media(max-width:700px){.apsa-support{inset-inline-end:14px;bottom:calc(108px + env(safe-area-inset-bottom,0px))}.support-launcher{width:52px;height:60px}.support-launcher>span{max-width:48px;font-size:9px}}

/* Spacious chat, stable composer, private attachment previews and inline email verification. */
.support-panel{width:min(820px,calc(100vw - 40px))!important;max-width:820px!important;height:min(820px,88dvh)!important;max-height:88dvh!important;display:flex!important;flex-direction:column!important;gap:0!important;padding:0!important;overflow:hidden!important}.support-conversation{flex:1!important;min-height:0!important;overflow-y:auto!important;padding:24px!important;scrollbar-width:thin}.support-panel-heading,.support-bottom{flex:none}.support-panel-heading{padding:18px 22px!important}.support-bottom{padding:14px 20px max(14px,env(safe-area-inset-bottom))!important}.support-message{max-width:90%!important;font-size:14px;line-height:1.85}.support-composer{display:flex!important;gap:10px!important;align-items:flex-end!important}.support-composer textarea{flex:1;min-width:0;min-height:65px;max-height:130px;resize:vertical}.support-composer button{flex:none;width:43px;height:43px}.support-composer .support-attach{background:transparent;border:1px solid #b69a6255;color:var(--text,#3c352a)}.support-files{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin-top:12px}.support-file{display:flex;gap:9px;align-items:center;padding:10px;background:#b49a6412;border:1px solid #b49a6444;border-radius:9px;min-width:0}.support-file>div{min-width:0;flex:1}.support-file strong{display:block;overflow-wrap:anywhere;font-size:11px;line-height:1.6}.support-file small{display:block;font-size:10px}.support-file button{display:inline-flex;gap:5px;align-items:center;font-size:11px;margin-top:6px;color:#967439}.support-file-preview{width:90px;flex:none;margin:0!important}.support-file-preview img{width:90px;height:75px;object-fit:contain;border-radius:5px}.support-pending-files{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:10px;max-height:80px;overflow:auto}.support-pending-files span{display:flex;gap:8px;align-items:center;font-size:11px;padding:6px 8px;border:1px solid #b69a6255;border-radius:6px;max-width:100%;overflow-wrap:anywhere}.support-inline-auth{display:grid;gap:11px;padding:15px 0}.support-inline-auth label{display:grid;gap:6px;font-size:13px}.support-inline-auth input{width:100%;min-height:45px;padding:10px 12px;border:1px solid #b69a6266;border-radius:8px;background:var(--surface,#fff);color:var(--text,#25292d)}.support-inline-auth small{font-size:11px;line-height:1.7}.support-inline-auth .button{justify-content:center;min-height:44px}.support-admin-files{display:grid;gap:8px}.support-admin-thread{min-height:300px;max-height:65dvh!important}.support-admin-thread .support-files{grid-template-columns:1fr 1fr}@media(max-width:700px){.support-panel{width:calc(100vw - 16px)!important;height:92dvh!important;max-height:92dvh!important;max-width:none!important}.support-conversation{padding:16px!important}.support-panel-heading{padding:13px!important}.support-panel-heading .support-avatar{width:32px;height:32px}.support-panel-heading [data-slot=dialog-title]{font-size:15px}.support-panel-heading [data-slot=dialog-description]{font-size:10px}.support-bottom{padding-inline:12px!important}.support-message{max-width:96%!important;font-size:13px}.support-admin-thread .support-files{grid-template-columns:1fr}.support-file-preview,.support-file-preview img{width:65px}.support-file-preview img{height:60px}}
