/* PARLEY CHAT APPLICATION STYLES
** Copyright Pigment Limited www.thinkpigment.com
** Parley Chat Application www.getparley.com
**/

/* ---[ Reset ]------------------------------------------------------------ */
body {
	margin-bottom: 40px; /* Make space for presence bar */
}

a:focus {
	outline:none;
}

div#parley-presence-bar * { /* Reset any inherited styles from site inside presence bar */
	font-family: "Lucida Grande","Lucida Sans Unicode",Arial,Verdana,sans-serif;
	letter-spacing: normal;
	text-align: left;
	font-size: 100%;
	border: 0;
}

/* ---[ Presence Bar Styles ]------------------------------------------------------------ */
div#parley-presence-bar {
	position: fixed;
	bottom: 0;
	width: 100%;
	height: 25px;
	border-top: 1px solid #ccc;
	font-size: 11px;
	padding: 0;
	margin: 0;
	background: #bcbaba url('http://assets.getparley.com/images/backgrounds/presence-bar.png') repeat-x scroll left top;
	z-index: 1000;
	font-weight: normal;
	font-style: normal;
}

div#parley-presence-bar a, div#parley-presence-bar a:visited {
	text-decoration: none;
	color: #2F98FF;
}

div#parley-presence-bar a:hover, div#parley-presence-bar a:active {
	text-decoration: underline;
	color: #2F98FF;
}

/* ---[ All Windows ]------------------------------------------------------------ */
div#parley-presence-bar .parley-window-content {
	padding: 5px;
}

div#parley-presence-bar .parley-window {
	float: left;
	margin-left: 6px;
	width: 220px;
	background-color: #fefefe;
}

div#parley-presence-bar div#online-users.parley-window {
	width: 260px;
}

div#parley-presence-bar div#online-users.parley-window {
	width: 260px;
}

div#parley-presence-bar .parley-window-inner {
	height: 280px;
	margin-top: -280px;
	border-width: 1px 1px 0px 1px;
	border-color: #999;
	border-style: solid;
	background-color: #fff;
}

div#parley-presence-bar div#online-users .parley-window-inner {
	height: 320px;
	margin-top: -320px;
}

div#parley-presence-bar .parley-window-title {
	margin: 0;
	padding: 3px 3px 4px 4px;
	border-bottom: 1px solid #ddd;
	position: relative;
	background: #666 url('http://assets.getparley.com/images/backgrounds/window-title.png') repeat-x scroll left -10px;
}

div#parley-presence-bar .parley-window-title h2 {
	margin: 2px;
	padding: 0;
	width: 160px;
	color: white;
	font-size: 14px;
	font-weight: bold;
}

/* ---[ Buttons ]------------------------------------------------------------ */
div#parley-presence-bar div.parley-button {
	position: relative;
  border-width: 0px 1px 1px 1px;
	border-style: solid;
	border-color: #ccc;	
	cursor: pointer;
	outline: none;
	display: block;
	overflow: hidden;
	text-decoration: none;
	font-weight: bold;
	margin: 0;
	color: #111;
	background: #bcbaba url('http://assets.getparley.com/images/backgrounds/presence-button.png') repeat-x scroll left top;
}

div#parley-presence-bar div.parley-button div {
	display:block;
	padding: 5px 6px 6px;
}
div#parley-presence-bar .parley-button:hover {
	background-position: left -10px;
	color: #000;
}

div#parley-presence-bar .parley-button.maximized {
	border-color: #999;	
	background-color: #fff;
}

div#parley-presence-bar span.parley-button-close {
	width: 16px;
	height: 16px;
	position: absolute;
	right: 6px;
	top: 4px;
	padding: 0;
	margin: 0;
	background: transparent url('http://assets.getparley.com/images/windows/close.gif') no-repeat scroll left -32px;
	text-indent: -9999px;
}

div#parley-presence-bar span.parley-button-close:hover {
	background-position: left -16px;
}

div#parley-presence-bar a.parley-button-close {
	display: block;
	float: right;
	width: 16px;
	height: 16px;
	padding: 0;
	margin: 0 0 0 2px;
	background: transparent url('http://assets.getparley.com/images/windows/close.gif') no-repeat scroll left -16px;
}

div#parley-presence-bar a.parley-button-close:hover {
	background-position: left -32px;
}

div#parley-presence-bar a.parley-button-minimize {
	display: block;
	float: right;
	width: 16px;
	height: 16px;
	padding: 0;
	margin: 0 0 0 2px;
	background: transparent url('http://assets.getparley.com/images/windows/minimize.gif') no-repeat scroll left -16px;
	/* text-indent: -9999px; */
}

div#parley-presence-bar a.parley-button-minimize:hover {
	background-position: left -32px;
}

div#parley-presence-bar a.parley-button-close span {
	display: none;
}

div#parley-presence-bar a.parley-button-maximize span {
	display: none;
}


/* ---[ Online Users Window ]------------------------------------------------------------ */
div#parley-presence-bar .parley-user-list {
	height: 290px;
	overflow: auto;
	padding: 0;
	clear: both;
}

div#parley-presence-bar #user-list-online-users a {
	display: block;
	padding: 4px 2px 8px 2px;
	margin: 2px;
	border-bottom: 1px solid #eee;
	overflow: hidden;
}

div#parley-presence-bar #user-list-online-users a:hover {
	background-color: #f3f3f3;
	text-decoration: none;
}

div#parley-presence-bar #user-list-online-users a img {
	float: left;
	border: 1px solid #ccc;
	margin: 2px 4px 0px 0px;
	width: 50px;
}

div#parley-presence-bar #user-list-online-users .parley-username {
	font-weight: bold;
	font-size: 12px;
	line-height: 16px;
}
div#parley-presence-bar .parley-chat-window-user-status {
	margin-left: 5px;
}


/* ---[ Status Window ]------------------------------------------------------------ */
div#parley-presence-bar .parley-window-status .parley-window-inner {
	height: 100px;
	margin-top: -100px;
}
div#parley-presence-bar div#parley-status-windows {
	float:right;
	margin-right: 4px;
}

div#parley-presence-bar div.parley-window.parley-window-status {
	width: 140px;
}

div#parley-presence-bar div.parley-window.parley-window-status h2 {
	width: 90px;
}

div#parley-presence-bar span.parley-toggle-status {
	padding: 4px 5px 4px 17px;
	font-weight: bold;
	color: #fff;
	cursor: pointer;
	line-height: 30px;
	border: 1px solid #ccc;
}

div#parley-presence-bar span.parley-toggle-status.online {
	color: #060;
	background: #ddd url('http://assets.getparley.com/images/windows/status/online.png') no-repeat scroll 2px center;
}

div#parley-presence-bar span.parley-toggle-status.online:hover {
	background-color: #eee;
}

div#parley-presence-bar span.parley-toggle-status.offline {
	color: #900;
	background: #ddd url('http://assets.getparley.com/images/windows/status/offline.png') no-repeat scroll 2px center;
}

div#parley-presence-bar span.parley-toggle-status.offline:hover {
	background-color: #eee;
}

div#parley-presence-bar .parley-button .parley-offline {
	color: #900;
	padding-left: 15px;
	background: transparent url('http://assets.getparley.com/images/windows/status/offline.png') no-repeat scroll left center;
}

div#parley-presence-bar .parley-button .parley-online {
	color: #060;
	padding-left: 15px;
	background: transparent url('http://assets.getparley.com/images/windows/status/online.png') no-repeat scroll left center;
}

/* ---[ Chat Window ]------------------------------------------------------------ */
div#parley-presence-bar span.parley-unread-count {
	background-color: red;
	border: 1px solid #000;
	margin-left: 4px;
	color: #FFF;
	font-size: 9px;
	padding: 1px 4px 0px 4px;
}

div#parley-presence-bar a.block-user, div#parley-presence-bar a.report-user {
  color: #679ECF;
}

div#parley-presence-bar h2 a, div#parley-presence-bar h2 a:visited, div#parley-presence-bar h2 a:active, div#parley-presence-bar h2 a:link {
  color: #FFF;
}

div#parley-presence-bar img.parley-avatar {
	float: left;
	height: 25px;
}

div#parley-presence-bar div.parley-avatar {
	max-width: 25px;
	height: 25px;
	float: left;
	overflow: hidden;
	margin-right: 5px;
}

div#parley-presence-bar .parley-window-actions {
	font-size: 11px;
	position: relative;
	float: right;
	padding: 0px;
	margin: 0px;
	height: 20px;
	width: 40px;
	text-align: right;
}
div#parley-presence-bar #inner-status .parley-window-actions {
	width: 20px;
}

div#parley-presence-bar span.parley-user-actions {
	clear: both;
	font-size: 10px;
	font-weight: bold;
	text-align: left;
	position: absolute;
	left: 36px;
	top: 25px;
	height: 28px;
}

h2.parley-chat-window {
	min-height: 30px;
}

div#parley-presence-bar .parley-window form {
	margin: 0px 0px 0px 0px;
	padding: 0px 0px 0px 0px;
}

div#parley-presence-bar .parley-window form input[type=submit] {
	width: 34px;
	border: 1px solid #CCC;
	margin: 0;
	padding: 3px 0 5px 0;
	font-weight: normal;
	vertical-align: top;
	margin-top: 5px;
	height: 27px;
}

div#parley-presence-bar form textarea.parley-input {
	width: 160px;
	height: 20px;
	border-width: 1px 1px 1px 0px;
	border-style: solid;
	border-color: #ccc;
	font-size: 12px;
	padding: 4px 4px 1px 14px;
	margin-top: 5px;
	background: #f0f0ff url('http://assets.getparley.com/images/windows/chat/prompt.png') no-repeat scroll 0px 7px;
}

div#parley-presence-bar .parley-strapline {
	font-size: 12px;
	color: #000;
	margin-left: 30px;
	display: block;
}

div#parley-presence-bar .parley-transcript {
	height: 197px;
	overflow: auto;
	padding: 4px;
	clear: both;
}

div#parley-presence-bar .parley-transcript .mine {
	background-color: #FFFFEF;
	padding: 1px;
}

div#parley-presence-bar .parley-transcript .parley-username {
	display: block;
	font-size: 10px;
	font-weight: bold;
	margin-top: 5px;
	padding: 4px 2px 2px 2px;
	border-top: 1px solid #eee;
}
div#parley-presence-bar .parley-transcript .parley-message-body {
	padding: 2px 4px 2px 6px;
	display: block;
}
div#parley-presence-bar .parley-transcript .parley-message {
	line-height: 16px;
	font-size: 12px;
}
div#parley-presence-bar .parley-transcript .parley-datestamp {
	width: 100px;
	float: right;
	text-align: right;
	font-weight: normal;
	font-style: italic;
	font-size: 10px;
	color: #999;
}

div#parley-presence-bar .parley-transcript .parley-message.parley-undelivered {
	color: #666;
}

div#parley-presence-bar .parley-message-body .parley-undelivered {
	color: #666;
	display:block;
	font-size: 9px;
	margin-bottom: 6px;
	font-style: italic;
}

/* ---[ Expand / collapse window ] --- */
div#parley-presence-bar .parley-window.chat.expanded .parley-transcript {
  height: 130px;
  border-bottom: 1px solid #ccc;
}

div#parley-presence-bar .parley-window.chat.expanded .parley-input {
  height: 86px;
}

div#parley-presence-bar .parley-window.chat.expanded form input[type=submit] {
  margin-top: 71px;
}


/* ---[ Authentication failure ]------------------------------------------------------------ */
div.parley-authentication-failure {
	position:fixed;
	bottom:0;
	width: 100px;
	height: 28px;
	border: 1px solid #ccc;
	font-size: 12px;
	font-family: 'lucida grande', verdana, arial, sans-serif;
	padding: 6px;
	background-color: #900;
	color: #fff;
	z-index: 1000;
}
