#srs-chat,
#srs-chat * {
	box-sizing: border-box;
}

#srs-chat {
	--srs-chat-green: #00b76a;
	--srs-chat-green-dark: #009f5c;
	--srs-chat-text: #22252a;
	--srs-chat-muted: #7c838d;
	bottom: 22px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	line-height: 1.4;
	position: fixed;
	right: 22px;
	z-index: 2147483000;
}

#srs-chat button,
#srs-chat input,
#srs-chat textarea {
	font: inherit;
}

#srs-chat p {
	max-width: none;
	width: auto;
}

#srs-chat .srs-chat__title,
#srs-chat .srs-chat__status,
#srs-chat .srs-chat__confirmation-title,
#srs-chat .srs-chat__confirmation-summary,
#srs-chat .srs-chat__contact-title,
#srs-chat .srs-chat__error {
	text-align: left;
}

#srs-chat .srs-chat__privacy {
	text-align: center;
}

#srs-chat .srs-chat__title,
#srs-chat .srs-chat__status {
	color: #fff;
}

.srs-chat__launcher {
	align-items: center;
	background: var(--srs-chat-green);
	border: 0;
	border-radius: 50%;
	bottom: 0;
	box-shadow: 0 7px 24px rgba(0, 0, 0, .22);
	cursor: pointer;
	display: flex;
	height: 62px;
	justify-content: center;
	padding: 0;
	position: absolute;
	right: 0;
	transition: background-color .2s ease, transform .2s ease;
	width: 62px;
}

.srs-chat__launcher:hover {
	background: var(--srs-chat-green-dark);
	transform: translateY(-2px);
}

.srs-chat__launcher:focus-visible,
.srs-chat__close:focus-visible,
.srs-chat__send:focus-visible,
.srs-chat__submit:focus-visible,
.srs-chat__refine:focus-visible,
.srs-chat__confirmation-action:focus-visible,
.srs-chat__input:focus,
.srs-chat__textarea:focus {
	outline: 3px solid rgba(0, 183, 106, .28);
	outline-offset: 2px;
}

.srs-chat__launcher-icon {
	background: #fff;
	border-radius: 5px;
	height: 25px;
	position: relative;
	width: 31px;
}

.srs-chat__launcher-icon::after {
	border-left: 8px solid transparent;
	border-top: 8px solid #fff;
	bottom: -5px;
	content: "";
	position: absolute;
	right: 4px;
	transform: rotate(-8deg);
}

.srs-chat__launcher-dot,
.srs-chat__launcher-dot::before,
.srs-chat__launcher-dot::after {
	background: var(--srs-chat-green);
	border-radius: 50%;
	height: 4px;
	position: absolute;
	width: 4px;
}

.srs-chat__launcher-dot {
	left: 13px;
	top: 10px;
}

.srs-chat__launcher-dot::before,
.srs-chat__launcher-dot::after {
	content: "";
	top: 0;
}

.srs-chat__launcher-dot::before { left: -7px; }
.srs-chat__launcher-dot::after { left: 7px; }

.srs-chat__avatar {
	align-items: center;
	background: #e8faf2;
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 0 1px #d8eee5;
	color: var(--srs-chat-green-dark);
	display: flex;
	flex: 0 0 auto;
	font-size: 18px;
	font-weight: 700;
	height: 42px;
	justify-content: center;
	width: 42px;
}

.srs-chat__panel {
	background: #fff;
	border-radius: 14px;
	bottom: 0;
	box-shadow: 0 12px 48px rgba(23, 33, 41, .25);
	display: none;
	height: 570px;
	height: min(570px, calc(100vh - 36px));
	margin: 0;
	overflow: hidden;
	padding: 0;
	position: absolute;
	right: 0;
	width: 370px;
}

.srs-chat__panel.is-open {
	animation: srs-chat-in .24s ease-out;
	display: flex;
	flex-direction: column;
}

.srs-chat__header {
	align-items: center;
	background: var(--srs-chat-green);
	color: #fff;
	display: flex;
	gap: 12px;
	min-height: 79px;
	padding: 13px 54px 13px 17px;
	position: relative;
}

.srs-chat__header .srs-chat__avatar {
	background: #fff;
	border: 0;
	box-shadow: none;
	color: var(--srs-chat-green-dark);
	height: 48px;
	width: 48px;
}

.srs-chat__title {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 2px;
}

.srs-chat__status {
	font-size: 12px;
	margin: 0;
	opacity: .9;
}

.srs-chat__status::before {
	background: #b7f8d9;
	border-radius: 50%;
	content: "";
	display: inline-block;
	height: 7px;
	margin-right: 6px;
	width: 7px;
}

.srs-chat__close {
	background: transparent;
	border: 0;
	color: #fff;
	cursor: pointer;
	font-size: 30px;
	font-weight: 300;
	line-height: 1;
	padding: 0;
	position: absolute;
	right: 17px;
	top: 23px;
}

.srs-chat__messages {
	background: #f4f5f7;
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 18px 15px;
	scroll-behavior: smooth;
}

.srs-chat__message {
	border-radius: 13px;
	clear: both;
	font-size: 14px;
	line-height: 1.45;
	margin: 0 0 12px;
	max-width: 84%;
	padding: 10px 12px;
	white-space: pre-wrap;
	word-break: break-word;
}

.srs-chat__message--agent {
	background: #fff;
	border-bottom-left-radius: 4px;
	box-shadow: 0 1px 3px rgba(22, 32, 40, .08);
	color: var(--srs-chat-text);
	float: left;
}

.srs-chat__message--visitor {
	background: #dff7ec;
	border-bottom-right-radius: 4px;
	color: #173f31;
	float: right;
}

.srs-chat__message--success {
	background: #e5f8ef;
	color: #176844;
}

.srs-chat__composer,
.srs-chat__contacts,
.srs-chat__confirmation {
	background: #fff;
	border-top: 1px solid #e8e9eb;
	flex: 0 0 auto;
	padding: 12px;
}

.srs-chat__composer {
	align-items: flex-end;
	display: flex;
	gap: 8px;
}

.srs-chat__textarea {
	border: 0;
	color: var(--srs-chat-text);
	flex: 1 1 auto;
	height: 48px;
	line-height: 1.4;
	max-height: 94px;
	outline: 0;
	padding: 7px 4px;
	resize: none;
}

.srs-chat__textarea::placeholder,
.srs-chat__input::placeholder {
	color: #9aa0a7;
}

.srs-chat__send {
	align-items: center;
	background: var(--srs-chat-green);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	flex: 0 0 42px;
	height: 42px;
	justify-content: center;
	padding: 0;
	transition: background-color .2s ease;
	width: 42px;
}

.srs-chat__send-icon {
	background: #fff;
	-webkit-clip-path: polygon(0 0, 100% 50%, 0 100%, 22% 54%);
	clip-path: polygon(0 0, 100% 50%, 0 100%, 22% 54%);
	display: block;
	height: 23px;
	transform: translateX(1px);
	width: 26px;
}

.srs-chat__send:hover,
.srs-chat__submit:hover {
	background: var(--srs-chat-green-dark);
}

.srs-chat__contacts {
	display: none;
	padding: 14px 15px 15px;
}

.srs-chat__contacts.is-visible {
	display: block;
}

.srs-chat__confirmation {
	display: none;
	padding: 14px 15px 15px;
}

.srs-chat__confirmation.is-visible {
	display: block;
}

.srs-chat__confirmation-title {
	color: var(--srs-chat-text);
	font-size: 14px;
	font-weight: 700;
	margin: 0 0 3px;
}

.srs-chat__confirmation-summary {
	color: var(--srs-chat-muted);
	font-size: 12px;
	margin: 0 0 8px;
	word-break: break-word;
}

.srs-chat__confirmation-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 5px 14px;
}

.srs-chat__confirmation-actions.is-hidden {
	display: none;
}

.srs-chat__confirmation-action {
	background: transparent;
	border: 0;
	color: var(--srs-chat-green-dark);
	cursor: pointer;
	font-size: 12px;
	margin: 0;
	padding: 0;
	text-align: left;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.srs-chat__confirmation-action:hover {
	color: #007f49;
}

.srs-chat__confirmation-action:disabled {
	cursor: default;
	opacity: .55;
}

.srs-chat__confirmation-form {
	display: none;
	margin-top: 10px;
}

.srs-chat__confirmation-form.is-visible {
	display: block;
}

.srs-chat__confirmation-cancel {
	display: block;
	margin-top: 8px;
	width: 100%;
}

.srs-chat__contact-title {
	color: var(--srs-chat-text);
	font-size: 14px;
	font-weight: 700;
	margin: 0 0 3px;
}

.srs-chat__refine {
	background: transparent;
	border: 0;
	color: var(--srs-chat-green-dark);
	cursor: pointer;
	display: inline-block;
	font-size: 13px;
	margin: 0 0 12px;
	padding: 0;
	text-align: left;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.srs-chat__refine:hover {
	color: #007f49;
}

.srs-chat__input {
	background: #fff;
	border: 1px solid #d8dce1;
	border-radius: 8px;
	color: var(--srs-chat-text);
	display: block;
	height: 42px;
	margin: 0 0 8px;
	outline: 0;
	padding: 0 11px;
	width: 100%;
}

.srs-chat__input:focus {
	border-color: var(--srs-chat-green);
}

.srs-chat__captcha-stage {
	display: none;
	margin: 10px 0 12px;
}

.srs-chat__captcha-stage.is-visible {
	display: block;
}

.srs-chat__captcha-hint {
	color: var(--srs-chat-muted);
	font-size: 12px;
	line-height: 1.35;
	margin: 0 0 8px;
}

.srs-chat__captcha {
	margin: 0 0 7px;
	min-height: 78px;
	overflow: hidden;
	width: 100%;
}

.srs-chat__captcha-cancel {
	display: block;
}

.srs-chat__submit {
	background: var(--srs-chat-green);
	border: 0;
	border-radius: 8px;
	color: #fff;
	cursor: pointer;
	font-weight: 700;
	height: 43px;
	margin-top: 2px;
	transition: background-color .2s ease;
	width: 100%;
}

.srs-chat__submit:disabled {
	cursor: default;
	opacity: .65;
}

.srs-chat__error {
	color: #c23b3b;
	font-size: 12px;
	margin: 8px 0 0;
	min-height: 17px;
}

.srs-chat__privacy {
	color: var(--srs-chat-muted);
	font-size: 11px;
	margin: 7px 0 0;
	text-align: center;
}

.srs-chat__privacy a {
	color: inherit;
	text-decoration: underline;
}

.srs-chat__honeypot {
	left: -10000px !important;
	position: absolute !important;
	top: auto !important;
}

@keyframes srs-chat-in {
	from { opacity: 0; transform: translateY(10px) scale(.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (min-width: 1024px) {
	.proweb-page .action-bar-desktop {
		bottom: 100px;
		right: 25px;
	}
}

@media (max-width: 767px) {
	.proweb-page #srs-chat {
		bottom: 92px;
	}
}

@media (max-width: 480px) {
	#srs-chat {
		bottom: 12px;
		right: 12px;
	}

	.srs-chat__panel {
		bottom: -12px;
		height: 100vh;
		height: 100dvh;
		right: -12px;
		width: 100vw;
	}

	.proweb-page .srs-chat__panel {
		bottom: -92px;
	}

	.srs-chat__panel.is-open {
		border-radius: 0;
	}

	.srs-chat__composer,
	.srs-chat__contacts,
	.srs-chat__confirmation {
		padding-bottom: max(12px, env(safe-area-inset-bottom));
	}
}

@media (max-width: 340px) {
	.srs-chat__captcha > div {
		transform: scale(.92);
		transform-origin: left top;
	}
}

@media (prefers-reduced-motion: reduce) {
	.srs-chat__panel.is-open {
		animation: none;
	}
}
