/**
 * PMPro checkout of the free level, shown to a visitor: the sign-up page
 * (feature 096). It takes the look of the login page: a 460 px column, one
 * box without shadow, Google and LinkedIn first, then « ou » and the e-mail
 * form, shown at once, then the `cta` button.
 *
 * Colours are brand tokens only (CreapulseTools\Brand, injected inline as CSS
 * variables next to this sheet); see brand/visual-identity.md, sections
 * Rôles, Boutons and Formulaires. Every selector starts with
 * `body.cpt-signup`, the class Pmpro_Checkout sets on this page only; inside
 * the form, `#pmpro_form` lifts them over PMPro's nested `.pmpro …` rules.
 * Nothing changes the order of the fields: the tab order stays the screen's.
 */

/* stylelint-disable selector-class-pattern, selector-id-pattern -- PMPro's and Nextend's own names. */

/* The column, page title included, as on /login/. */
body.cpt-signup .entry-content {
	max-width: 460px;
	margin: 0 auto;
}

/* One box: the form; PMPro's cards inside it lose theirs. */
body.cpt-signup .pmpro #pmpro_form {
	margin-top: 18px;
	padding: 28px;
	border: 1px solid var(--cp-rule);
	border-radius: 8px;
	background: transparent;
}

body.cpt-signup .pmpro #pmpro_form .pmpro_card {
	margin: 0;
	overflow: visible;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

body.cpt-signup .pmpro #pmpro_form .pmpro_card_title,
body.cpt-signup .pmpro #pmpro_form .pmpro_card_content,
body.cpt-signup .pmpro #pmpro_form .pmpro_card_actions {
	padding: 0;
	border: 0;
	background: transparent;
}

/* The offer, closed by a rule that stays when PMPro drops the social block. */
body.cpt-signup .pmpro #pmpro_form #pmpro_pricing_fields {
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--cp-rule);
}

body.cpt-signup .pmpro #pmpro_form #pmpro_pricing_fields .pmpro_card_title {
	margin-bottom: 6px;
	font-size: 18px;
}

body.cpt-signup .pmpro #pmpro_form #pmpro_pricing_fields .pmpro_level_name_text {
	margin: 0 0 10px;
	color: var(--cp-primary-fill);
	font-weight: 600;
}

/* A check mark: a graphic sign, with an empty text alternative. */
body.cpt-signup .pmpro #pmpro_form #pmpro_pricing_fields .pmpro_level_name_text::before {
	content: "\2713" / "";
	margin-right: 0.4em;
}

body.cpt-signup .pmpro #pmpro_form #pmpro_pricing_fields .pmpro_level_description_text {
	font-size: 15px;
	line-height: 1.6;
}

/* Google and LinkedIn: the block's heading stays for screen readers only,
   its sentence and its « create manually » link go. */
body.cpt-signup .pmpro #pmpro_form #pmpro_social_login .pmpro_form_legend {
	display: block;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

body.cpt-signup .pmpro #pmpro_form #pmpro_social_login .pmpro_form_fields-description,
body.cpt-signup .pmpro #pmpro_form #pmpro_card_actions-social_login {
	display: none;
}

body.cpt-signup .pmpro #pmpro_form #pmpro_social_login .pmpro_form_fields {
	gap: 0;
}

body.cpt-signup .nsl-container .nsl-container-buttons {
	display: grid;
	grid-template-columns: 1fr;
	width: 100%;
}

body.cpt-signup .nsl-container .nsl-container-buttons a {
	margin: 0 0 10px;
}

body.cpt-signup .nsl-container .nsl-button {
	justify-content: center;
	min-height: 44px;
	border-radius: 6px;
}

/* Enfold paints `b` in its link blue (`.main_color b`): « LinkedIn » vanished
   on the blue button. */
body.cpt-signup .nsl-container .nsl-button b {
	color: inherit;
}

/* The e-mail form, shown at once: overrides the add-on's
   `#pmpro_user_fields { display: none }`. */
body.cpt-signup .pmpro #pmpro_form #pmpro_user_fields {
	display: block;
}

/* « ou », as on /login/: only after the social block. Written here, the site
   being in French only. */
body.cpt-signup .pmpro #pmpro_form #pmpro_social_login ~ #pmpro_user_fields::before {
	content: "ou";
	display: block;
	margin: 4px 0 14px;
	color: var(--cp-ink-muted);
	font-size: 15px;
	text-align: center;
}

body.cpt-signup .pmpro #pmpro_form #pmpro_user_fields .pmpro_card_title {
	margin: 0 0 12px;
	font-size: 16px;
}

body.cpt-signup .pmpro #pmpro_form #pmpro_user_fields .pmpro_form_fields {
	gap: 16px;
}

/* The charter's ring on the fields, beside PMPro's own halo. */
body.cpt-signup .pmpro #pmpro_form #pmpro_user_fields input:focus-visible {
	outline: 2px solid var(--cp-primary-fill);
	outline-offset: 2px;
}

/* PMPro's « Vous avez déjà un compte ? », where PMPro prints it. */
body.cpt-signup .pmpro #pmpro_form #pmpro_user_fields .pmpro_card_actions {
	margin-top: 16px;
	font-size: 15px;
	text-align: center;
}

/* The `cta` button, full width. */
body.cpt-signup .pmpro #pmpro_form .pmpro_form_submit {
	flex-direction: column;
	align-items: stretch;
	margin-top: 20px;
}

body.cpt-signup .pmpro #pmpro_form #pmpro_btn-submit {
	width: 100%;
	border-color: var(--cp-accent-fill);
	border-radius: 6px;
	background-color: var(--cp-accent-fill);
	box-shadow: none;
	color: var(--cp-on-fill);
	font-weight: 600;
}

body.cpt-signup .pmpro #pmpro_form #pmpro_btn-submit:hover {
	border-color: var(--cp-accent-hover);
	background-color: var(--cp-accent-hover);
	color: var(--cp-on-fill);
}

body.cpt-signup .pmpro #pmpro_form #pmpro_btn-submit:focus-visible {
	outline: 2px solid var(--cp-accent-fill);
	outline-offset: 2px;
}

body.cpt-signup .pmpro #pmpro_form #pmpro_processing_message {
	text-align: center;
}

@media (max-width: 499px) {

	body.cpt-signup .pmpro #pmpro_form {
		padding: 20px 16px;
	}
}
