@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@500;600;700;800;900&family=Lato:wght@400;700&display=swap');

.aich-chatbox{
  --orange:#f45a1f;
  --orange2:#ff7a35;
  --dark:#101820;
  --dark2:#172831;
  --ink:#16242c;
  --text:#64747d;
  --line:#e8ecef;

  font-family:'Lato',sans-serif;
  position:fixed;
  left:24px;
  right:auto;
  bottom:24px;
  z-index:9999998;
}

.aich-chatbox,
.aich-chatbox *{
  box-sizing:border-box;
}

.aich-chat-launcher{
  width:66px;
  height:66px;
  border:0;
  outline:0;
  border-radius:22px;
  position:relative;
  display:grid;
  place-items:center;
  cursor:pointer;
  color:#fff;
  background:linear-gradient(135deg,var(--orange),var(--orange2));
  box-shadow:0 18px 42px rgba(244,90,31,.34);
  transition:transform .28s ease,box-shadow .28s ease;
  padding:0;
}

.aich-chat-launcher:hover{
  transform:translateY(-4px) scale(1.03);
  box-shadow:0 22px 48px rgba(244,90,31,.40);
}

.aich-chat-launcher-svg{
  width:29px;
  height:29px;
  position:relative;
  z-index:3;
  color:#fff;
}

.aich-chat-launcher-ring{
  position:absolute;
  inset:-7px;
  border:1px solid rgba(244,90,31,.30);
  border-radius:27px;
  animation:aichChatRing 2.4s ease-in-out infinite;
}

.aich-chat-launcher-pulse{
  position:absolute;
  width:13px;
  height:13px;
  right:-2px;
  top:-2px;
  border-radius:50%;
  background:#34c759;
  border:3px solid #fff;
  box-shadow:0 0 0 5px rgba(52,199,89,.14);
}

@keyframes aichChatRing{
  0%,100%{transform:scale(.96);opacity:.45}
  50%{transform:scale(1.05);opacity:1}
}

/* LEFT-SIDE PANEL */
.aich-chat-panel{
  position:absolute;
  left:0;
  right:auto;
  bottom:82px;
  width:390px;
  max-height:min(650px,calc(100vh - 120px));
  border-radius:28px;
  overflow:hidden;
  background:#fff;
  border:1px solid rgba(16,24,32,.08);
  box-shadow:0 30px 80px rgba(16,24,32,.24);

  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(16px) scale(.97);
  transform-origin:bottom left;
  transition:
    opacity .28s ease,
    visibility .28s ease,
    transform .28s ease;
}

.aich-chat-panel.is-open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0) scale(1);
}

.aich-chat-header{
  min-height:88px;
  padding:17px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  color:#fff;
  background:
    radial-gradient(circle at 10% 20%,rgba(244,90,31,.24),transparent 35%),
    linear-gradient(135deg,#0f181e,#172831);
}

.aich-chat-brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.aich-chat-avatar,
.aich-msg-avatar{
  display:grid;
  place-items:center;
  flex:0 0 auto;
  font-family:'Urbanist',sans-serif;
  font-weight:900;
  color:#fff;
  background:linear-gradient(135deg,var(--orange),var(--orange2));
}

.aich-chat-avatar{
  width:48px;
  height:48px;
  border-radius:15px;
  box-shadow:0 10px 24px rgba(244,90,31,.24);
}

.aich-chat-brand strong{
  display:block;
  font:900 18px/1.2 'Urbanist',sans-serif;
  margin-bottom:5px;
}

.aich-chat-brand span{
  display:flex;
  align-items:center;
  gap:6px;
  color:#c9d2d7;
  font-size:11px;
}

.aich-chat-brand i{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#36d76f;
  box-shadow:0 0 0 4px rgba(54,215,111,.10);
}

.aich-chat-close{
  width:36px;
  height:36px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:11px;
  cursor:pointer;
  color:#fff;
  background:rgba(255,255,255,.06);
  font-size:25px;
  line-height:1;
  padding:0;
}

.aich-chat-body{
  height:420px;
  overflow:auto;
  padding:18px;
  background:
    radial-gradient(circle at 8% 10%,rgba(244,90,31,.05),transparent 22%),
    #f8fafb;
  scroll-behavior:smooth;
}

.aich-chat-day{
  width:max-content;
  margin:0 auto 15px;
  padding:6px 10px;
  border-radius:999px;
  color:#849198;
  background:#fff;
  border:1px solid #edf0f2;
  font-size:10px;
  font-weight:700;
}

.aich-msg{
  display:flex;
  gap:9px;
  align-items:flex-end;
  margin:10px 0;
}

.aich-msg-user{
  justify-content:flex-end;
}

.aich-msg-avatar{
  width:30px;
  height:30px;
  border-radius:10px;
  font-size:10px;
}

.aich-msg-bubble{
  max-width:82%;
  padding:12px 14px;
  border-radius:17px;
  font-size:13px;
  line-height:1.6;
  box-shadow:0 8px 18px rgba(16,24,32,.04);
}

.aich-msg-bot .aich-msg-bubble{
  color:#43535c;
  background:#fff;
  border:1px solid #e8ecef;
  border-bottom-left-radius:5px;
}

.aich-msg-user .aich-msg-bubble{
  color:#fff;
  background:linear-gradient(135deg,var(--orange),var(--orange2));
  border-bottom-right-radius:5px;
}

.aich-quick-wrap{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:10px 0 2px 39px;
}

.aich-quick{
  border:1px solid #f0d8cc;
  border-radius:999px;
  padding:9px 11px;
  cursor:pointer;
  color:#c84b18;
  background:#fff8f4;
  font:800 11px/1 'Urbanist',sans-serif;
  transition:.2s ease;
}

.aich-quick:hover{
  color:#fff;
  border-color:var(--orange);
  background:var(--orange);
  transform:translateY(-2px);
}

.aich-chat-link{
  display:inline-flex;
  margin-top:8px;
  min-height:38px;
  padding:0 13px;
  border-radius:11px;
  align-items:center;
  justify-content:center;
  color:#fff!important;
  background:linear-gradient(135deg,var(--orange),var(--orange2));
  font:800 12px/1 'Urbanist',sans-serif;
  text-decoration:none!important;
}

.aich-chat-inputbar{
  display:grid;
  grid-template-columns:1fr 46px;
  gap:9px;
  padding:13px;
  background:#fff;
  border-top:1px solid #edf0f2;
}

.aich-chat-inputbar input{
  width:100%;
  height:46px;
  border:1px solid #e3e8eb;
  border-radius:14px;
  outline:0;
  padding:0 14px;
  color:#24343d;
  background:#f8fafb;
  font:400 13px/1 'Lato',sans-serif;
}

.aich-chat-inputbar input:focus{
  border-color:rgba(244,90,31,.55);
  box-shadow:0 0 0 3px rgba(244,90,31,.08);
}

.aich-chat-inputbar button{
  width:46px;
  height:46px;
  border:0;
  border-radius:14px;
  cursor:pointer;
  color:#fff;
  background:linear-gradient(135deg,var(--orange),var(--orange2));
  transition:.2s ease;
  display:grid;
  place-items:center;
  padding:0;
}

.aich-chat-inputbar button svg{
  width:19px;
  height:19px;
}

.aich-chat-inputbar button:hover{
  transform:translateY(-2px);
}

.aich-chat-footer{
  padding:8px 12px 11px;
  text-align:center;
  color:#9aa5ab;
  background:#fff;
  font-size:9px;
  letter-spacing:.4px;
}

/* Mobile */
@media(max-width:520px){
  .aich-chatbox{
    left:14px;
    right:auto;
    bottom:14px;
  }

  .aich-chat-launcher{
    width:60px;
    height:60px;
    border-radius:19px;
  }

  .aich-chat-panel{
    position:fixed;
    left:12px;
    right:12px;
    bottom:84px;
    width:auto;
    max-height:calc(100vh - 105px);
    transform-origin:bottom left;
  }

  .aich-chat-body{
    height:min(430px,calc(100vh - 300px));
  }
}
