        
<style>

#fullchat {
    font-family:Arial;
    font-size:14px;
}
#chatstart {
    cursor: pointer;
    position: fixed;
    bottom:30px;
    right:40px;
    border: 1px solid #eaf0f6;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,.2);
    border-radius: 4px;
    width: 240px;
    padding: 24px 16px 16px;
    z-index: 999;
}
#chatstart::before {
	background-color: #FFFFFF;
	content: "\00a0";
	display: block;
	height: 26px;
	width: 26px;
	position: absolute;
	bottom: -12.5px;
	right:20px;
	transform: rotate(47deg) skew(5deg);
	-moz-transform: rotate(47deg) skew(5deg);
	-ms-transform: rotate(47deg) skew(5deg);
	-o-transform: rotate(47deg) skew(5deg);
	-webkit-transform: rotate(47deg) skew(5deg);
	box-shadow: 0 30px 20px rgba(0,0,0,.2);
}
#chatstart.swchatbox {
    display:none;
}

/**
#chatstart {
    width:30%;
    min-width:300px;
    max-width:500px;
    border:1px solid #333;
    position: fixed;
    bottom:0;
    right:20px;
    padding-top: 20px;
    border-radius: 10px;
    flex-wrap: wrap;
    max-height: 70%;
}
**/
#chatbox {
    width:30%;
    min-width:300px;
    max-width:500px;
    background:#fff;
    position: fixed;
    bottom:0;
    right:20px;
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    max-height: 70%;
    display:none;
    box-shadow: 5px 5px 30px rgba(0,0,0,.3);
	z-index: 999;
}

.cbtext {
    width:100%;
}
.cbquestion {
    background:#660000;
    border-radius: 10px 0 10px 10px !important;
    color:white;
}
.cbresponse {
    background: #eeeeee;
    border-radius: 0 10px 10px 10px !important;
}
#chattype {
    width: 100%;
    height: 40px;
    border:0;
    padding: 10px 15px;
    margin: 0;
    font-size:16px;
}
#chattype:focus {
    border:0;
}
#submitbutton {
    display:flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #ccc;
}
.submittext {
    font-size:14px;
}
#chatwrapper {
    padding: 10px 0;
    display: flex;
    flex-wrap: wrap;
    overflow-y: scroll;
    max-height: 390px;
    width: 100%;
}
#chatholder {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    width: 100%;
}
.cbtextleft {
    text-align: left;
    display: flex;
    justify-content: flex-start;
}
.cbtextright {
    text-align: right;
    display: flex;
    justify-content: flex-end;
}
.cbqr {
    padding: 15px;
    border-radius: 10px;
    margin: 10px;
    max-width:70%;
    font-family:Arial;
    font-size:14px;
    background-image: linear-gradient(to top, rgba(255,255,255,0), rgba(255,255,255,.2));
}
#cbl-submit {
    min-width: 80px;
    height: 40px;
    background: #660000;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor:pointer;
    background-image: linear-gradient(to top, rgba(255,255,255,0), rgba(255,255,255,.2));
}
#waitingarea {
    display:none;
    width: 100%;
    padding: 10px 10px 20px 20px;
    font-size: 30px;
    color: #aaa;
}

#bubblelogo {
    background:white;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    position: relative;
    top: -49px;
    left: 42%;
    padding: 0;
    border: 0px solid #fff;
    margin-bottom: -49px;
}
#thelogo {
    background: url('<?php echo $logo; ?>');
    height: 50px;
    width: 50px;
    border-radius: 50%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
#chatcap {
    padding: 10px;
    background: #660000;
    border-radius: 10px 10px 0 0;
    color: white;
    display:flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    background-image: linear-gradient(to top, rgba(255,255,255,0), rgba(255,255,255,.2));
}
.caplogo {
    width: 35px;
    height: 35px;
    padding-right:15px;
}
.caplogoimg {
    background: url('<?php echo $logo; ?>');
    height: 50px;
    width: 50px;
    border-radius: 50%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border: 2px solid #fff;
    margin-left: -30px;
    margin-top: -30px;
    box-shadow: 2px 2px 10px #333;
}
.captext {
    font-weight: bold;
}
.capcontrol {
	margin-left: auto;
}
.cbl-minimize {
	cursor:pointer;
}
.cbl-maximize {
	cursor:pointer;
	display:none;
}
.chatlogo {
    width: 35px;
    height: 35px;
    padding-left:10px;
}
.chatlogoimg {
    background: url('<?php echo $logo; ?>');
    height: 30px;
    width: 30px;
    border-radius: 50%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border: 2px solid #fff;
}
#chatform {
    display:none;
    max-height:80%;
    overflow-y:auto;
    position: absolute;
    background: #fff;
    top: 55px;
    padding: 20px;
    box-shadow: 0px 12px 10px -10px #333;
    width: -webkit-fill-available;
    border-radius: 0 0 10px 10px;
}
.cbl-formrow {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 16px;
    color: #777;
    margin-bottom: 15px;
}
.cbl-formlabel {
    width: 25%;
}
.cbl-forminput {
    width: 70%;
}
#fullchat .cbl-forminput input {
    width: 100%;
    border-radius: 5px;
    border: 1px solid #777;
    padding: 3px 10px;
    font-size: 14px;
}
#fullchat .cbl-forminput textarea {
    width: 100%;
    min-height: 60px;
    border-radius: 5px;
    border: 1px solid #777;
    padding: 3px 10px;
    font-size: 14px;
}
.submit-wrapper {
    display: flex;
    justify-content: flex-end;
}
.cbl-form-submit-button {
    background: #660000;
    color: white;
    width: fit-content;
    padding: 2px 10px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 700;
    cursor:pointer;
}
.cbl-closeform {
    font-size:20px;
    position:absolute;
    top:0;
    right:10px;
    cursor:pointer;
}



@media only screen and (max-width: 600px) {

#chatbox {
    width:400px;
    min-width:150px;
    max-width:85%;
}

}



</style>