.chatjhp-embed {
	margin: 0 0 16px;
}

.chatjhp-embed__frame-wrap {
	position: relative;
	width: 100%;
	background: #f7f9fb;
	border-radius: 12px;
	overflow: hidden;
}

.chatjhp-embed__iframe {
	display: block;
	width: 100%;
	border: 0;
}

.chatjhp-embed__status {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px;
	text-align: center;
	color: #5f6368;
	font-size: 14px;
}

.chatjhp-embed__status[data-chatjhp-state='error'] {
	color: #7c1d1d;
	background: rgba(167, 35, 34, 0.06);
}

.chatjhp-embed__spinner {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid rgba(15, 86, 106, 0.25);
	border-top-color: #0f566a;
	animation: chatjhp-spin 0.8s linear infinite;
}

@keyframes chatjhp-spin {
	to {
		transform: rotate(360deg);
	}
}

.chatjhp-embed__privacy {
	margin: 8px 2px 0;
	color: #80868b;
	font-size: 12px;
	line-height: 1.4;
}

.chatjhp-embed-notice {
	border: 1px dashed rgba(167, 35, 34, 0.4);
	background: rgba(167, 35, 34, 0.06);
	color: #7c1d1d;
	padding: 12px 14px;
	border-radius: 8px;
	font-size: 14px;
}

/* Floating launcher */
.chatjhp-bubble {
	position: fixed;
	z-index: 99999;
	max-width: calc(100vw - 32px);
}

.chatjhp-bubble--bottom-right {
	right: 20px;
	bottom: 20px;
}

.chatjhp-bubble--bottom-left {
	left: 20px;
	bottom: 20px;
}

.chatjhp-bubble__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	border: 0;
	border-radius: 999px;
	background: #0f566a;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(15, 86, 106, 0.3);
}

.chatjhp-bubble__panel {
	position: absolute;
	bottom: 64px;
	width: min(420px, calc(100vw - 32px));
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 18px 48px rgba(19, 38, 77, 0.28);
	overflow: hidden;
}

.chatjhp-bubble--bottom-right .chatjhp-bubble__panel {
	right: 0;
}

.chatjhp-bubble--bottom-left .chatjhp-bubble__panel {
	left: 0;
}

.chatjhp-bubble__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	background: #0f566a;
	color: #fff;
	font-weight: 600;
}

.chatjhp-bubble__close {
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.chatjhp-bubble__panel .chatjhp-embed__frame-wrap {
	border-radius: 0;
}

.chatjhp-bubble__panel .chatjhp-embed__iframe {
	height: min(70vh, 560px);
}

.chatjhp-bubble__panel .chatjhp-embed__privacy {
	padding: 0 12px 12px;
	margin-top: 8px;
}
