#alovam-chat-root{
  --alovam-primary:#022f25;
  --alovam-bg:#f3f7f5;
  --alovam-text:#12201c;
  font-family:'Vazirmatn','Vazir',Tahoma,Arial,sans-serif;
  position:relative;z-index:999999999;color:var(--alovam-text)
}
#alovam-chat-root *{box-sizing:border-box;font-family:inherit}
.alovam-launcher{
  position:fixed;right:24px;bottom:24px;min-width:190px;height:66px;border:0;border-radius:24px;
  background:var(--alovam-primary);color:#fff;display:flex;align-items:center;gap:11px;padding:0 16px 0 20px;
  box-shadow:0 18px 48px rgba(2,47,37,.28),0 4px 14px rgba(0,0,0,.12);cursor:pointer;z-index:999999999;
  transition:transform .22s ease,box-shadow .22s ease;isolation:isolate;overflow:visible
}
.alovam-launcher:before{content:"";position:absolute;inset:-5px;border:1px solid color-mix(in srgb,var(--alovam-primary) 30%,transparent);border-radius:29px;opacity:.65;z-index:-1;animation:alovamHalo 2.7s ease-in-out infinite}
.alovam-launcher:hover{transform:translateY(-4px);box-shadow:0 24px 58px rgba(2,47,37,.32),0 7px 18px rgba(0,0,0,.13)}
.alovam-launcher__icon-wrap{position:relative;width:43px;height:43px;border-radius:15px;background:rgba(255,255,255,.14);display:grid;place-items:center;border:1px solid rgba(255,255,255,.18);flex:0 0 43px}
.alovam-launcher__icon{width:23px;height:23px;display:block;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.alovam-launcher__pulse{position:absolute;width:11px;height:11px;border-radius:50%;background:#48e28c;right:-2px;top:-2px;border:2px solid var(--alovam-primary);box-shadow:0 0 0 2px rgba(255,255,255,.32)}
.alovam-launcher__pulse:after{content:"";position:absolute;inset:-7px;border:1px solid #48e28c;border-radius:50%;animation:alovamPulse 1.8s infinite}
.alovam-launcher__copy{display:flex;flex-direction:column;text-align:right;line-height:1.3;white-space:nowrap}
.alovam-launcher__eyebrow{font-size:10px;font-weight:500;opacity:.76;margin-bottom:3px}
.alovam-launcher__text{font-size:14px;font-weight:800;letter-spacing:-.2px}
.alovam-launcher__chev{font-size:20px;opacity:.65;margin-right:auto;transform:rotate(180deg)}
@keyframes alovamPulse{0%{transform:scale(.55);opacity:1}100%{transform:scale(1.65);opacity:0}}
@keyframes alovamHalo{0%,100%{transform:scale(.985);opacity:.4}50%{transform:scale(1.02);opacity:.85}}

.alovam-panel{
  position:fixed;right:24px;bottom:105px;width:min(410px,calc(100vw - 30px));height:min(690px,calc(100vh - 135px));
  background:var(--alovam-bg);border-radius:28px;overflow:hidden;box-shadow:0 30px 90px rgba(9,35,29,.3),0 6px 20px rgba(0,0,0,.09);
  display:flex;flex-direction:column;border:1px solid rgba(2,47,37,.09);z-index:999999999;animation:alovamPanelIn .26s cubic-bezier(.2,.8,.2,1)
}
.alovam-panel[hidden]{display:none}
@keyframes alovamPanelIn{from{opacity:0;transform:translateY(14px) scale(.97)}to{opacity:1;transform:none}}
.alovam-header{position:relative;background:linear-gradient(145deg,var(--alovam-primary),color-mix(in srgb,var(--alovam-primary) 82%,#176b55));color:#fff;padding:19px 19px 17px;display:flex;align-items:center;justify-content:space-between;overflow:hidden}
.alovam-header:before{content:"";position:absolute;width:180px;height:180px;border-radius:50%;background:rgba(255,255,255,.06);left:-65px;top:-85px}
.alovam-header:after{content:"";position:absolute;width:95px;height:95px;border-radius:50%;border:1px solid rgba(255,255,255,.08);left:52px;bottom:-70px}
.alovam-agent{display:flex;gap:11px;align-items:center;position:relative;z-index:1}
.alovam-agent-copy strong{display:block;font-size:16px;font-weight:800;letter-spacing:-.2px}
.alovam-agent-copy span{display:flex;align-items:center;font-size:10.5px;opacity:.9;margin-top:5px;font-weight:500}
.alovam-agent-copy span i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#4de08c;margin-left:6px;box-shadow:0 0 0 3px rgba(77,224,140,.12)}
.alovam-avatar{width:48px;height:48px;border-radius:17px;background:rgba(255,255,255,.98);color:var(--alovam-primary);display:grid;place-items:center;font-weight:900;font-size:17px;overflow:hidden;box-shadow:0 7px 16px rgba(0,0,0,.12);border:2px solid rgba(255,255,255,.32)}
.alovam-avatar img{width:100%;height:100%;object-fit:cover}
.alovam-close{position:relative;z-index:2;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.09);color:#fff;width:36px;height:36px;border-radius:13px;font-size:22px;line-height:1;cursor:pointer;transition:.2s}
.alovam-close:hover{background:rgba(255,255,255,.17);transform:rotate(4deg)}
.alovam-subheader{background:#fff;padding:9px 14px;color:#5f716a;font-size:10.5px;border-bottom:1px solid #e3ebe7;display:flex;align-items:center;justify-content:center;gap:8px}
.alovam-subheader b{font-weight:700;color:var(--alovam-primary)}
.alovam-subheader i{width:4px;height:4px;border-radius:50%;background:#b4c0bb}
.alovam-messages{flex:1;min-height:0;overflow:auto;padding:18px 14px 10px;scroll-behavior:smooth;background:radial-gradient(circle at 20% 0%,rgba(2,47,37,.035),transparent 34%),var(--alovam-bg)}
.alovam-messages::-webkit-scrollbar{width:5px}.alovam-messages::-webkit-scrollbar-thumb{background:#cad6d1;border-radius:20px}
.alovam-msg{max-width:86%;margin:0 0 10px;line-height:1.9;font-size:12.5px;animation:alovamIn .2s ease-out}
.alovam-msg>div{padding:10px 13px;border-radius:17px}
.alovam-msg.bot,.alovam-msg.agent{margin-left:auto}
.alovam-msg.bot>div,.alovam-msg.agent>div{background:#fff;border:1px solid #e1eae6;border-bottom-right-radius:6px;box-shadow:0 4px 14px rgba(22,55,46,.045)}
.alovam-msg.agent>div{border-right:3px solid var(--alovam-primary)}
.alovam-msg.user{margin-right:auto}.alovam-msg.user>div{background:var(--alovam-primary);color:#fff;border-bottom-left-radius:6px;box-shadow:0 6px 16px color-mix(in srgb,var(--alovam-primary) 18%,transparent)}
.alovam-msg small{display:block;color:#6f7b77;font-size:9.5px;margin:0 6px 3px}
.alovam-typing{height:32px;padding:0 18px;display:flex;gap:4px;align-items:center;color:#77847f;font-size:10px}.alovam-typing[hidden]{display:none}.alovam-typing span{width:5px;height:5px;border-radius:50%;background:#92a09a;animation:alovamTyping 1s infinite alternate}.alovam-typing span:nth-child(2){animation-delay:.2s}.alovam-typing span:nth-child(3){animation-delay:.4s}.alovam-typing em{font-style:normal;margin-right:5px}@keyframes alovamTyping{to{transform:translateY(-3px);opacity:.45}}@keyframes alovamIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.alovam-action{flex:0 0 auto;padding:8px 13px 12px;background:linear-gradient(180deg,rgba(243,247,245,0),#f3f7f5 18%)}
.alovam-card{background:#fff;border:1px solid #dee8e3;border-radius:18px;padding:13px;box-shadow:0 7px 24px rgba(20,57,47,.055)}
.alovam-card label{display:block;font-size:10.5px;color:#5f6d68;margin-bottom:9px;font-weight:600}.alovam-card label:last-of-type{margin-bottom:10px}
.alovam-card input{display:block;width:100%;height:43px;border:1px solid #d8e3de;border-radius:12px;margin-top:5px;padding:0 11px;outline:0;font-size:12.5px;background:#fbfdfc;transition:.18s}
.alovam-card input:focus{border-color:var(--alovam-primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--alovam-primary) 10%,transparent);background:#fff}
.alovam-card button,.alovam-retry{width:100%;height:44px;border:0;border-radius:12px;background:var(--alovam-primary);color:#fff;font-weight:800;font-size:12.5px;cursor:pointer;box-shadow:0 7px 18px color-mix(in srgb,var(--alovam-primary) 16%,transparent);transition:.18s}.alovam-card button:hover,.alovam-retry:hover{transform:translateY(-1px)}
.alovam-error{color:#c23434;font-size:10.5px;min-height:14px;margin:7px 2px 0}
.alovam-choices{display:grid;grid-template-columns:1fr 1fr;gap:9px}.alovam-choices button{min-height:47px;background:#fff;border:1px solid #dce7e2;border-radius:14px;color:#24322d;font-weight:800;font-size:11.5px;cursor:pointer;box-shadow:0 4px 12px rgba(20,57,47,.035);transition:.18s}.alovam-choices button:hover{border-color:var(--alovam-primary);color:var(--alovam-primary);transform:translateY(-1px);box-shadow:0 6px 16px rgba(20,57,47,.07)}
.alovam-free-message{display:flex;background:#fff;border:1px solid #d9e4df;border-radius:15px;overflow:hidden;box-shadow:0 6px 18px rgba(20,57,47,.04)}.alovam-free-message input{flex:1;border:0;outline:0;padding:0 12px;height:46px;font-size:11.5px;background:#fff}.alovam-free-message button{width:49px;border:0;background:var(--alovam-primary);color:#fff;cursor:pointer;font-size:17px;transform:scaleX(-1)}
.alovam-new-request{display:block;margin:8px auto 0;border:0;background:transparent;color:#75827d;font-size:9.5px;cursor:pointer}.alovam-footer{text-align:center;font-size:9px;color:#86958f;padding:2px 0 8px;background:#f3f7f5}.alovam-footer span,.alovam-footer small{display:block}.alovam-footer small{font-size:8px;margin-top:2px;opacity:.78}.alovam-footer strong{color:var(--alovam-primary);font-weight:800}.ltr{direction:ltr}
@media(max-width:600px){.alovam-launcher{right:14px;bottom:14px;min-width:0;width:62px;height:62px;padding:0;justify-content:center;border-radius:21px}.alovam-launcher__copy,.alovam-launcher__chev{display:none}.alovam-launcher__icon-wrap{background:transparent;border:0}.alovam-panel{right:7px;bottom:86px;width:calc(100vw - 14px);height:min(700px,calc(100vh - 96px));border-radius:24px}.alovam-choices{grid-template-columns:1fr 1fr}}


/* AloVam UI isolation: keep theme/Elementor palette and typography out of the widget. */
#alovam-chat-root{
  color-scheme:light;
  --e-global-color-primary:var(--alovam-primary);
  --e-global-color-secondary:#12201c;
  --e-global-color-text:#12201c;
  --e-global-color-accent:var(--alovam-primary);
  font-family:'Vazirmatn','Vazir',Tahoma,Arial,sans-serif!important;
  font-size:16px!important;
  line-height:1.5!important;
}
#alovam-chat-root button,#alovam-chat-root input,#alovam-chat-root textarea,#alovam-chat-root select{
  font-family:'Vazirmatn','Vazir',Tahoma,Arial,sans-serif!important;
  text-transform:none!important;
  letter-spacing:normal!important;
  font-style:normal!important;
}
#alovam-chat-root button{-webkit-appearance:none!important;appearance:none!important}
#alovam-chat-root .alovam-launcher,#alovam-chat-root .alovam-card button,#alovam-chat-root .alovam-retry,#alovam-chat-root .alovam-free-message button{
  background-color:var(--alovam-primary)!important;color:#fff!important;border-color:transparent!important;
}
#alovam-chat-root .alovam-panel,#alovam-chat-root .alovam-messages,#alovam-chat-root .alovam-action{color:var(--alovam-text)!important}
#alovam-chat-root .alovam-card input,#alovam-chat-root .alovam-free-message input{
  color:#12201c!important;background-color:#fbfdfc!important;border-color:#d8e3de!important;
}
#alovam-chat-root .alovam-card input:focus,#alovam-chat-root .alovam-free-message input:focus{border-color:var(--alovam-primary)!important}
#alovam-chat-root .alovam-choices button{background:#fff!important;color:#24322d!important;border-color:#dce7e2!important}
#alovam-chat-root .alovam-choices button:hover{color:var(--alovam-primary)!important;border-color:var(--alovam-primary)!important}

/* v1.4 responsive popup dialog */
html.alovam-chat-open,body.alovam-chat-open{overflow:hidden!important}
.alovam-backdrop{
  position:fixed!important;inset:0!important;background:rgba(4,20,16,.52)!important;
  backdrop-filter:blur(5px)!important;-webkit-backdrop-filter:blur(5px)!important;
  z-index:999999997!important;animation:alovamBackdropIn .2s ease-out!important
}
.alovam-backdrop[hidden]{display:none!important}
@keyframes alovamBackdropIn{from{opacity:0}to{opacity:1}}
#alovam-chat-root .alovam-panel{
  position:fixed!important;right:auto!important;bottom:auto!important;left:50%!important;top:50%!important;
  width:min(460px,calc(100vw - 32px))!important;height:min(720px,calc(100dvh - 40px))!important;
  max-height:calc(100dvh - 40px)!important;transform:translate(-50%,-50%)!important;
  z-index:999999999!important;border-radius:28px!important;
  animation:alovamPopupIn .28s cubic-bezier(.2,.8,.2,1)!important
}
@keyframes alovamPopupIn{from{opacity:0;transform:translate(-50%,calc(-50% + 18px)) scale(.965)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@media(max-width:600px){
  #alovam-chat-root .alovam-panel{
    width:calc(100vw - 16px)!important;height:calc(100dvh - 16px)!important;max-height:calc(100dvh - 16px)!important;
    border-radius:22px!important;top:50%!important;left:50%!important;right:auto!important;bottom:auto!important;
  }
  #alovam-chat-root .alovam-header{padding:15px 14px 13px!important}
  #alovam-chat-root .alovam-messages{padding:14px 11px 8px!important}
  #alovam-chat-root .alovam-action{padding:7px 10px 10px!important}
}
@media(max-width:380px){
  #alovam-chat-root .alovam-panel{width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important}
}

/* v1.4.1: keep the latest message fully visible above the composer. */
#alovam-chat-root .alovam-typing,#alovam-chat-root .alovam-action,#alovam-chat-root .alovam-footer{flex-shrink:0}
