/* AI Chat Styles */
#icar-ai-chat-container {
    position: fixed;
    bottom: 0px;
    left: 0px;
    z-index: 9999999 !important;    
    direction: rtl;
    font-family: 'OpenSansHebrew-Regular', Arial, sans-serif;
  }
  
  #icar-ai-chat-toggle {
    width: 50px;
    height: 50px;
    border: none;
    background: url("/assets/images/ai_logo2.svg") no-repeat center center;
    background-size: contain;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    position: absolute;
    left: 50%; margin-left: -525px;
    top: 314px;
    z-index: 1039;transition: all 0.3s;
  }
  .fixedtop  #icar-ai-chat-toggle { position: fixed; top: 10px;transition: all 0.3s;margin-left: -485px; width: 40px;}
  #icar-ai-chat-toggle img:nth-child(2) { display: none;}
  .fixedtop #icar-ai-chat-toggle img:nth-child(2) { display: block;}
  .fixedtop #icar-ai-chat-toggle img:nth-child(1) { display: none;}
  
  #icar-ai-chat-toggle:hover {
    transform: scale(1.05);
  }
  
  #icar-ai-chat-toggle img {
    width: 100%;
    height: 100%;
  }
  
  .ai_back {
    transition: all 0.3s;
    transform: scale(0);
    opacity: 0;
    width: 430px;
    top: 314px;
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 9999999999999998 !important; 
    background: rgba(109, 110, 113, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  
  #icar-ai-chat-box {
    transition: all 0.3s;
    transform: scale(0);
    opacity: 0;
    width: 430px;
    position: fixed;
    top: 314px;    
    left: 0;
    bottom: 0;
    z-index: 9999999999999999 !important; 
    padding-bottom: 120px;
    padding-top: 130px;
    background: transparent;
  }
  
  .ai_back.show,
  #icar-ai-chat-box.show {
    transition: all 0.3s;
    transform: scale(1);
    opacity: 1;
  }
  
  #icar-ai-chat-box.open {
    transition: all 0.3s;
    transform: scale(1);
    opacity: 1;
  }
  
  #icar-ai-chat-header {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    top: 0;
    height: 130px;
    padding-top: 36px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: transparent;
  }
  
  #icar-ai-chat-title {
    height: 60px;
    width: auto;
  }
  
  #icar-ai-chat-close {
    cursor: pointer;
    font-size: 18px;
  }
  
  #icar-ai-chat-messages {
    padding: 15px 35px;
    display: flex;
    flex-direction: column;
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    top: 135px;
    bottom: 120px;
    overflow-y: auto;
    background: transparent;
  }
  
  .icar-ai-chat-message {
    width: 100%;
    margin-bottom: 25px;
    animation: fadeIn 0.3s ease;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .icar-ai-chat-user {
    background: #FFF;
    position: relative;
    margin-bottom: 25px;
    border-radius: 27px;
    padding: 12px 20px;
    border: solid 1px #fff;
    font-size: 14px;
    line-height: 21px;
    font-family: 'MosesDisplay1x0';
    font-weight: normal;
    color: #000;
    width: 100%;
    word-wrap: break-word;
  }
  
  .icar-ai-chat-user:after {
    content: "";
    position: absolute;
    right: 20px;
    bottom: -15px;
    width: 0;
    height: 0;
    border-top: 15px solid #fff;
    border-right: 20px solid transparent;
  }
  
  .icar-ai-chat-ai {
    background: #FFF;
    position: relative;
    margin-bottom: 25px;
    border-radius: 27px;
    padding: 12px 20px;
    border: solid 1px #fff;
    font-size: 14px;
    line-height: 21px;
    font-family: 'MosesDisplay1x0';
    font-weight: normal;
    color: #000;
    width: 100%;
    word-wrap: break-word;
  }
  
  .icar-ai-chat-ai:after {
    content: "";
    position: absolute;
    left: 20px;
    bottom: -15px;
    width: 0;
    height: 0;
    border-top: 15px solid #fff;
    border-left: 20px solid transparent;
  }
  
  .icar-ai-chat-system {
    align-self: center;
    background-color: #ffe6e6;
    text-align: center;
    font-size: 12px;
  }
  
  .icar-ai-chat-content {
    word-break: break-word;
  }
  
  #icar-ai-chat-input-container {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: #272727;
    padding: 25px 35px 0 35px;
    text-align: center;
    font-size: 12px;
    line-height: 17px;
    color: #fff;
    font-family: 'MosesDisplay1x0';
    font-weight: normal;
  }
  
  .ai_formgroup {
    display: block;
    position: relative;
    padding-bottom: 12px;
  }
  
  #icar-ai-chat-input {
    background: #FFF;
    height: 54px;
    border-radius: 27px;
    border: solid 2px #fff;
    width: 100%;
    padding: 0 15px 0 54px;
    font-size: 15px;
    line-height: 50px;
    font-family: 'MosesDisplay1x0';
    font-weight: normal;
    color: #000;
    outline: none;
  }
  
  .ai_submit {
    width: 54px;
    height: 54px;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
  }
  
  #icar-ai-chat-button {
    display: inline-block;
    width: 54px;
    height: 54px;
    background: url("/assets/images/submit_button.svg") no-repeat center center;
    cursor: pointer;
    text-align: center;
    color: rgba(255, 255, 255, 0);
    font-size: 0px;
    border: 0;
    border-radius: 0px;
  }
  
  #icar-ai-chat-button:hover {
    opacity: 0.8;
  }
  
  #icar-ai-chat-input-container p {
    margin-bottom: 0;
  }
  
  #icar-ai-chat-close {
    display: inline-block;
    padding: 0;
    margin: 0;
    position: absolute;
    z-index: 3;
    border: 0;
    right: 10px;
    top: 10px;
    width: 25px;
    height: 25px;
    background: url("/assets/images/close_button.svg") no-repeat center center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0);
    font-size: 0px;
  }
  
  #icar-ai-chat-resize {
    display: inline-block;
    padding: 0;
    margin: 0;
    position: absolute;
    z-index: 3;
    border: 0;
    left: 10px;
    top: 10px;
    width: 30px;
    height: 30px;
    background: #f7941d;
    border-radius: 50%;
    cursor: pointer;
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
  }
  
  #icar-ai-chat-resize:hover {
    background: blue;
    transform: scale(1.05);
  }
  
  #icar-ai-chat-resize i {
    font-size: 12px;
  }
  
  .ai_back.expanded {
    width: calc(430px * 2);
  }
  
  #icar-ai-chat-box.expanded {
    width: calc(430px * 2);
  }
  
  #icar-ai-chat-box.expanded #icar-ai-chat-header {
    z-index: 999999;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 130px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }
  
  
  .icar-ai-chat-loading-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
  }
  
  .icar-ai-chat-loading-dot {
    width: 8px;
    height: 8px;
    background-color: #888;
    border-radius: 50%;
    animation: dotPulse 1.5s infinite ease-in-out;
  }
  
  .icar-ai-chat-loading-dot:nth-child(2) {
    animation-delay: 0.2s;
  }
  
  .icar-ai-chat-loading-dot:nth-child(3) {
    animation-delay: 0.4s;
  }
  
  @keyframes dotPulse {
    0%, 60%, 100% { transform: scale(1); opacity: 0.6; }
    30% { transform: scale(1.5); opacity: 1; }
  }
  #popupVSButton.hide { display: none !important;}
@media (min-width: 992px) and (max-width: 1199px) {
  #icar-ai-chat-toggle { margin-left: -480px;}
  .fixedtop #icar-ai-chat-toggle { margin-left: -365px;}

}  
@media (min-width: 768px) and (max-width: 991px) {
    #icar-ai-chat-toggle { margin-left: -180px;}
  .fixedtop #icar-ai-chat-toggle { margin-left: -275px;}

}
   @media (min-width: 768px) {
    .ai_back.expanded { width: 860px!important;}
    #icar-ai-chat-box.expanded { width: 860px!important; }

    .fixedtop .ai_back ,.fixedtop  #icar-ai-chat-box { top: 57px;}

   }
  
  @media (max-width: 767px) {
      #icar-ai-chat-toggle img:nth-child(2), .fixedtop #icar-ai-chat-toggle img:nth-child(2) { display: none;}
  .fixedtop #icar-ai-chat-toggle img:nth-child(1) { display: block;}
      .zoomic { left: 60px;  }
    #icar-ai-chat-toggle,.fixedtop  #icar-ai-chat-toggle {position: fixed;
      left: 20px; margin-left: auto;
      top: 10px;
      width: 30px;
      height: 30px;
    }
    .fixedtop  #icar-ai-chat-toggle { position: fixed; top: 10px; margin-left: auto;}
    .pushy-open-right #icar-ai-chat-toggle { left: -70px;transition: all 0.3s;}
    
    #icar-ai-chat-resize {
      display: none !important;
    }
    
    .ai_back {
      width: 100vw;
      top: 45px;
      left: 0;
      bottom: 0;
      right: 0;

    }
    
    #icar-ai-chat-box {
      width: 100vw;
      top: 45px;
      left: 0;
      bottom: 0;
      right: 0; 
    }
    
    #icar-ai-chat-messages {
      padding: 15px 25px;
    }
    
    .ai_back.expanded,
    #icar-ai-chat-box.expanded {
      width: 80vw;
    }
    #icar-ai-chat-input-container {padding: 15px 35px 0 35px;}
    
  }