/*
 * واتساب برو للطلبات — أنماط الواجهة الأمامية
 * الزر العائم + زر الطلب في صفحات المنتجات + زر الشورت كود.
 * كل الأنماط محلية — لا يُحمّل أي ملف من خارج الموقع.
 */

/* ---------- الزر العائم ---------- */

.troya-wa-float {
	position: fixed;
	bottom: 24px;
	z-index: 99999;
	display: flex;
	align-items: center;
	width: 56px;
	height: 56px;
	border-radius: 56px;
	background-color: var(--troya-wa-color, #25D366);
	color: #fff;
	text-decoration: none;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.troya-wa-float--right {
	right: 24px;
}

.troya-wa-float--left {
	left: 24px;
}

.troya-wa-float:hover {
	transform: scale(1.06);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
	color: #fff;
	text-decoration: none;
}

.troya-wa-float:focus-visible {
	outline: 3px solid var(--troya-wa-color, #25D366);
	outline-offset: 3px;
}

.troya-wa-float__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
}

.troya-wa-float__icon svg {
	width: 30px;
	height: 30px;
	fill: #fff;
}

/* فقاعة التلميح — تظهر عند التحويم فقط */
.troya-wa-float__tip {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	max-width: 230px;
	padding: 9px 14px;
	border-radius: 8px;
	background: #1d2327;
	color: #fff;
	font-size: 13px;
	line-height: 1.4;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.troya-wa-float--right .troya-wa-float__tip {
	right: 66px;
}

.troya-wa-float--left .troya-wa-float__tip {
	left: 66px;
}

.troya-wa-float:hover .troya-wa-float__tip {
	opacity: 1;
}

/* الجوال: زر أصغر وبلا تلميح */
@media (max-width: 782px) {
	.troya-wa-float {
		width: 50px;
		height: 50px;
		border-radius: 50px;
		bottom: 18px;
	}

	.troya-wa-float--right {
		right: 16px;
	}

	.troya-wa-float--left {
		left: 16px;
	}

	.troya-wa-float__icon {
		width: 50px;
		height: 50px;
	}

	.troya-wa-float__icon svg {
		width: 27px;
		height: 27px;
	}

	.troya-wa-float__tip {
		display: none;
	}
}

/* ---------- زر الطلب في صفحة المنتج (وووكومرس) ---------- */

.troya-wa-product-btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 6px 0 12px;
	padding: 11px 22px;
	border-radius: 10px;
	background-color: var(--troya-wa-color, #25D366);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 3px 12px rgba(37, 211, 102, 0.3);
	transition: filter 0.2s ease, transform 0.2s ease;
}

.troya-wa-product-btn:hover {
	filter: brightness(0.9);
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
}

.troya-wa-product-btn:focus-visible {
	outline: 3px solid var(--troya-wa-color, #25D366);
	outline-offset: 3px;
}

.troya-wa-product-btn svg {
	width: 20px;
	height: 20px;
	fill: #fff;
}

/* ---------- زر الشورت كود داخل المحتوى ---------- */

.troya-wa-inline-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 22px;
	border-radius: 999px;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
	transition: filter 0.2s ease;
}

.troya-wa-inline-btn:hover {
	filter: brightness(0.9);
	color: #fff;
	text-decoration: none;
}

.troya-wa-inline-btn:focus-visible {
	outline: 3px solid var(--troya-wa-color, #25D366);
	outline-offset: 3px;
}

.troya-wa-inline-btn svg {
	width: 18px;
	height: 18px;
	fill: #fff;
}
