@import "https://cdnjs.cloudflare.com/ajax/libs/material-design-icons/3.0.1/iconfont/material-icons.min.css";
.chat-container {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --chat-window-total-width: 40%;
    --chat-window-height: 80%;
    --chat-window-color-theme: #1e90ff;
    --chat-window-bg-color: #fff;
    --chat-send-button: #1e90ff;
    --chat-user-msg-bg: #ddd;
    --chat-header-bg: linear-gradient(160deg, dodgerblue 0%, #80D0C7 100%);
    --rating-models-bg: #80D0C7;
    --right-button-position: 50px;
    --bottom-button-position: 30px;
}


.chat-btn-primary {
    cursor: pointer;
    background-color: var(--chat-window-bg-color) !important;
    color: var(--chat-window-color-theme) !important;
    opacity: 0.8;
    transition-duration: 0.4s;
}
    .chat-btn-primary:hover {
        opacity: 1;
    }

.chat-btn {
    position: fixed;
    right: var(--right-button-position);
    bottom: var(--bottom-button-position);
    border: none;
    outline: none;
    cursor: pointer;
    background-color: var(--chat-window-color-theme);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    opacity: 0.8;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.4);
    z-index: 10;
    transition-duration: 0.4s;
}
    .chat-btn:hover {
        opacity: 1;
    }

.chat-icon {
    width:40px;
	height: auto;
}

.chat-btn:hover,
.chat-submit:hover {
    opacity: 1;
}

.chat-popup {
    font-family: Arial, Helvetica, sans-serif;
    display: none;
    position: fixed;
    bottom: 80px;
    right: 120px;
    height: var(--chat-window-height);
    width: var(--chat-window-total-width);
    background-color: var(--chat-window-bg-color);
    /* display: flex; */
    flex-direction: column;
    justify-content: space-between;
    /* padding: 0.75rem; */
    border: 1px solid #ccc;
    box-shadow: 5 5px 5px rgba(0, 0, 0, 0.4);
    border-radius: 15px 15px 10px 10px ;
    transition: all 0.5s ease-out;
    z-index: 3000;
}

.chat-header {
    /* background-color: dodgerblue; */
    background-color: var(--chat-window-color-theme);
    background-image: var(--chat-header-bg);
    color: white;
    display: flex;
    justify-content: space-between;
    padding: 10px;
    /* margin-bottom: 10px; */
    align-items: center;
    max-height: 50px;
    border-radius: 14px 14px 0 0;
}

.chat-header .bot-title {
    display: flex;
    justify-content: flex-start;
    float: left;
}

.expand-chat-window {
    width: 50px;
    background-color: transparent;
    color: white;
    border: none;
    outline: none;
    cursor: pointer;
}

.expand-chat-window:hover {
    transform: scale(1.5);
    outline: none;
    border: none;
}

.chat-area {
    height: 80%;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: var(--chat-window-bg-color);
}

.bot-msg {
    display: flex;
    align-items: center;
    margin: 15px;
}

.bot-img {
    width: 45px;
    margin-right: 15px;
}

.bot-msg .msg {
    background-color: var(--chat-window-color-theme);
    color: white;
    padding: 0.5rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    max-width: 90%;

}

.user-msg {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-right: 10px;
    max-width: 90%;

}

.user-msg .msg {
    background-color: var(--chat-user-msg-bg);
    color: black;
    margin: 0.5rem;
    padding: 0.5rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    word-break: break-all;
}

.msg-image {
    max-width: 90%;
    max-height: 400px;
}

.chat-input-area {
    position: relative;
    display: flex;
    justify-content: center;
}

.chat-input {
    width: 100%;
    border: 1px solid #ccc;
    padding: 0.5rem;
    border-radius: 5px;    
    margin-bottom: 0.5rem;
    margin-left: 0.5rem;
    outline-color: var(--chat-window-color-theme);
    font-size: 15px;
}

.chat-submit {
    padding: 0.25rem 0.5rem;
    margin-left: 0.5rem;
    background-color: var(--chat-send-button);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    border: none;
    outline: none;
    cursor: pointer;
    margin-bottom: 0.5rem;
    margin-right: 0.5rem;
    transition: opacity 0.4s !important;
    opacity: 0.8;
    
}
    .chat-submit:hover {
        background-color: var(--rating-models-bg);
        opacity: 1;
    }
.show {
    display: flex;
}

.chat-btn-primary {
    /* background-color: #0096fe; */
    border: 1px solid var(--chat-window-color-theme);
    outline: none;
    display: inline-block;
    color: var(--chat-window-color-theme);
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin: 5px;
    font-weight: bold;
}

.chat-btn-primary:hover {
    background-color: #0096fe;
    color: #fff;
    transform: scale(1.1);
}

@media (max-width:500px) {
    .chat-popup {
        bottom: 120px;
        right: 10%;
        width: 80vw;
        height: 100%;
    }
}

.chat-video{
    width: 100% !important;
    height: auto!important;
    min-height: 250px;
}


/* ====================== Review Form ====================== */
#rating-modal {
    /* position: absolute;
  left: 10vh;
  top: 10vh; */
    /* fix exactly center: https://css-tricks.com/considerations-styling-modal/ */
    /* begin css tricks */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* end css tricks */
    /* z-index: -10; */
    z-index: 3501;
    display: flex;
    flex-direction: column;
    /* width: 80vw; */
    /* height: 80vh; */
    border: 1px solid #666;
    border-radius: 5px;
    opacity: 0;
    transition: all .3s;
    overflow: hidden;
    background-color: #eee;
    /* visibility: hidden; */
    display: none;
    width: 500px;
    padding: 10px;
    max-height: 700px;
}

    #rating-modal.show {
        /* visibility: visible;   */
        opacity: 1;
        /* z-index: 10; */
        display: flex;
    }

.rating-modal-overlay {
    width: 100%;
    height: 100%;
    z-index: 3500; /* places the modalOverlay between the main page and the modal dialog */
    background-color: #000;
    opacity: 0;
    transition: all .3s;
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    margin: 0;
    padding: 0;
}

    .rating-modal-overlay.show {
        display: block;
        opacity: 0.5;
    }

#rating-modal .close-btn {
    align-self: flex-end;
    font-size: 1.4em;
    margin: 8px;
    cursor: pointer;
}

#review-form {
    position: relative;
    max-width: 900px;
    padding: 10px;
}
/* 
input,
label {
  display: block;
  width: 100%;
}

label {
  font-weight: bold;
  margin-bottom: 5px;
} */

.rate {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: inset 0 1px 1px #e1e1e1;
    font-size: 16px;
    padding: 8px;
    width:100% !important;
    height: 100% !important;
}


.rate-btn-valid {
    background: var(--chat-window-color-theme);
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: inset 0 1px 1px var(--chat-window-color-theme);
    font-size: 16px;
    padding: 8px;
    width: 100%;
    color: white;
    opacity: 0.8;
}
.rate-btn {
    background: var(--rating-models-bg);
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: inset 0 1px 1px var(--rating-models-bg);
    font-size: 16px;
    padding: 8px;
    width: 100%;
    color: white;
    opacity: 0.8;
}

.review-header{
    background: var(--rating-models-bg);  
}

.rate-btn:hover, .rate-btn-valid:hover {
    opacity: 1;
}

input[type="radio"].rate {
    box-shadow: none;
}


    button#submit-review-btn, button#close-review-btn {
        min-height: 40px;
        max-height: 40px;
    }

    button#submit-review-btn, button#close-review-btn {
        font-weight: bold;
        cursor: pointer;
        padding: 0 16px;
    }

.fieldset {
    margin-top: 20px;
}

#review-form-container {
    width: 100%;
    /* background-color: #eee; */
    padding: 0;
    color: #333;
    overflow-y: auto;
    overflow-x: hidden;
}

    #review-form-container h2 {
        margin: 0 0 0 6px;
    }

#review-form {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

    #review-form label, #review-form input {
        display: block;
        /* width: 100%; */
    }

    #review-form label {
        font-weight: bold;
        margin-bottom: 5px;        
    }

    #review-form .rate label, #review-form .rate input,
    #review-form .rate1 label, #review-form .rate1 input {
        display: inline-block;
    }
/* Modified from: https://codepen.io/tammykimkim/pen/yegZRw */
.rate {
    /* float: left; */
    /* display: inline-block; */
    height: 50px;
    display: inline-flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    justify-content: flex-end;
	width:95%
}

.rate-btn {
    /* float: left; */
    /* display: inline-block; */
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

textarea.rate{
    height:50%;
	margin-bottom:10px;
	width:100%
}

#review-form .rate > label {
    margin-bottom: 0;
    margin-top: 10px;
    height: 50px;
}

.rate:not(:checked) > input {
    /* position: absolute; */
    top: -9999px;
    margin-left: -24px;
    width: 20px;
    padding-right: 14px;
    z-index: -10;
}

.rate:not(:checked) > label {
    float: right;
    width: 1em;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
    font-size: 30px;
    color: #ccc;
}
/* #star1:focus{

} */
.rate2 {
    float: none;
}

.rate:not(:checked) > label::before {
    content: '★ ';
    position: relative;
    top: 0;
    left: 2px;
}

.rate > input:checked ~ label {
    color: var(--chat-window-color-theme);
    /* outline: -webkit-focus-ring-color auto 5px; */
}

.rate > input:checked:focus + label, .rate > input:focus + label {
    outline: -webkit-focus-ring-color auto 5px;
}

.rate:not(:checked) > label:hover,
.rate:not(:checked) > label:hover ~ label {
    color: var(--chat-window-color-theme);
    /* outline: -webkit-focus-ring-color auto 5px; */
}

.rate > input:checked + label:hover,
.rate > input:checked + label:hover ~ label,
.rate > input:checked ~ label:hover,
.rate > input:checked ~ label:hover ~ label,
.rate > label:hover ~ input:checked ~ label {
    color: var(--chat-window-color-theme);
}



/** SPINNER **/

.lds-ellipsis {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

    .lds-ellipsis div {
        position: absolute;
        top: 33px;
        width: 13px;
        height: 13px;
        border-radius: 50%;
        background: #141B4D;
        animation-timing-function: cubic-bezier(0, 1, 1, 0);
    }

        .lds-ellipsis div:nth-child(1) {
            left: 8px;
            animation: lds-ellipsis1 0.6s infinite;
        }

        .lds-ellipsis div:nth-child(2) {
            left: 8px;
            animation: lds-ellipsis2 0.6s infinite;
        }

        .lds-ellipsis div:nth-child(3) {
            left: 32px;
            animation: lds-ellipsis2 0.6s infinite;
        }

        .lds-ellipsis div:nth-child(4) {
            left: 56px;
            animation: lds-ellipsis3 0.6s infinite;
        }

@keyframes lds-ellipsis1 {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes lds-ellipsis3 {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(0);
    }
}

@keyframes lds-ellipsis2 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(24px, 0);
    }
}


/** BUTTON ANIMATION **/

.chat-shk {
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    animation-name: chatShake;
    animation-duration: 5s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

@keyframes chatShake {
    2%, 18% {
        transform: translate3d(-5px, 0, 0);
    }
    4%, 16% {
        transform: translate3d(5px, 0, 0);
    }
    6%, 10%, 14% {
        transform: translate3d(-5px, 0, 0);
    }
    8%, 12% {
        transform: translate3d(5px, 0, 0);
    }
    18.1% {
        transform: translate3d(0px, 0, 0);
    }
}