/**
 * Rekik – Extras : pop-up « exit intent » du panier.
 * Polices héritées du thème ; violet de la marque sur le bouton principal.
 */

.rkx-popup[hidden] {
	display: none !important;
}

.rkx-popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}

.rkx-popup *,
.rkx-popup *::before,
.rkx-popup *::after {
	box-sizing: border-box;
}

.rkx-popup__fond {
	position: absolute;
	inset: 0;
	background: rgba(38, 22, 34, 0.55);
	animation: rkx-popup-fondu 0.25s ease both;
}

.rkx-popup__boite {
	position: relative;
	width: 100%;
	max-width: 440px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	padding: 44px 36px 32px;
	background: #fff;
	color: #3a3a3a;
	border-radius: 20px;
	box-shadow: 0 30px 70px -20px rgba(38, 22, 34, 0.5);
	text-align: center;
	/* L'animation se lance d'elle-même quand le bloc devient visible : aucune classe ajoutée par le script
	   n'est nécessaire (le CSS optimisé de LiteSpeed peut retirer les sélecteurs absents au chargement). */
	animation: rkx-popup-entree 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes rkx-popup-fondu {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes rkx-popup-entree {
	from {
		opacity: 0;
		transform: translateY(14px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.rkx-popup__boite:focus {
	outline: none;
}

.rkx-popup .rkx-popup__fermer {
	position: absolute;
	top: 12px;
	inset-inline-end: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #6b6670;
	box-shadow: none;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.rkx-popup .rkx-popup__fermer:hover,
.rkx-popup .rkx-popup__fermer:focus-visible {
	background: #f5f5f5;
	color: #3a3a3a;
}

.rkx-popup__icone {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: rgba(133, 51, 118, 0.09);
	color: #853376;
}

.rkx-popup__icone svg {
	display: block;
}

.rkx-popup .rkx-popup__titre {
	margin: 0 0 12px;
	padding: 0;
	color: #3a3a3a;
	font-size: 1.5rem;
	line-height: 1.25;
}

.rkx-popup .rkx-popup__texte {
	margin: 0 0 28px;
	color: #5c5860;
	font-size: 1rem;
	line-height: 1.6;
}

.rkx-popup__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.rkx-popup .rkx-popup__bouton {
	display: block;
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: 14px 20px;
	border-radius: 999px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: normal;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.rkx-popup .rkx-popup__bouton--principal,
.rkx-popup .rkx-popup__bouton--principal:visited {
	background: #853376;
	border: 1px solid #853376;
	color: #fff;
}

.rkx-popup .rkx-popup__bouton--principal:hover,
.rkx-popup .rkx-popup__bouton--principal:focus-visible {
	background: #6d2961;
	border-color: #6d2961;
	color: #fff;
}

.rkx-popup .rkx-popup__bouton--secondaire {
	background: #fff;
	border: 1px solid rgba(58, 58, 58, 0.2);
	color: #3a3a3a;
}

.rkx-popup .rkx-popup__bouton--secondaire:hover,
.rkx-popup .rkx-popup__bouton--secondaire:focus-visible {
	background: #fff;
	border-color: #853376;
	color: #853376;
}

.rkx-popup .rkx-popup__bouton:focus-visible,
.rkx-popup .rkx-popup__fermer:focus-visible {
	outline: 2px solid #853376;
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.rkx-popup__fond,
	.rkx-popup__boite {
		animation: none;
	}

	.rkx-popup .rkx-popup__bouton,
	.rkx-popup .rkx-popup__fermer {
		transition: none;
	}
}
