#liveChat-container {
    display: none;
}

/* BUBBLE */
#liveChat-container .liveChat-bubble {
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    line-height: 60px;
    text-align: center;
    background: var(--ms-color-primary);
    color: white;
    font-size: 28px;
    transition: all 0.4s;
    cursor: pointer;
    margin: 15px;
    position: fixed;
    z-index: 100;
}

#liveChat-container.liveChat-position-bottom-right .liveChat-bubble {
    bottom: 0;
    right: 0;
}

#liveChat-container.liveChat-position-bottom-left .liveChat-bubble {
    bottom: 0;
    left: 0;
}

#liveChat-container .liveChat-bubble:hover {
    opacity: 0.8;
}

#liveChat-container .liveChat-bubble .liveChat-bubbleCount {
    background: var(--ms-color-danger);
    width: 30px;
    height: 30px;
    display: block;
    line-height: 30px;
    font-size: 16px;
    border-radius: 50%;
    position: absolute;
    top: -5px;
}

#liveChat-container.liveChat-position-bottom-right .liveChat-bubble .liveChat-bubbleCount {
    left: -5px;
}

#liveChat-container.liveChat-position-bottom-left .liveChat-bubble .liveChat-bubbleCount {
    right: -5px;
}


#liveChat-container.liveChat-open.liveChat-position-bottom-right .liveChat-bubble {
    bottom: -80px;
}

#liveChat-container.liveChat-open.liveChat-position-bottom-left .liveChat-bubble {
    bottom: -80px;
}

/* CHAT */
#liveChat-container #liveChat-popup {
    position: fixed;
    transition: all 0.6s;
    flex-direction: column;
    width: 400px;
    max-width: 100%;
    z-index: 100;
    padding: 0 15px;
    box-sizing: border-box;
}

#liveChat-container.liveChat-position-bottom-right #liveChat-popup {
    right: -450px;
    bottom: 0;
}

#liveChat-container.liveChat-position-bottom-left #liveChat-popup {
    left: -450px;
    bottom: 0;
}


#liveChat-container.liveChat-open > #liveChat-popup {
    display: flex;
}

#liveChat-container.liveChat-open.liveChat-position-bottom-right #liveChat-popup {
    right: 0;
}

#liveChat-container.liveChat-open.liveChat-position-bottom-left #liveChat-popup {
    left: 0;
}

#liveChat-container #liveChat-header {
    background: var(--ms-color-primary);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    color: white;
    border-radius: 15px 15px 0 0;
    cursor: pointer;
    transition: all 0.4s;
    position: relative;
}

#liveChat-container #liveChat-static #liveChat-header {
    display: none;
}

#liveChat-container #liveChat-header:hover {
    opacity: 0.8;
}



#liveChat-container #liveChat-header .liveChat-avatar {
    margin-right: 15px;
}

#liveChat-container #liveChat-header .liveChat-avatar img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 50%;
}


#liveChat-container #liveChat-header #liveChat-heading {
    flex: 1;
}

#liveChat-container #liveChat-header .liveChat-header-toggle {
    color: var(--ms-color-white);
    margin: -10px 0;
    font-size: 120%;
}

/* MESSAGGI */

#liveChat-container #liveChat-start-messages {
    background: white;
}

#liveChat-container #liveChat-start-messages .liveChat-start-message {
    padding: 30px;
    text-align: center;
}

#liveChat-container #liveChat-start-messages .liveChat-start-message i {
    display: block;
    text-align: center;
    font-size: 60px;
}

#liveChat-container #liveChat-start-messages .liveChat-start-message p {
    display: block;
    margin: 15px 0;
}

/* BODY */
#liveChat-container #liveChat-message-area {
    min-height: 200px;
    flex: 1;
    max-height: 300px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    padding: 15px 15px 0;
    background: var(--ms-color-light);
}


#liveChat-container .liveChat-message {
    background: white;
    margin: 0 0 15px;
    padding: 10px 60px 10px 15px;
    border-radius: 6px;
    max-width: 100%;
    position: relative;
    font-size: 14px;
    word-break: break-word;
}

#liveChat-container #liveChat-message-area .liveChat-message-received {
    margin-right: auto;
}

#liveChat-container #liveChat-message-area .liveChat-message-sent {
    margin-left: auto;
    background: var(--ms-color-secondary);
    color: white;
}


#liveChat-container #liveChat-message-area .liveChat-messageWarning {
    border: 1px solid var(--ms-color-warning);
    background: var(--ms-color-white);
    color: var(--ms-color-warning);
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 70%;
    text-align: center;
    margin-bottom: 15px;
}


#liveChat-container .liveChat-message .liveChat-message-image,
#liveChat-container .liveChat-message .liveChat-message-file {
    padding: 5px;
    border-radius: 3px;
    border: 1px solid var(--ms-color-light);
}


#liveChat-container .liveChat-message .liveChat-message-image span {
    font-size: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

#liveChat-container .liveChat-message .liveChat-message-file {
    font-size: 80%;
}

#liveChat-container .liveChat-message .liveChat-timestamp {
    font-size: 12px;
    opacity: 0.6;
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 5px;
}

/* FORM REGISTRAZIONE */
#liveChat-container #liveChat-authForm {
    background: var(--ms-color-light);
    padding: 15px;
}

#liveChat-container #liveChat-authForm .liveChat-authMessage {
    margin-bottom: 15px;
}

#liveChat-container #liveChat-authForm .ms-form {
    background: var(--ms-color-white);
    padding: 15px;
    border-radius: 3px;
}

/* FOOTER */
#liveChat-container #liveChat-footer {
    display: flex;
    /* align-items: center; */
    border-left: 1px solid var(--ms-color-light);
    background: var(--ms-color-white);
}


#liveChat-container #liveChat-footer #liveChat-message-input {
    min-width: 160px;
    border: none !important;
    margin: 0 !important;
}

#liveChat-container #liveChat-footer .liveChat-submit-btn {
    border-radius: 0 !important;
    flex: 1;
    min-width: 75px;
    margin: 0 !important;
}

/* VISUALIZZAZIONE CONTENUTO */
#liveChat-container:not(.chatStarted) .liveChat-showIfStarted {
    display: none !important;
}

#liveChat-container.chatStarted .liveChat-showIfNew {
    display: none !important;
}

#liveChat-container.chatAuth #liveChat-footer,
#liveChat-container.chatAuth #liveChat-message-area {
    display: none;
}

#liveChat-container.chatAuth  #liveChat-message-area {
    height: auto !important;
    min-height: auto;
}

#liveChat-container:not(.chatAuth) #liveChat-authForm {
    display: none;
}