.jess-contact-widget {
	--jess-contact-bg: #ffffff;
	--jess-contact-text: #0f172a;
	--jess-contact-muted: #475569;
	--jess-contact-accent: #38bdf8;
	--jess-contact-accent-dark: #0284c7;
	--jess-contact-border: #e2e8f0;
	--jess-contact-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 9999;
	font-size: 14px;
	line-height: 1.4;
	color: var(--jess-contact-text);
}

.jess-contact-widget--inline {
	position: relative;
	right: auto;
	bottom: auto;
	z-index: 1;
	display: inline-flex;
}

.jess-contact-widget--inline .jess-contact-panel {
	right: auto;
	left: 0;
	bottom: calc(100% + 12px);
}

.jess-contact-toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border-radius: 999px;
	border: 0;
	background: var(--jess-contact-accent);
	color: #ffffff;
	box-shadow: 0 14px 30px rgba(14, 165, 233, 0.35);
	cursor: pointer;
	font: inherit;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.jess-contact-toggle:hover {
	transform: translateY(-1px);
	box-shadow: 0 18px 36px rgba(14, 165, 233, 0.4);
}

.jess-contact-toggle:focus {
	outline: 2px solid rgba(14, 165, 233, 0.35);
	outline-offset: 3px;
}

.jess-contact-toggle-icon {
	display: inline-flex;
	width: 20px;
	height: 20px;
}

.jess-contact-toggle-icon svg {
	width: 100%;
	height: 100%;
}

.jess-contact-toggle-icon img {
	width: 100%;
	height: 100%;
	display: block;
}

.jess-contact-toggle-text {
	font-weight: 600;
	letter-spacing: 0.2px;
}

.jess-contact-panel {
	position: absolute;
	right: 0;
	bottom: 70px;
	width: min(320px, 90vw);
	background: var(--jess-contact-bg);
	border-radius: 16px;
	padding: 16px;
	box-shadow: var(--jess-contact-shadow);
	transform-origin: bottom right;
	transform: translateY(12px) scale(0.98);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.jess-contact-panel[hidden] {
	display: none;
}

.jess-contact-widget.is-open .jess-contact-panel {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

.jess-contact-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.jess-contact-title {
	font-size: 15px;
	font-weight: 700;
}

.jess-contact-subtitle {
	color: var(--jess-contact-muted);
	font-size: 12px;
	margin-top: 2px;
}

.jess-contact-close {
	border: 0;
	background: transparent;
	color: var(--jess-contact-muted);
	cursor: pointer;
	font: inherit;
	padding: 4px;
	line-height: 1;
}

.jess-contact-close::before {
	content: "x";
	font-size: 16px;
}

.jess-contact-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.jess-contact-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid var(--jess-contact-border);
	background: #f8fafc;
	transition: border-color 0.18s ease, background 0.18s ease;
}

.jess-contact-item:hover {
	border-color: var(--jess-contact-accent);
	background: #ecfeff;
}

.jess-contact-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.jess-contact-label {
	font-weight: 600;
}

.jess-contact-number {
	color: var(--jess-contact-muted);
	font-size: 13px;
}

.jess-contact-actions {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
}

.jess-contact-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	background: #f1f5f9;
	color: #0f172a;
	white-space: nowrap;
	border: 1px solid #e2e8f0;
	transition: border-color 0.18s ease, background 0.18s ease;
}

.jess-contact-action:hover {
	border-color: #cbd5f1;
	background: #e2e8f0;
}

.jess-contact-action--phone {
	background: #e0f2fe;
	color: #0369a1 !important;
	border-color: #bae6fd;
}

.jess-contact-action--phone:hover {
	background: #bae6fd;
	border-color: #7dd3fc;
}

.jess-contact-action--whatsapp {
	background: #25d366;
	color: #ffffff !important;
	border-color: #1fb65a;
}

.jess-contact-action--whatsapp:hover {
	background: #1fb65a;
	border-color: #18984b;
}

@media (max-width: 640px) {
	.jess-contact-widget {
		right: 16px;
		bottom: 16px;
	}

	.jess-contact-toggle {
		padding: 12px;
		border-radius: 50%;
	}

	.jess-contact-toggle-text {
		display: none;
	}

	.jess-contact-panel {
		bottom: 64px;
	}

	.jess-contact-widget--inline .jess-contact-toggle {
		padding: 12px 16px;
		border-radius: 999px;
	}

	.jess-contact-widget--inline .jess-contact-toggle-text {
		display: inline;
	}

	.jess-contact-widget--inline .jess-contact-panel {
		bottom: calc(100% + 12px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.jess-contact-toggle,
	.jess-contact-panel {
		transition: none;
	}
}
