/**
 * AIFORYA WooBoost — styles publics (cross-sell + exit-intent).
 * Neutre, s'intègre à la plupart des thèmes WooCommerce.
 */

/* ---- Cross-sell ---- */
.aiforya-wb-xsell {
	margin: 2.5rem 0;
}
.aiforya-wb-xsell__title {
	font-size: 1.25rem;
	margin: 0 0 1rem;
}
.aiforya-wb-xsell__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 1rem;
}
.aiforya-wb-xsell__card {
	display: flex;
	flex-direction: column;
	gap: .35rem;
	padding: .75rem;
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: 10px;
	text-decoration: none;
	color: inherit;
	background: #fff;
	transition: box-shadow .15s ease, transform .15s ease;
}
.aiforya-wb-xsell__card:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, .1);
	transform: translateY(-2px);
}
.aiforya-wb-xsell__img img {
	width: 100%;
	height: auto;
	border-radius: 6px;
	display: block;
}
.aiforya-wb-xsell__name {
	font-weight: 600;
	font-size: .95rem;
	line-height: 1.3;
}
.aiforya-wb-xsell__price {
	font-size: .9rem;
	opacity: .85;
}
.aiforya-wb-xsell__reason {
	font-size: .8rem;
	opacity: .7;
	font-style: italic;
}

/* ---- Exit-intent ---- */
.aiforya-wb-exit-overlay {
	position: fixed;
	inset: 0;
	background: rgba(10, 12, 30, .55);
	backdrop-filter: blur(2px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	animation: aiforya-wb-fade .2s ease;
}
.aiforya-wb-exit-modal {
	position: relative;
	background: #fff;
	color: #14152a;
	max-width: 420px;
	width: calc(100% - 2rem);
	padding: 2rem 1.75rem;
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
	text-align: center;
	animation: aiforya-wb-pop .22s ease;
}
.aiforya-wb-exit-close {
	position: absolute;
	top: .5rem;
	right: .75rem;
	background: none;
	border: none;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	color: #9092a8;
}
.aiforya-wb-exit-headline {
	margin: 0 0 .6rem;
	font-size: 1.4rem;
}
.aiforya-wb-exit-message {
	margin: 0 0 1.2rem;
	font-size: 1rem;
	line-height: 1.5;
	opacity: .9;
}
.aiforya-wb-exit-cta {
	display: inline-block;
	padding: .7rem 1.5rem;
	border: none;
	border-radius: 999px;
	background: linear-gradient(135deg, #2bd4d9, #b14dff);
	color: #fff;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
}
.aiforya-wb-exit-cta:hover {
	filter: brightness(1.05);
}

@keyframes aiforya-wb-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}
@keyframes aiforya-wb-pop {
	from { opacity: 0; transform: translateY(12px) scale(.98); }
	to { opacity: 1; transform: none; }
}
