.ec-floating-left,
#contactPanel.external-chat-box,
#contactPanel.external-chat-box-right {
	display: none !important;
}

.ec-contact-actions {
	position: fixed;
	right: 0;
	bottom: 100px;
	z-index: 44;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
	width: 198px;
	max-width: calc(100vw - 24px);
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font-family: inherit;
	line-height: 1.2;
}

.ec-contact-action {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 9px;
	min-height: 44px;
	padding: 0 13px;
	border: 0;
	border-radius: 10px 0 0 10px;
	background: #282b33;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .13);
	color: #fff !important;
	cursor: pointer;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.15;
	text-decoration: none !important;
	transition: background-color .2s, box-shadow .2s, transform .2s;
}

.ec-contact-action:hover,
.ec-contact-action:focus-visible {
	background: #17191f;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .06), 0 0 6px rgba(0, 0, 0, .14);
	color: #fff !important;
	transform: translateX(-2px);
}

.ec-contact-action--whatsapp {
	background: #17a85f;
}

.ec-contact-action--whatsapp:hover,
.ec-contact-action--whatsapp:focus-visible {
	background: #11854b;
}

.ec-contact-action::before {
	content: "";
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.ec-contact-action--email::before {
	background-image: url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6h16v12H4z' stroke='%23fff' stroke-width='2'/%3E%3Cpath d='m4 7 8 6 8-6' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.ec-contact-action--whatsapp::before {
	background-image: url("/enster-assets/images/whatsapp.svg");
}

#chat_online_box.ec-contact-actions {
	right: 0;
	bottom: 100px;
	height: auto;
	padding: 0;
	border-radius: 0;
	background: transparent;
	cursor: default;
}

#chat_online_box.ec-contact-actions::after {
	display: none;
}

.ec-chat-dialog {
	position: fixed;
	inset: 0;
	z-index: 99998;
	display: none;
	pointer-events: none;
}

.ec-chat-dialog.is-open {
	display: block;
	pointer-events: auto;
}

.ec-chat-dialog .ec-chat-dialog-panel {
	position: absolute;
	right: 22px;
	bottom: 20px;
	width: min(400px, calc(100vw - 32px));
	max-height: calc(100vh - 40px);
	padding: 20px;
	overflow: auto;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 18px 45px rgba(18, 24, 40, .22);
	color: #282b33;
	pointer-events: auto;
}

.ec-chat-dialog .ec-chat-dialog-title {
	margin: 0;
	padding-right: 40px;
	color: #ee0008;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.35;
}

.ec-chat-dialog .ec-chat-dialog-close {
	position: absolute;
	top: 15px;
	right: 16px;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #282b33;
	cursor: pointer;
	font-size: 0;
	line-height: 1;
}

.ec-chat-dialog .ec-chat-dialog-close::before,
.ec-chat-dialog .ec-chat-dialog-close::after {
	content: "";
	position: absolute;
	top: 14px;
	left: 4px;
	width: 22px;
	height: 2px;
	border-radius: 3px;
	background: currentColor;
}

.ec-chat-dialog .ec-chat-dialog-close::before {
	transform: rotate(45deg);
}

.ec-chat-dialog .ec-chat-dialog-close::after {
	transform: rotate(-45deg);
}

.ec-chat-dialog .ec-chat-dialog-prompt {
	margin: 16px 0 20px;
	color: #4f5663;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.55;
}

.ec-chat-dialog .ec-chat-dialog-fields {
	padding: 20px 16px 1px;
	border: 1px solid #e8edf4;
	border-radius: 14px;
	background: #f7f9fc;
	color: #555;
}

.ec-chat-dialog .ec-chat-dialog-field {
	display: block;
	margin: 0 0 20px;
}

.ec-chat-dialog .ec-chat-dialog-field:last-child {
	margin-bottom: 0;
}

.ec-chat-dialog .ec-chat-dialog-label {
	display: block;
	margin-bottom: 2px;
	color: #5e6066;
	font-size: 14px;
	line-height: 1.4;
}

.ec-chat-dialog .ec-chat-dialog-label--required::first-letter {
	color: #ee0008;
}

.ec-chat-dialog input,
.ec-chat-dialog textarea {
	display: block;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 6px 0 12px;
	border: 0;
	border-bottom: 1px solid #e1e6ee;
	border-radius: 0;
	outline: 0;
	background: transparent;
	box-shadow: none;
	color: #555;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.42857143;
	appearance: none;
	-webkit-appearance: none;
}

.ec-chat-dialog input::placeholder,
.ec-chat-dialog textarea::placeholder {
	color: #9c9c9c;
	opacity: 1;
}

.ec-chat-dialog textarea {
	height: 64px;
	padding-bottom: 0;
	resize: vertical;
}

.ec-chat-dialog .ec-chat-dialog-submit {
	display: block;
	width: 100%;
	height: 40px;
	margin-top: 30px;
	border: 0;
	border-radius: 10px;
	background: #ee0008;
	color: #fff;
	cursor: pointer;
	font-size: 14px;
	font-weight: 700;
	line-height: 40px;
	text-align: center;
	transition: .2s;
}

.ec-chat-dialog .ec-chat-dialog-submit:hover,
.ec-chat-dialog .ec-chat-dialog-submit:focus {
	background: #c90008;
	color: #fff;
	outline: 0;
}

.ec-chat-dialog .ec-chat-dialog-submit:active {
	opacity: 1;
}

.ec-chat-dialog .enster-inquiry-status {
	margin-top: 14px;
	color: #16794c;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.45;
}

.ec-chat-dialog .enster-inquiry-status.is-error {
	color: #b3261e;
}

@media (max-width: 1026px) {
	.ec-contact-actions {
		display: none !important;
	}
}

@media (max-width: 768px) {
	.ec-chat-dialog .ec-chat-dialog-panel {
		right: 0;
		bottom: 0;
		width: 100%;
		max-height: 100vh;
		border-radius: 16px 16px 0 0;
	}
}
