.wapp-chooser {
	--wapp-c1: #19b581;
	--wapp-c2: #15909b;
	--wapp-grad: linear-gradient(135deg, var(--wapp-c1), var(--wapp-c2));
	position: fixed;
	right: 20px;
	bottom: 20px;
	bottom: calc(20px + env(safe-area-inset-bottom, 0px));
	z-index: 99999;
	font-family: inherit;
	line-height: 1.4;
}

.wapp-chooser *,
.wapp-chooser *::before,
.wapp-chooser *::after {
	box-sizing: border-box;
}

.wapp-chooser [hidden] {
	display: none !important;
}

/* Poziție stânga */
.wapp-chooser.wapp-pos-left {
	right: auto;
	left: 20px;
}

.wapp-pos-left .wapp-bubble,
.wapp-pos-left .wapp-panel {
	right: auto;
	left: 0;
}

.wapp-pos-left .wapp-bubble::after {
	right: auto;
	left: 22px;
}

/* FAB */
.wapp-fab {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--wapp-grad);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	animation: wapp-pulse 2.4s infinite;
	-webkit-tap-highlight-color: transparent;
}

.wapp-fab:hover {
	filter: brightness(1.05);
}

.wapp-fab:focus-visible,
.wapp-contact:focus-visible,
.wapp-bubble-close:focus-visible {
	outline: 3px solid #0b5f68;
	outline-offset: 2px;
}

.wapp-fab:focus-visible {
	outline-color: #fff;
	box-shadow: 0 0 0 3px #0b5f68, 0 4px 14px rgba(0, 0, 0, 0.25);
}

@keyframes wapp-pulse {
	0%   { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(25, 181, 129, 0.55); }
	70%  { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), 0 0 0 16px rgba(25, 181, 129, 0); }
	100% { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(25, 181, 129, 0); }
}

/* Baloon */
.wapp-bubble {
	position: absolute;
	right: 0;
	bottom: 74px;
	display: flex;
	align-items: flex-start;
	gap: 8px;
	max-width: 240px;
	width: max-content;
	padding: 12px 12px 12px 16px;
	border-radius: 14px;
	background: #fff;
	color: #1d2327;
	font-size: 14px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
	animation: wapp-in 0.35s ease-out both;
}

.wapp-bubble::after {
	content: "";
	position: absolute;
	right: 22px;
	bottom: -7px;
	width: 14px;
	height: 14px;
	background: #fff;
	transform: rotate(45deg);
	border-radius: 2px;
}

.wapp-bubble-text {
	flex: 1;
}

.wapp-bubble-close {
	flex: none;
	width: 22px;
	height: 22px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #50575e;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.wapp-bubble-close:hover {
	background: #f0f0f1;
}

/* Panou */
.wapp-panel {
	position: absolute;
	right: 0;
	bottom: 74px;
	width: 280px;
	max-width: calc(100vw - 40px);
	border-radius: 16px;
	background: #fff;
	color: #1d2327;
	overflow: hidden;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
	animation: wapp-in 0.25s ease-out both;
}

.wapp-panel-header {
	padding: 14px 18px;
	background: linear-gradient(135deg, #14a173 0%, #11808a 100%);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
}

.wapp-panel-list {
	margin: 0;
	padding: 6px;
	list-style: none;
}

.wapp-panel-list li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wapp-contact {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 12px;
	border-radius: 10px;
	color: inherit;
	text-decoration: none;
	transition: background-color 0.15s;
}

.wapp-contact:hover {
	background: #eef8f5;
}

.wapp-contact-name {
	font-weight: 700;
	font-size: 15px;
}

.wapp-contact-cta {
	font-size: 12px;
	color: #50575e;
}

@keyframes wapp-in {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.wapp-fab,
	.wapp-bubble,
	.wapp-panel {
		animation: none;
	}
	.wapp-contact {
		transition: none;
	}
}

@media (max-width: 480px) {
	.wapp-chooser {
		right: 14px;
		bottom: 14px;
		bottom: calc(14px + env(safe-area-inset-bottom, 0px));
	}
	.wapp-chooser.wapp-pos-left {
		right: auto;
		left: 14px;
	}
	.wapp-panel {
		max-width: calc(100vw - 28px);
	}
	.wapp-bubble {
		max-width: calc(100vw - 28px);
	}
}
