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

.mp-popup {
	--mp-popup-bottom-offset: 4rem;
	--mp-popup-accent: #F0982E;
	--mp-popup-text: #4a2e1f;

	position: fixed;
	left: 0;
	right: 0;
	bottom: var(--mp-popup-bottom-offset);
	z-index: 9999;
	display: flex;
	justify-content: center;
	pointer-events: none;
	transform: translateY(16px);
	opacity: 0;
	transition: transform 0.35s ease, opacity 0.35s ease;
	will-change: transform, opacity;
}

.mp-popup[hidden] {
	display: none;
}

.mp-popup.is-visible {
	pointer-events: auto;
	transform: translateY(0);
	opacity: 1;
}

.mp-popup__card {
	position: relative;
	width: calc(100vw - 2rem);
	max-width: calc(100vw - 2rem);
	margin: 0;
	padding: 1.5rem 1.5rem 1.25rem;
	border-radius: 14px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
	background-color: #fdfaf6;
	background-image: repeating-linear-gradient(
		45deg,
		#faf5ef 0,
		#faf5ef 6px,
		#fdfaf6 6px,
		#fdfaf6 14px
	);
	font-family: inherit;
	color: var(--mp-popup-text);
}

.mp-popup__close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	width: 28px;
	height: 28px;
	border: none;
	border-radius: 50%;
	background: var(--mp-popup-accent);
	color: #fff;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mp-popup__title {
	margin: 0 1.75rem 0.5rem 0;
	font-size: 1.15rem;
	line-height: 1.1;
	color: var(--mp-popup-text);
	font-weight: 700;
}

.mp-popup__body {
	margin: 0 0 0.75rem;
	font-size: 0.92rem;
	line-height: 1.4;
}

.mp-popup__social-proof {
	margin: 0 0 1rem;
	font-size: 0.82rem;
	font-style: italic;
	opacity: 0.85;
}

.mp-popup__reveal-btn {
	display: inline-block;
	width: 100%;
	padding: 0.7rem 1rem;
	border: none;
	border-radius: 8px;
	background: var(--mp-popup-accent);
	color: #fff;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
}

.mp-popup__form[hidden] {
	display: none;
}

/* Le formulaire MailPoet embarque une largeur fixe (560px) dans ses
   reglages ; on l'ecrase pour qu'il tienne dans la carte a toutes les
   tailles d'ecran. */
.mp-popup .mailpoet_form {
	width: 100% !important;
	max-width: 100%;
}

.mp-popup__form input,
.mp-popup__form button,
.mp-popup__form select,
.mp-popup__form textarea {
	width: 100%;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.mp-popup__card {
		width: 100%;
		max-width: 380px;
	}
}
