.mb-mini-chat {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 9999;
	font-family: "i-400", Arial, sans-serif;
}

.mb-mini-chat,
.mb-mini-chat * {
	box-sizing: border-box;
}

.mb-mini-chat__button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	border: 0;
	border-radius: 999px;
	padding: 13px 18px;
	background: #54748d;
	color: #fff;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
	cursor: pointer;
	font-size: 15px;
	line-height: 1;
}

.mb-mini-chat__button:hover,
.mb-mini-chat__button:focus {
	background: #374c5c;
}

.mb-mini-chat__button:focus-visible {
	outline: 3px solid rgba(84, 116, 141, .28);
	outline-offset: 3px;
}

.mb-mini-chat__button-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .18);
	font-family: "i-700", Arial, sans-serif;
}

.mb-mini-chat__panel {
	position: absolute;
	right: 0;
	bottom: 62px;
	width: 360px;
	max-width: calc(100vw - 30px);
	padding: 20px;
	border-radius: 16px;
	background: #fff;
	color: #1f2937;
	box-shadow: 0 18px 45px rgba(0, 0, 0, .24);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.mb-mini-chat.is-open .mb-mini-chat__panel {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.mb-mini-chat__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 12px;
}

.mb-mini-chat__eyebrow {
	margin: 0 0 4px;
	color: #54748d;
	font-family: "i-700", Arial, sans-serif;
	font-size: 13px;
	line-height: 1.3;
}

.mb-mini-chat__title {
	margin: 0;
	color: #111827;
	font-family: "i-700", Arial, sans-serif;
	font-size: 22px;
	line-height: 1.2;
}

.mb-mini-chat__close {
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: #f3f4f6;
	color: #374151;
	cursor: pointer;
	font-size: 24px;
	line-height: 1;
}

.mb-mini-chat__close:hover,
.mb-mini-chat__close:focus {
	background: #e5e7eb;
}

.mb-mini-chat__text {
	margin: 0 0 14px;
	color: #4b5563;
	font-size: 14px;
	line-height: 1.45;
}

.mb-mini-chat__notice {
	margin: 0 0 12px;
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.35;
}

.mb-mini-chat__notice--success {
	background: #e8f7ed;
	color: #166534;
}

.mb-mini-chat__notice--error {
	background: #fdecec;
	color: #991b1b;
}

.mb-mini-chat__form {
	display: grid;
	gap: 10px;
}

.mb-mini-chat__field {
	margin: 0;
}

.mb-mini-chat__field label {
	display: block;
	margin-bottom: 5px;
	color: #374151;
	font-family: "i-700", Arial, sans-serif;
	font-size: 13px;
	line-height: 1.3;
}

.mb-mini-chat__field label span {
	color: #6b7280;
	font-family: "i-400", Arial, sans-serif;
}

.mb-mini-chat__field input,
.mb-mini-chat__field textarea {
	display: block;
	width: 100%;
	border: 1px solid #d1d5db;
	border-radius: 9px;
	padding: 10px 11px;
	background: #fff;
	color: #111827;
	font: inherit;
	font-size: 14px;
	line-height: 1.35;
}

.mb-mini-chat__field textarea {
	min-height: 96px;
	resize: vertical;
}

.mb-mini-chat__field input:focus,
.mb-mini-chat__field textarea:focus {
	outline: 0;
	border-color: #54748d;
	box-shadow: 0 0 0 3px rgba(84, 116, 141, .16);
}

.mb-mini-chat__field--trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.mb-mini-chat__submit {
	border: 0;
	border-radius: 9px;
	padding: 12px 16px;
	background: #54748d;
	color: #fff;
	cursor: pointer;
	font-family: "i-700", Arial, sans-serif;
	font-size: 14px;
	line-height: 1;
	text-transform: uppercase;
}

.mb-mini-chat__submit:hover,
.mb-mini-chat__submit:focus {
	background: #374c5c;
}

@media (max-width: 576px) {
	.mb-mini-chat {
		right: 15px;
		bottom: 15px;
	}

	.mb-mini-chat__button {
		padding: 12px 15px;
	}

	.mb-mini-chat__panel {
		right: 0;
		bottom: 58px;
		width: calc(100vw - 30px);
		padding: 16px;
	}
}

@media (max-width: 576px) {
	body:has(input:focus) .mb-mini-chat:not(:has(:focus)),
	body:has(textarea:focus) .mb-mini-chat:not(:has(:focus)),
	body:has(select:focus) .mb-mini-chat:not(:has(:focus)) {
		display: none;
	}
}
