/* @import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');

.swissai-chat-container {
    width: 400px;
    height: auto;
    position: fixed;
    bottom: 5em;
    right: 10px;
    z-index: 9999;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    font-family: 'Poppins', sans-serif;
    transform: scale(0);
    transform-origin: bottom right;
}

.swissai-chat-container.visible{
    transform-origin: bottom right;
    transition: all 0.3s ease-in-out;
    transform: scale(1);
}

.swissai-chat-container .swissai-chat-header{
    width: 100%;
    height: 60px;
    background-color: #3B82F6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
    border-bottom: 1px solid #eee;
}

.swissai-chat-container .swissai-chat-header .swissai-chat-header-title{
    font-size: 18px;
    font-weight: 900;
    color: #fff;
}

.swissai-chat-container .swissai-chat-header .right{
    display: flex;
    align-items: center;
    justify-items: center;
    gap: 10px;
}
.swissai-chat-container .swissai-chat-header .swissai-chat-header-close{
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    outline: none;
    border: none;
    color: #fff;
}

/* swissai chat body */
.swissai-chat-container .swissai-chat-body{
    width: 100%;
    height: 400px;
    max-height: 400px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 10px;
    box-sizing: border-box;
    overflow-y: auto;
    position: relative;
}

.swissai-chat-container .swissai-chat-body .swissai-chat-message-cont{
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 5px 0;
    box-sizing: border-box;
}

.swissai-chat-container .swissai-chat-body .swissai-chat-message-cont .swissai-chat-body-user{
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: flex-start;
    flex-direction: row;
    justify-items: center;
    gap: 5px;
}

.swissai-chat-container .swissai-chat-body .swissai-chat-message-cont .swissai-chat-body-user .swissai-chat-body-user-message-container{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
}

.swissai-chat-container .swissai-chat-body .swissai-chat-message-cont .swissai-chat-body-user .swissai-chat-body-user-message-container .swissai-chat-body-user-message{
    width: auto;
    max-width: 300px;
    background-color: #3B82F6;
    border-radius: 10px 0 10px 10px;
    padding: 2px 20px;
    box-sizing: border-box;
    color: #fff;
    font-size: 12px;
    font-weight: 300;
    font-family: 'Poppins', sans-serif;
    word-wrap: break-word;
}

/* swissai-chat-message-timestamp */
.swissai-chat-container .swissai-chat-body .swissai-chat-message-cont .swissai-chat-body-user .swissai-chat-body-user-message-container .swissai-chat-message-timestamp{
    width: 100%;
    max-width: 300px;
    display: flex;
    align-items: flex-start;
    justify-items: flex-start;
    box-sizing: border-box;
    font-size: 10px;
    color: #999;
    font-weight: 100;
    font-family: 'Poppins', sans-serif;
}

.swissai-chat-container .swissai-chat-body .swissai-chat-message-cont .swissai-chat-body-user .swissai-chat-body-user-message-container .swissai-chat-message-metadata{
    width: 100%;
    max-width: 300px;
    display: flex;
    align-items: flex-start;
    justify-items: flex-start;
    box-sizing: border-box;
    font-size: 10px;
    color: #999;
    font-weight: 100;
    font-family: 'Poppins', sans-serif;
}


/* swissai-chat-message-user-avatar */
.swissai-chat-container .swissai-chat-body .swissai-chat-message-cont .swissai-chat-body-user .swissai-chat-avatar{
    border-radius: 50%;
    background-color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    padding: 2px;
    color: #fff;
    overflow: hidden;
}

/* AI MESSAGES */
.swissai-chat-container .swissai-chat-body .swissai-chat-message-cont .swissai-chat-body-ai{
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: flex-start;
    flex-direction: row;
    justify-items: center;
    gap: 5px;
}

.swissai-chat-container .swissai-chat-body .swissai-chat-message-cont .swissai-chat-body-ai .swissai-chat-body-ai-message-container{
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.swissai-chat-container .swissai-chat-body .swissai-chat-message-cont .swissai-chat-body-ai .swissai-chat-body-ai-message-container .swissai-chat-body-ai-message{
    width: 100%;
    max-width: 300px;
    background-color: #eee;
    border-radius: 0 10px 10px 10px;
    padding: 2px 20px;
    box-sizing: border-box;
    color: #333;
    font-size: 12px;
    font-weight: 300;
    font-family: 'Poppins', sans-serif;
    word-wrap: break-word;
}

/* swissai-chat-message-timestamp */
.swissai-chat-container .swissai-chat-body .swissai-chat-message-cont .swissai-chat-body-ai .swissai-chat-body-ai-message-container .swissai-chat-message-timestamp{
    width: 100%;
    max-width: 300px;
    display: flex;
    align-items: flex-start;
    justify-items: flex-start;
    box-sizing: border-box;
    font-size: 10px;
    color: #999;
    font-weight: 100;
    font-family: 'Poppins', sans-serif;
}

.swissai-chat-container .swissai-chat-body .swissai-chat-message-cont .swissai-chat-body-ai .swissai-chat-body-ai-message-container .swiss-chat-message-metadata{
    width: 100%;
    max-width: 300px;
    display: flex;
    align-items: flex-start;
    justify-items: flex-start;
    box-sizing: border-box;
    font-size: 10px;
    color: #999;
    font-weight: 100;
    font-family: 'Poppins', sans-serif;
}

.swissai-metadata-link{
    font-size: 10px;
    color: #777;
    padding: 2px 5px;
    background: #eee;
    border-radius: 10px;
}

/* swissai-chat-message-user-avatar */
.swissai-chat-container .swissai-chat-body .swissai-chat-message-cont .swissai-chat-body-ai .swissai-chat-avatar{
    border-radius: 50%;
    background-color: #3B82F6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    padding: 4px 4px;
    color: #fff;
    overflow: hidden;
    transform: scale(.95);
}

.swissai-chat-container .swissai-chat-body .swissai-chat-message-cont .swissai-chat-body-ai .swissai-chat-admin-avatar{
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}



/* chat control input */
.swissai-chat-container .swissai-chat-control{
    width: 100%;
    height: 100px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
    border-top: 1px solid #eee;
}

.swissai-chat-container .swissai-chat-control .swissai-chat-control-input{
    width: 100%;
    height: 40px;
    border-radius: 20px;
    border: 1px solid #eee;
    padding: 0 20px;
    box-sizing: border-box;
    outline: none;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    font-family: 'Poppins', sans-serif;
}

.swissai-chat-container .swissai-chat-control .swissai-chat-control-input:focus{
    border: 1px solid #3B82F6;
}

.swissai-chat-container .swissai-chat-control .swissai-chat-control-input.disabled{
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.4;
}

.swissai-chat-container .swissai-chat-control .swissai-chat-control-send{
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    outline: none;
    border: none;
    color: #000;
}

/* SwissAI feature */
.swissai-chat-container .swissai-chat-features{
    width: 100%;
    height: auto;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content:flex-start;
    padding: 4px 10px;
    gap: 10px;
    box-sizing: border-box;
    border-top: 1px solid #eee;
}

.swissai-chat-container .swissai-chat-features .swissai-feature-btn{
    width: auto;
    height: 30px;
    border-radius: 10px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    border: 1px solid #eee;
    color: #000;
}

.swissai-chat-container .swissai-chat-features .swissai-feature-btn:hover{
    background-color: #eee;
}

.swissai-chat-container .swissai-chat-features .swissai-feature-btn.disabled{
    background-color: #eee;
    cursor: not-allowed;
    opacity: 0.5;
}


/* chat activator btn */
.swissai-chat-activator-btn{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #3B82F6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 9999;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    outline: none;
    border: none;
    color: #fff;
}

.swissai-chat-activator-btn:hover{
    background-color: #2563EB;
}

.swissai-chat-activator-btn:focus{
    outline: none;
}

/* Modal Loader */
.swissai-modal-loader{
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9999;
    display: none;
    backdrop-filter: blur(5px);
}

.swissai-modal-loader.visible {
    display: flex;
    align-items: center;
    justify-content: center;
}



/* modal loader spinner */
.swissai-modal-loader .swissai-spinner{
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 5px solid transparent;
    border-top: 5px solid #85f3ff;
    animation: spin .5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* AI Loading state */
.swissai-ai-loading-cont {
    display: none;
    margin-top: 20px;
}

.swissai-ai-loading-cont.visible{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.swissai-ai-loading-cont .swissai-chat-avatar{
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: #3B82F6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    padding: 2px 3px;
    color: #fff;
    overflow: hidden;
}

.swissai-loader {
  position: relative;
  left: -9999px;
  width: 8px;
  height: 8px;
  border-radius: 5px;
  background-color: #ccc;
  color: #ccc;
  box-shadow: 9999px 0 0 0 #777;
  animation: swissai-loader 1s infinite linear;
  animation-delay: 0.1s;
}
.swissai-loader::before, .swissai-loader::after {
  content: "";
  display: inline-block;
  position: absolute;
  top: 0;
}
.swissai-loader::before {
  width: 8px;
  height: 8px;
  border-radius: 5px;
  background-color: #ccc;
  color: #ccc;
  animation: swissai-loader-before 1s infinite linear;
  animation-delay: 0s;
}
.swissai-loader::after {
  width: 8px;
  height: 8px;
  border-radius: 5px;
  background-color: #ccc;
  color: #ccc;
  animation: swissai-loader-after 1s infinite linear;
  animation-delay: 0.2s;
}

@keyframes swissai-loader {
  0% {
    box-shadow: 9999px -15px 0 0 rgba(152, 128, 255, 0);
  }
  25%, 50%, 75% {
    box-shadow: 9999px 0 0 0 #ccc;
  }
  100% {
    box-shadow: 9999px 15px 0 0 rgba(152, 128, 255, 0);
  }
}
@keyframes swissai-loader-before {
  0% {
    box-shadow: 9984px -15px 0 0 rgba(152, 128, 255, 0);
  }
  25%, 50%, 75% {
    box-shadow: 9984px 0 0 0 #ccc;
  }
  100% {
    box-shadow: 9984px 15px 0 0 rgba(152, 128, 255, 0);
  }
}
@keyframes swissai-loader-after {
  0% {
    box-shadow: 10014px -15px 0 0 rgba(152, 128, 255, 0);
  }
  25%, 50%, 75% {
    box-shadow: 10014px 0 0 0 #ccc;
  }
  100% {
    box-shadow: 10014px 15px 0 0 rgba(152, 128, 255, 0);
  }
}


/* Empty message */
.swissai-chat-empty-message{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

.swissai-chat-empty-message .swissai-chat-empty-message-text{
    font-size: 12px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

/* chat escallation */
.swissai-chat-escallation-cont{
    width: 100%;
    height: 100%;
    background-color:#fff;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9999;
    display: none;
    backdrop-filter: blur(5px);
    padding: 5px 15px;
    word-wrap: break-word;
    box-sizing: border-box;
}

.swissai-chat-escallation-cont.visible {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.swissai-chat-escallation-cont .escallation-head{
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-items: center;
    flex-direction: column;
    text-align: center;
}

.swissai-chat-escallation-cont .escallation-head h2{
    font-size: 15px;
}

.swissai-chat-escallation-cont .escallation-head p{
    font-size: 12px;
    color: #777;
}

.swissai-chat-escallation-cont .escallation-form{
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-items: center;
    flex-direction: column;
    text-align: center;
    margin-top: 20px;
}

.swissai-chat-escallation-cont .escallation-form .input{
    width: 100%;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #eee;
    padding: 0 20px;
    box-sizing: border-box;
    outline: none;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    font-family: 'Poppins', sans-serif;
    margin: 10px;
}

.swissai-chat-escallation-cont .escallation-form button {
    width: 100%;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #eee;
    padding: 0 20px;
    box-sizing: border-box;
    outline: none;
    font-size: 13px;
    font-weight: 500;
    color: #000;
    font-family: 'Poppins', sans-serif;
    margin: 10px;
    background-color: #eee;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.swissai-chat-escallation-cont .escallation-form button:hover{
    background-color: #ddd;
}

.swissai-chat-escallation-cont .escallation-form button.continue{
    background-color: #3B82F6;
    color: #fff;
}

.swissai-chat-escallation-cont .escallation-form button.continue:hover{
    background-color: #2563EB;
}

.swissai-chat-escallation-cont .escallation-form button.continue.loading{
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}




/* user info content */
.swissai-userinfo-cont {
    width: 100%;
    height: 100%;
    background-color:#fff;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9999;
    display: none;
    backdrop-filter: blur(5px);
    padding: 5px 15px;
    word-wrap: break-word;
    box-sizing: border-box;
}

.swissai-userinfo-cont.visible {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.swissai-userinfo-cont .userinfo-head{
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-items: center;
    flex-direction: column;
    text-align: center;
}

.swissai-userinfo-cont .userinfo-head h2{
    font-size: 15px;
}

.swissai-userinfo-cont .userinfo-head p{
    font-size: 12px;
    color: #777;
}

.swissai-userinfo-cont .userinfo-form{
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-items: center;
    flex-direction: column;
    text-align: center;
    margin-top: 20px;
}

.swissai-userinfo-cont .userinfo-form .input{
    width: 100%;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #eee;
    padding: 0 20px;
    box-sizing: border-box;
    outline: none;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    font-family: 'Poppins', sans-serif;
    margin: 10px;
}

.swissai-userinfo-cont .userinfo-form button {
    width: 100%;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #eee;
    padding: 0 20px;
    box-sizing: border-box;
    outline: none;
    font-size: 13px;
    font-weight: 500;
    background: #3B82F6;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    margin: 10px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.swissai-userinfo-cont .userinfo-form button:hover{
    background-color: #2563EB;
}

.swissai-userinfo-cont .userinfo-form button.close {
    background-color: #eee;
    color: #000;
}

.swissai-userinfo-cont .userinfo-form button.close:hover{
    background-color: #ddd;
}


.swissai-userinfo-cont .userinfo-form button.loading{
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Refresh conversation */
.swissai-refresh-conversation{
    background-color:transparent;
    color:#fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    border: none;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    transform: scale(.78);
}

.swissai-refresh-conversation.loading {
    animation: spin .7s linear infinite;
    cursor: not-allowed;
    opacity: 0.5;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notyf */
.notyf__wrapper{
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
}