.tv-cms-chatbox-container.tv-cms-chatbox-position-bottom_left {
    bottom: 0;
    position: fixed;
    margin: 1em;
    left: 0;
    z-index: 9999;
}

.tv-cms-chatbox-container.tv-cms-chatbox-position-bottom_right {
    bottom: 0;
    position: fixed;
    margin: 1em;
    right: 0;
    z-index: 9999;
}

.tv-cms-chatbox-container.tv-cms-chatbox-position-top_left {
    top: 0;
    position: fixed;
    margin: 1em;
    left: 0;
    z-index: 9999;
}

.tv-cms-chatbox-container.tv-cms-chatbox-position-top_right {
    top: 0;
    position: fixed;
    margin: 1em;
    right: 0;
    z-index: 9999;
}

.tv-cms-chat-message {
    background-color: rgb(253, 251, 251);
    height: 200px;
    width: 300px;
}

.tv-cms-message {
    height: 150px !important;
    width: 300px !important;
}

.tv-cms-chatbox-container.tv-cms-chatbox-position-left {
    right: auto;
    left: 0;
}

.tv-cms-widgets-container {
    max-width: 400px;
    margin-top: 20px;
}

.tv-cms-chatbox-opener {
    display: block;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    text-align: center;
    color: #f0f0f0;
    margin: 25px auto 0;
    box-shadow: 0 0 4px rgba(0, 0, 0, .14), 0 4px 8px rgba(0, 0, 0, .28);
    cursor: pointer;
    -webkit-transition: all .1s ease-out;
    transition: all .1s ease-out;
    position: relative;
    background: #04AA6D;
}

/* pulse wave */
.tv-cms-chatbox-opener:before {
    content: "";
    position: absolute;
    width: 170%;
    height: 170%;
    -webkit-animation: pulsate1 1500ms ease-out infinite;
    animation: pulsate1 1500ms ease-out infinite;
    opacity: 1;
    border-radius: 50%;
    top: -33%;
    left: -33%;
    z-index: -1;
    background: rgb(177 167 167 / 48%);
}

@-webkit-keyframes pulsate1 {
    0% {
        -webkit-transform: scale(0.6);
        transform: scale(0.6);
        opacity: 1;
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 0;

    }
}

@keyframes pulsate1 {
    0% {
        -webkit-transform: scale(0.6);
        transform: scale(0.6);
        opacity: 1;
    }

    100% {
        -webkit-transform: scale(1, 1);
        transform: scale(1);
        opacity: 0;
    }
}

.tvcms-close-icon-lg {
    width: 35px;
    height: 28px;
    vertical-align: middle;
    display: inline-block;
    background: url(../img/download.ico) no-repeat;
}

.tv-cms-chatbox-opener>i {
    font-size: 2em;
    line-height: 55px;
    -webkit-transition: all .2s ease-out;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
    color: #ffffff;
}

.tv-cms-chatbox-positions-bottom_right {
    position: fixed;
    right: 20px;
    bottom: 96px;
    width: 400px;
    font-size: 12px;
    line-height: 22px;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
    opacity: 0;
    visibility: hidden;
    box-shadow: 1px 1px 100px 2px rgba(0, 0, 0, 0.22);
    -webkit-transition: all .2s ease-out;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
    text-align: left;
    border-radius: 10px;
    -webkit-animation: zoomOut .2s cubic-bezier(.42, 0, .58, 1);
    animation: zoomOut .2s cubic-bezier(.42, 0, .58, 1);
}

.tv-cms-chatbox-positions-bottom_left {
    position: fixed;
    bottom: 89px;
    width: 400px;
    font-size: 12px;
    line-height: 22px;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
    opacity: 0;
    visibility: hidden;
    box-shadow: 1px 1px 100px 2px rgba(0, 0, 0, 0.22);
    -webkit-transition: all .2s ease-out;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
    text-align: left;
    border-radius: 10px;
    -webkit-animation: zoomOut .2s cubic-bezier(.42, 0, .58, 1);
    animation: zoomOut .2s cubic-bezier(.42, 0, .58, 1);
}

.tv-cms-chatbox-positions-top_left {
    position: fixed;
    top: 120px;
    width: 400px;
    font-size: 12px;
    line-height: 22px;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
    opacity: 0;
    visibility: hidden;
    box-shadow: 1px 1px 100px 2px rgba(0, 0, 0, 0.22);
    -webkit-transition: all .2s ease-out;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
    text-align: left;
    border-radius: 10px;
    -webkit-animation: zoomOut .2s cubic-bezier(.42, 0, .58, 1);
    animation: zoomOut .2s cubic-bezier(.42, 0, .58, 1);
}

.tv-cms-chatbox-positions-top_right {
    position: fixed;
    right: 20px;
    top: 120px;
    width: 400px;
    font-size: 12px;
    line-height: 22px;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
    opacity: 0;
    visibility: hidden;
    box-shadow: 1px 1px 100px 2px rgba(0, 0, 0, 0.22);
    -webkit-transition: all .2s ease-out;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
    text-align: left;
    border-radius: 10px;
    -webkit-animation: zoomOut .2s cubic-bezier(.42, 0, .58, 1);
    animation: zoomOut .2s cubic-bezier(.42, 0, .58, 1);
}

.tv-cms-chatbox.tv-cms-chatbox-is-visible {
    opacity: 1;
    visibility: visible;
    -webkit-animation: zoomIn .2s cubic-bezier(.42, 0, .58, 1);
    animation: zoomIn .2s cubic-bezier(.42, 0, .58, 1);
}

.tv-cms-chatbox-position-left .tv-cms-chatbox {
    right: auto;
    left: 20px;
}

.tv-cms-chatbox-header {
    font-size: 13px;
    font-weight: 500;
    color: #f3f3f3;
    background: #04AA6D;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding-top: 16px;
}

.tv-cms-chatbox-header-title {
    font-size: calc(17px + (19 - 17) * ((100vw - 280px) / (1920 - 280)));
    margin-left: 20px;
    margin-right: 20px;
}

.tv-cms-chatbox-header-subtitle {
    font-size: calc(12px + (14 - 12) * ((100vw - 280px) / (1920 - 280)));
    line-height: 1.2em;
    padding-top: 8px;
    padding: 10px 20px;
}

.tv-cms-chatbox-header .span {
    float: right;
}

.tv-cms-chatbox-header img {
    width: 50px;
    margin: -15px 20px 10px 20px;
    background: #04AA6D;
    border-top-right-radius: 50%;
    border-top-left-radius: 50%;
    position: absolute;
    left: 0;
    top: 0;
}

.tv-cms-chatbox-header .agent {
    font-size: 12px;
    font-weight: 300;
}

.tv-cms-chatbox-header .online {
    opacity: 0.4;
    font-size: 11px;
    font-weight: 300;
}

.tv-cms-chatbox-body {
    background: #fff;
    width: 100%;

    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;

    padding: 20px;
}

.tv-cms-chatbox-is-active {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
    -webkit-transition: all 1s ease-in-out;
    transition: all 1s ease-in-out;
}

.tv-cms-chatbox-is-float {
    box-shadow: 0 0 6px rgba(0, 0, 0, .16), 0 6px 12px rgba(0, 0, 0, .32);
}

.tv-cms-chatbox-account,
.tv-cms-widget-account {
    padding: 10px;
    background: #f4f4f4;
    border-radius: 10px;
    position: relative;
    top: 0;
    margin-bottom: 10px;
    border-left: 4px solid #797979;
}

.tv-cms-chatbox-account.tvactive {
    border-left: 4px solid #04AA6D;
}

.tv-cms-chatbox-account.tvdeactive {
    opacity: 0.7;
}

.tv-cms-widget-account {
    /*background: #eaeaea;*/
    background: #ffffff;
    border-top: 1px dotted #04AA6D;
    border-right: 1px dotted #04AA6D;
    border-bottom: 1px dotted #04AA6D;
}

.tv-cms-chatbox-account:hover,
.tv-cms-widget-account:hover {
    opacity: 0.8;
}

.tv-cms-chatbox-account>a,
.tv-cms-widget-account>a {
    display: block;
    text-decoration: none;
}

.tv-cms-chatbox-account>a:focus,
.tv-cms-chatbox-account>a:active,
.tv-cms-widget-account>a:focus,
.tv-cms-widget-account>a:active {
    text-decoration: none;
}

.tv-cms-account-avatar,
.tv-cms-widget-account-avatar {
    width: 50px;
    float: left;
}

.tv-cms-account-avatar img,
.tv-cms-widget-account-avatar img {
    max-width: 100%;
    border-radius: 100%;
}

.tv-cms-account-details,
.tv-cms-widget-account-details {
    padding-top: 5px;
    float: left;
    max-width: calc(90% - 135px);
    margin-left: 30px;
}

.tv-cms-account-name,
.tv-cms-widget-account-name {
    font-size: 14px;
    line-height: 1.4em;
    color: #545050;
}

.tv-cms-account-title,
.tv-cms-widget-account-title {
    font-size: 11px;
    line-height: 1.4em;
    color: #757575;
}

.tv-cms-account-status,
.tv-cms-widget-account-status {
    float: right;
    margin-top: 12px;
    background: #20ab54;
    color: #fff;
    font-size: 0;
    padding: 0px 6px;
    width: 15px;
    height: 15px;
    border-radius: 100%;
    margin: 17px 0;
}

.tv-cms-account-status.tv-cms-account-offline,
.tv-cms-widget-account-status.tv-cms-widget-account-offline {
    background: #797979;
}

.tv-cms-account-offline-text,
.tv-cms-widget-account-offline-text {
    font-size: 12px;
    line-height: 1.4em;
    color: #773636;
    padding-top: 10px;
}

.tv-cms-chatbox-icon {
    background-image: url(../img/whatsapp-logo-white.png);
    display: block;
    width: 52%;
    height: 52%;
    background-size: cover;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.tv-cms-chatbox-icon-close {
    background-image: url(../img/close.png);
    width: 35%;
    height: 35%;
}

.tv-cms-widget-button-text {
    font-size: 14px;
    padding-top: 5px;
    color: #04AA6D;
    font-weight: bold;
}

@-webkit-keyframes zoomIn {
    0% {
        -webkit-transform: scale(0);
        transform: scale(0);
        opacity: 0.0;
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes zoomIn {
    0% {
        -webkit-transform: scale(0);
        transform: scale(0);
        opacity: 0.0;
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 1;
    }
}

@media only screen and (max-width: 480px) {
    .tv-cms-chatbox {
        width: 350px;
    }

    .tv-cms-chatbox-body {
        padding: 10px;
    }
}

@media only screen and (max-width: 400px) {
    .tv-cms-chatbox {
        max-width: calc(100% - 40px);
    }

    .tv-cms-chatbox-account,
    .tv-cms-widget-account {
        padding: 8px;
    }
}

.open-button {
    background-color: #04AA6D;
    color: white;
    font-size: 14px;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 7px;
    position: relative;
    overflow: hidden;
}

.open-button svg {
    vertical-align: bottom;
    margin-right: 5px;
}

.open-button span+svg {
    margin: 0 0 0 4px;
}

button:focus {
    outline: none;
}

/* The popup chat - hidden by default */
.chat-popup {
    bottom: 0;
    right: 15px;
    z-index: 9;
}

input {
    display: block !important;
}

.chat-popup {
    position: fixed;
    right: 0px;
    left: 0px;
    margin: auto;
    top: 0px;
    bottom: 0;
    display: grid;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    z-index: 9999999;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
}

.chat-popup .form-container {
    position: relative;
    height: max-content;
    max-width: 500px;
    margin: 15px;
    font-size: 12px;
    line-height: 22px;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
    opacity: 0;
    visibility: hidden;
    box-shadow: 1px 1px 100px 2px rgba(0, 0, 0, 0.22);
    -webkit-transition: all .3s ease-out;
    -webkit-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
    text-align: left;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border-radius: 10px;
    z-index: 2;
}

.chat-popup.show {
    opacity: 1;
    visibility: visible;
}

.chat-popup.show .form-container {
    opacity: 1;
    visibility: visible;
    -webkit-animation: zoomIn .3s cubic-bezier(.42, 0, .58, 1);
    animation: zoomIn .3s cubic-bezier(.42, 0, .58, 1);
}

.chat-popup.close {
    opacity: 0;
    visibility: hidden;
}

.chat-popup.close .form-container {
    opacity: 0;
    visibility: hidden;
    -webkit-animation: zoomOut .3s cubic-bezier(.42, 0, .58, 1);
    animation: zoomOut .3s cubic-bezier(.42, 0, .58, 1);
}

@-webkit-keyframes zoomIn {
    0% {
        -webkit-transform: scale(0);
        transform: scale(0);
        opacity: 0.0;
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes zoomIn {
    0% {
        -webkit-transform: scale(0);
        transform: scale(0);
        opacity: 0.0;
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 1;
    }
}


@-webkit-keyframes zoomOut {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 1;
    }

    100% {
        -webkit-transform: scale(0);
        transform: scale(0);
        opacity: 0;
    }
}

@keyframes zoomOut {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 1;
    }

    100% {
        -webkit-transform: scale(0);
        transform: scale(0);
        opacity: 0;
    }
}

.form-container {
    padding: 19px;
    background-color: white;
}

/* Full-width textarea */
.form-container .textbox {
    width: 100%;
    padding: 10px;
    margin: 2px 0 20px 0;
    border: none;
    background: #f1f1f1;
    border-radius: 3px;
}

/* When the textarea gets focus, do something */
.form-container textarea:focus {
    background-color: #ddd;
    outline: none;
}

/* Set a style for the submit/send button */
.form-container .btn.send {
    background-color: #04AA6D;
    color: white;
    padding: 13px 15px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    margin-bottom: 10px;
    border-radius: 5px;
    float: right;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.open-button:after,
.form-container .btn.send:after {
    position: absolute;
    content: "";
    width: 50px;
    -webkit-transform: skewX(-50deg);
    -moz-transform: skewX(-50deg);
    -ms-transform: skewX(-50deg);
    -o-transform: skewX(-50deg);
    transform: skewX(-50deg);
    bottom: 0%;
    left: -196%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.20);
}

.open-button:hover:after,
.form-container .btn.send:hover:after {
    left: 300%;
    -webkit-transition: all 1.5s ease 0.1s;
    -o-transition: all 1.5s ease 0.1s;
    transition: all 1.5s ease 0.1s;
}

.form-container .btn.send svg {
    margin-left: 6px;
    display: block;
    fill: #fff;
}

.form-container .cancel {
    position: absolute;
    /* left: 0; */
    top: -9%;
    right: -7%;
    width: 40px;
    height: 40px;
    background-color: #f1f1f1;
    border: 2px solid #b7b7b7;
    border-radius: 100%;
    margin: 0;
    padding: 0;
}

label.tv_title {
    margin-bottom: 0;
}

.form-container .cancel svg {
    vertical-align: middle;
    transition: all 200ms ease-in-out;

}

.form-container .cancel svg path:nth-child(2) {
    fill: #000;

}

.form-container .cancel:hover svg {
    transform: rotate(180deg);
}

.form-container #tvcust_name {
    margin: 2px 0 5px 0;
}

.error-feedback {
    display: none;
    color: #ff9a52;
    font-size: 14px;
}

.form-container hr {
    margin-top: 0.7rem;
    margin-bottom: 0.7rem;
}

input:focus-visible {
    outline: none;
}

.form-container input:focus {
    background-color: #ddd;
}

button:focus {
    outline: none !important;
}

#wrapper {
    position: relative;
}

@media (max-width:575px) {
    .form-container .cancel {
        top: -5%;
        right: -4%;
    }

    .tv-cms-chatbox-opener {
        width: 55px;
        height: 55px;
    }

    .tv-cms-chatbox-positions-top_left {
        bottom: 370px;
    }
}

@media (max-width:375px) {
    .open-button {
        font-size: 13px;
        padding: 10px 13px;
    }

    .open-button svg:first-child {
        margin-right: 3px;
        width: 21px;
        height: 21px;
    }

    .open-button span+svg {
        margin: 0 0 0 3px;
        height: 23px;
        width: 23px;
    }
}