/* Webatom Chat styles */

.webatom-chat {
	width:50px;
	height:50px;
	position: fixed;
	right: 25px;
    bottom: 100px;
	z-index: 9999;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Floating button */
.webatom-chat__fab {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: #66CB01;
	border: none;
	cursor: pointer;
	box-shadow: 0 10px 25px rgba(0,0,0,0.2);
	display: flex;
	align-items: center;
	justify-content: center;
}

.webatom-chat__fab-icon {
	width: 24px;
	height: 24px;
	background: #fff;
	mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="black"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 10h.01M12 10h.01M16 10h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"/></svg>') center / contain no-repeat;
}

/* Panel */
.webatom-chat__panel {
	position: absolute;
	right: 70px;
	bottom: -75px;
	width: 320px;
	max-height: 480px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 20px 40px rgba(0,0,0,0.25);
	display: none;
	flex-direction: column;
	overflow: hidden;
}

.webatom-chat__panel.is-open {
	display: flex;
}

/* Header */
.webatom-chat__header {
	padding: 12px 16px;
	background: #7DC91B;
	color: #fff;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.webatom-chat__title {
	font-weight: 600;
	font-size: 14px;
}

.webatom-chat__close {
	background: none;
	border: none;
	color: #fff;
	font-size: 20px;
	cursor: pointer;
}

/* Body */
.webatom-chat__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	background: #f8fafc;
	overflow-y:scroll;
}

.webatom-chat__messages {
	flex: 1;
	padding: 12px;
	overflow-y: auto;
}

.webatom-chat__choices {
	padding: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 6px;
	background: #fff;
	border-top: 1px solid #e5e7eb;
}

/* Messages */
.webatom-chat__msg {
	max-width: 100%;
	padding: 8px 10px;
	border-radius: 10px;
	margin-bottom: 8px;
	font-size: 13px;
	line-height: 1.4;
}

.webatom-chat__msg--bot {
	background: #e5e7eb;
	color: #000;
	font-size:16px;
	font-weight:600;
	align-self: flex-start;
}

.webatom-chat__msg--user {
	background: #4197CB;
	color: #fff;
	align-self: flex-end;
}

.chat-napis
{
	padding:10px 0px;
}

/* Choices */
.webatom-chat__choice {
	background: #4197CB;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 6px 10px;
	font-size: 15px;
	cursor: pointer;
}

.webatom-chat__choice:hover {
	background: #1d4ed8;
}

.chat-form
{
	width:100%;
	display:flex;
	flex-direction:column;
	gap:10px;
}

.chat-form textarea,
.chat-form input
{
	padding:10px;
	border-radius:10px;
	border:1px solid #CCC;
}

.chat-form button
{
	background: #66CB01;
	padding:5px 10px;
	border-radius:10px;
}

/* Footer */
.webatom-chat__footer {
	padding: 8px;
	text-align: center;
	border-top: 1px solid #e5e7eb;
	background: #fff;
}

.webatom-chat__restart {
	background: none;
	border: none;
	color: #4197CB;
	font-size: 16px;
	font-weight:600;
	cursor: pointer;
}

/* Answer template styles */
.webatom-chat__answer-title {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.webatom-chat__answer-desc {
	font-size: 13px;
	margin-bottom: 6px;
}

.webatom-chat__answer-list {
	padding-left: 16px;
	margin: 6px 0;
	font-size: 12px;
}

ul.webatom-chat__answer-list li
{
	list-style:disc;
}

.webatom-chat__answer-price {
	font-weight: 600;
	margin-top: 6px;
}

.webatom-chat__answer-cta {
	margin-top: 8px;
	color: #2563eb;
	font-size: 12px;
	font-weight: 500;
}

.webatom-chat__answer-cta h2
{
	font-weight:600;
	margin:20px 0px 0px 0px;
}

.webatom-chat__msg--step {
	cursor: pointer;
}

.webatom-chat__msg--step:hover {
	opacity: 0.8;
	text-decoration: underline;
}

/* Mobile */
@media (max-width: 676px) {
	.webatom-chat {
		right: 10px;
		bottom: 90px;
	}
	.webatom-chat__panel {
		width: 90vw;
		max-height: 70vh;
		right: 0px;
		bottom: -25px;
	}
}
