

/*
 *	CHAT
 *	****************************************************************
 */

.chatPopup.first-load {
	width:175px;
}

.chatPopup.first-load .chat-window-toggle {
	justify-content:center;
}

.chatPopup.first-load .other-chat-actions {
	display:none;
}

.chat-window-toggle {
	border-top-left-radius: 7px;
	border-top-right-radius: 7px;
}


#chatForm {
	display: block;
	margin-top: 10px;
}
#chatInterface {
	display: none;
}

#messages a {
	color: inherit;
}
#participants {
	padding-top: 4px;
}
#participants div {
	display: inline-block;
	width: 145px;
	border: 1px dotted #cccccc;
}
#controls {
	padding-top: 7px;

}
#usersDiv {
	height: 45px;
}

/*
 *	The WebOnHold URLS are posted inside this div.
 */
#webOnHoldDiv {
	float: right;
	width: 50%;
	padding-top: 20px;
}

/*
 *	CALL BACK
 *	****************************************************************
 */
.slide-out-div-callback {
	padding-top: 10px;
	padding-bottom: 0px;
	padding-right: 20px;
	padding-left: 20px;
	width: 520px;
	background: #4a4a4a;
	color: white;
}

#callbackForm {
	margin-top: 7px;
	padding-bottom: 2px;
}
#displayDay {
	border: 1px solid yellow;
	color: white;
}

#button-callback {
	width: 160px;
}

.center {
	text-align: center;
}

.user {
	display: inline;
	width: 170px;
}

.hidden {
	display: none;
}

.typing {
	background: yellow;
	color: black;
}

.urlField:invalid {
	background-color:white;
	color: #4a4a4a;
}

.urlField:valid {
	background-color: #4a4a4a;
	color:white;
}

.areaInput {
	width: 50px;
	background-color: #4A4A4A;
	color:white;
}

.phoneInput {
	width: 100px;
	background-color: #4A4A4A;
	color:white;
}

/* ADDITIONAL STYLES*/
.slide-out-div-chat {
	padding-bottom: 0px;

	width: 460px;
	background: white;
	color: #00376e;
	text-align:center;
	max-width:100%;
}

#chatPanel {
	transition: max-height 0.3s cubic-bezier(0, 0, 0, 0);
	overflow: hidden;

}

.chat-window-toggle {
	width:100%;
	max-width:100%;
	box-shadow: 0px 1px 3px #cdcdcd;
	position:relative;
	display: inline-flex;
	align-content: center;
	justify-content: space-between;
	align-items: center;
	background-color: #fee01e;
	color: #00376e;

}

.chat-window-toggle > div {
	cursor: pointer;
	min-width: 20px;
	margin-left: 27px;
	margin-right: 27px;
	font-size: 26px;
}

.other-chat-actions > div {
	display:inline-block;
	margin-left: 4.5px;
	margin-right: 4.5px;
	padding-left:2.5px;
	padding-right:2.5px;
	cursor:pointer;
}

.chat-button > i {
	padding-right: 5px;
	font-size:29px;
}

.chat-window-toggle.closed {
	max-width:200px;
}

#chatPanel.closed {
	max-height:0px;
}

#chatPanel.open {
	max-height:700px;
}

.chat-button {
	cursor:pointer;
	padding:5px;
}

#openbutton-chat {
	cursor:pointer;
	margin-bottom:20px;
	margin-top:30px;
	background-color:#00376e;
	color: #fee01e;
	width: 230px;
	font-size: 20px;
}

#chatPopup {
	position: fixed;
	display: block;
	right: 0;
	bottom: 0;
	z-index: 9999;
	transition: right .6s ease-in-out;
	transform: translate(-70px, 0px);
}

.chat-header-wrapper {
	padding-top:5px;
	font-family:Barlow;
	font-weight:600;
	font-size:26px;
}

#chatForm {
	padding-right: 20px;
	padding-left: 20px;
}

#chatForm .form-group {
    margin-bottom:5px;
}

#chatForm .form-group label {
	font-size:20px;
}

#chatForm .form-check {
	top:-5px;
}

#chatForm input[type="text"], #chatForm input[type="email"], #chatForm select {
	width: 356px;
	text-align: left;
	margin: auto;
	display: block;
	max-width:90%;
}

#chatForm select {
    text-align:center;
    width: 300px;
}

#controls .chat-messaging-wrapper {
	border: 1px grey solid;
	position: relative;
	padding-right: 0;
	min-height: 35px;
	display: inline-flex;
	width: 400px;
	max-width:90%;
	margin:auto;
	margin-top:5px;
}

#controls .chat-messaging-wrapper input {
	width:100%;
}

#controls .chat-messaging-wrapper #sendbutton-chat {
	padding: 5px;
	cursor: pointer;
}

.chatField {
	padding:3px;
	border:initial;
	border-color: none;
}

.chatField:disabled {
    cursor: default;
    background-color: #c5c5c5;
    color: white;
    border-color: none;
		border:initial;
		cursor:not-allowed;
}

#outmessage:focus-visible {
    outline: none !important;
}

.system-message {
	display:block;
	color:#63666a;
	font-style: italic;

}

#usersDiv, #pagePushDiv {
	display:none !important;
}

/*
 *	The messages in the chat are posted inside this div.
 *	The overflow setting, when combined with a maximum height,
 *	gives the div a scrollbar.
 */
#messages {
	padding-left: 0px;
	padding-right: 5px;
	padding-top: 0px;
	padding-bottom: 5px;
	height: 300px;
	word-wrap: break-word;
	overflow-y: scroll;
}

#messages p {
	font-size:16px;
	margin-bottom:5px;
	padding-left:15px;
	padding-right:15px;
	color: #00376e;
}

#messages p:first-of-type {
	margin-top:10px;
}

/*
 *	Sent chat messages are inside a red paragraph
 */
#messages p.sent {
	/*color: rgb(255,51,0);*/
	text-align:right;
}

/*
 *	Received chat messages are inside a blue paragraph,
 *	with italics to help distinguish them from sent paragraphs
 */
#messages p.response {
	text-align: left;
}

#messages p.response .body-message {
	background-color: #fee01e;
	border-radius: 5px;
	display: inline-block;
	padding: 5px;
	max-width: 360px;
}

#messages p.sent .body-message {
	background-color: #eff0f1;
	border-radius: 5px;
	display: inline-block;
	padding: 5px;
	max-width: 360px;
}

.display-name {
	font-size:13.5px;
}


@media (max-width:767.98px) {

	#chatPopup {
		transform: initial;
		max-width:90%;
		right:5%;
	}

	.slide-out-div-chat.open {
		height: auto !important;
	}

}
