.yoopi-b2b-register {
	max-width: 720px;
	margin: 0 auto;
}

.yoopi-b2b-register p {
	margin: 0;
}

.yoopi-b2b-register__message {
	margin: 0 0 20px;
	padding: 14px 16px;
	border-radius: 8px;
	border: 1px solid transparent;
	font-size: 15px;
	line-height: 1.5;
}

.yoopi-b2b-register__message p + p {
	margin-top: 8px;
}

.yoopi-b2b-register__message a,
.yoopi-b2b-register__login a,
.yoopi-b2b-login-gate__lost {
	color: var(--yoopi-b2b-primary, #1a6635);
	font-weight: 600;
}

.yoopi-b2b-register__message--success {
	background: #edf7ed;
	border-color: #b7e0b7;
	color: #1e4620;
}

.yoopi-b2b-register__message--error {
	background: #fcebea;
	border-color: #f0b4b0;
	color: #7a1c16;
}

.yoopi-b2b-register .yoopi-b2b-register__notice {
	margin: 0;
	padding: 12px 14px;
	background: #f5f5f5;
	border-radius: 8px;
	color: #555;
}

.yoopi-b2b-register .yoopi-b2b-register__login {
	margin: 0 0 20px;
	font-size: 15px;
	color: #646970;
}

.yoopi-b2b-register__form {
	margin: 0;
}

.yoopi-b2b-register__honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.yoopi-b2b-register__group {
	margin: 0 0 20px;
	padding: 18px 20px 20px;
	border: 1px solid #e2e4e7;
	border-radius: 10px;
	background: #fff;
}

.yoopi-b2b-register__legend {
	padding: 0 6px;
	font-size: 15px;
	font-weight: 700;
	color: #1d2327;
}

.yoopi-b2b-register__fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 20px;
	margin-top: 4px;
}

.yoopi-b2b-register__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.yoopi-b2b-register__field--text,
.yoopi-b2b-register__field--email,
.yoopi-b2b-register__field--consent {
	grid-column: 1 / -1;
}

.yoopi-b2b-register__label {
	font-weight: 600;
	font-size: 14px;
	color: #1d2327;
}

.yoopi-b2b-register__req {
	color: #b3261e;
}

.yoopi-b2b-register .yoopi-b2b-register__field input[type="text"],
.yoopi-b2b-register .yoopi-b2b-register__field input[type="email"],
.yoopi-b2b-register .yoopi-b2b-register__field input[type="tel"],
.yoopi-b2b-register .yoopi-b2b-register__field input[type="password"] {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	font-size: 15px;
	line-height: 1.4;
	color: #1d2327;
	background: #fff;
	border: 1px solid #8c8f94;
	border-radius: 6px;
	margin: 0;
}

.yoopi-b2b-register .yoopi-b2b-register__field input:focus {
	border-color: var(--yoopi-b2b-primary, #1a6635);
	outline: 2px solid transparent;
	box-shadow: 0 0 0 1px var(--yoopi-b2b-primary, #1a6635);
}

.yoopi-b2b-register__field.has-error input {
	border-color: #b3261e !important;
}

.yoopi-b2b-register__error {
	font-size: 13px;
	color: #b3261e;
}

.yoopi-b2b-register__consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	line-height: 1.5;
	cursor: pointer;
}

.yoopi-b2b-register__consent input[type="checkbox"] {
	margin-top: 3px;
	flex: 0 0 auto;
	accent-color: var(--yoopi-b2b-primary, #1a6635);
}

.yoopi-b2b-register__consent a {
	white-space: nowrap;
}

.yoopi-b2b-register__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
}

.yoopi-b2b-register .yoopi-b2b-register__submit {
	display: inline-block;
	padding: 12px 26px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
	background: var(--yoopi-b2b-primary, #1a6635);
	border: 1px solid var(--yoopi-b2b-primary, #1a6635);
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.yoopi-b2b-register .yoopi-b2b-register__submit:hover,
.yoopi-b2b-register .yoopi-b2b-register__submit:focus {
	background: var(--yoopi-b2b-primary-dark, #14502a);
	border-color: var(--yoopi-b2b-primary-dark, #14502a);
	color: #fff;
}

.yoopi-b2b-register__hint {
	font-size: 13px;
	color: #646970;
}

/* Login gate (panel page, logged-out visitors) — same cards as the form groups. */

.yoopi-b2b-login-gate {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
	max-width: 480px;
}

.yoopi-b2b-login-gate--split {
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	max-width: 880px;
}

.yoopi-b2b-login-gate__card {
	padding: 24px;
	border: 1px solid #e2e4e7;
	border-radius: 10px;
	background: #fff;
}

.yoopi-b2b-login-gate .yoopi-b2b-login-gate__title,
.yoopi-b2b-login-gate .yoopi-b2b-login-gate__cta-title {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: #1d2327;
}

.yoopi-b2b-login-gate .yoopi-b2b-login-gate__intro {
	margin: 0 0 20px;
	font-size: 15px;
	color: #646970;
}

.yoopi-b2b-login-gate__notices:empty {
	display: none;
}

.yoopi-b2b-login-gate__notices .woocommerce-error,
.yoopi-b2b-login-gate__notices .woocommerce-message,
.yoopi-b2b-login-gate__notices .woocommerce-info {
	margin: 0 0 16px;
}

.yoopi-b2b-login-gate__form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.yoopi-b2b-login-gate__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
}

.yoopi-b2b-login-gate__lost {
	font-size: 14px;
}

.yoopi-b2b-register .yoopi-b2b-login-gate__submit {
	width: 100%;
	text-align: center;
}

.yoopi-b2b-login-gate .yoopi-b2b-login-gate__cta {
	display: flex;
	flex-direction: column;
	background: var(--yoopi-b2b-soft, #e9f3ed);
	border-color: transparent;
}

.yoopi-b2b-login-gate .yoopi-b2b-login-gate__cta p {
	margin: 0 0 16px;
	font-size: 15px;
	color: #1d2327;
}

.yoopi-b2b-login-gate .yoopi-b2b-login-gate__perks {
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.yoopi-b2b-login-gate__perks li {
	position: relative;
	margin: 0 0 8px;
	padding-left: 26px;
	font-size: 14px;
	line-height: 1.5;
	color: #1d2327;
}

.yoopi-b2b-login-gate__perks li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 3px;
	width: 6px;
	height: 11px;
	border: solid var(--yoopi-b2b-primary, #1a6635);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.yoopi-b2b-login-gate .yoopi-b2b-login-gate__register-btn {
	display: block;
	margin-top: auto;
	padding: 12px 26px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	color: var(--yoopi-b2b-primary, #1a6635);
	background: #fff;
	border: 1px solid var(--yoopi-b2b-primary, #1a6635);
	border-radius: 6px;
	transition: background 0.15s ease, color 0.15s ease;
}

.yoopi-b2b-login-gate .yoopi-b2b-login-gate__register-btn:hover,
.yoopi-b2b-login-gate .yoopi-b2b-login-gate__register-btn:focus {
	color: #fff;
	background: var(--yoopi-b2b-primary, #1a6635);
}

@media (max-width: 760px) {
	.yoopi-b2b-login-gate--split {
		grid-template-columns: minmax(0, 1fr);
		max-width: 480px;
	}

	.yoopi-b2b-login-gate__card {
		padding: 20px;
	}
}

@media (max-width: 600px) {
	.yoopi-b2b-register__fields {
		grid-template-columns: minmax(0, 1fr);
	}

	.yoopi-b2b-register__group {
		padding: 16px;
	}

	.yoopi-b2b-register__actions {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}
}
