/* Sign-up, login, submit-article ([sae_register_form], [sae_login_form], [user_post_form_styled]) and the paywall */
.sae-form {
	max-width: 600px;
	margin: 20px auto;
	background: #fff;
	padding: 30px;
	border: 1px solid var(--sae-border, #e5e5e5);
	border-radius: var(--sae-radius, 4px);
	box-shadow: none;
	font-family: var(--sae-font, inherit);
	color: var(--sae-text, #333);
	box-sizing: border-box;
}
.sae-form h3 {
	text-align: center;
	margin: 0 0 25px;
	color: var(--sae-text, #333);
	font-family: inherit;
	font-weight: inherit;
}
.sae-form p {
	margin: 0 0 20px;
	padding: 0;
}
.sae-form label {
	font-weight: bold;
	margin-bottom: 5px;
	display: block;
	color: var(--sae-text, #333);
}
.sae-form input[type="text"],
.sae-form input[type="email"],
.sae-form input[type="password"],
.sae-form input[type="number"],
.sae-form input[type="file"],
.sae-form select {
	width: 100%;
	padding: 10px;
	border: 1px solid var(--sae-border, #e5e5e5);
	border-radius: var(--sae-radius, 4px);
	background: #fff;
	box-sizing: border-box;
	font-family: var(--sae-font, inherit);
	font-size: 14px;
	color: var(--sae-text, #333);
}
/* Pressroom sets every input to grey, no border, 15px padding. Checkboxes and radios stay normal. */
.sae-form input[type="checkbox"],
.sae-form input[type="radio"] {
	width: auto;
	padding: 0;
	border: 0;
	background: transparent;
	border-radius: 0;
	font-size: inherit;
}
.sae-form input:focus-visible {
	outline: 2px solid var(--sae-brand, #e88b4b);
	outline-offset: 1px;
	border-color: var(--sae-brand, #e88b4b);
}
.sae-form .sae-hint {
	display: block;
	margin-top: 4px;
	color: var(--sae-muted, #666);
	font-size: 13px;
}
.sae-form-row {
	display: flex;
	gap: 16px;
}
.sae-form-row > p {
	flex: 1 1 0;
	min-width: 0;
}

/* "I want to:" – two selectable cards */
.sae-account-type {
	border: 0;
	margin: 0 0 20px;
	padding: 0;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}
.sae-account-type legend {
	font-weight: bold;
	color: var(--sae-text, #333);
	margin-bottom: 8px;
	padding: 0;
}
.sae-form .sae-choice {
	flex: 1 1 200px;
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 0;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid var(--sae-border, #e5e5e5);
	border-radius: var(--sae-radius, 4px);
	font-weight: normal;
	cursor: pointer;
}
.sae-choice input {
	margin: 3px 0 0;
	accent-color: var(--sae-brand, #e88b4b);
}
.sae-choice strong {
	display: block;
	color: var(--sae-text, #333);
}
.sae-choice small {
	display: block;
	color: var(--sae-muted, #666);
	font-size: 13px;
	margin-top: 2px;
}
.sae-form .sae-choice:has(input:checked),
.sae-form .sae-choice:has(input:focus-visible) {
	border-color: var(--sae-brand, #e88b4b);
	background: var(--sae-brand-soft, rgba(232, 139, 75, 0.1));
	box-shadow: none;
	outline: none;
}

.sae-form .sae-check {
	font-weight: normal;
	margin: 0 0 20px;
}
.sae-check input {
	margin-right: 8px;
	accent-color: var(--sae-brand, #e88b4b);
}
.sae-form a,
.sae-form a:link,
.sae-form a:visited,
.sae-form a:hover,
.sae-form a:focus,
.sae-form a:active {
	color: var(--sae-brand, #e88b4b);
}

.sae-form button.sae-button:not(:hover):not(:active):not(.has-background),
.sae-form button.sae-button:hover,
.sae-form button.sae-button:focus,
.sae-form button.sae-button:active,
.sae-form input[type="submit"]:not(:hover):not(:active):not(.has-background),
.sae-form input[type="submit"]:hover,
.sae-form input[type="submit"]:focus,
.sae-form input[type="submit"]:active,
.sae-login-form #wp-submit,
.sae-login-form #wp-submit:hover,
.sae-login-form #wp-submit:focus,
.sae-login-form #wp-submit:active,
.sae-login-form input[type="submit"]:not(:hover):not(:active):not(.has-background),
.sae-login-form input[type="submit"]:hover,
.sae-login-form input[type="submit"]:focus,
.sae-login-form input[type="submit"]:active {
	background-color: var(--sae-brand, #e88b4b);
	color: #fff;
	border: none;
	padding: 12px 20px;
	font-family: var(--sae-font, inherit);
	font-size: 16px;
	border-radius: var(--sae-radius, 4px);
	cursor: pointer;
	width: 100%;
}
.sae-form button.sae-button:hover,
.sae-form button.sae-button:focus-visible,
.sae-form input[type="submit"]:hover,
.sae-form input[type="submit"]:focus-visible,
.sae-login-form #wp-submit:hover,
.sae-login-form #wp-submit:focus-visible,
.sae-login-form input[type="submit"]:hover,
.sae-login-form input[type="submit"]:focus-visible {
	background-color: var(--sae-brand-dark, #cc7a42);
	color: #fff;
}
.sae-register-error {
	max-width: 600px;
	margin: 20px auto;
	text-align: center;
	color: #b32d2e;
	font-weight: bold;
}
.sae-register-error + p {
	text-align: center;
}
.sae-register-error + p a,
.sae-register-error + p a:link,
.sae-register-error + p a:visited,
.sae-register-error + p a:hover {
	color: var(--sae-brand, #e88b4b);
}
.sae-form-error,
.form-error {
	text-align: center;
	color: #b32d2e;
	font-weight: bold;
}
.form-success {
	text-align: center;
	color: #1e6b1e;
	font-weight: bold;
}

/* [sae_login_form]: wp_login_form() markup inside the card */
.sae-login-form .login-remember label {
	font-weight: normal;
}
.sae-login-form .login-remember input {
	margin-right: 8px;
	accent-color: var(--sae-brand, #e88b4b);
}
.sae-login-form .sae-forgot {
	margin-top: -6px;
}
.sae-divider {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--sae-muted, #666);
	font-size: 13px;
}
.sae-divider::before,
.sae-divider::after {
	content: "";
	flex: 1;
	border-top: 1px solid var(--sae-border, #e5e5e5);
}

/* [user_post_form_styled]: fields aren't wrapped in <p>, so space them directly */
.user-post-form input[type="text"],
.user-post-form input[type="number"],
.user-post-form input[type="file"],
.user-post-form select {
	margin-bottom: 20px;
}
.sae-form.user-post-form input[type="submit"],
.sae-form.user-post-form input[type="submit"]:hover,
.sae-form.user-post-form input[type="submit"]:focus,
.sae-form.user-post-form input[type="submit"]:active {
	width: auto;
}
.user-post-form input[type="checkbox"] {
	margin-right: 8px;
	accent-color: var(--sae-brand, #e88b4b);
}
.user-post-form label:has(input[type="checkbox"]) {
	font-weight: normal;
	margin-bottom: 20px;
}
.sae-form-alt {
	text-align: center;
	margin: 16px 0 0;
}
.sae-form-note {
	text-align: center;
}

/* Pay For Post replaces the article body with this wrapper plus a [products] button */
.wc_ppp_paywall {
	margin: 20px 0;
	padding: 24px;
	background: #fff;
	border: 1px solid var(--sae-border, #e5e5e5);
	border-radius: var(--sae-radius, 4px);
	box-shadow: none;
	font-family: var(--sae-font, inherit);
	color: var(--sae-text, #333);
}
.wc_ppp_paywall h1,
.wc_ppp_paywall h2,
.wc_ppp_paywall h3 {
	font-family: inherit;
	font-weight: inherit;
	color: var(--sae-text, #333);
}
.woocommerce .wc_ppp_paywall a.button:not(:hover):not(:active):not(.has-background),
.woocommerce .wc_ppp_paywall a.button:hover,
.woocommerce .wc_ppp_paywall a.button:focus,
.woocommerce .wc_ppp_paywall a.button:active,
.woocommerce .wc_ppp_paywall a.button.alt,
.woocommerce .wc_ppp_paywall button.button:not(:hover):not(:active):not(.has-background),
.woocommerce .wc_ppp_paywall button.button:hover,
.woocommerce .wc_ppp_paywall input.button:not(:hover):not(:active):not(.has-background),
.woocommerce .wc_ppp_paywall input.button:hover {
	display: inline-block;
	width: auto;
	background: var(--sae-brand, #e88b4b);
	background-color: var(--sae-brand, #e88b4b);
	color: #fff;
	border: none;
	border-radius: var(--sae-radius, 4px);
	font-family: var(--sae-font, inherit);
	font-weight: inherit;
	padding: 12px 20px;
	text-decoration: none;
}
.woocommerce .wc_ppp_paywall a.button:hover,
.woocommerce .wc_ppp_paywall a.button.alt:hover,
.woocommerce .wc_ppp_paywall button.button:hover,
.woocommerce .wc_ppp_paywall input.button:hover {
	background: var(--sae-brand-dark, #cc7a42);
	background-color: var(--sae-brand-dark, #cc7a42);
	color: #fff;
	border: none;
}

@media (max-width: 480px) {
	.sae-form {
		padding: 20px;
	}
	.sae-form-row {
		display: block;
	}
}

/* P2-5d: always-visible checkboxes and radios, whatever the theme does (some themes set appearance:none
   and draw their own box with ::before; our reset above removes that border, so the control vanished). */
.sae-form input[type="checkbox"],
.sae-form input[type="radio"],
.sae-login-form input[type="checkbox"] {
	appearance: auto !important;
	-webkit-appearance: auto !important;
	-moz-appearance: auto !important;
	display: inline-block !important;
	position: static !important;
	opacity: 1 !important;
	visibility: visible !important;
	clip: auto !important;
	width: 16px !important;
	height: 16px !important;
	min-width: 16px;
	margin: 0 8px 0 0;
	padding: 0 !important;
	border: 0;
	background: none;
	box-shadow: none;
	flex: 0 0 16px;
	vertical-align: middle;
	accent-color: var(--sae-brand, #e88b4b);
	cursor: pointer;
}
.sae-form input[type="checkbox"]::before,
.sae-form input[type="checkbox"]::after,
.sae-form input[type="radio"]::before,
.sae-form input[type="radio"]::after,
.sae-login-form input[type="checkbox"]::before,
.sae-login-form input[type="checkbox"]::after {
	content: none !important;
	display: none !important;
}
.sae-form .sae-choice input[type="radio"] {
	margin: 3px 0 0;
}
.sae-form .sae-check,
.sae-login-form .login-remember label,
.user-post-form label:has(input[type="checkbox"]) {
	display: block;
	font-weight: normal;
	line-height: 1.5;
}

/* P2-5d: selects look like dropdowns (Submit Article: Category, Article Type) */
.sae-form select {
	appearance: auto !important;
	-webkit-appearance: menulist !important;
	-moz-appearance: menulist !important;
	background-image: none;
	height: 42px;
	min-height: 42px;
	padding: 0 8px 0 10px;
	line-height: 1.4;
	cursor: pointer;
}
