/*
    Document   : overload
    Created on : Jan 5, 2012, 11:53:06 AM
    Author     : steve course
    Description: inline chat - also overload standard casengo styles for
*/


/* overload of casengo */
.wrapper {
	border: 0px;
}

.msg-nobubble div.msg-bubble-arrow, .msg-nobubble div.msg-bubble-inner {
	background: transparent;
}

.msg-nobubble .msg-bubble-c {
	float: left;
}

.msg-nobubble  div.msg-bubble-inner {
	margin-left: 40px;
}

.msg-nobubble  .msg-bubble-pic {
	display: none;
}


.msg-bubble-arrow {
	background-color: #f0f0f0;
	width: 7px;
	height: 13px;
}

.msg-bubble-inner {
	border: 0;
	-webkit-border-radius: 0px;
	-moz-border-radius: 0px;
	border-radius: 0px;
	background-color: #f0f0f0;
}

.msg-bubble-pic {
	height: 24px;
	width: 24px;
}

.msg-bubble-c .msg-bubble-pic {
	top: 8px;
	right: 0;
	left: inherit;
}

.msg-bubble-c .msg-bubble-arrow {
	background-image: url('../images/balloon-arrow-right.png');
	background-position: 0 0;
	right: 33px;
	top: 10px;
	left: inherit;
}

.msg-bubble-c .msg-bubble-inner {
	margin: 0 40px 0 40px;
}

.msg-bubble-a .msg-bubble-pic {
	top: 8px;
	left: 0;
}

.msg-bubble-a .msg-bubble-arrow {
	background-image: url('../images/balloon-arrow-left.png');
	background-position: 0 0;
	left: 33px;
	top: 10px;
}

.msg-bubble-a .msg-bubble-inner {
	margin: 0 40px 0 40px;
}

.msg-bubble-sender {
	white-space: nowrap;
	overflow: hidden;
}

.msg-bubble-a .msg-bubble-sender {
	color: #706f6b;
}

.msg-bubble-c .msg-bubble-sender {
	color: #706f6b;
}


.msg-input-container {
	padding-right: 0px;
}

.msg-bubble-text ol li {
	list-style: decimal inside;
}

.msg-bubble-text ul li {
	list-style: disc inside;
}


.msg-bubble-text ol br, .msg-bubble-text ul br {
	display: none;
}

.msg-input-wrapper {
	float: left;
	width: 100%;
	border: 0px;
}

#uploadAttachment {
	position: absolute;
	float: right;
	width: 16px;
	min-width: 16px;
	overflow: hidden;
	right: 20px;
	top: 15px;
	cursor: pointer;
}

#uploadAttachment-ie8 {
	position: absolute;
	float: right;
	width: 17px;
	overflow: hidden;
	right: 35px;
	top: 15px;
	cursor: pointer;
}

#upload-icon, #upload-icon-ie8 {
	background: url("../images/attachment.png") 0px 0px no-repeat !important;
	width: 17px;
	cursor: pointer;
}

#upload-icon:hover, #upload-icon-ie8:hover {
	background: url("../images/attachment.png") -16px 0px no-repeat !important;
}

.msg-bubble-files a {
	background: url("../images/attachment.png") -16px 0px no-repeat;
	padding: 0 5px 4px 23px;
}

#powered-by a {
	color: #bbb;
	font-size: 10px;
}

.powered-by {
	text-align: center;
	padding-top: 3px;
}

.powered-by a div {
	top: 10px;
}


#casengo-logo-mini {
	background: url("../images/casengo-logo-mini.png") no-repeat 0 0;
	width: 46px;
	height: 13px;
	display: inline-block;
	position: relative;
	top: 2px;
}

.content {
	margin-bottom: 79px;
	margin-top: 0px;
}

#content-id {
	overflow-x: hidden;
	overflow-y: auto;
}

.footer {
	border-top: 0;
	background: #fff url('../images/inline-footer-bg.png') repeat-x 0 0;
	width: 100%;
	height:78px;
}

#casengo-textWidth {
	position: absolute;
    visibility: hidden;
    height: auto;
    width: auto;
    top: -5000px;
}
/* otherwise calculations will get overruled by vip.css */
#casengo-textWidth p, #casengo-textWidth strong, #casengo-textWidth em {
	font-size: 16px;
}

#prechat {
	padding-top: 5px;
}

#prechat .welcome-text {
	font-size: 100%;
	margin-bottom: 15px;
}

#prechatlessemailHTML {
	min-width: 250px;
	position: relative;
	bottom: 0px;
}

#prechatless-email {
	width: 184px;
	max-width: 58%;
}

#prechatless-submit {
	width: 184px;
	max-width: 35%;
}

.yellowbubble {
	bottom: 79px;
}

#inputs-container textarea {
	width: 100%;
	padding-right: 16px;
}

/* inline-chat proper */

.casengo-vipbtn {
	/*display: none;*/
}

#inline-chat-wrapper {
    position: fixed;
    bottom: 0px;
    right: 32px;
    display: none;
	/*box-shadow: 5px 14px 6px rgba(0,0,0,0.3), inset 0 -3px 3px rgba(0,0,0,0.1);*/
	-moz-box-shadow: 0 0 10px 2px #444;
	-webkit-box-shadow: 0 0 10px 2px #444;
	box-shadow: 0 0 10px 2px #444;
	/*border: solid #ccc 1px;
	height: 328px;
	width: 250px;
	*/
	height: auto;
	width: auto;
	z-index: 1600000;
	-webkit-box-sizing: content-box;
	-moz-box-sizing: content-box;
	box-sizing: content-box;
}


.inline-chat-header	{
	height: 23px;
	/*background: transparent url('../images/inline-header-bg.png') repeat-x 0 0;*/
	font-size: 13px;
	font-family: Helvetica, Arial, Tahoma, sans-serif;
	color: #dddddd;
	cursor: move;
	padding-top: 5px;
	text-align: center;
	/*
	border-left: 1px solid #999;
	border-right: 1px solid #999;
	*/
	background-color: black;
	padding-left: 50px;
	padding-right: 20px;
	-webkit-box-sizing: content-box;
	-moz-box-sizing: content-box;
	box-sizing: content-box;
}

.inline-chat-header div:first-child {
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	max-width: 90%;
}

#casengo-inline-chat-close-button, #preview-chat-close-button {
	background: transparent url('../images/icon-x.png') no-repeat 0 0;
	width: 14px;
	height: 14px;
	position: absolute;
	top: 6px;
	right: 5px;
	cursor: pointer;
}

#casengo-inline-chat-close-button:hover, #preview-chat-close-button:hover {
	background-position: -14px 0;
}


#inline-chat-minimize-button, #preview-chat-minimize-button {
	background: transparent url('../images/icon-min.png') no-repeat 0 0;
	width: 14px;
	height: 14px;
	position: absolute;
	top: 6px;
	right: 20px;
	cursor: pointer;
}

#inline-chat-minimize-button:hover, #preview-chat-minimize-button:hover {
	background-position: -14px 0;
}

#inline-welcome-msg {
	height: 67px;
	width: 100%;
	background: transparent url('../images/inline-welcome-bg.png') repeat-x 0 0;
}

#inline-welcome-msg .inline-welcome-logo {
	float: left;
	margin-left: 20px;
	margin-top: 9px;
	width: 49px;
	height: 49px;
	border: 1px solid #cccccc;
	background: transparent url('../images/inline-butterfly.png') no-repeat 0 0;
}

#inline-company-avatar {
	position: absolute;
	width: 49px;
	height: 49px;
}

#inline-welcome-msg .inline-welcome-text {
	float: left;
	margin-left: 10px;
	margin-top: 20px;
	text-overflow: ellipsis;
	overflow: hidden;
	max-width: 65%;
	white-space: nowrap;
}

#inline-welcome-msg .inline-welcome-title {
	color: #444444;
	font-weight: bold;
}

#inline-welcome-msg .inline-welcome-subtitle {
	color: #bbbbbb;
}

#inline-chat-status {
    position: fixed;
    bottom: 0px;
    right: 32px;
    width:260px;
    height:1px;
	font-family: Helvetica, Arial, Tahoma, sans-serif;
	/*background: transparent url('../images/inline-underline.png') no-repeat 0 0;*/
    display: none;
}

#inline-chat-status-button {
    position: fixed;
    bottom: 0px;
    width:250px;
    height:33px;
	font-size: 18px;
	font-family: Calibri, Arial, Tahoma, sans-serif;
	/*background: transparent url('../images/click2chat.png') no-repeat 0 0;*/
	background: black;
	-moz-border-radius: 5px 5px 0px 0px;
	-webkit-border-radius: 5px 5px 0px 0px;
	border-radius: 5px 5px 0px 0px;
	-moz-box-shadow: 0 -1px 5px 1px #999;
	-webkit-box-shadow: 0 -1px 5px 1px #999;
	box-shadow: 0 -1px 5px 1px #999;
	color: white;
	font-weight: normal;
	text-align: left;
	padding: 5px 10px;
	cursor: pointer;
	-webkit-box-sizing: content-box;
	-moz-box-sizing: content-box;
	box-sizing: content-box;
}

.inline-chat-open-icon {
	background: transparent url('../images/open_chat_icon.png') no-repeat 0 0;
	width: 16px;
	height: 10px;
	position: absolute;
	bottom: 15px;
	right: 8px;
	cursor: pointer;
}

.inline-chat-underline {
	background: transparent url('../images/inline-underline.png') no-repeat 0 0;
	width: 339px;
	height: 1px;
	position: absolute;
	bottom: 0px;
}

#inline-chat-status-button > div {
	position: relative;
	top: 5px;
	left: 5px;
	margin: 0px;
	padding: 0px;
}

#casengo-inline-chat-startbutton, #casengo-preview-chat-startbutton {
	vertical-align: bottom;
}

#inline-chat {
}

/* pre-chat */
#prechat .welcome-text {
	padding-left: 0px;
	padding-right: 0px;
}

.prechat-input-container {
	padding-left: 0px;
	padding-right: 0px;
}


.prechat-label-wrapper {
	display: none;
}

.prechat-input-wrapper {
	border: 0px;
}

.prechat-input-wrapper input {
	background: #f0f0f0;

}


#closeEmailAsker {
	right: 16px;
}

#email-text {
	padding-right: 23px;
}

iframe {
/*	height: 100%;
	width: 100%;*/
    border:	0px;
}

.draggable {

}

.casengo-unselectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: -moz-none;
    -ms-user-select: none;
    user-select: none;
}

#casengo-dragoverlay {
	position:absolute;
	top: 28px;
	left: 0;
	width: 100%;
	height: 100%;
	display: none;
}

.btn div.green, .btn div  {
	background: transparent;
	font-weight: normal;
	color: #777;
	border: 0px solid #ccc;
}

.btn div.green, .btn div  {
	background: transparent;
	font-weight: normal;
	color: #777;
	border: 0px solid #ccc;
}

#btn-submit-prechat div.green, #btn-kb-proceed div.green,
#prechatless-submit {
	background: white;
	border: 1px solid #ccc;
	color: #333;
	-webkit-box-shadow: 4px 4px 5px rgba(176, 176, 176, 0.75);
	-moz-box-shadow:    4px 4px 5px rgba(176, 176, 176, 0.75);
	box-shadow:         4px 4px 5px rgba(176, 176, 176, 0.75);
}

#btn-submit-prechat div.green:hover, #btn-kb-proceed div.green:hover,
#prechatless-submit:hover  {
	border: 1px solid #888;
	color: #000;
}

#btn-close {
	display: none;
}

#btn-close div.default:hover {
	color: #333;
}



.btn {
	overflow: inherit;
}


/* for test data css */
.sjcfiller {
	line-height: 1.5em;
	margin:40px;
}

/* Smartphones, disable casengo.com link at the bottom of chat window*/
@media only screen and (max-device-width: 480px){
    .casengo-logo-link{
        pointer-events: none;
        cursor: default;
    }
}

/* Smartphones (portrait and landscape) with low pixel density. adjustment (font-size * 6/5) ----------- */
@media
screen and (-webkit-max-device-pixel-ratio: 1) and (max-device-width: 480px),
screen and (max--moz-device-pixel-ratio: 1) and (max-device-width: 480px),
screen and (-o-device-pixel-ratio: 1) and (max-device-width: 480px),
screen and (max-device-pixel-ratio: 1) and (max-device-width: 480px){

    .msg-bubble-arrow {
        background-color: #f0f0f0;
        width: 8.4px;
        height: 15.6px;
    }

    .msg-bubble-pic {
        height: 28.8px;
        width: 28.8px;
    }

    .msg-bubble-c .msg-bubble-pic {
        top: 9.6px;
    }

    .msg-bubble-c .msg-bubble-arrow {
        right: 39.6px;
        top: 12px;
    }

    .msg-bubble-c .msg-bubble-inner {
        margin: 0 48px 0 48px;
    }

    .msg-bubble-a .msg-bubble-pic {
        top: 9.6px;
    }

    .msg-bubble-a .msg-bubble-arrow {
        left: 39.6px;
        top: 12px;
    }

    .msg-bubble-a .msg-bubble-inner {
        margin: 0 48px 0 48px;
    }

    #uploadAttachment {
        width: 19.2px;
        min-width: 19.2px;
        right: 18.8px;
        top: 21.6px;
    }

    #uploadAttachment-ie8 {
        width: 20.4px;
        right: 14.4px;
        top: 18px;
    }

    #upload-icon, #upload-icon-ie8 {
        width: 20.4px;
    }

    #upload-icon:hover, #upload-icon-ie8:hover {
        background: url("../images/attachment.png") -19.2px 0px no-repeat !important;
    }

    .msg-bubble-files a {
        background: url("../images/attachment.png") -19.2px 0px no-repeat;
        padding: 0 6px 4.8px 27.6px;
    }

    #powered-by a {
        font-size: 12px;
    }

    .powered-by {
        padding-top: 3.6px;
    }

    .powered-by a div {
        top: 12px;
    }


    #casengo-logo-mini {
        width: 55.2px;
        height: 15.6px;
        top: 2.4px;
    }

    .content {
        margin-bottom: 94.8px;
    }

    .footer {
        height:93.6px;
    }

    /* otherwise calculations will get overruled by vip.css */
    #casengo-textWidth p, #casengo-textWidth strong, #casengo-textWidth em {
        font-size: 19.2px;
    }

    #prechat {
        padding-top: 6px;
    }

    #prechat .welcome-text {
        margin-bottom: 18px;
    }

    #prechatlessemailHTML {
        min-width: 300px;
    }

    #prechatless-email {
        width: 220.8px;
        max-width: 69.6%;
    }

    #prechatless-submit {
        width: 220.8px;
        max-width: 42%;
    }

    .yellowbubble {
        bottom: 94.8px;
    }

    #inputs-container textarea {
        padding-right: 19.2px;
    }

    #inline-chat-wrapper {
        right: 38.4px;
        -moz-box-shadow: 0 0 12px 2.4px #444;
        -webkit-box-shadow: 0 0 12px 2.4px #444;
        box-shadow: 0 0 12px 2.4px #444;
    }


    .inline-chat-header	{
        height: 27.6px;
        font-size: 15.6px;
        padding-top: 6px;
        padding-left: 60px;
        padding-right: 24px;
    }

    .inline-chat-header div:first-child {
        max-width: 100%;
    }

    #casengo-inline-chat-close-button, #preview-chat-close-button {
        width: 16.8px;
        height: 16.8px;
        top: 7.2px;
        right: 6px;
    }

    #casengo-inline-chat-close-button:hover, #preview-chat-close-button:hover {
        background-position: -16.8px 0;
    }


    #inline-chat-minimize-button, #preview-chat-minimize-button {
        width: 16.8px;
        height: 16.8px;
        top: 7.2px;
        right: 24px;
    }

    #inline-chat-minimize-button:hover, #preview-chat-minimize-button:hover {
        background-position: -16.8px 0;
    }

    #inline-welcome-msg {
        height: 80.4px;
    }

    #inline-welcome-msg .inline-welcome-logo {
        margin-left: 24px;
        margin-top: 10.8px;
        width: 58.8px;
        height: 58.8px;
    }

    #inline-company-avatar {
        width: 58.8px;
        height: 58.8px;
    }

    #inline-welcome-msg .inline-welcome-text {
        margin-left: 12px;
        margin-top: 24px;
        max-width: 78%;
    }

    #inline-chat-status {
        right: 38.4px;
        width:312px;
        height:1.2px;
    }

    #inline-chat-status-button  {
        width:300px;
        height:39.6px;
        font-size: 21.6px;
        -moz-border-radius: 6px 6px 0px 0px;
        -webkit-border-radius: 6px 6px 0px 0px;
        border-radius: 6px 6px 0px 0px;
        -moz-box-shadow: 0 -1.2px 6px 1.2px #999;
        -webkit-box-shadow: 0 -1.2px 6px 1.2px #999;
        box-shadow: 0 -1.2px 6px 1.2px #999;
        padding: 6px 12px;
    }

    .inline-chat-open-icon {
        width: 19.2px;
        height: 12px;
        bottom: 18px;
        right: 9.6px;
    }

    .inline-chat-underline {
        width: 406.8px;
        height: 1.2px;
    }

    #inline-chat-status-button > div {
        top: 6px;
        left: 6px;
    }

    #closeEmailAsker {
        right: 19.2px;
    }

    #email-text {
        padding-right: 27.6px;
    }

    #casengo-dragoverlay {
        top: 33.6px;
    }
}
