/**
* Write your style overrides here for LTR languages
**/
/* Status Container */
#lhc_status_container {
    background-position: 50% ! important;
    background-image: linear-gradient(180deg,#ff6f16,#ff5b02) ! important;
    border: 1px solid #d73300 ! important;
    -webkit-border-radius: 50% ! important;
    -moz-border-radius: 50% ! important;
    border-radius: 50% ! important;
    width: 50px !important;
    height: 50px ! important;
    bottom: 20px ! important;
    right: 20px ! important;
}
#lhc_status_container .status-icon {
    width: 100% ! important;
    height: 100% ! important;
    padding: 0px ! important;
    background-position-x: 15% ! important;
    background-position-y: 25% ! important;
    /*background-image: url('/assets/img/icon.png') ! important;*/
}
#lhc_need_help_image img {
    border-radius: 50%;
    height:60px;
    width:60px;
    border: 1px solid #d0d0d0;
}

/* Need Help Container */
#lhc_need_help_container {
    width: 325px ! important;
    margin-left:-300px !important;
}
#lhc_need_help_container:hover #lhc_need_help_triangle {
    border-top-color: rgba(250,250,251,.98) ! important;
}
#lhc_need_help_triangle {
    border-left: 15px solid transparent ! important;
    border-top: 15px solid rgba(250,250,251,.98) !important;
    bottom: -15px ! important;
}

/* Header */
#lhc_header {
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.12) ! important;
    background: #fff ! important;
    width: 100% ! important;
    height: 40px ! important;
}
#lhc_min {
    display: none ! important;
}
#lhc_remote_window {
    display: none ! important;
}
#lhc_close {
    padding-right: 25px ! important ;
    padding-top: 15px ! important ;
    float: right;
}
#lhc_close:hover{
    opacity:1 !important;
}
#lhc_title {
    padding-left: 20px ! important;
    padding-top: 15px ! important;
}

/* Container */
body.widget-chat {
    background-color: rgba(250,250,251,.98) ! important;
}
#lhc_container {
    width: 25% ! important;
    height:100% ! important;
    background: transparent ! important;
    cursor: default ! important;
    transition-property: height ! important;
    transition-duration: 0s ! important;
    -webkit-transition: height s ease-in-out ! important;
    transition: height 0s ! important;
    -webkit-border-radius: 0px ! important;
    -moz-border-radius: 0px ! important;
    border-radius: 0px ! important;
}
#lhc_container iframe {
    display:none;
    background-color: rgba(250,250,251,.98) ! important;
    width: 100% ! important;
    height: 100% ! important;
}
#lhc_container iframe.lhc-loading {
    background: transparent url() no-repeat ! important;
}
div#lhc_iframe_container {
    height: 100%;
    background: transparent ! important;
}

.start-chat-intro {
    display: block;
    width: 100%;
    height: 220px;
    background-size: 115%;
    background-position: 55%;
    padding: 25px 12px;
    font-size: 16px;
    line-height: 1.42857143;
    color: #777;
    text-align:center;
    border: 1px solid #ccc;
    background-color: #fff;
    background-image: url('../images/usr.png') ! important;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    -webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
}
::selection {
    /*color: inherit;*/
}
/* Border */
.btn-group, .btn-group-vertical {
    box-shadow: inset 0 1px 0 0 hsla(0,0%,100%,.17);
    background: #ff5b02;
    background-image: linear-gradient(180deg,#ff6f16,#ff5b02);
    border-radius: 3px;
    text-decoration: none;
    font-size: 14px;
    line-height: 25px;
    padding: 0 9px;
    display: inline-block;
    color: #fff;
    border: 1px solid #eb4700;
}

.btn-default, .btn-default:hover, .btn-default:active, .btn-default:focus, .btn-group>.btn:first-child {
    color: #fff ! important;
    text-shadow: 0 -1px rgba(0,0,0,.2) ! important;
    background-color: transparent ! important;
    border: none ! important;
    outline:none ! important;
}

/* Form */

form#form-start-chat {
    bottom: 60px;
    position: fixed;
    width:100%;
    padding-right:20px;
}

#widget-layout input[type=text] {
    height: 35px ! important;
    width: 100% ! important;
}

/* Operator */
.operator-info {
    background-color: transparent;
    border: none;
    padding: 5px;
    border-bottom: 0;
    position: relative;
    z-index: 1;
    font-size: 12px;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}
.operator-info img {
    border: 1px solid #e7e7e7;
    border-radius: 50%;
    max-width: 50px;
    max-height: 50px
}

/* Chat */
#ChatMessageContainer {
    bottom: 60px;
    position: fixed;
    width: 315px;
}
#messages {
    height: 455px;
    font-size: 12px;
}
.msgBlock {
    max-height: 100%;
    min-height: 100%;
    overflow-y: auto;
    border: none;
    resize: vertical;
    background-color: transparent;
}
div#status-chat {
    display: block;
    width: 315px;
    height: 75px;
    background-position-x: 60%;
    padding: 7px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #777;
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    -webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
}
.vis-tit {
    display: none;
    color: #99BE7B;
}
.usr-tit {
    display: none ! important;
}
.msgBlock-admin .message-row.response:first-child .usr-tit, .msgBlock-admin .message-row.message-admin:first-child .usr-tit, div.message-row.operator-changes .usr-tit {
    width: auto!important;
    visibility: visible!important;
    overflow: inherit!important;
    height: auto!important;
    margin-right: 5px!important;
    padding: 2px 0!important;
    margin-top: -25px!important;
    display: none ! important;
}
div.message-admin+div.message-admin .msg-date, div.message-row.response+div.message-row.response .msg-date, #messagesBlock .message-row .msg-date {
    display: none ! important;
}
.msgBlock .message-row.response:first-child, .msgBlock-admin .message-row.response:first-child, div.message-admin + div.message-row.response, div.system-response + div.message-row.response {
    -webkit-border-top-right-radius: 10px;
    -moz-border-radius-topright: 10px;
    border-radius: 20px;
    margin-top: 20px;
    margin-right: 30px;
    margin-left: 0;
    padding-top: 10px;
}
messagesBlock .message-row.message-admin:first-child, .read-operator-message .message-row.message-admin:first-child, .message-row.message-admin + .message-row.message-admin.operator-changes, .msgBlock-admin .message-row.message-admin:first-child, div.message-row.operator-changes, div.system-response + div.message-admin, div.message-row.response+div.message-admin {
    margin-top: 20px;
    margin-left: 30px;
    margin-right: 0;
    -webkit-border-top-left-radius: 10px;
    -moz-border-radius-topleft: 10px;
    border-radius: 20px;
    padding-top: 10px;
}
textarea#id_Question {
    max-width: 100% ! important;
    min-width: 289px ! important;
    max-height: 150px! important;
    min-height: 50px ! important;
}
.mb5 {
    margin-bottom: 5px;
    right:-5px;
    display:none;
}
.pr5 {
    padding-right: 10px;
}
.pl10 {
    padding-left: 10px;
    padding-top: 5px;
}
.bb-list a {
    padding: 4px;
    display: inline-block;
    border: 1px solid #ccc;
    width: 32px;
    height: 32px;
}
div.message-admin {
    margin-left: 30px;
    margin-right: 0;
    background-color: #EEEEEE;
    padding: 10px 10px;
    margin-top: 5px;
    margin-bottom: 0;
    border-radius:20px;
}
div.message-row.response {
    background-color: #0084ff;
	color:#fff;
    padding: 10px 10px;
    margin-top: 5px;
    border-radius:20px;
    margin-bottom: 0;
}
i.material-icons.up-vote-action {
    padding-top: 5px;
    margin-right: 10px;
}
i.material-icons.down-vote-action {
    padding-top: 5px;
    margin-right: 10px;
}
.user-is-typing, #id-operator-typing {
    font-style: italic;
    font-weight: bold;
    line-height: 140%;
    min-height: 14px;
    font-size: 11px;
    color: #999;
    padding-top:0px;
    text-overflow: ellipsis;
    overflow: hidden;
    text-align: right;
}
.btn-group.open .dropdown-toggle {
    -webkit-box-shadow: inset 0 0px 0px rgba(0,0,0,.125) ! important;
    box-shadow: inset 0 0px 0px rgba(0,0,0,.125) ! important;
}


/* css of lehuy */
html{
    height: 100%;
}

body{
    height: 100%;
}

.widget-chat #widget-layout{
    height: 100%;
}

.widget-chat #widget-layout > div{
    height: 100%;
    position: relative;
}

#messages{
    height: auto;
    font-size: 12px;
    top: 90px;
    bottom: 140px;
    position: absolute;
    width: 98%;
}

#messages.read-operator-message{
    position: relative;
    top: 10px;
}

/* Keep desktop header controls in the top row, above the main menu. */
@media (min-width: 993px) {
    /* Scroll the utility row away while keeping the main navigation visible. */
    body:not(.term_policy) > header.container-fluid {
        position: sticky;
        top: -43px;
        z-index: 1000;
        background: #fff;
    }

    body:has(#wpadminbar) > header.container-fluid {
        top: -11px;
    }

    body:not(.term_policy) > header .menu_main {
        box-shadow: 0 4px 18px rgba(20, 38, 58, .12);
    }

    header .menu_top .top_right {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        min-width: 310px;
        padding-top: 0;
    }

    header .menu_top .language {
        order: 1;
        margin: 0;
    }

    header .menu_top .language .sod_select {
        margin-top: 0;
    }

    header .menu_top .search {
        order: 2;
        flex-shrink: 0;
        margin-top: 0;
        padding-bottom: 0;
        height: 43px;
        display: flex;
        align-items: center;
    }

    header .menu_top #button_search {
        padding-top: 0;
    }

    header .menu_top .search-form.active {
        position: absolute;
        top: 0;
        right: 60px;
        width: 250px;
        margin: 0;
        transform: none;
    }

    header .menu_top .search-form label {
        display: block;
        margin: 0;
    }

    header .menu_top .search-field {
        position: static;
        width: 100%;
    }
}

/* WordPress reserves space for its toolbar; the fixed mobile header must too. */
@media (max-width: 992px) {
    body:has(#wpadminbar) header .top_header {
        top: 32px;
    }
}

@media (max-width: 782px) {
    body:has(#wpadminbar) header .top_header {
        top: 46px;
    }
}

