.chat{--chat-primary:var(--brand-primary,#1e3a5f);--chat-surface:var(--brand-background,#fff);--chat-text:var(--brand-text,#1f2937);z-index:40;font-size:.875rem;line-height:1.4;position:fixed;bottom:1rem;right:1rem}.chat--left{left:1rem;right:auto}.chat__launcher{background:var(--chat-primary);color:#fff;cursor:pointer;border:0;border-radius:9999px;justify-content:center;align-items:center;width:3.5rem;height:3.5rem;display:flex;position:relative;box-shadow:0 10px 15px -3px #0003}.chat__launcher[data-chat-unread]:after{content:"";background:#dc2626;border:2px solid #fff;border-radius:9999px;width:.75rem;height:.75rem;position:absolute;top:.25rem;right:.25rem}.chat__launcher:hover{opacity:.9}.chat__launcher[hidden],.chat__window[hidden],.chat [hidden]{display:none}.chat__icon{width:1.75rem;height:1.75rem}.chat__icon--small{width:1.25rem;height:1.25rem}.chat__window{z-index:50;background:var(--chat-surface);color:var(--chat-text);flex-direction:column;display:flex;position:fixed;inset:0}.chat__header{background:var(--chat-primary);color:#fff;justify-content:space-between;align-items:center;gap:.5rem;padding:.75rem 1rem;display:flex}.chat__title{margin:0;font-size:1rem;font-weight:600}.chat__close{color:inherit;cursor:pointer;background:0 0;border:0;border-radius:.25rem;padding:.25rem;display:inline-flex}.chat__close:hover{background:#ffffff1a}.chat__header>.chat__title{flex:1}@media (width<=639px){.chat__expand{display:none}}.chat__messages{flex:1;margin:0;padding:1rem;list-style:none;overflow-y:auto}.chat__message{margin-bottom:.75rem;display:flex}.chat__message--visitor{justify-content:flex-end}.chat__bubble{white-space:pre-line;overflow-wrap:anywhere;background:#f3f4f6;border-radius:.5rem;max-width:85%;margin:0;padding:.5rem .75rem}.chat__message--visitor .chat__bubble{background:var(--chat-primary);color:#fff}.chat__message--team .chat__bubble{border:1px solid var(--chat-primary);background:0 0}.chat__message--system{justify-content:center}.chat__message--system .chat__bubble{opacity:.8;background:0 0;font-style:italic}.chat__typing{gap:.25rem;padding:.75rem;display:inline-flex}.chat__typing span{opacity:.5;background:currentColor;border-radius:9999px;width:.4rem;height:.4rem}@media (prefers-reduced-motion:no-preference){.chat__typing span{animation:1.2s ease-in-out infinite chat-typing}.chat__typing span:nth-child(2){animation-delay:.2s}.chat__typing span:nth-child(3){animation-delay:.4s}}@keyframes chat-typing{0%,80%,to{opacity:.25}40%{opacity:1}}.chat__choice--human{background:var(--chat-primary);color:#fff}.chat__choices{flex-wrap:wrap;gap:.5rem;padding:0 1rem .75rem;display:flex}.chat__choices:empty{display:none}.chat__choice{border:1px solid var(--chat-primary);color:var(--chat-primary);font:inherit;cursor:pointer;background:0 0;border-radius:9999px;padding:.25rem .75rem}.chat__choice:hover{background:var(--chat-primary);color:#fff}.chat__choice--secondary{color:inherit;border-color:#9ca3af}.chat__link{color:inherit;background:#f3f4f6;border-radius:9999px;padding:.25rem .75rem;text-decoration:underline}.chat__notice{background:#f3f4f6;border-radius:.375rem;margin:0 1rem .75rem;padding:.75rem}.chat__errors{color:#b91c1c;margin:0 1rem .5rem}.chat__errors:empty{display:none}.chat__form{border-top:1px solid #e5e7eb;align-items:flex-end;gap:.5rem;padding:.75rem;display:flex}.chat__leave{border-top:1px solid #e5e7eb;padding:.75rem;overflow-y:auto}.chat__leave>*+*{margin-top:.75rem}.chat__label{font-weight:500;display:block}.chat__input{box-sizing:border-box;width:100%;color:var(--chat-text);font:inherit;background:#fff;border:1px solid #d1d5db;border-radius:.375rem;margin-top:.25rem;padding:.5rem .75rem;display:block}.chat__form .chat__input{resize:none;max-height:8rem;margin-top:0}.chat__input:focus{border-color:var(--chat-primary);outline:1px solid var(--chat-primary)}.chat__actions{flex-wrap:wrap;gap:.5rem;display:flex}.chat__button{border:1px solid var(--chat-primary);background:var(--chat-primary);color:#fff;font:inherit;cursor:pointer;border-radius:.375rem;padding:.5rem 1rem;font-weight:600}.chat__button--secondary{color:var(--chat-primary);background:0 0}.chat__trap{position:absolute;left:-10000px}.chat__sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.chat :focus-visible{outline:2px solid var(--chat-primary);outline-offset:2px}@media (width>=640px){.chat__window{border:1px solid #e5e7eb;border-radius:.5rem;width:24rem;height:32rem;max-height:calc(100vh - 8rem);inset:auto 1rem 6rem auto;box-shadow:0 25px 50px -12px #00000040}.chat--left .chat__window{inset:auto auto 6rem 1rem}.chat__header{border-radius:.5rem .5rem 0 0}.chat__window--large{width:min(48rem,100vw - 2rem);height:calc(100vh - 8rem)}}.chat--page{position:static}.chat--page .chat__launcher{display:none}.chat--page .chat__window{width:auto;height:auto;max-height:none;box-shadow:none;border:0;border-radius:0;position:fixed;inset:0}.chat--page .chat__header{border-radius:0}.chat--page .chat__messages,.chat--page .chat__choices,.chat--page .chat__notice,.chat--page .chat__errors,.chat--page .chat__form,.chat--page .chat__leave{box-sizing:border-box;width:100%;max-width:48rem;margin-left:auto;margin-right:auto}@media (prefers-reduced-motion:no-preference){.chat__launcher{transition:opacity .15s}}@media print{.chat{display:none}}
