/* =============================================
   Outcast Chatbot Widget
============================================= */

.outcast-chatbot {
	position: fixed;
	bottom: 1.25rem;
	right: 1.25rem;
	z-index: 9999;
	font-family: Georgia, 'Times New Roman', Times, serif;
}

/* Toggle button */
.outcast-chatbot__toggle {
	background: #900;
	border: none;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	font-size: 1.5rem;
	height: 3.25rem;
	line-height: 1;
	width: 3.25rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
	transition: background .2s;
}

.outcast-chatbot__toggle:hover {
	background: #660000;
}

/* Panel */
.outcast-chatbot__panel[hidden] {
	display: none;
}

.outcast-chatbot__panel {
	background: #1c1c1c;
	border: 1px solid #999;
	border-radius: 6px;
	bottom: 4rem;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .5);
	display: flex;
	flex-direction: column;
	height: 400px;
	position: absolute;
	right: 0;
	width: 340px;
}

/* Header */
.outcast-chatbot__header {
	align-items: center;
	background: #900;
	border-radius: 6px 6px 0 0;
	color: #fff;
	display: flex;
	font-size: .95rem;
	font-weight: bold;
	justify-content: space-between;
	padding: .5rem .75rem;
}

.outcast-chatbot__close {
	background: none;
	border: none;
	color: #fff;
	cursor: pointer;
	font-size: 1.25rem;
	line-height: 1;
	padding: 0;
}

/* Messages area */
.outcast-chatbot__messages {
	flex: 1;
	overflow-y: auto;
	padding: .75rem;
}

.outcast-chatbot__msg {
	border-radius: 6px;
	font-size: .85rem;
	line-height: 1.45;
	margin-bottom: .5rem;
	max-width: 85%;
	padding: .5rem .65rem;
}

.outcast-chatbot__msg--user {
	background: #333;
	color: #fff;
	margin-left: auto;
	text-align: right;
}

.outcast-chatbot__msg--bot {
	background: #2a2a2a;
	border: 1px solid #444;
	color: #ccc;
}

.outcast-chatbot__msg--bot a {
	color: #c8860a;
}

.outcast-chatbot__msg--loading {
	color: #999;
	font-style: italic;
}

/* Input form */
.outcast-chatbot__form {
	border-top: 1px solid #444;
	display: flex;
	padding: .4rem;
}

.outcast-chatbot__input {
	background: #2a2a2a;
	border: 1px solid #555;
	border-radius: 4px;
	color: #fff;
	flex: 1;
	font-size: .85rem;
	padding: .4rem .5rem;
}

.outcast-chatbot__input::placeholder {
	color: #777;
}

.outcast-chatbot__send {
	background: #900;
	border: none;
	border-radius: 4px;
	color: #fff;
	cursor: pointer;
	font-size: 1rem;
	margin-left: .3rem;
	padding: .4rem .6rem;
	transition: background .2s;
}

.outcast-chatbot__send:hover {
	background: #660000;
}

/* Mobile: full-width panel */
@media (max-width: 400px) {
	.outcast-chatbot__panel {
		width: calc(100vw - 2rem);
		right: -0.25rem;
	}
}
