.wa-bubble-container {
	position: fixed;
	z-index: 999998;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	direction: ltr;
}

/* Bottom Right positions */
.wa-bubble-container[data-position="bottom-right-low"] {
	bottom: 20px;
	right: 20px;
	top: auto;
}

.wa-bubble-container[data-position="bottom-right-medium"] {
	bottom: 100px;
	right: 20px;
	top: auto;
}

.wa-bubble-container[data-position="bottom-right-high"] {
	bottom: 200px;
	right: 20px;
	top: auto;
}

.wa-bubble-container[data-position="middle-right"] {
	top: 50%;
	right: 20px;
	bottom: auto;
	transform: translateY( -50% );
}

/* Bottom Left positions */
.wa-bubble-container[data-position="bottom-left-low"] {
	bottom: 20px;
	left: 20px;
	top: auto;
}

.wa-bubble-container[data-position="bottom-left-medium"] {
	bottom: 100px;
	left: 20px;
	top: auto;
}

.wa-bubble-container[data-position="bottom-left-high"] {
	bottom: 200px;
	left: 20px;
	top: auto;
}

.wa-bubble-container[data-position="middle-left"] {
	top: 50%;
	left: 20px;
	bottom: auto;
	transform: translateY( -50% );
}

.wa-bubble-container[data-rtl="true"] {
	direction: rtl;
}

/* RTL tooltip positioning (mirrored) */
.wa-bubble-container[data-rtl="true"][data-position*="right"] .wa-bubble-tooltip {
	right: auto;
	left: 0;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 10px;
}

.wa-bubble-container[data-rtl="true"][data-position*="left"] .wa-bubble-tooltip {
	left: auto;
	right: 0;
	border-bottom-right-radius: 0;
	border-bottom-left-radius: 10px;
}

.wa-bubble-container[data-rtl="true"][data-position="bottom-right-low"],
.wa-bubble-container[data-rtl="true"][data-position="bottom-right-medium"],
.wa-bubble-container[data-rtl="true"][data-position="bottom-right-high"],
.wa-bubble-container[data-rtl="true"][data-position="middle-right"] {
	right: auto;
	left: 20px;
}

.wa-bubble-container[data-rtl="true"][data-position="bottom-left-low"],
.wa-bubble-container[data-rtl="true"][data-position="bottom-left-medium"],
.wa-bubble-container[data-rtl="true"][data-position="bottom-left-high"],
.wa-bubble-container[data-rtl="true"][data-position="middle-left"] {
	left: auto;
	right: 20px;
}

.wa-bubble-tooltip {
	position: absolute;
	bottom: 80px;
	background: white;
	border-radius: 10px;
	padding: 15px;
	min-width: 250px;
	max-width: 280px;
	box-shadow: 0 4px 12px rgba( 0, 0, 0, 0.15 );
	margin-bottom: 10px;
	opacity: 0;
	visibility: hidden;
	transform: scale( 0.95 ) translateY( 10px );
	transition: all 0.3s ease-out;
	pointer-events: none;
}

/* When bubble is on the right - tooltip goes RIGHT */
.wa-bubble-container[data-position*="right"] .wa-bubble-tooltip {
	left: auto;
	right: 0;
	border-bottom-right-radius: 0;
	border-bottom-left-radius: 10px;
}

/* When bubble is on the left - tooltip goes LEFT */
.wa-bubble-container[data-position*="left"] .wa-bubble-tooltip {
	right: auto;
	left: 0;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 10px;
}

.wa-bubble-container.wa-bubble-open .wa-bubble-tooltip {
	opacity: 1;
	visibility: visible;
	transform: scale( 1 ) translateY( 0 );
	pointer-events: auto;
}

.wa-bubble-tooltip-text {
	font-size: 14px;
	line-height: 1.4;
	color: #333;
	margin: 0;
}

.wa-bubble-tooltip-close {
	position: absolute;
	top: 8px;
	right: 8px;
	background: none;
	border: none;
	font-size: 20px;
	cursor: pointer;
	color: #999;
	padding: 0;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s;
}

.wa-bubble-container[data-rtl="true"] .wa-bubble-tooltip-close {
	right: auto;
	left: 8px;
}

.wa-bubble-tooltip-close:hover {
	color: #333;
}

.wa-bubble-button {
	position: relative;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	box-shadow: 0 4px 12px rgba( 0, 0, 0, 0.2 );
	transition: all 0.3s ease;
	background: var( --wa-bubble-color, #25D366 );
	animation: wa-bubble-pop 0.5s ease-out;
}

.wa-bubble-button:hover {
	transform: scale( 1.1 );
	box-shadow: 0 6px 16px rgba( 0, 0, 0, 0.25 );
}

.wa-bubble-button:active {
	transform: scale( 0.95 );
}

@keyframes wa-bubble-pop {
	0% {
		transform: scale( 0 );
		opacity: 0;
	}
	50% {
		transform: scale( 1.1 );
	}
	100% {
		transform: scale( 1 );
		opacity: 1;
	}
}

.wa-bubble-badge {
	position: absolute;
	top: -5px;
	right: -5px;
	width: 16px;
	height: 16px;
	background: #31a24c;
	border: 3px solid white;
	border-radius: 50%;
	box-shadow: 0 2px 6px rgba( 0, 0, 0, 0.2 );
	animation: wa-bubble-pulse 2s infinite;
}

.wa-bubble-container[data-rtl="true"] .wa-bubble-badge {
	right: auto;
	left: -5px;
}

@keyframes wa-bubble-pulse {
	0%,
	100% {
		box-shadow: 0 0 0 0 rgba( 49, 162, 76, 0.7 );
	}
	50% {
		box-shadow: 0 0 0 10px rgba( 49, 162, 76, 0 );
	}
}

.wa-bubble-button-inline {
	display: inline-block;
	text-decoration: none !important;
	border-radius: 5px;
	transition: all 0.3s ease;
}

.wa-bubble-button-inline:hover {
	opacity: 0.85;
	transform: translateY( -2px );
	box-shadow: 0 4px 12px rgba( 0, 0, 0, 0.2 ) !important;
}

@media (max-width: 600px) {
	.wa-bubble-tooltip {
		min-width: 230px;
		max-width: 260px;
		padding: 12px;
	}

	.wa-bubble-tooltip-text {
		font-size: 13px;
	}

	.wa-bubble-button {
		width: 56px;
		height: 56px;
		font-size: 26px;
	}
}

@media (max-width: 480px) {
	.wa-bubble-container {
		bottom: 15px;
	}

	.wa-bubble-container[data-position="right"] {
		right: 15px;
	}

	.wa-bubble-container[data-position="left"] {
		left: 15px;
	}

	.wa-bubble-tooltip {
		bottom: 75px;
		min-width: 200px;
		max-width: 240px;
	}

	.wa-bubble-button {
		width: 52px;
		height: 52px;
		font-size: 24px;
	}
}
