.floating-contact-popup {
	position: fixed;
	z-index: 9990;
	right: 9px;
	bottom: 66px;
	width: 360px;
	max-width: calc(100vw - 48px);
	font-family: inherit;
	color: #1f2933;
}

.floating-contact-popup.fcp-bottom-left {
	right: auto;
	left: 24px;
}

.floating-contact-popup[hidden],
.floating-contact-popup.fcp-closed {
	display: none;
}

.fcp-card {
	overflow: hidden;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 16px 44px rgba(15, 23, 42, .2);
	border: 1px solid rgba(15, 23, 42, .08);
	animation: fcpIn .22s ease-out;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
}

.fcp-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px;
	background:  #0e58b8;
	color: #fff;
}

.fcp-person {
	display: flex;
	align-items: center;
	min-width: 0;
	gap: 10px;
}

.fcp-avatar {
	width: 58px;
	height: 58px;
	flex: 0 0 58px;
	object-fit: cover;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, .9);
	background: #fff;
}

.fcp-avatar-fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color:  #0e58b8;
}

.fcp-person-text {
	min-width: 0;
}

.fcp-person-text strong,
.fcp-person-text span {
	display: block;
	overflow-wrap: anywhere;
}

.fcp-person-text strong {
	font-size: 16px;
	line-height: 1.25;
}

.fcp-person-text span {
	margin-top: 3px;
	font-size: 12px;
	line-height: 1.35;
	opacity: .92;
}

.fcp-actions {
	display: flex;
	gap: 6px;
	flex: 0 0 auto;
}

.fcp-actions button,
.fcp-bubble {
	border: 0;
	cursor: pointer;
}

.fcp-actions button {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .18);
	color: #fff;
	line-height: 28px;
	text-align: center;
}

.fcp-body {
	padding: 14px;
}

.fcp-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin-bottom: 12px;
}

.fcp-stats > div {
	min-height: 58px;
	padding: 8px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	text-align: center;
	background: #f8fafc;
}

.fcp-stats strong,
.fcp-stats span {
	display: block;
	overflow-wrap: anywhere;
}

.fcp-stats strong {
	font-size: 18px;
	line-height: 1.2;
	color: #111827;
}

.fcp-stats span {
	margin-top: 3px;
	font-size: 11px;
	line-height: 1.25;
	color: #64748b;
}

.fcp-client img {
	max-width: 100%;
	max-height: 38px;
	object-fit: contain;
}

.fcp-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 42px;
	margin-top: 8px;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.fcp-btn:hover,
.fcp-btn:focus {
	text-decoration: none;
}

.fcp-btn-call {
	background: var(--fcp-call-bg, #e53935);
	color: #fff;
}

.fcp-btn-secondary {
	background: #f1f5f9;
	color: #0f172a;
	border: 1px solid #e2e8f0;
}

.fcp-support {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #e5e7eb;
	text-align: center;
}

.fcp-support span,
.fcp-support small {
	display: block;
	color: #64748b;
}

.fcp-support span {
	font-size: 12px;
}

.fcp-support div {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin-top: 6px;
	font-size: 16px;
	color: #111827;
}

.fcp-support small {
	margin-top: 3px;
	font-size: 11px;
}

.fcp-bubble {
	display: none;
	width: 58px;
	height: 58px;
	margin-left: auto;
	border-radius: 50%;
	background: #0e58b8;
	color: #fff;
	font-size: 23px;
	box-shadow: 0 12px 28px rgba(15, 23, 42, .22);
}

.floating-contact-popup.fcp-minimized {
	width: auto;
}

.floating-contact-popup.fcp-minimized .fcp-card {
	display: none;
}

.floating-contact-popup.fcp-minimized .fcp-bubble {
	display: block;
}

@keyframes fcpIn {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 991px) {
	.floating-contact-popup {
		width: 340px;
		right: 18px;
		bottom: 18px;
	}

	.floating-contact-popup.fcp-bottom-left {
		left: 18px;
	}
}

@media (max-width: 767px) {
	.floating-contact-popup {
		left: 12px;
		right: 12px;
		bottom: 12px;
		width: auto;
		max-width: none;
	}

	.floating-contact-popup.fcp-bottom-left {
		left: 12px;
		right: 12px;
	}

	.fcp-header,
	.fcp-body {
		padding: 11px;
	}

	.fcp-avatar {
		width: 48px;
		height: 48px;
		flex-basis: 48px;
	}

	.fcp-person-text strong {
		font-size: 15px;
	}

	.fcp-btn {
		min-height: 38px;
		font-size: 13px;
		padding: 9px 10px;
	}

	.fcp-bubble {
		width: 54px;
		height: 54px;
	}

	.fcp-card {
		max-height: calc(100vh - 24px);
	}
}

@media (max-width: 767px) {
	.fcp-device-desktop {
		display: none;
	}
}

@media (min-width: 768px) {
	.fcp-device-mobile {
		display: none;
	}
}
