.chatbot-widget {
    position: fixed;
    bottom: 100px;
    right: 13px;
    width: 0px;
    height: 0px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    flex-direction: column;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
    z-index: 99999999999;
    overflow: hidden;
    max-height: 0;
    transition: width 300ms, height 300ms, max-height 300ms, transform 400ms cubic-bezier(0, 1.2, 1, 1), opacity 83ms ease-out;
    overflow-y: auto; 
}

#chatbot-widget.open {
    height: 80vh; /* Set your desired height */
    width: 420px; /* Set your desired width */
    max-height: 80vh;
}

#chatwindow {
    height: 66vh !important;
}

@media screen and (max-width: 500px) { 
    .webchat__send-box__main {
        height: 141px !important;
    }
}

@media screen and (min-width: 1600px) { 
    #chatbot-widget.open {
        height: 78vh; /* Set your desired height */
        max-height: 78vh;
    }
}

.webchat__basic-transcript {
    overflow: visible !important;
}

#chatbot-widget .avatar {
    width: 40px !important;
    height: 40px !important;
}

#chatbot-widget .css-o3xlyv {
    padding: 12px !important;
}

#open-chatbot {
    cursor: pointer;
    display: none;
}

#error-chatbot {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    text-align: center;
    display: none;
}

.chatbot-err-inner {
    width: 100%;
    height: 60%;
}

.chatbot-err-inner h4 {
    font-family: 'Open Sans Condensed Bold', sans-serif;
    font-size: 32px;
    padding-bottom: 0;
    color: #006cb7;
    width: 55%;
    display: flex;
    margin: 20px auto;
    margin-bottom: 15px;
}

.chatbot-err-inner p {
    font-size: 16px;
    width: 65%;
    margin: 0 auto;
    line-height: normal;
}

.icon-fail {
    width: 100px;
    height: 89px;
    background: url('../assets/icons/fail_plug.svg');
    background-size: cover;
    background-repeat: no-repeat;
    margin: 0 auto;
}

.chatbot-widget .chatbot-content {
    flex: 1;
    overflow-y: initial;
    height: 100%;
    width: 100%;
    display: none;
    flex-direction: column;
}

.chatbot-content .main {
    padding-top: 18px;
    margin: 0 !important;
}

.chatbot-content .css-o3xlyv {
    font-size: 1rem !important;
}

.chatbot-content .main form input, .chatbot-content .main form input::placeholder {
    font-size: 18px !important;
}

.chatbot-header {
    display: flex;
    border-bottom: 1px solid #eee;
    padding-bottom: 13px;
    position: fixed;
    width: 420px;
    z-index: 9999999;
    background-color: #fff;
    border-radius: 10px 10px 0 0;
}

.mobile-close {
    display: none !important;
}

.chatbot-header-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

.chatbot-header-inner h3 {
    margin: 0 0 2px;
    padding: 0;
    color: #006cb7;
    font-size: 34px;
}
.chatbot-header-inner p {
    line-height: normal;
    color: #606060;
    font-size: 16px;
}

.chatbot-header-title {
    display: inline-flex;
    align-items: flex-end;
    justify-content: space-between;
}

.chatbot-header-close {
    width: 50px;
    height: 50px;
    display: flex;
    cursor: pointer;
}

.chatbot-header-close .close-ic_blue {
    display: flex;
    width: 100%;
    height: 100%;
    background: url(../assets/icons/close_ic_blue.svg);
    background-repeat: no-repeat;
    background-size: 40%;
    background-position: center;
    align-items: center;
    justify-content: center;
}
.chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: #fff;
    border: none;
    border-radius: 5px;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 9999999;
}

.chatbot-toggle-closed {
    background: #006cb7;
    background: url('../assets/images/torkel-icon_150x150.webp?=new');
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 5px;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;   
}

.chatbot-toggle-open {
    background-color: #006cb7;
    border-radius: 5px;
    color: #fff;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0; 
    display: none;
}

.chatbot-toggle-open .close-ic {
    display: flex;
    width: 100%;
    height: 100%;
    background: url(../assets/icons/close_ic.svg);
    background-repeat: no-repeat;
    background-size: 40%;
    background-position: center;
    align-items: center;
    justify-content: center;
}

@media screen and (min-width: 321px) and (max-width: 768px) {

    .chatbot-toggle {
        width: 60px;
        height: 60px;
    }

    .mobile-close {
        display: flex !important;
    }

    #chatbot-widget.open {
        width: 100dvw;
        height: 100dvh;
        max-height: 100dvh;
    }

    #chatbot-widget {
        bottom: 0;
        right: 0;
        border-radius: 0;
    }

    #chatwindow {
        height: 85dvh !important;
    }

    .chatbot-header {
        position: fixed;
        width: 100vw;
        z-index: 9999999;
        background-color: #fff;
    }

    .chatbot-content {
        height: 88vh !important;
    }

    .chatbot-widget .chatbot-content {
        flex-direction: column;
    }

    .webchat--css-yqofp-j7qwjs {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .webchat--css-yqofp-1bfjcn2.webchat__send-box .webchat__send-box__main {
        display: flex;
        position: fixed;
        width: 100%;
        bottom: 24px;
    }
}

#chatbot-ui-widget {
    display: none;
    width: 100%;
    /*height: 100vh;*/
    padding: 10px;
    top: 95px;
    position: relative;
}

#chatbot-widget-bubble-wrapper {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 9999;
    transform: scale(0);      
    transform-origin: bottom right;
    opacity: 0;               
    transition: 
      width 300ms,
      height 300ms,
      max-height 300ms,
      transform 400ms cubic-bezier(0, 1.2, 1, 1),
      opacity 83ms ease-out;
}

.close-button-bubble {
    background-color: #154a70 !important;
    padding: 5px;
    display: inline-flex;
    align-items: center;
    border-radius: 50px;
    left: 521px;
    position: relative;
    top: 8px;
    z-index: 100;
    cursor: pointer;
    pointer-events: none;
}

.icon-close {
    display: flex;
    width: 18px;
    height: 18px;
}

.scale-in {
    transform: scale(1) !important;      
    opacity: 1 !important;             
  }

#chatbot-widget-bubble-text {
    font-size: 13px;
    padding: 10px;
}

.chatbot-bubble {
	position: relative;
    height: 100%;
    background: #006cb7;
    border-radius: .4em;
    width: 300px;
    padding: 12px;
    display: flex;
    margin-bottom: 10px;
}

@media screen and (min-width: 321px) and (max-width: 768px) {
    .chatbot-bubble {
        width: 75%!important;
        position: relative;
        right: -92px;
        top: -15px;
    }

    .chatbot-bubble p {
        line-height: 18px !important;
        font-size: 13px !important;
    }
}

.chatbot-bubble p {
    color: #fff;
    line-height: 21px;
    font-size: 14px;
}

.chatbot-bubble:after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 78%;
    width: 0;
    height: 0;
    border: 17px solid transparent;
    border-top-color: #006cb7;
    border-bottom: 0;
    border-right: 0;
    margin-left: -10px;
    margin-bottom: -17px;
}

.chatbot-status {
    display: flex;
    flex-direction: row;
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 12px;
    width: 15px;
    height: 15px;
    display: flex;
    background-color: #66d566;
    border-radius: 50%;
}

.header-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
}

.header-wrap .chatbot-inline-status {
    display: inline-flex;
    width: 100px;
    margin-left: 5px;
    align-items: center;
}

.header-wrap .chatbot-inline-status .chatbot-status-text {
    font-family: 'Open Sans', sans-serif !important;
    color: #262626;
    display: inline-flex;
    flex-direction: row-reverse;
    align-items: center;
    font-size: 15px;
    line-height: 23px;
}

.header-wrap .chatbot-inline-status .dot {
    display: flex;
    width: 15px;
    height: 15px;
    background-color: #66d566;
    border-radius: 50%;
    align-items: center;
    margin-right: 3px;
}

/* Loader */
.chatbot-load {
    width: 100%;
    height: 100%;
    align-items: center;
    display: flex;
    flex-direction: column;
}

.chatbot-load-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-top: 40%;
}

.chatbot-load-inner h4 {
    font-family: 'Open Sans Condensed Bold', sans-serif !important;
    font-size: 31px;
    padding-bottom: 0;
    color: #006cb7;
    width: 61%;
    display: flex;
    margin: 38px auto;
    margin-bottom: 15px;
    justify-content: center;
}

.chatbot-loader {
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
}