.iz-ucm-widget {
	--iz-ucm-blue: #00295b;
	--iz-ucm-orange: #f4b223;
	--iz-ucm-white: #ffffff;
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 99999;
	font-family: "Aptos", "Segoe UI", sans-serif;
}

.iz-ucm-widget [hidden] {
	display: none !important;
}

.iz-ucm-launch,
.iz-ucm-widget button {
	border: 0;
	border-radius: 6px;
	background: var(--iz-ucm-blue);
	color: var(--iz-ucm-white);
	cursor: pointer;
	font-weight: 700;
	padding: 10px 14px;
}

.iz-ucm-widget .iz-ucm-launch {
	background: transparent url("/wp-content/uploads/2026/06/mr-fixin-chat-bubble.png") center / contain no-repeat;
	border-radius: 0;
	box-shadow: none;
	font-size: 0;
	height: 100px;
	padding: 0;
	transform-origin: center bottom;
	width: 100px;
}

.iz-ucm-widget .iz-ucm-launch.is-bobbing {
	animation: iz-ucm-launch-bob 4s ease-in-out infinite;
}

@keyframes iz-ucm-launch-bob {
	0%,
	58%,
	100% {
		transform: translate3d(0, 0, 0);
	}

	66% {
		transform: translate3d(0, -13px, 0);
	}

	74% {
		transform: translate3d(0, 0, 0);
	}

	82% {
		transform: translate3d(0, -8px, 0);
	}

	96% {
		transform: translate3d(0, 0, 0);
	}
}

.iz-ucm-window {
	width: min(380px, calc(100vw - 28px));
	height: min(620px, calc(100vh - 44px));
	background: var(--iz-ucm-white);
	border: 1px solid #d9d4c8;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.iz-ucm-window header {
	align-items: center;
	background: var(--iz-ucm-blue);
	color: var(--iz-ucm-white);
	display: flex;
	justify-content: space-between;
	padding: 13px 14px;
}

.iz-ucm-staff {
	align-items: center;
	display: flex;
	gap: 10px;
	min-width: 0;
}

.iz-ucm-staff img {
	background: var(--iz-ucm-white);
	border: 2px solid rgba(255, 255, 255, 0.76);
	border-radius: 999px;
	display: block;
	height: 34px;
	object-fit: cover;
	width: 34px;
}

.iz-ucm-staff strong {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.iz-ucm-window header button {
	background: transparent;
	font-size: 18px;
	padding: 4px 8px;
}

.iz-ucm-log {
	background: var(--iz-ucm-white);
	flex: 1;
	overflow: auto;
	padding: 14px;
}

.iz-ucm-widget-msg {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
	margin: 0 0 10px;
	max-width: 65%;
	width: fit-content;
}

.iz-ucm-widget-msg strong {
	color: var(--iz-ucm-blue);
	display: block;
	font-size: 11px;
	margin: 0 0 3px;
	opacity: 0.72;
}

.iz-ucm-widget-msg p {
	background: var(--iz-ucm-white);
	border: 1px solid #dfdacd;
	border-radius: 8px;
	box-sizing: border-box;
	color: #202622;
	font-size: 14px;
	line-height: 1.42;
	margin: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
	padding: 10px 11px;
	white-space: pre-wrap;
}

.iz-ucm-widget-msg p a {
	color: var(--iz-ucm-blue);
	font-weight: 700;
	text-decoration: underline;
}

.iz-ucm-widget-msg.is-inbound {
	align-items: flex-end;
	margin-left: auto;
}

.iz-ucm-widget-msg.is-inbound p {
	background: var(--iz-ucm-white);
	border: 2px solid var(--iz-ucm-orange);
	color: var(--iz-ucm-blue);
}

.iz-ucm-widget-msg.is-outbound p {
	background: var(--iz-ucm-white);
	border: 2px solid var(--iz-ucm-blue);
	color: var(--iz-ucm-blue);
}

.iz-ucm-lead-qa {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 8px;
	max-width: 100%;
}

.iz-ucm-lead-qa button {
	background: var(--iz-ucm-orange);
	border: 1px solid var(--iz-ucm-orange);
	border-radius: 6px;
	color: var(--iz-ucm-blue);
	font-size: 13px;
	min-height: 34px;
	padding: 7px 10px;
}

.iz-ucm-lead-qa button:disabled,
.iz-ucm-lead-qa input:disabled {
	cursor: wait;
	opacity: 0.65;
}

.iz-ucm-lead-qa form {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	width: 100%;
}

.iz-ucm-lead-qa input {
	background: #fff;
	border: 1px solid #cfc8ba;
	border-radius: 6px;
	box-sizing: border-box;
	color: var(--iz-ucm-blue);
	flex: 1 1 145px;
	font: inherit;
	min-height: 34px;
	padding: 7px 9px;
}

.iz-ucm-lead-qa-error {
	color: #b92f25;
	flex-basis: 100%;
	font-size: 12px;
	line-height: 1.3;
	margin: 0;
}

.iz-ucm-message-form,
.iz-ucm-identity-form {
	background: #fff;
	border-top: 1px solid #ddd7cb;
	display: grid;
	gap: 8px;
	padding: 10px;
}

.iz-ucm-message-form textarea,
.iz-ucm-identity-form input {
	border: 1px solid #cfc8ba;
	border-radius: 6px;
	box-sizing: border-box;
	font: inherit;
	padding: 10px;
	width: 100%;
}

.iz-ucm-message-form button[type="submit"],
.iz-ucm-identity-form button[type="submit"] {
	background: var(--iz-ucm-orange);
	color: var(--iz-ucm-blue);
}

.iz-ucm-message-form button[type="submit"] {
	font-size: 1.5em;
}

.iz-ucm-message-form textarea {
	min-height: 72px;
	resize: vertical;
}

.iz-ucm-hp {
	display: none;
}

.iz-ucm-sms-modal {
	align-items: center;
	background: rgba(0, 41, 91, 0.58);
	display: none;
	inset: 0;
	justify-content: center;
	padding: 18px;
	position: fixed;
	z-index: 100002;
}

.iz-ucm-sms-modal.is-open {
	display: flex;
}

.iz-ucm-sms-modal__backdrop {
	inset: 0;
	position: absolute;
}

.iz-ucm-sms-modal__card {
	background: #fff;
	border: 1px solid #cdd9e8;
	border-radius: 10px;
	box-shadow: 0 18px 60px rgba(0, 41, 91, 0.22);
	color: var(--iz-ucm-blue);
	max-width: 545px;
	padding: 26px 30px;
	position: relative;
	width: min(545px, 100%);
}

.iz-ucm-sms-modal__card h3 {
	color: var(--iz-ucm-blue);
	font-size: 28px;
	line-height: 1.1;
	margin: 0 0 14px;
	text-align: center;
}

.iz-ucm-sms-modal__card p {
	font-size: 15px;
	line-height: 1.55;
	margin: 0 0 14px;
}

.iz-ucm-sms-modal__small {
	color: #415878;
}

.iz-ucm-sms-modal__small a {
	color: var(--iz-ucm-blue);
	font-weight: 700;
	text-decoration: underline;
}

.iz-ucm-sms-modal__actions {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 20px;
}

.iz-ucm-sms-modal__actions button {
	border-radius: 7px;
	cursor: pointer;
	font-size: 18px;
	font-weight: 800;
	min-height: 48px;
	padding: 10px 18px;
}

.iz-ucm-sms-modal__actions [data-iz-ucm-sms-consent-yes] {
	background: var(--iz-ucm-blue);
	border: 1px solid var(--iz-ucm-blue);
	color: #fff;
}

.iz-ucm-sms-modal__actions [data-iz-ucm-sms-consent-no] {
	background: #eef3fa;
	border: 1px solid #cdd9e8;
	color: var(--iz-ucm-blue);
}

@media (max-width: 520px) {
	.iz-ucm-widget {
		bottom: 12px;
		left: 12px;
		right: 12px;
	}

	.iz-ucm-window {
		width: 100%;
	}

	.iz-ucm-sms-modal__card {
		padding: 22px 20px;
	}

	.iz-ucm-sms-modal__card h3 {
		font-size: 24px;
	}
}
