*, *:after, *:before{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    outline: none;
}
html{
    font-size: 16px;
    font-family: "Open Sans", sans-serif;
}

/* Unwrapped */

.chat{
    margin: 5px;
    width: 360px;
    padding: 14px 30px 14px 30px;
    border-radius: 10px 40px 10px 10px;
    position: relative;
    overflow: hidden;
    font-weight: 300;
}
div.chat{
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    -o-box-shadow: none !important;
    box-shadow: none !important;
}
#frameRealHeightMain {
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    -o-box-shadow: none !important;
    box-shadow: none !important;
}
.chat:before{
    content: "";
    position: absolute;
    width: 80px;
    height: 80px;
    background-color: #6daa10;
    border-radius: 50%;
    right: -40px;
    top: -40px;
}
.chat--light{
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.39);
    background-color: #fff;
    color: #333434;
}
.chat--green{
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.39);
    background-color: #0f9301;
    color: #fff;
}
.chat--black{
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.39);
    background-color: #30324b;
    color: #fff;
}
.social-chats{
    width: 95px;
    padding: 0px 35px 0px 40px;
    border-radius: 10px 40px 10px 10px;
    position: relative;
    overflow: hidden;
    font-weight: 300;
    margin-left: auto !important;
    margin-right: 0px !important;
}
.social-chats-name--light a:link {
    color: black;
    height: 40px;
    padding-bottom: 10px;
}
.social-chats-name--green a:link,.social-chats-name--black a:link {
    color: white;
}
.social-chats-name--green a:visited,.social-chats-name--black a:visited {
    color: white;
}
#socialNetworkOpenFrame .social-chats a{
    text-decoration: none;
}
#socialNetworkOpenFrame .social-chats-content{
    text-align: right;
    width: 40px;
    height: 40px;
    margin-top: 5px;
    margin-bottom: 5px;
}
#socialNetworkOpenFrame .social-chats-content>a>img {
    max-width: none !important;
    max-height: none !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
}
.header{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

}
.chat__header{
    padding-right: 10px;
    margin-bottom: 20px;
}
.header__text{
    font-size: 1.15rem;
}
.header__text--bold{
    font-weight: 600;
}
.header__close{
    font-size: 12px;
    font-weight: 300;
    cursor: pointer;
}
.form{
    padding-top: 20px;
    display: flex;
    flex-direction: column;
}
.chat__fields{
    margin-bottom: 25px;
}
.field{
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}
.name{
    margin-bottom: 5px;
}
.input{
    height: 45px;
    border-radius: 45px;
    padding: 0 15px;
}
.input--light{
    border: 1px solid #ced4da;
}
.input--green{
    border: 1px solid #0f9301;
}
.input--black{
    border: 1px solid #30324b;
}
.button{
    border-radius: 45px;
    text-align: center;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}
.form__button{
    height: 45px;
    padding: 0 15px;
    margin-bottom: 25px;
    width: 100%;
}
.button--light{
    background-color: #6daa10;
    border: 1px solid #6daa10;
}
.button--green{
    background-color: #333434;
    border: 1px solid #333434;
}
.button--black{
    background-color: #6daa10;
    border: 1px solid #6daa10;
}
.copyright{
    display: block;
    text-align: center;
    opacity: 0.54;
    font-size: 13px;
}

/* Unwrapped */

/* Wrapped */
.chat-head{
    margin: 5px 5px 0px;
    font-family: 'Roboto', sans-serif;
    width: 350px;
    padding: 15px 35px;
    border-radius: 10px 40px 0px 0px;
    position: relative;
    overflow: hidden;
}
.chat-head:before{
    content: "";
    position: absolute;
    width: 80px;
    height: 80px;
    background-color: #6daa10;
    border-radius: 50%;
    right: -40px;
    top: -40px;
}
.chat-head--light{
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.39);
    background-color: #fff;
    color: #333434;
}
.chat-head--green{
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.39);
    background-color: #0f9301;
    color: #fff;
}
.chat-head--black{
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.39);
    background-color: #30324b;
    color: #fff;
}
.header__logo{
    padding: 0 5px;
    /*float: right;*/
}
/* Wrapped */

/* Chat */
.max-h{
    max-height: 100%;
}
.chat--messaging{
    width: 350px;
}
.chat__control{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.button--send{
    height: 100%;
    width: 40px;
    padding: 10px;
    background: transparent;
    border: none;
    color: #6daa10;
}
.button--send svg{
    color: #6daa10;
}
.messaging__input{
    /*flex: 1;*/
    margin-right: 10px;
    width: 62%;
}
textarea[name='msgInFrame']{
    border-radius: 10px;
    overflow-y: scroll !important;
    min-height: 75px !important;
    max-height: 75px !important;
    padding: 5px;
}
.messaging__input:focus{
    outline: #fff;
}
.icon{
    color: #6daa10;
}
.messaging{
    height: 400px;
    margin-bottom: 1rem;
    overflow-y: auto;
    word-wrap: break-word;
}

.message{
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    margin-right: 10px;
}
.message--client{
    flex-direction: row;
}
.message--employee{
    flex-direction: row-reverse;
}
.message__text{
    padding: 12px;
    border-radius: 10px;
    font-size: 13px;
    max-width: 70%;
}
.message__text--client{
    margin-left: 12px;
    background-color: #f7f7f7;
    position: relative;
    border-top-left-radius: 0;
}
.message__text--employee{
    margin-left: 12px;
    background-color: #bae081;
    position: relative;
    border-top-right-radius: 0;
}
.message__text--client:after{
    content: "";
    position: absolute;
    right: 99%;
    top: 0;
    border: solid transparent;
    height: 0;
    width: 0;
    pointer-events: none;
    border-top-color: #f7f7f7;
    border-width: 8px;
    margin-left: -1px;
    border-right-color: #f7f7f7;
}
.message__text--employee:after{
    content: "";
    position: absolute;
    left: 99%;
    top: 0;
    border: solid transparent;
    height: 0;
    width: 0;
    pointer-events: none;
    border-width: 8px;
    margin-left: -1px;
    border-color: transparent;
    border-left-color: #bae081;
    border-top-color: #bae081;
}
.message__text--employee{
    margin-right: 12px;
}

.message__icon{
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #6daa10;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    color: #6daa10;
}
.message__icon--client{
    background-image: url(../images/user.svg);
    background-size: 80%;
    background-position: 50% 5px;
}
.message__icon--employee{
    background-image: url(../images/user.svg);
    background-size: cover;
}
/* Chat */
.consultant-list-opener {
    position: fixed;
    bottom: 0px;
    right: 0px;
    cursor: pointer;
}
/* Social network chat */
.social-network-list-opener {
    position: fixed;
    bottom: 0px;
    right: 0px;
    cursor: pointer;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    -moz-transition: none !important;
    -webkit-transition: none !important;
}

.show-time-client{
    font-size: 0.6rem;
    color: #6c757d;
    float: left;
}

.show-time-employee{
    font-size: 0.6rem;
    color: #6c757d;
    float: right;
}

@media (max-width: 768px) {
    .chat-head {
        width: 300px;
    }

    .chat{
        width: 300px;
    }
}

.chat-head-mobile {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 10px;
}

.chat-head-mobile:before {
    display: none;
}


.header__logo img{
    position: absolute;
    top: 50%;
    right: 0%;
    transform: translate(-150%, -50%);
    z-index: 1;
    display: block;
    height: 34px;
    max-width: none;
}

::-webkit-scrollbar-track {
    background: #00000000 !important;
}
::-webkit-scrollbar-thumb {
    background: #6daa10 !important;
    border-radius: 4px;
}
::-webkit-scrollbar {
    width: 8px;
}
.g-recaptcha > div {
    transform: scale(0.75);
    transform-origin: 0 0;
}
.rc-anchor {
    display: none !important;
}
.message__text img {
    max-height: 30vh;
    width: auto;
    max-width:100%;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.modal-content, #caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@media only screen and (max-width: 700px){
    .modal-content {
        width: 100%;
    }
}

.stop-button {
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 10px;
}
.stop-chat,.restart-chat {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}
a:link, a:visited {
    color: black;
}
section {
    font-family: "Open Sans", sans-serif;
}