/* Customer support widget. Scope every rule so storefront themes keep their styles. */
#floatingSupportChat{--chat-ink:#19283f;--chat-muted:#64748b;--chat-line:#e5ebf4;--chat-surface:#fff;position:fixed;bottom:22px;z-index:999999;font:400 13px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--chat-ink);text-align:start;letter-spacing:normal;color-scheme:light}
#floatingSupportChat,#floatingSupportChat *{box-sizing:border-box}
#floatingSupportChat.floating-support-chat--right{right:22px}#floatingSupportChat.floating-support-chat--left{left:22px}
#floatingSupportChat button,#floatingSupportChat input,#floatingSupportChat textarea{font:inherit;letter-spacing:normal;text-transform:none}
#floatingSupportChat button{appearance:none;margin:0;cursor:pointer;line-height:1.5;box-shadow:none}
#floatingSupportChat button:focus-visible,#floatingSupportChat a:focus-visible,#floatingSupportChat textarea:focus-visible{outline:2px solid var(--chat-action-ink);outline-offset:3px}
#floatingSupportChat button:disabled{cursor:default;opacity:.55}
#floatingSupportChat svg{display:block;width:20px;height:20px;flex:none}
#floatingSupportChat .chat-toggle{display:inline-flex;align-items:center;gap:11px;min-height:54px;padding:8px 20px 8px 9px;border:1px solid rgb(255 255 255 / 24%);border-radius:18px;background:var(--chat-brand);color:var(--chat-on-brand);font-size:13px;font-weight:650;box-shadow:0 8px 26px rgb(20 40 85 / 25%);transition:transform .18s,box-shadow .18s}
#floatingSupportChat[dir=rtl] .chat-toggle{padding:8px 9px 8px 20px}
#floatingSupportChat .chat-toggle:hover{transform:translateY(-2px);box-shadow:0 12px 32px rgb(20 40 85 / 29%)}
#floatingSupportChat .chat-toggle__icon{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:rgb(255 255 255 / 16%)}
#floatingSupportChat .chat-toggle__dot{position:absolute;top:4px;inset-inline-end:6px;width:11px;height:11px;border:2px solid #fff;border-radius:50%;background:#f43f5e;opacity:0;transition:opacity .2s}
#floatingSupportChat .chat-toggle__dot--visible{opacity:1}
#floatingSupportChat .chat-panel{display:none;flex-direction:column;width:402px;height:690px;height:min(690px,calc(100dvh - 44px));max-height:calc(100vh - 44px);min-height:0;border:1px solid rgb(205 215 233 / 85%);border-radius:23px;background:var(--chat-surface);box-shadow:0 24px 80px rgb(15 23 42 / 23%),0 4px 20px rgb(15 23 42 / 9%);overflow:hidden;isolation:isolate}
#floatingSupportChat .chat-header{position:relative;flex:none;padding:19px 19px 14px;border:0;background:radial-gradient(ellipse at 100% 0%,rgb(124 58 237 / 25%),transparent 70%),#111c32;color:#fff;text-align:start}
#floatingSupportChat .chat-header::before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,var(--chat-brand),var(--chat-accent))}
#floatingSupportChat .chat-header__main{display:flex;align-items:center;gap:11px;min-width:0}
#floatingSupportChat .chat-header__avatar{position:relative;display:grid;place-items:center;width:44px;height:44px;flex:none;border:1px solid rgb(255 255 255 / 20%);border-radius:15px;background:#25334e;color:#d9e7ff}
#floatingSupportChat .chat-header__avatar>img{position:absolute;inset:5px;width:32px;height:32px;object-fit:cover;border-radius:10px;background:#25334e}
#floatingSupportChat .online-dot{position:absolute;bottom:-3px;inset-inline-end:-3px;width:11px;height:11px;margin:0;border:2px solid #111c32;border-radius:50%;background:#34d399;box-shadow:none}
#floatingSupportChat .chat-header__info{flex:1;min-width:0}
#floatingSupportChat .chat-header__info strong{display:block;max-width:255px;margin:0;color:#fff;font-size:15px;font-weight:700;line-height:1.5;overflow-wrap:anywhere}
#floatingSupportChat .chat-header__info small{display:block;margin-top:2px;color:#bdcadf;font-size:11px;line-height:1.5}
#floatingSupportChat .chat-close{display:grid;place-items:center;width:32px;height:32px;flex:none;padding:7px;border:1px solid rgb(255 255 255 / 12%);border-radius:10px;background:rgb(255 255 255 / 7%);color:#dbe6f6;transition:background .15s}
#floatingSupportChat .chat-close:hover{background:rgb(255 255 255 / 16%);color:#fff}
#floatingSupportChat .chat-close svg{width:16px;height:16px}
#floatingSupportChat .chat-header__assistant{display:flex;align-items:center;gap:6px;min-width:0;margin-top:12px;padding-top:11px;border-top:1px solid rgb(255 255 255 / 10%);color:#dce8ff;font-size:10px;line-height:1.5}
#floatingSupportChat .chat-header__assistant svg{width:13px;height:13px;color:#c4b5fd}
#floatingSupportChat .chat-header__assistant bdi{flex:none;font-weight:600}
#floatingSupportChat .chat-header__role{min-width:0;margin-inline-start:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#bdcadf;font-size:10px}
#floatingSupportChat .chat-context{display:flex;align-items:center;gap:7px;flex:none;min-height:34px;padding:8px 18px;border-bottom:1px solid var(--chat-line);background:#fff;color:#66758c;font-size:10px;line-height:1.5}
#floatingSupportChat .chat-context svg{width:13px;height:13px;color:var(--chat-action-ink)}
#floatingSupportChat .chat-body{flex:1;min-height:0;padding:17px 15px 12px;overflow-y:auto;overflow-x:hidden;background:#f6f8fc;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#cad4e4 transparent;scroll-behavior:auto}
#floatingSupportChat .chat-body::-webkit-scrollbar{width:5px}#floatingSupportChat .chat-body::-webkit-scrollbar-thumb{border-radius:8px;background:#cad4e4}
#floatingSupportChat .chat-day{display:flex;justify-content:center;margin:0 0 17px;color:#728097;font-size:10px;line-height:1.5}
#floatingSupportChat .chat-day span{padding:3px 10px;border:1px solid #e7ecf4;border-radius:20px;background:#fff}
#floatingSupportChat .chat-message-row{display:flex;align-items:flex-end;gap:8px;margin:0 0 14px;direction:ltr;text-align:start}
#floatingSupportChat .chat-message-row--agent,#floatingSupportChat .chat-message-row--ai{justify-content:flex-start}
#floatingSupportChat .chat-message-row--user{justify-content:flex-end}
#floatingSupportChat .chat-avatar-wrap{position:relative;display:grid;place-items:center;flex:none;width:27px;height:27px;margin-bottom:3px;border:1px solid #dce5f2;border-radius:10px;background:#e8eef9;color:#536d9c;font-size:11px;font-weight:650;overflow:hidden}
#floatingSupportChat .chat-avatar{position:absolute;inset:0;display:block;width:100%;height:100%;margin:0;object-fit:cover;background:#e8eef9}
#floatingSupportChat .chat-message{max-width:calc(100% - 41px);min-width:78px;margin:0;padding:11px 13px 8px;border:1px solid #e2e8f1;border-radius:16px 16px 16px 5px;background:#fff;color:var(--chat-ink);font-size:13px;font-weight:400;line-height:1.75;box-shadow:0 2px 5px rgb(31 49 82 / 3%);overflow-wrap:anywhere;word-break:normal;white-space:normal}
#floatingSupportChat .chat-message.user{border-color:transparent;border-radius:16px 16px 5px 16px;background:var(--chat-brand);color:var(--chat-on-brand)}
#floatingSupportChat .chat-message.ai{border-inline-start:2px solid var(--chat-accent)}
#floatingSupportChat .chat-message__author{display:flex;align-items:center;gap:5px;direction:inherit;margin-bottom:5px;color:#526784;font-size:11px;font-weight:650;line-height:1.5}
#floatingSupportChat .chat-message__badge{padding:1px 5px;border:1px solid #e2ddf8;border-radius:5px;background:#f4f1fc;color:#7150b6;font-size:8px;font-weight:650;line-height:1.5}
#floatingSupportChat .chat-message__content{white-space:pre-wrap;unicode-bidi:plaintext;text-align:start}
#floatingSupportChat .chat-message__meta{display:flex;align-items:center;justify-content:flex-end;gap:4px;direction:ltr;margin-top:6px;color:#7a879b;font-size:10px;font-weight:400;line-height:1.3}
#floatingSupportChat .chat-message.user .chat-message__meta{color:inherit;opacity:.85}
#floatingSupportChat .chat-message__sent{font-size:10px;letter-spacing:-3px;padding-inline-end:3px}
#floatingSupportChat .chat-message.typing{min-width:100px;padding:11px 13px;color:#697b93;font-size:10px;line-height:1.5}
#floatingSupportChat .typing-dots{display:inline-flex;align-items:center;gap:3px;margin-inline-start:5px}
#floatingSupportChat .typing-dots .dot{font-size:15px;line-height:1;animation:x2ChatTyping 1.25s infinite}
#floatingSupportChat .typing-dots .dot:nth-child(2){animation-delay:.15s}#floatingSupportChat .typing-dots .dot:nth-child(3){animation-delay:.3s}
@keyframes x2ChatTyping{0%,70%,100%{opacity:.3;transform:translateY(0)}35%{opacity:1;transform:translateY(-2px)}}
#floatingSupportChat .chat-quick-replies{display:flex;flex:none;gap:7px;max-height:82px;padding:10px 15px;overflow-x:auto;overflow-y:hidden;border-top:1px solid var(--chat-line);background:#fff;scrollbar-width:thin;scrollbar-color:#d8e2ef transparent;overscroll-behavior-x:contain}
#floatingSupportChat .chat-quick-replies:empty{display:none}
#floatingSupportChat .chat-quick-replies button{display:inline-flex;align-items:center;gap:5px;flex:none;max-width:250px;min-height:31px;padding:6px 10px;border:1px solid #dfe7f3;border-radius:9px;background:#f8faff;color:#405777;font-size:10px;font-weight:500;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:background .15s,border-color .15s}
#floatingSupportChat .chat-quick-replies button::before{content:"↗";flex:none;color:var(--chat-action-ink);font-size:12px}
#floatingSupportChat .chat-quick-replies button:hover{background:#edf3ff;border-color:#bdcde8;color:#233c61}
#floatingSupportChat .chat-input{flex:none;margin:0;padding:0 14px 11px;border:0;background:#fff}
#floatingSupportChat .chat-compose{display:flex;align-items:flex-end;gap:8px;padding:6px;border:1px solid #d9e3f0;border-radius:14px;background:#fff;box-shadow:0 1px 4px rgb(20 40 80 / 2%);transition:border-color .15s,box-shadow .15s}
#floatingSupportChat .chat-compose:focus-within{border-color:var(--chat-action-ink);box-shadow:0 0 0 3px rgb(37 99 235 / 7%)}
#floatingSupportChat #chatInput{display:block;flex:1;min-width:0;width:100%;min-height:39px;height:39px;max-height:112px;margin:0;padding:9px 8px;border:0!important;border-radius:9px;background:#fff!important;background-image:none!important;color:var(--chat-ink)!important;font:400 13px/1.7 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;box-shadow:none!important;outline:0!important;resize:none;overflow-y:auto;text-align:start}
#floatingSupportChat #chatInput::placeholder{color:#8390a4;opacity:1}
#floatingSupportChat #chatSend{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;min-height:39px;min-width:74px;padding:9px 11px;border:0;border-radius:10px;background:var(--chat-brand);color:var(--chat-on-brand);font-size:11px;font-weight:650;box-shadow:none;white-space:nowrap}
#floatingSupportChat #chatSend svg{width:15px;height:15px}
#floatingSupportChat #chatSend:hover:not(:disabled){filter:brightness(.96)}
#floatingSupportChat .chat-input__bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px;min-height:14px;color:#7f8ba0;font-size:8px;line-height:1.5}
#floatingSupportChat .chat-input__hint{flex:1;font-size:8px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:#7f8ba0}
#floatingSupportChat .chat-input__brand{flex:none;font-size:8px;letter-spacing:.025em;color:#8d99ac}
#floatingSupportChat .chat-prechat{display:none;flex:1;min-height:0;padding:23px 21px;overflow-y:auto;border:0;background:#f6f8fc}
#floatingSupportChat .chat-prechat__icon{display:grid;place-items:center;width:42px;height:42px;margin:0 0 14px;border:1px solid #dce5f4;border-radius:14px;background:#eef3fc;color:var(--chat-action-ink)}
#floatingSupportChat .chat-prechat h5{margin:0 0 7px;color:var(--chat-ink);font:700 17px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
#floatingSupportChat .chat-prechat p{margin:0 0 20px;color:#687890;font-size:11px;line-height:1.8}
#floatingSupportChat .chat-prechat__field{display:none;margin-bottom:13px}
#floatingSupportChat .chat-prechat__field label{display:block;margin:0 0 6px;color:#40516c;font-size:11px;font-weight:600}
#floatingSupportChat .chat-prechat__field input{display:block;width:100%;height:42px;margin:0;padding:10px 11px;border:1px solid #dce4f0;border-radius:10px;background:#fff;color:var(--chat-ink);font-size:12px;box-shadow:none;outline-color:var(--chat-action-ink)}
#floatingSupportChat .chat-prechat__error{min-height:17px;margin:0 0 9px;color:#be3450;font-size:11px;line-height:1.6}
#floatingSupportChat .chat-prechat__submit{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:43px;padding:11px 14px;border:0;border-radius:10px;background:var(--chat-brand);color:var(--chat-on-brand);font-size:12px;font-weight:650}
#floatingSupportChat .chat-panel--locked .chat-body,#floatingSupportChat .chat-panel--locked .chat-quick-replies,#floatingSupportChat .chat-panel--locked .chat-input{display:none}
#floatingSupportChat .chat-quick-replies--disabled{opacity:.5;pointer-events:none}
#floatingSupportChat .chat-link-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;max-width:100%;margin:7px 5px 2px 0;padding:6px 9px;border:1px solid #d9e3f1;border-radius:8px;background:#f4f7fc;color:#2b5386;text-decoration:none;font-size:10px;font-weight:600;line-height:1.5;white-space:normal;overflow-wrap:anywhere;box-shadow:none}
#floatingSupportChat .chat-link-button::after{content:"↗";flex:none}
#floatingSupportChat .chat-link-button:hover{background:#e8effa;color:#193e70;text-decoration:none}
#floatingSupportChat .chat-message.user .chat-link-button{border-color:rgb(255 255 255 / 25%);background:rgb(255 255 255 / 14%);color:inherit}
@media(max-width:480px){#floatingSupportChat{bottom:12px}#floatingSupportChat.floating-support-chat--left{left:12px}#floatingSupportChat.floating-support-chat--right{right:12px}#floatingSupportChat .chat-panel{width:calc(100vw - 24px);height:calc(100vh - 32px);height:min(720px,calc(100dvh - 32px));max-height:calc(100vh - 32px);border-radius:20px}#floatingSupportChat .chat-header{padding:17px 16px 13px}#floatingSupportChat .chat-header__role{max-width:48%}#floatingSupportChat #chatInput{font-size:16px;line-height:1.5}#floatingSupportChat .chat-toggle{min-height:50px}#floatingSupportChat .chat-input__brand{display:none}}
@media(max-height:540px){#floatingSupportChat{bottom:8px}#floatingSupportChat .chat-panel{height:calc(100vh - 16px);height:calc(100dvh - 16px);max-height:calc(100vh - 16px)}#floatingSupportChat .chat-header{padding:12px 16px}#floatingSupportChat .chat-header__assistant,#floatingSupportChat .chat-context,#floatingSupportChat .chat-input__bottom{display:none}#floatingSupportChat .chat-prechat{padding:15px 20px}}
@media(prefers-reduced-motion:reduce){#floatingSupportChat *,#floatingSupportChat *::before,#floatingSupportChat *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
