/* Original Acosta widget; independent of provider and third-party chat assets. */
#acosta-assistant-root { --acosta-chat-blue:#005388; --acosta-chat-light:#e5eef7; --acosta-chat-ink:#183c47; --acosta-chat-line:#d6e1e8; --acosta-chat-bottom:24px; position:relative; z-index:90; color:var(--acosta-chat-ink); font-family:inherit; font-size:15px; line-height:1.5; }
#acosta-assistant-root *, #acosta-assistant-root *::before, #acosta-assistant-root *::after { box-sizing:border-box; }
#acosta-assistant-root [hidden] { display:none!important; }
#acosta-assistant-root button, #acosta-assistant-root textarea, #acosta-assistant-root input { font:inherit; }
#acosta-assistant-root button, #acosta-assistant-root a, #acosta-assistant-root input { -webkit-tap-highlight-color:transparent; }
#acosta-assistant-root button { cursor:pointer; }
#acosta-assistant-root button:disabled { cursor:default; opacity:.52; }
#acosta-assistant-root button:focus-visible, #acosta-assistant-root a:focus-visible, #acosta-assistant-root input:focus-visible, #acosta-assistant-root textarea:focus-visible { outline:3px solid #e8ae37; outline-offset:3px; }
#acosta-assistant-root a { color:var(--acosta-chat-blue); text-decoration:underline; text-underline-offset:3px; overflow-wrap:anywhere; }
#acosta-assistant-root p, #acosta-assistant-root h2, #acosta-assistant-root ul { margin:0; padding:0; }
#acosta-assistant-root .acosta-chat-launcher { position:fixed; right:24px; bottom:var(--acosta-chat-bottom); z-index:91; display:flex; align-items:center; gap:12px; min-height:56px; padding:14px 20px; border:0; border-radius:9px; background:var(--acosta-chat-blue); color:#fff; box-shadow:0 5px 24px #183c4730; font-size:15px; font-weight:500; }
#acosta-assistant-root .acosta-chat-launcher:hover { background:#00436e; }
#acosta-assistant-root .acosta-chat-launcher-icon { position:relative; display:block; width:23px; height:18px; border:1.6px solid currentColor; border-radius:5px; }
#acosta-assistant-root .acosta-chat-launcher-icon::after { content:""; position:absolute; left:4px; bottom:-5px; width:7px; height:7px; border-left:1.6px solid currentColor; border-bottom:1.6px solid currentColor; background:var(--acosta-chat-blue); transform:skewY(-36deg); }
#acosta-assistant-root.acosta-chat-is-open .acosta-chat-launcher { visibility:hidden; }
#acosta-assistant-root .acosta-chat-backdrop { position:fixed; inset:0; z-index:92; background:#183c473b; }
#acosta-assistant-root .acosta-chat-panel { position:fixed; right:24px; bottom:var(--acosta-chat-bottom); display:flex; flex-direction:column; width:410px; max-width:calc(100vw - 48px); height:600px; max-height:calc(100dvh - 48px); padding:0; overflow:hidden; border:1px solid var(--acosta-chat-line); border-radius:12px; background:#fff; box-shadow:0 18px 65px #102f4447; }
#acosta-assistant-root .acosta-chat-header { display:flex; flex:0 0 auto; align-items:center; gap:12px; padding:17px 16px; background:var(--acosta-chat-blue); color:#fff; }
#acosta-assistant-root .acosta-chat-avatar { display:grid; flex:0 0 38px; place-items:center; width:38px; height:38px; border:1px solid #ffffff6b; border-radius:50%; font-size:21px; font-weight:500; }
#acosta-assistant-root .acosta-chat-heading { flex:1 1 auto; min-width:0; }
#acosta-assistant-root .acosta-chat-heading h2 { color:#fff; font-size:17px; line-height:1.35; letter-spacing:normal; font-weight:600; overflow-wrap:anywhere; }
#acosta-assistant-root .acosta-chat-heading p { margin-top:3px; color:#e5eef7; font-size:12px; line-height:1.4; }
#acosta-assistant-root .acosta-chat-header-actions { display:flex; flex:0 0 auto; gap:3px; }
#acosta-assistant-root .acosta-chat-icon-button { display:grid; place-items:center; width:40px; height:40px; min-height:40px; padding:0; border:0; border-radius:5px; background:transparent; color:#fff; font-size:26px; line-height:1; }
#acosta-assistant-root .acosta-chat-icon-button:hover { background:#ffffff1f; }
#acosta-assistant-root .acosta-chat-body { flex:1 1 auto; min-height:80px; overflow-y:auto; overscroll-behavior:contain; padding:21px 17px; background:#f7f9fb; scrollbar-width:thin; }
#acosta-assistant-root .acosta-chat-messages { display:flex; flex-direction:column; gap:17px; }
#acosta-assistant-root .acosta-chat-message { max-width:94%; min-width:0; }
#acosta-assistant-root .acosta-chat-message-user { align-self:flex-end; }
#acosta-assistant-root .acosta-chat-message-assistant { align-self:flex-start; }
#acosta-assistant-root .acosta-chat-bubble { padding:13px 15px; border:1px solid var(--acosta-chat-line); border-radius:10px 10px 10px 3px; background:#fff; color:var(--acosta-chat-ink); font-size:15px; line-height:1.65; white-space:pre-wrap; overflow-wrap:anywhere; }
#acosta-assistant-root .acosta-chat-message-user .acosta-chat-bubble { border-color:var(--acosta-chat-light); border-radius:10px 10px 3px 10px; background:var(--acosta-chat-light); }
#acosta-assistant-root .acosta-chat-source-box { margin-top:9px; padding:0 4px; font-size:12px; }
#acosta-assistant-root .acosta-chat-source-box>p { font-weight:600; }
#acosta-assistant-root .acosta-chat-sources { margin-top:4px; padding-left:17px; }
#acosta-assistant-root .acosta-chat-sources li { margin-top:5px; }
#acosta-assistant-root .acosta-chat-loading { align-self:flex-start; padding:10px 4px; color:#486574; font-size:13px; }
#acosta-assistant-root .acosta-chat-loading::after { content:""; display:inline-block; width:5px; height:5px; margin-left:8px; border-radius:50%; background:var(--acosta-chat-blue); animation:acosta-chat-pulse 1s ease-in-out infinite alternate; }
#acosta-assistant-root .acosta-chat-pending { display:flex; flex-direction:column; gap:14px; margin-top:20px; padding:17px; border:1px solid var(--acosta-chat-line); border-radius:7px; background:#fff; font-size:14px; }
#acosta-assistant-root .acosta-chat-contact { display:inline-flex; align-items:center; align-self:flex-start; min-height:44px; padding:10px 14px; border-radius:5px; background:var(--acosta-chat-blue); color:#fff; text-decoration:none; font-weight:500; }
#acosta-assistant-root .acosta-chat-admin-link { align-self:flex-start; font-size:12px; }
#acosta-assistant-root .acosta-chat-composer { flex:0 0 auto; padding:13px 16px 11px; border-top:1px solid var(--acosta-chat-line); background:#fff; }
#acosta-assistant-root .acosta-chat-input-label { display:block; margin-bottom:6px; font-size:12px; font-weight:600; }
#acosta-assistant-root .acosta-chat-input { display:block; width:100%; min-height:68px; max-height:115px; margin:0; padding:10px 12px; border:1px solid #a4b9c7; border-radius:6px; background:#fff; color:var(--acosta-chat-ink); font-size:16px; line-height:1.5; resize:vertical; }
#acosta-assistant-root .acosta-chat-input:disabled { background:#f4f7f9; color:#5c6f79; }
#acosta-assistant-root .acosta-chat-input::placeholder { color:#5c6f79; opacity:1; }
#acosta-assistant-root .acosta-chat-composer-bottom { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:9px; }
#acosta-assistant-root .acosta-chat-count { color:#526b79; font-size:11px; }
#acosta-assistant-root .acosta-chat-send { min-height:42px; padding:9px 22px; border:0; border-radius:5px; background:var(--acosta-chat-blue); color:#fff; font-size:14px; font-weight:500; }
#acosta-assistant-root .acosta-chat-send:hover:enabled { background:#00436e; }
#acosta-assistant-root .acosta-chat-help { margin-top:8px; color:#526b79; font-size:10px; }
#acosta-assistant-root .acosta-chat-error { margin-top:10px; padding:10px 12px; border-left:3px solid #a22f31; background:#fff2f2; color:#7d2325; font-size:13px; line-height:1.5; }
#acosta-assistant-root .acosta-chat-not-sent { margin-top:5px; color:#7d2325; font-size:11px; }
#acosta-assistant-root .acosta-chat-footer { flex:0 0 auto; padding:10px 17px 12px; border-top:1px solid var(--acosta-chat-line); background:#fff; text-align:center; font-size:11px; }
#acosta-assistant-root .acosta-chat-footer a { display:inline-flex; align-items:center; min-height:30px; }
#acosta-assistant-root .acosta-chat-sr-status { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
@keyframes acosta-chat-pulse { from { opacity:.3; } to { opacity:1; } }
@media(max-width:680px) {
  #acosta-assistant-root { --acosta-chat-bottom:calc(86px + env(safe-area-inset-bottom)); }
  #acosta-assistant-root .acosta-chat-launcher { right:14px; min-height:52px; padding:12px 17px; }
  #acosta-assistant-root .acosta-chat-panel { right:12px; width:calc(100vw - 24px); max-width:none; height:600px; max-height:calc(100dvh - var(--acosta-chat-bottom) - 18px); border-radius:10px; }
  #acosta-assistant-root .acosta-chat-header { gap:10px; padding:12px; }
  #acosta-assistant-root .acosta-chat-heading h2 { font-size:16px; }
  #acosta-assistant-root .acosta-chat-body { padding:17px 13px; }
  #acosta-assistant-root .acosta-chat-message { max-width:96%; }
  #acosta-assistant-root .acosta-chat-composer { padding:11px 12px 9px; }
  #acosta-assistant-root .acosta-chat-bubble { padding:11px 13px; font-size:14px; }
  #acosta-assistant-root .acosta-chat-footer { padding-block:7px; }
}
@media(max-height:550px) {
  #acosta-assistant-root .acosta-chat-panel { max-height:calc(100dvh - var(--acosta-chat-bottom) - 18px); }
  #acosta-assistant-root .acosta-chat-body { min-height:0; }
  #acosta-assistant-root .acosta-chat-help, #acosta-assistant-root .acosta-chat-avatar { display:none; }
  #acosta-assistant-root .acosta-chat-header { padding-block:8px; }
  #acosta-assistant-root .acosta-chat-input { min-height:48px; max-height:70px; }
}
@media(prefers-reduced-motion:reduce) {
  #acosta-assistant-root *, #acosta-assistant-root *::before, #acosta-assistant-root *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}

/* Compact composer and viewport-aware mobile conversation. */
#acosta-assistant-root .acosta-chat-icon-button { width:44px; height:44px; min-height:44px; }
#acosta-assistant-root .acosta-chat-input-label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
#acosta-assistant-root .acosta-chat-input-row { display:flex; align-items:flex-end; gap:8px; padding:5px; border:1px solid #b2c5d2; border-radius:25px; background:#f7f9fb; }
#acosta-assistant-root .acosta-chat-input-row:focus-within { border-color:var(--acosta-chat-blue); box-shadow:0 0 0 1px var(--acosta-chat-blue); }
#acosta-assistant-root .acosta-chat-input { flex:1; min-width:0; min-height:44px; max-height:124px; padding:10px 8px 10px 12px; border:0; border-radius:18px; background:transparent; resize:none; font-size:16px; line-height:24px; }
#acosta-assistant-root .acosta-chat-send { display:grid; place-items:center; flex:0 0 44px; width:44px; height:44px; min-height:44px; padding:10px; border-radius:50%; }
#acosta-assistant-root .acosta-chat-send svg { width:24px; height:24px; fill:currentColor; stroke:none; }
#acosta-assistant-root .acosta-chat-composer-bottom { margin-top:5px; gap:8px; }
#acosta-assistant-root .acosta-chat-help { margin:0; }
#acosta-assistant-root .acosta-chat-count { margin-left:auto; order:1; }
#acosta-assistant-root .acosta-chat-footer { padding:0 16px 8px; border:0; }
#acosta-assistant-root .acosta-chat-error { max-height:90px; overflow:auto; }
#acosta-assistant-root.acosta-chat-mobile .acosta-chat-panel { top:var(--acosta-chat-visible-top, 0px); left:0; right:0; bottom:auto; width:100%; max-width:none; height:var(--acosta-chat-visible-height, 100dvh); max-height:none; border:0; border-radius:0; box-shadow:none; }
#acosta-assistant-root.acosta-chat-mobile .acosta-chat-header { padding:calc(8px + env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) 8px max(10px, env(safe-area-inset-left, 0px)); }
#acosta-assistant-root.acosta-chat-mobile .acosta-chat-body { min-height:0; padding:16px max(14px, env(safe-area-inset-right, 0px)) 16px max(14px, env(safe-area-inset-left, 0px)); -webkit-overflow-scrolling:touch; }
#acosta-assistant-root.acosta-chat-mobile .acosta-chat-bubble { font-size:15px; line-height:1.6; }
#acosta-assistant-root.acosta-chat-mobile .acosta-chat-composer { padding:8px max(10px, env(safe-area-inset-right, 0px)) 6px max(10px, env(safe-area-inset-left, 0px)); }
#acosta-assistant-root.acosta-chat-mobile .acosta-chat-footer { padding-bottom:calc(6px + env(safe-area-inset-bottom, 0px)); }
#acosta-assistant-root.acosta-chat-mobile .acosta-chat-help { display:none; }
#acosta-assistant-root.acosta-chat-keyboard .acosta-chat-footer { padding-bottom:4px; }
#acosta-assistant-root.acosta-chat-compact .acosta-chat-header { padding-top:6px; padding-bottom:6px; }
#acosta-assistant-root.acosta-chat-compact .acosta-chat-avatar, #acosta-assistant-root.acosta-chat-compact .acosta-chat-heading p { display:none; }
#acosta-assistant-root.acosta-chat-compact .acosta-chat-footer { display:none; }
#acosta-assistant-root.acosta-chat-compact .acosta-chat-composer { padding-top:6px; padding-bottom:6px; }
#acosta-assistant-root.acosta-chat-compact .acosta-chat-input { max-height:76px; }

#acosta-assistant-root.acosta-chat-compact .acosta-chat-composer { padding-bottom:calc(6px + env(safe-area-inset-bottom, 0px)); }
#acosta-assistant-root.acosta-chat-compact.acosta-chat-keyboard .acosta-chat-composer { padding-bottom:6px; }

#acosta-assistant-root.acosta-chat-is-open { z-index:100000; }
