.ma-wc-popup {
	position: fixed;
	inset: 0;
	/* Au-dessus du bandeau cookie Merchant */
	z-index: 1000001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.ma-wc-popup[hidden] {
	display: none !important;
}

.ma-wc-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(28, 25, 23, 0.45);
	backdrop-filter: blur(2px);
}

.ma-wc-popup__dialog {
	position: relative;
	width: min(420px, 100%);
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 18px 50px rgba(28, 25, 23, 0.22);
	padding: 28px 26px 22px;
	font-family: "Segoe UI", system-ui, sans-serif;
	color: #1c1917;
}

.ma-wc-popup__close {
	position: absolute;
	top: 10px;
	right: 12px;
	border: 0;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #78716c;
}

.ma-wc-popup__brand {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.35rem;
	text-align: center;
	margin-bottom: 10px;
	letter-spacing: 0.01em;
}

.ma-wc-popup__title {
	margin: 0 0 8px;
	font-size: 1.45rem;
	line-height: 1.25;
	text-align: center;
	font-weight: 700;
}

.ma-wc-popup__subtitle {
	margin: 0 0 18px;
	text-align: center;
	color: #57534e;
	font-size: 0.95rem;
	line-height: 1.45;
}

.ma-wc-popup__form {
	display: grid;
	gap: 10px;
}

.ma-wc-field input {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #d6d3d1;
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 1rem;
	background: #fff;
}

.ma-wc-field input:focus {
	outline: 2px solid rgba(224, 122, 95, 0.35);
	border-color: #e07a5f;
}

.ma-wc-hp {
	position: absolute !important;
	left: -9999px !important;
	opacity: 0 !important;
	height: 0 !important;
	width: 0 !important;
}

.ma-wc-popup__submit {
	width: 100%;
	border: 0;
	border-radius: 10px;
	padding: 13px 16px;
	background: #e07a5f;
	color: #fff;
	font-size: 1.05rem;
	font-weight: 600;
	cursor: pointer;
	margin-top: 4px;
}

.ma-wc-popup__submit:hover {
	background: #d4684c;
}

.ma-wc-popup__submit:disabled {
	opacity: 0.7;
	cursor: wait;
}

.ma-wc-popup__error {
	color: #b91c1c;
	font-size: 0.9rem;
	margin: 0;
}

.ma-wc-popup__consent,
.ma-wc-popup__login {
	margin: 14px 0 0;
	font-size: 0.78rem;
	line-height: 1.4;
	color: #78716c;
	text-align: center;
}

.ma-wc-popup__login a {
	color: #57534e;
}

.ma-wc-popup__success-title {
	margin: 0 0 6px;
	text-align: center;
	font-size: 1.25rem;
}

.ma-wc-popup__success-hint {
	margin: 0 0 14px;
	text-align: center;
	color: #57534e;
	font-size: 0.92rem;
}

.ma-wc-popup__code-wrap {
	display: flex;
	gap: 8px;
	align-items: center;
	justify-content: center;
}

.ma-wc-popup__code {
	display: inline-block;
	padding: 10px 14px;
	background: #f5f5f4;
	border-radius: 8px;
	font-size: 1.05rem;
	letter-spacing: 0.04em;
}

.ma-wc-popup__copy {
	border: 1px solid #d6d3d1;
	background: #fff;
	border-radius: 8px;
	padding: 10px 12px;
	cursor: pointer;
}

@media (max-width: 480px) {
	.ma-wc-popup__dialog {
		padding: 24px 18px 18px;
	}
	.ma-wc-popup__title {
		font-size: 1.25rem;
	}
}
