.csc-chat,
.csc-chat * {
	box-sizing: border-box;
	font-family: var(--csc-font-family, Arial, Helvetica, sans-serif);
}

.csc-chat {
	position: fixed;
	bottom: 0;
	z-index: 99999;
	font-family: var(--csc-font-family, Arial, Helvetica, sans-serif);
	letter-spacing: 0;
}

.csc-chat--right {
	right: 18px;
}

.csc-chat--left {
	left: 18px;
}

.csc-chat__button {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 252px;
	height: 72px;
	padding: 12px 18px 12px 40px;
	border: 0;
	border-radius: 12px 12px 0 0;
	color: #fff;
	background: var(--csc-launcher-bg, #1f1f1f);
	box-shadow: 0 7px 18px rgba(0, 0, 0, 0.24);
	cursor: pointer;
	transition: transform 160ms ease, background 160ms ease;
}

.csc-chat__button:hover,
.csc-chat__button:focus {
	background: var(--csc-header-bg, #000);
	transform: translateY(-2px);
}

.csc-chat.is-open .csc-chat__button {
	opacity: 0;
	pointer-events: none;
}

.csc-chat__welcome {
	font-size: 24px;
	font-weight: 400;
	line-height: 1;
	white-space: nowrap;
}

.csc-chat__logo {
	display: grid;
	flex: 0 0 auto;
	width: 43px;
	height: 43px;
	border: 2px solid #fff;
	border-radius: 50%;
	color: #c6a251;
	background: var(--csc-body-bg, #fff);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
	font-size: 7px;
	font-weight: 800;
	line-height: 0.95;
	text-align: center;
	text-transform: uppercase;
	place-items: center;
	overflow: hidden;
	padding: 4px;
}

.csc-chat__logo--large {
	width: 58px;
	height: 58px;
	font-size: 8px;
}

.csc-chat__logo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.csc-chat__panel {
	position: absolute;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: min(425px, calc(100vw - 24px));
	height: min(625px, calc(100vh - 28px));
	overflow: hidden;
	border-radius: 12px 12px 0 0;
	background: var(--csc-body-bg, #fff);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
	opacity: 0;
	pointer-events: none;
	transform: translateY(18px) scale(0.985);
	transform-origin: bottom right;
	transition: opacity 180ms ease, transform 180ms ease;
}

.csc-chat--right .csc-chat__panel {
	right: 0;
	transform-origin: bottom right;
}

.csc-chat--left .csc-chat__panel {
	left: 0;
	transform-origin: bottom left;
}

.csc-chat.is-open .csc-chat__panel {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0) scale(1);
}

.csc-chat__header {
	position: relative;
	display: grid;
	flex: 0 0 auto;
	grid-template-columns: 62px 1fr 36px;
	align-items: center;
	gap: 12px;
	min-height: 100px;
	padding: 20px 22px;
	color: var(--csc-header-text, #fff);
	background: var(--csc-header-bg, #000);
}

.csc-chat__brand {
	position: relative;
	width: 62px;
	height: 62px;
}

.csc-chat__online {
	position: absolute;
	right: 1px;
	bottom: 8px;
	width: 14px;
	height: 14px;
	border: 2px solid var(--csc-header-bg, #000);
	border-radius: 50%;
	background: #32d74b;
}

.csc-chat__title strong,
.csc-chat__title span {
	display: block;
}

.csc-chat__title strong {
	margin-bottom: 3px;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.2;
}

.csc-chat__title span {
	font-size: 18px;
	font-weight: 400;
	line-height: 1.25;
	color: rgba(255, 255, 255, 0.95);
}

.csc-chat__close {
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	color: var(--csc-header-text, #fff);
	background: transparent;
	font-size: 36px;
	font-weight: 200;
	line-height: 1;
	cursor: pointer;
}

.csc-chat__body {
	position: relative;
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 18px 38px 24px;
	background: #fff;
	scrollbar-color: #8a8a8a #fff;
	scrollbar-width: auto;
}

.csc-chat__body::-webkit-scrollbar {
	width: 18px;
}

.csc-chat__body::-webkit-scrollbar-thumb {
	border: 5px solid #fff;
	border-radius: 12px;
	background: #8a8a8a;
}

.csc-chat__time {
	width: max-content;
	margin: 0 auto 36px;
	padding: 8px 11px;
	border-radius: 3px;
	color: #fff;
	background: #74767f;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	min-width: 64px;
	text-align: center;
}

.csc-chat__message {
	max-width: 300px;
	margin: 0 0 34px;
	color: var(--csc-body-text, #000);
	background: transparent;
	box-shadow: none;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.18;
}

.csc-chat__form {
	display: grid;
	gap: 22px;
}

.csc-chat__shortcode-form {
	color: var(--csc-body-text, #000);
	font-size: 16px;
	line-height: 1.35;
}

.csc-chat__quick-replies {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 18px;
}

.csc-chat__quick-replies button {
	padding: 10px 14px;
	border: 1px solid var(--csc-input-line, #b8b8b8);
	border-radius: 999px;
	color: var(--csc-body-text, #000);
	background: var(--csc-body-bg, #fff);
	box-shadow: 0 0 0 rgba(0, 0, 0, 0);
	font: inherit;
	font-size: 15px;
	cursor: pointer;
	transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.csc-chat__quick-replies button:hover,
.csc-chat__quick-replies button:focus {
	border-color: var(--csc-button-bg, #000);
	color: #000 !important;
	background: rgba(0, 0, 0, 0.04);
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
	outline: 0;
	transform: translateY(-2px);
}

.csc-chat__conversation {
	display: grid;
	gap: 10px;
	margin: 0 0 18px;
}

.csc-chat__bubble {
	width: fit-content;
	max-width: 86%;
	padding: 10px 12px;
	border-radius: 14px;
	font-size: 15px;
	line-height: 1.35;
}

.csc-chat__bubble--user {
	justify-self: end;
	color: #fff;
	background: var(--csc-button-bg, #000);
}

.csc-chat__bubble a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.csc-chat__bubble--bot {
	color: var(--csc-body-text, #000);
	background: rgba(0, 0, 0, 0.06);
}

.csc-chat__forms[hidden],
.csc-chat__shortcode-form[hidden] {
	display: none !important;
}

.csc-chat__shortcode-form form,
.csc-chat__shortcode-form .wpcf7-form,
.csc-chat__shortcode-form .wpforms-form {
	display: grid;
	gap: 14px;
	margin: 0;
}

.csc-chat__shortcode-form p {
	margin: 0 0 12px;
}

.csc-chat__shortcode-form label {
	color: var(--csc-body-text, #000);
	font: inherit;
}

.csc-chat__shortcode-form input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
.csc-chat__shortcode-form textarea,
.csc-chat__shortcode-form select {
	width: 100%;
	margin: 0;
	padding: 8px 0;
	border: 0;
	border-bottom: 1px solid var(--csc-input-line, #b8b8b8);
	border-radius: 0;
	color: var(--csc-body-text, #000);
	background: transparent;
	box-shadow: none;
	font: inherit;
}

.csc-chat__shortcode-form textarea {
	min-height: 72px;
	resize: vertical;
}

.csc-chat__shortcode-form input[type="submit"],
.csc-chat__shortcode-form button[type="submit"],
.csc-chat__shortcode-form .wpforms-submit {
	width: 100%;
	min-height: 48px;
	margin: 6px 0 0;
	padding: 12px 18px;
	border: 0;
	border-radius: 14px;
	color: #fff;
	background: var(--csc-button-bg, #000);
	font: inherit;
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
}

.csc-chat__empty-form {
	color: #777;
	font-size: 14px;
}

.csc-chat__form label {
	display: grid;
	gap: 9px;
	margin: 0;
	color: var(--csc-body-text, #2b2b2b);
	font-size: 18px;
	font-weight: 400;
}

.csc-chat__form input,
.csc-chat__form textarea {
	width: 100%;
	margin: 0;
	padding: 4px 0 10px;
	border: 0;
	border-bottom: 1px solid var(--csc-input-line, #b8b8b8);
	border-radius: 0;
	color: var(--csc-body-text, #000);
	background: transparent;
	box-shadow: none;
	font: inherit;
	font-size: 18px;
	line-height: 1.25;
}

.csc-chat__form textarea {
	height: 40px;
	min-height: 40px;
	max-height: 80px;
	overflow: hidden;
	resize: none;
}

.csc-chat__form input:focus,
.csc-chat__form textarea:focus {
	border-bottom-color: #000;
	outline: 0;
}

.csc-chat__error {
	min-height: 20px;
	margin: -20px 0 0;
	color: #b42318;
	font-size: 13px;
	line-height: 1.35;
}

.csc-chat__submit {
	width: 100%;
	min-height: 50px;
	margin-top: 0;
	padding: 12px 18px;
	border: 0;
	border-radius: 14px;
	color: #fff;
	background: var(--csc-button-bg, #000);
	font: inherit;
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
	transition: background 160ms ease, transform 160ms ease;
}

.csc-chat__submit:hover,
.csc-chat__submit:focus {
	background: var(--csc-header-bg, #252525);
	transform: translateY(-1px);
}

.csc-chat__submit:disabled {
	cursor: wait;
	opacity: 0.72;
}

.csc-chat__success {
	margin-top: 40px;
	padding: 0;
	color: #000;
	background: transparent;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.3;
}

.csc-chat__composer {
	display: flex;
	flex: 0 0 76px;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	min-height: 76px;
	padding: 0 26px;
	border-top: 1px solid #ececec;
	color: var(--csc-composer-text, #1d1d1d);
	background: var(--csc-composer-bg, #fff);
	font-size: 21px;
	line-height: 1;
}

.csc-chat__composer input {
	flex: 1;
	width: 100%;
	min-width: 0;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	color: var(--csc-composer-text, #1d1d1d);
	background: transparent;
	box-shadow: none;
	font: inherit;
	font-size: 21px;
	line-height: 48px;
	cursor: default;
}

.csc-chat__composer input::placeholder {
	color: var(--csc-composer-text, #1d1d1d);
	opacity: 1;
}

.csc-chat__composer-icons {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--csc-composer-icon, #8aa0c2);
}

.csc-chat__composer-icons button {
	display: grid;
	width: 30px;
	height: 30px;
	margin: 0;
	padding: 0;
	border: 0;
	color: inherit;
	background: transparent;
	cursor: pointer;
	place-items: center;
}

.csc-chat__composer-icons svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

@media (max-width: 480px) {
	.csc-chat {
		bottom: 0;
		left: 0;
	}

	.csc-chat__button {
		width: 252px;
		margin-left: 12px;
	}

	.csc-chat__panel {
		right: 0;
		width: 100vw;
		height: min(625px, 100vh);
		border-radius: 12px 12px 0 0;
	}

	.csc-chat__header {
		grid-template-columns: 58px 1fr 34px;
		gap: 10px;
		padding: 18px 20px;
	}

	.csc-chat__title strong {
		font-size: 24px;
	}

	.csc-chat__title span {
		font-size: 17px;
	}

	.csc-chat__body {
		padding-right: 34px;
		padding-left: 34px;
	}
}

@media (max-width: 360px) {
	.csc-chat__body {
		padding-right: 24px;
		padding-left: 24px;
	}

	.csc-chat__title strong {
		font-size: 22px;
	}

	.csc-chat__title span {
		font-size: 15px;
	}
}
