
/**
 * Modals ($modals)
 */

/* 1. Ensure this sits above everything when visible */
/*.modal {*/
/*    position: absolute;*/
/*    z-index: 10000; !* 1 *!*/
/*    top: 0;*/
/*    left: 0;*/
/*    visibility: hidden;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*}*/

.modal.is-visible {
    visibility: visible;
    display: block;
}

.modal-overlay {
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: hsla(0, 0%, 0%, 0.5);
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 0.3s, opacity 0.3s;
}

.modal.is-visible .modal-overlay {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.modal-wrapper {
    position: absolute;
    z-index: 9999;
    top: 50%;
    left: 50%;
    /*width: 32em;*/
    /*margin-left: -16em;*/
    background-color: #fff;
    box-shadow: 0 0 1.5em hsla(0, 0%, 0%, 0.35);
}

.modal-transition {
    transition: all 0.3s 0.12s;
    transform: translateY(-50%);
    opacity: 0;
}

.modal.is-visible .modal-transition {
    /*transform: translateY(-50%);*/
    transform: translate(-50%, -50%);
    opacity: 1;
}

.modal-header,
.modal-content {
    padding: 1em;
}

.modal-header {
    position: relative;
    background-color: #fff;
    box-shadow: 0 1px 2px hsla(0, 0%, 0%, 0.06);
    border-bottom: 1px solid #e8e8e8;
}

.modal-close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 1em;
    color: #aaa;
    background: none;
    border: 0;
}

.modal-close:hover {
    color: #777;
}

.modal-heading {
    font-size: 1.125em;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.modal-content > *:first-child {
    margin-top: 0;
}

.modal-content > *:last-child {
    margin-bottom: 0;
}

#loading-spinner{
    display:none;
}
#loading-spinner.active{
    display:block;
}
#loading-spinner .overlay {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: hsla(0, 0%, 0%, 0.5);
    transition: visibility 0s linear 0.3s, opacity 0.3s;
}

#loading-spinner .overlay__inner {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    position: absolute;
}

#loading-spinner .overlay__content {
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

#loading-spinner .spinner {
    width: 75px;
    height: 75px;
    display: inline-block;
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.05);
    border-top-color: #fff;
    animation: spin 1s infinite linear;
    border-radius: 100%;
    border-style: solid;
}

.modal-message-chat{
    width: 640px;
    position: relative;
    height: 380px;
    flex-shrink: 0;
    background:#fff;
    border-radius:10px;

}
.modal-message-chat .modal-message-header{
    text-align:center;
    color:  #181818;
    font-feature-settings: 'clig' off, 'liga' off;
    font-family: "Segoe UI";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    border-radius: 8px 8px 0px 0px;
    background: #FFF;
    box-shadow: 0px 1px 0px 0px #C9C9C9;
    display: flex;
    padding: 13.236px 14.222px 12.218px 14.222px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}
.modal-message-body{
    padding: 25px 36px;
    display:flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.modal-message-body .title{
    color: var(--Text-Default, #181818);
    text-align: center;
    font-feature-settings: 'clig' off, 'liga' off;
    font-family: "Segoe UI";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 30px;
    margin-bottom: 27px;
}
.modal-message-body #chat-message{
    background: #F0F0F0;
    display: flex;
    width: 100%;
    height: 165px;
    padding: 10px;
    align-items: flex-start;
    gap: 10px;
    flex-shrink: 0;
    border: none;
    outline:none;
    resize : none;
}
.modal-message-footer{
    display: flex;
    height: 56px;
    padding-left: 464px;
    justify-content: flex-end;
    align-items: center;
    flex-shrink: 0;
    border-radius: 0px 0px 4px 8px;
    background:  #F3F3F3;
    /* 02 - Container/Border Top */
    box-shadow: 0px -1px 0px 0px #C9C9C9;
}
.modal-message-footer .right{
    display: flex;
    padding: 0px 12px;
    align-items: center;
    gap: 12px;
    height: 56px;

}
.modal-message-footer .btn {
    padding: 5px 16px;
    border-radius: 4px;
    border: 1px solid  #747474;
    background:  #FFF;
    color:  #4679C1;
    text-align: center;
    font-feature-settings: 'clig' off, 'liga' off;
    /* 03 - Body/Default */
    font-family: "Segoe UI";
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
}
.modal-message-footer .btn-primary{
    border-radius: 4px;
    background:  #4679C1;
    color : #FFFFFF;
    border: 1px solid  #4679C1;

}
.btn-close{
    position: absolute;
    right:0;
    top:-38px;
    cursor: pointer;
}
@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}