* {
	font-family: Helvetica, sans-serif;
	padding: 0px;
	margin: 0px;
}

h2 {
	font-size: 18pt;
}

h3 {
	font-size: 14pt;
}

h4 {
	font-size: 12pt;
}

h5 { float: left; font-size: 12pt; text-align: left; width: 50%; }
h6 { float: left; font-size: 12pt; text-align: right; width: 50%; }

p {
	line-height: 18px;
	font-size: 12pt;
}

div.main {
	width: auto;
	margin-left: 10px;
	margin-right: 10px;
	margin-top: 10px;
	font-size: 12px;
	padding: 8px 8px;
	border-radius: 16px;
	border: 1px solid #CCC;
	background-color: black; /* customizable */
}

div.header {
	margin: 0;
	width: auto;
	text-align: center;
	color: white; /* customizable */
	margin-bottom: 8px;
}

div.expired div.header { margin: 0; }

div.setupform {
	background-color: lightgray; /* customizable */
	margin: 0 -5px -5px -5px; /* T R B L */
	padding: 4px;
	border-bottom-right-radius: 10px;
	border-bottom-left-radius: 10px;
}

table.beaneditor th { font-weight: bold; width: 180px; font-size: 12pt; text-align: right; vertical-align: top; }
table.beaneditor td { font-size: 12pt; vertical-align: top; }

p.instr { padding: 4px; padding-bottom: 8px; }
input.submitform { margin-left: 180px }
input.submitform_m { margin-top: 12px; }
input { background-color: white; }
input:focus {
	background-color: #f0f8ff; /* customizable */
}

#content {
	background-color: #eee; /* customizable */
	margin: 0 -5px 2px -5px; /* T R B L */
	padding: 4px;

	width: auto;
	max-height: 500px;
	overflow: scroll;
	overflow-x: hidden;
	border: 1px solid black;
	border-spacing: 0;
}

#static_content {
	background-color: #eee; /* customizable */
	margin: 0 -5px 2px -5px; /* T R B L */
	padding: 4px;

	width: auto;
	max-height: 500px;
	overflow: scroll;
	overflow-x: hidden;
	border: 1px solid black;
	border-spacing: 0;
}

div.auto {
	padding: 5px;
	background: #f5b3b3;
	border: 1px solid black;
	margin: 0 -5px 0 -5px; /* T R B L */
	width: auto;
	margin-bottom: 4px;
}

div.contact {
	margin: 0 -5px -5px -5px; /* T R B L */
	padding: 4px 4px 8px 4px;
	border-bottom-right-radius: 10px;
	border-bottom-left-radius: 10px;

	background: #fdd;
	width: auto;
	border-spacing: 0;
	font-size: 12px;
}

td.subcon { vertical-align: bottom; }

div.action {
	background: #def; /* customizable */

	margin: 0 -5px -5px -5px; /* T R B L */
	padding: 4px 4px 8px 4px;
	border-bottom-right-radius: 10px;
	border-bottom-left-radius: 10px;

	width: auto;
	font-size: 12px;
}

table.action {
	width: 100%;
	border-spacing: 0;
	font-size: 12px;
}

td.status {
	vertical-align: top;
	width: 150px;
	padding-top: 5px;
	padding-left: 5px;
	font-size: 12px;
}

td.status2 {
	vertical-align: top;
	width: 100px;
	padding-top: 5px;
	padding-left: 5px;
	font-size: 12px;
}

div#status {
	height: 5em;
}

td.buttons {
	vertical-align: top;
	width: 50px;
	padding-top: 5px;
	padding-left: 5px;
}

td.input {
	padding: 0;
	margin: 0;
	width: auto;
	margin-right: 8px;
	position: relative;
}

#text {
	width: 100%;
	font-family: Helvetica, sans-serif;
	font-size: 10pt;
	outline: none;
	border-radius: 12px;
	padding: 6px;
}

td.input {
	padding-right: 10px;
}

#send {
}

span.error {
	font-weight: bold;
	color: #800;
}

span.name {
	font-weight: bold;
	color: black; /* customizable */
}

#name, #email { width: 200px; }
#name_m, #email_m { width: 200px; }
.question { width: 100%; }
textarea#other { width: 500px; }
textarea#other_m { width: 100%; }
input.t-error { background-color: #fdd; }
textarea.t-error { background-color: #fdd; }
div.t-error { margin: 10px; }
DIV.t-error LI { margin-left: 24px !important; }

p.btm { font-size: 14pt; margin-top: 8px; }
p.btm span.from { font-size: 12pt; }

p#typing { margin-top: 8px; font-style: italic; }

select.action { width: 250px; }
select.quick { width: 200px; margin-left: 20px; }
select.response { width: 250px; margin-left: 20px; }
select.type { width: 400px; margin-top: 20px; }

input[type=button], input[type=submit] {
    background: #4479BA; /* customizable */
    color: #FFF; /* customizable */

	-webkit-appearance: none;
    padding: 2px 10px;
    border: solid 1px black;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -webkit-transition-duration: 0.2s;
    -moz-transition-duration: 0.2s;
    transition-duration: 0.2s;
    -webkit-user-select:none;
    -moz-user-select:none;
    -ms-user-select:none;
    user-select:none;
    text-decoration: none;
    font-weight: bold;
}
input[type=button]::-moz-focus-inner {
    border:0;
    padding:0;
}

input[type=button][disabled], input[type=submit][disabled] {
	background-color: #aaa;
}

select.contact { width: 300px; }

p.mode1 { background-color: lightyellow; }

span.from { font-weight: bold; display: block; }

div#content p {
	clear: both;
	margin-bottom: 4px;
	position: relative;
	z-index: 10;
}

p.dir1 {
	/* customer */
	margin-right: 10%;
	text-align: left;
}
p.dir2 {
	/* client */
	margin-left: 10%;
	text-align: right;
}
p.dir3 {
	/* asd */
	margin-left: 10%;
	text-align: right;
}
p.dir4 {
	margin-right: 10%;
	margin-left: 10%;
	/* system */
	text-align: center;
}


p.dir1 .bbl, p.dir2 .bbl, p.dir3 .bbl, p.dir4 .bbl  {
	display: inline-block;
	background-image: linear-gradient(bottom, rgb(210,244,254) 25%, rgb(149,194,253) 100%);
	background-image: -o-linear-gradient(bottom, rgb(210,244,254) 25%, rgb(149,194,253) 100%);
	background-image: -moz-linear-gradient(bottom, rgb(210,244,254) 25%, rgb(149,194,253) 100%);
	background-image: -webkit-linear-gradient(bottom, rgb(210,244,254) 25%, rgb(149,194,253) 100%);
	background-image: -ms-linear-gradient(bottom, rgb(210,244,254) 25%, rgb(149,194,253) 100%);
	background-image: -webkit-gradient(
		linear,
		left bottom,
		left top,
		color-stop(0.25, rgb(210,244,254)),
		color-stop(1, rgb(149,194,253))
	);
	border: solid 1px rgba(0, 0, 0, 0.5);
	/* vendor rules */
	border-radius: 20px;
	/* vendor rules */
	box-shadow: inset 0 5px 5px rgba(255, 255, 255, 0.4), 0 1px 3px rgba(0, 0, 0, 0.2);
	/* vendor rules */
	box-sizing: border-box;
	clear: both;
	margin-bottom: 20px;
	padding: 8px 30px;
	position: relative;
	text-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
	width: auto;
	max-width: 100%;
	word-wrap: break-word;
}

p.dir1 .bbl:before, p.dir1 .bbl:after, p.dir2 .bbl:before, p.dir2 .bbl:after, p.dir3 .bbl:before, p.dir3 .bbl:after {
	border-radius: 20px / 10px;
	content: '';
	display: block;
	position: absolute;
}

p.dir1 .bbl:before, p.dir2 .bbl:before, p.dir3 .bbl:before {
	border: 10px solid transparent;
	border-bottom-color: rgba(0, 0, 0, 0.5);
	bottom: 0;
	left: -7px;
	display: relative;
	z-index: -1;
}

p.dir1 .bbl:after, p.dir2 .bbl:after, p.dir3 .bbl:after {
	border: 8px solid transparent;
	border-bottom-color: #d2f4fe;
	bottom: 1px;
	left: -5px;
}

p.dir2 .bbl {
	background-image: linear-gradient(bottom, rgb(172,228,75) 25%, rgb(122,205,71) 100%);
	background-image: -o-linear-gradient(bottom, rgb(172,228,75) 25%, rgb(122,205,71) 100%);
	background-image: -moz-linear-gradient(bottom, rgb(172,228,75) 25%, rgb(122,205,71) 100%);
	background-image: -webkit-linear-gradient(bottom, rgb(172,228,75) 25%, rgb(122,205,71) 100%);
	background-image: -ms-linear-gradient(bottom, rgb(172,228,75) 25%, rgb(122,205,71) 100%);
	background-image: -webkit-gradient(
		linear,
		left bottom,
		left top,
		color-stop(0.25, rgb(172,228,75)),
		color-stop(1, rgb(122,205,71))
	);
}

p.dir3 .bbl {
	background-image: linear-gradient(bottom, rgb(250,230,170) 25%, rgb(250,211,102) 100%);
	background-image: -o-linear-gradient(bottom, rgb(250,230,170) 25%, rgb(250,211,102) 100%);
	background-image: -moz-linear-gradient(bottom, rgb(250,230,170) 25%, rgb(250,211,102) 100%);
	background-image: -webkit-linear-gradient(bottom, rgb(250,230,170) 25%, rgb(250,211,102) 100%);
	background-image: -ms-linear-gradient(bottom, rgb(250,230,170) 25%, rgb(250,211,102) 100%);
	background-image: -webkit-gradient(
		linear,
		left bottom,
		left top,
		color-stop(0.25, rgb(250,230,170)),
		color-stop(1, rgb(250,211,102))
	);
}

p.dir2 .bbl:before, p.dir3 .bbl:before {
	border-bottom-color: rgba(0, 0, 0, 0.5);
	border-radius: 20px / 10px;
	left: auto;
	right: -7px;
}

p.dir2 .bbl:after {
	border-bottom-color: #ace44b;
	border-radius: 20px / 10px;
	left: auto;
	right: -5px;
}

p.dir3 .bbl:after {
	border-bottom-color: #FAE6AA;
	border-radius: 20px / 10px;
	left: auto;
	right: -5px;
}


p.dir4 .bbl {
	background-image: linear-gradient(bottom, rgb(240,160,160) 25%, rgb(220,120,120) 100%);
	background-image: -o-linear-gradient(bottom, rgb(240,160,160) 25%, rgb(220,120,120) 100%);
	background-image: -moz-linear-gradient(bottom, rgb(240,160,160) 25%, rgb(220,120,120) 100%);
	background-image: -webkit-linear-gradient(bottom, rgb(240,160,160) 25%, rgb(220,120,120) 100%);
	background-image: -ms-linear-gradient(bottom, rgb(240,160,160) 25%, rgb(220,120,120) 100%);
	background-image: -webkit-gradient(
		linear,
		left bottom,
		left top,
		color-stop(0.25, rgb(240,160,160)),
		color-stop(1, rgb(220,120,120))
	);
}

form label { font-weight: bold; }

div.mobile { display: none; }

@media handheld {
	div.mobile { display: block; }
	div.desktop { display: none; }
}

div.mobile_status div#status {
	height: auto;
}
div.mobile_status input[type=submit],div.mobile_status input[type=button] {
	font-size: 14pt;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
}

table.mobile_buttons { width: 100%; table-layout: fixed; }
table.mobile_buttons td { width: 50%; }
td.mc { text-align: right; }
a.mfh { margin-left: 24px; }

input[type=button].end_chat, input[type=submit].end_chat {
    background: #BA4444;
}
