.jm-jobsie {
	--jobsie-blue: #0f80e3;
	--jobsie-blue-dark: #0968bd;
	--jobsie-ink: #10233f;
	--jobsie-muted: #66758a;
	--jobsie-border: #dce6f2;
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 999998;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.jm-jobsie *,
.jm-jobsie *::before,
.jm-jobsie *::after {
	box-sizing: border-box;
}

.jm-jobsie__launcher {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 56px;
	padding: 7px 18px 7px 7px;
	border: 0;
	border-radius: 999px;
	background: var(--jobsie-ink);
	box-shadow: 0 14px 34px rgba(16, 35, 63, .25);
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-size: 15px;
	font-weight: 750;
	transition: transform .2s ease, box-shadow .2s ease;
	touch-action: none;
	user-select: none;
}

.jm-jobsie__launcher:hover,
.jm-jobsie__launcher:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 18px 38px rgba(16, 35, 63, .32);
}

.jm-jobsie__launcher-mark {
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border-radius: 50%;
	background: radial-gradient(circle at 38% 28%, #26364a, #090d14 72%);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
	font-size: 20px;
	font-weight: 850;
	overflow: hidden;
}

.jm-jobsie__launcher-mark img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jm-jobsie__launcher-mark > span {
	display: none;
}

.jm-jobsie.is-dragging .jm-jobsie__launcher {
	cursor: grabbing;
	transform: none;
}

.jm-jobsie.is-open .jm-jobsie__launcher {
	display: none;
}

.jm-jobsie__panel {
	width: min(390px, calc(100vw - 28px));
	height: min(640px, calc(100vh - 44px));
	min-height: 430px;
	overflow: hidden;
	border: 1px solid rgba(16, 35, 63, .12);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 24px 70px rgba(16, 35, 63, .25);
	color: var(--jobsie-ink);
}

.jm-jobsie__panel:not([hidden]) {
	display: flex;
	flex-direction: column;
}

.jm-jobsie__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 72px;
	padding: 14px 15px 14px 20px;
	background: linear-gradient(135deg, var(--jobsie-ink), #174a7c);
	color: #fff;
}

.jm-jobsie__header div {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.jm-jobsie__header strong {
	font-size: 18px;
	line-height: 1.2;
}

.jm-jobsie__header span {
	color: rgba(255, 255, 255, .72);
	font-size: 12px;
}

.jm-jobsie__close {
	display: grid;
	width: 40px;
	height: 40px;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-size: 28px;
	font-weight: 300;
	line-height: 1;
}

.jm-jobsie__close:hover,
.jm-jobsie__close:focus-visible {
	background: rgba(255, 255, 255, .2);
}

.jm-jobsie__messages {
	flex: 1;
	overflow-x: hidden;
	overflow-y: auto;
	padding: 20px 16px 10px;
	background: linear-gradient(180deg, #f6f9fd, #fff 35%);
	scrollbar-color: #cbd8e8 transparent;
	scrollbar-width: thin;
}

.jm-jobsie__message {
	display: flex;
	margin: 0 0 12px;
}

.jm-jobsie__message--user {
	justify-content: flex-end;
}

.jm-jobsie__bubble {
	max-width: 86%;
	padding: 11px 13px;
	border: 1px solid var(--jobsie-border);
	border-radius: 15px 15px 15px 4px;
	background: #fff;
	box-shadow: 0 4px 12px rgba(16, 35, 63, .06);
	color: #223650;
	font-size: 14px;
	line-height: 1.5;
	white-space: pre-wrap;
	word-break: break-word;
}

.jm-jobsie__message--user .jm-jobsie__bubble {
	border-color: var(--jobsie-blue);
	border-radius: 15px 15px 4px 15px;
	background: var(--jobsie-blue);
	box-shadow: none;
	color: #fff;
}

.jm-jobsie__message.is-error .jm-jobsie__bubble {
	border-color: #f1b8b8;
	background: #fff6f6;
	color: #912f2f;
}

.jm-jobsie__bubble a {
	color: var(--jobsie-blue-dark);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.jm-jobsie__status {
	min-height: 24px;
	padding: 3px 18px;
	background: #fff;
	color: var(--jobsie-muted);
	font-size: 12px;
}

.jm-jobsie.is-busy .jm-jobsie__status::before {
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: 7px;
	border-radius: 50%;
	background: var(--jobsie-blue);
	content: "";
	animation: jm-jobsie-pulse 1s ease-in-out infinite;
}

.jm-jobsie__form {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	padding: 8px 12px 10px;
	border-top: 1px solid var(--jobsie-border);
	background: #fff;
}

.jm-jobsie__input {
	width: 100%;
	min-height: 44px;
	max-height: 116px;
	resize: none;
	padding: 11px 12px;
	border: 1px solid #cbd8e8;
	border-radius: 12px;
	outline: none;
	background: #fff;
	color: var(--jobsie-ink);
	font: inherit;
	font-size: 14px;
	line-height: 1.4;
}

.jm-jobsie__input:focus {
	border-color: var(--jobsie-blue);
	box-shadow: 0 0 0 3px rgba(15, 128, 227, .12);
}

.jm-jobsie__send {
	min-height: 44px;
	padding: 0 14px;
	border: 0;
	border-radius: 11px;
	background: var(--jobsie-blue);
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-size: 13px;
	font-weight: 750;
}

.jm-jobsie__send:hover,
.jm-jobsie__send:focus-visible {
	background: var(--jobsie-blue-dark);
}

.jm-jobsie__send:disabled,
.jm-jobsie__input:disabled {
	cursor: wait;
	opacity: .64;
}

.jm-jobsie__privacy {
	margin: 0;
	padding: 0 14px 11px;
	background: #fff;
	color: #7a8798;
	font-size: 10px;
	line-height: 1.3;
	text-align: center;
}

@keyframes jm-jobsie-pulse {
	50% { opacity: .35; transform: scale(.78); }
}

@media (max-width: 520px) {
	.jm-jobsie {
		right: 12px;
		bottom: 12px;
	}

	.jm-jobsie__panel {
		width: calc(100vw - 24px);
		height: min(680px, calc(100dvh - 24px));
		min-height: 380px;
		border-radius: 16px;
	}

	.jm-jobsie__launcher-label {
		display: none;
	}

	.jm-jobsie__launcher {
		padding-right: 7px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jm-jobsie *,
	.jm-jobsie *::before,
	.jm-jobsie *::after {
		animation: none !important;
		transition: none !important;
	}
}
