/**
 * CLECOD — Black Friday : « Me prévenir à l'ouverture » (bouton et fenêtre de dialogue).
 * Charte du site : Archivo, rouge #E20100, coins carrés, sans ombre.
 */

/* Les boutons du thème imposent display: inline-flex ; l'attribut hidden doit l'emporter. */
.cbf-cta[hidden],
.cbf-notify-btn[hidden],
.cbf-notify [hidden] {
	display: none !important;
}

/* Bouton <button> : les styles du thème ne visent que les liens, il porte donc les siens (bouton rouge du site). */
body button.cbf-notify-btn,
body .cbf-notify button.cbf-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-sizing: border-box;
	min-height: 52px;
	max-width: 100%;
	margin: 0;
	padding: 14px 32px;
	border: 2px solid #e20100;
	border-radius: 0;
	background: #e20100;
	box-shadow: none;
	color: #fff;
	font-family: Archivo, Arial, Helvetica, sans-serif;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body button.cbf-notify-btn:hover,
body .cbf-notify button.cbf-cta:hover {
	border-color: #0b0b0b;
	background: #0b0b0b;
	color: #fff;
}

/* Sur fond sombre, le survol passe au blanc (le noir disparaîtrait). */
body .cbf-sec--dark button.cbf-notify-btn:hover,
body .cbf-hero button.cbf-notify-btn:hover {
	border-color: #fff;
	background: #fff;
	color: #0b0b0b;
}

body button.cbf-notify-btn:focus-visible,
body .cbf-notify button.cbf-cta:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

body button.cbf-notify-btn .qodef-m-text,
body .cbf-notify button.cbf-cta .qodef-m-text {
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
}

/* Cartes et parcours : pleine largeur, comme le bouton d'achat qu'il remplace. */
.cb2-offer__cta button.cbf-notify-btn,
.cbf-wz-closed button.cbf-notify-btn {
	width: 100%;
}

.cbf-notify-btn__icon {
	flex: none;
}

.cbf-dice__notify {
	display: flex;
	justify-content: center;
	margin: 28px 0 0;
}

.cbf-wz-closed .cbf-notify-btn {
	margin-top: 8px;
}

/* ------------------------------------------------------------------
 * Fenêtre
 * ---------------------------------------------------------------- */

html.cbf-notify-lock {
	overflow: hidden;
}

.cbf-notify {
	width: min(480px, calc(100% - 32px));
	max-width: none;
	max-height: calc(100dvh - 32px);
	margin: auto;
	padding: 0;
	overflow: auto;
	border: 0;
	border-top: 4px solid #e20100;
	border-radius: 0;
	background: #fff;
	color: #0b0b0b;
	box-shadow: none;
	font-family: Archivo, Arial, Helvetica, sans-serif;
	overscroll-behavior: contain;
}

.cbf-notify::backdrop {
	background: rgba(0, 0, 0, 0.72);
}

.cbf-notify__form,
.cbf-notify__done {
	position: relative;
	padding: 40px 32px 28px;
}

.cbf-notify__done {
	text-align: center;
	outline: none;
}

.cbf-notify__close {
	position: absolute;
	z-index: 1;
	top: 8px;
	right: 8px;
	display: grid;
	width: 44px;
	height: 44px;
	padding: 0;
	place-items: center;
	border: 0;
	background: transparent;
	color: #0b0b0b;
	cursor: pointer;
}

.cbf-notify__close:hover,
.cbf-notify__close:focus-visible {
	color: #e20100;
}

.cbf-notify .cbf-notify__eyebrow {
	margin: 0 0 10px;
	color: #e20100;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.3;
	text-transform: uppercase;
}

.cbf-notify .cbf-notify__title {
	margin: 0 0 12px;
	color: #0b0b0b;
	font-family: Archivo, Arial, Helvetica, sans-serif;
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.05;
	text-transform: uppercase;
}

.cbf-notify .cbf-notify__lead {
	margin: 0 0 20px;
	color: #4a4a4a;
	font-size: 16px;
	line-height: 1.55;
}

.cbf-notify .cbf-notify__offer {
	margin: 0 0 20px;
	padding: 12px 14px;
	border-left: 4px solid #e20100;
	background: #f5f5f5;
	color: #0b0b0b;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

.cbf-notify .cbf-notify__offer.is-off {
	border-left-color: #8a8a8a;
	color: #a00000;
}

.cbf-notify__field {
	margin: 0 0 18px;
}

.cbf-notify .cbf-notify__field label,
.cbf-notify .cbf-notify__channels legend {
	display: block;
	margin: 0 0 8px;
	padding: 0;
	color: #0b0b0b;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.3;
	text-transform: uppercase;
}

.cbf-notify .cbf-notify__opt {
	color: #6b6b6b;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
}

.cbf-notify .cbf-notify__field input,
.cbf-notify .cbf-notify__field input:focus {
	box-sizing: border-box;
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid #cfcfcf;
	border-radius: 0;
	background: #fff;
	color: #0b0b0b;
	font-family: inherit;
	font-size: 17px;
	line-height: 52px;
	box-shadow: none;
}

.cbf-notify .cbf-notify__field input:focus {
	border-color: #0b0b0b;
	outline: 2px solid #e20100;
	outline-offset: 0;
}

.cbf-notify .cbf-notify__field input[aria-invalid="true"] {
	border-color: #c00000;
}

.cbf-notify .cbf-notify__help {
	margin: 6px 0 0;
	color: #6b6b6b;
	font-size: 13px;
	line-height: 1.4;
}

.cbf-notify__channels {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	margin: 0 0 18px;
	padding: 0;
	border: 0;
}

.cbf-notify__channels legend {
	grid-column: 1 / -1;
}

.cbf-notify__choice {
	position: relative;
	display: block;
	margin: 0;
	cursor: pointer;
}

.cbf-notify__choice input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.cbf-notify__choice span {
	display: block;
	padding: 14px 10px;
	border: 1px solid #cfcfcf;
	background: #fff;
	color: #0b0b0b;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-align: center;
	text-transform: uppercase;
}

.cbf-notify__choice + .cbf-notify__choice span {
	border-left: 0;
}

.cbf-notify__choice input:checked + span {
	border-color: #0b0b0b;
	background: #0b0b0b;
	color: #fff;
}

.cbf-notify__choice input:focus-visible + span {
	outline: 2px solid #e20100;
	outline-offset: 2px;
}

.cbf-notify__trap {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.cbf-notify .cbf-notify__error {
	margin: 0 0 16px;
	padding: 10px 14px;
	background: #fdecec;
	color: #a00000;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
}

.cbf-notify .cbf-notify__submit,
.cbf-notify__done .cbf-cta {
	justify-content: center;
	width: 100%;
	cursor: pointer;
}

.cbf-notify .cbf-notify__submit.is-busy {
	opacity: 0.6;
	cursor: progress;
}

.cbf-notify .cbf-notify__legal {
	margin: 14px 0 0;
	color: #6b6b6b;
	font-size: 12.5px;
	line-height: 1.5;
}

.cbf-notify .cbf-notify__legal a {
	color: #0b0b0b;
	text-decoration: underline;
}

.cbf-notify__check {
	display: inline-grid;
	width: 56px;
	height: 56px;
	margin: 0 0 16px;
	place-items: center;
	background: #e20100;
	color: #fff;
}

@media (max-width: 600px) {
	.cbf-notify {
		width: calc(100% - 16px);
		max-height: calc(100dvh - 16px);
	}

	.cbf-notify__form,
	.cbf-notify__done {
		padding: 36px 20px 22px;
	}

	.cbf-notify .cbf-notify__title {
		font-size: 26px;
	}
}

@media (max-width: 767px) {
	.cbf-actions button.cbf-notify-btn,
	.cbf-dice__notify button.cbf-notify-btn {
		width: 100%;
	}
}
