/**
 * Shop B2B — layout ospite (banner + form).
 */

.zotta-b2b-shop-guest {
	max-width: 800px;
	margin: 0 auto 40px;
	padding: 0 15px;
	width: 100%;
	box-sizing: border-box;
}

.zotta-b2b-shop-guest .wc-b2b-registration-form {
	margin-top: 0;
}

/* Banner allineato al form sotto */
.zotta-b2b-access-banner {
	width: 100%;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid #ddd;
	border-left: 4px solid #ffc107;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	padding: 28px 30px;
	margin: 0 auto 24px;
}

.zotta-b2b-access-banner__content {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 24px;
}

.zotta-b2b-access-banner__icon {
	flex-shrink: 0;
	font-size: 28px;
	line-height: 1;
	margin-top: 2px;
}

.zotta-b2b-access-banner__title {
	margin: 0 0 10px;
	color: #856404;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}

.zotta-b2b-access-banner__desc {
	margin: 0;
	color: #6b5a2e;
	font-size: 15px;
	line-height: 1.6;
}

.zotta-b2b-access-banner__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.zotta-b2b-access-banner__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 24px !important;
	font-size: 15px;
	font-weight: 600;
	border-radius: 999px;
	text-decoration: none !important;
	cursor: pointer;
	white-space: nowrap;
	box-sizing: border-box;
}

.zotta-b2b-access-banner__btn--primary {
	background: #111 !important;
	border: 1px solid #111 !important;
	color: #fff !important;
}

.zotta-b2b-access-banner__btn--primary:hover,
.zotta-b2b-access-banner__btn--primary:focus {
	opacity: 0.9;
	color: #fff !important;
	background: #111 !important;
}

.zotta-b2b-access-banner__btn--secondary,
.zotta-b2b-access-banner__btn--secondary:hover,
.zotta-b2b-access-banner__btn--secondary:focus,
.zotta-b2b-access-banner__btn--secondary:active {
	background: #fff !important;
	color: #111 !important;
	border: 1px solid #111 !important;
	box-shadow: none !important;
}

.zotta-b2b-access-banner__btn--secondary:hover,
.zotta-b2b-access-banner__btn--secondary:focus {
	background: #f3f3f3 !important;
	color: #111 !important;
}

/* Pulsante invio registrazione B2B — centrato nel form */
body.zotta-b2b-shop-guest-page .wc-b2b-registration-form .form-submit-row,
.zotta-b2b-shop-guest .wc-b2b-registration-form .form-submit-row {
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	width: 100% !important;
	text-align: center !important;
	margin-top: 28px !important;
	margin-bottom: 0 !important;
	padding: 0 !important;
}

body.zotta-b2b-shop-guest-page .wc-b2b-registration-form .form-submit-row .button,
body.zotta-b2b-shop-guest-page .wc-b2b-registration-form .form-submit-row .button-primary,
.zotta-b2b-shop-guest .wc-b2b-registration-form .form-submit-row .button-primary {
	display: inline-block !important;
	width: auto !important;
	min-width: 280px;
	max-width: 100%;
	padding: 14px 32px !important;
	margin: 0 !important;
	float: none !important;
	text-align: center !important;
}

/* Link login sotto al form */
.zotta-b2b-login-link-row {
	text-align: center;
	margin-top: 24px !important;
	padding-top: 20px;
	border-top: 1px solid #eee;
}

.zotta-b2b-login-link-text {
	color: #555;
	margin-right: 6px;
}

.zotta-b2b-login-link-button {
	background: none;
	border: none;
	padding: 0;
	color: #0073aa;
	font-weight: 700;
	font-size: inherit;
	cursor: pointer;
	text-decoration: underline;
}

.zotta-b2b-login-link-button:hover {
	color: #005177;
}

/* Modal login: solo accesso, niente registrazione B2C */
body.zotta-b2b-shop-guest-page #login-modal .woocommerce-form-row--create,
body.zotta-b2b-shop-guest-page #login-modal .woocommerce-customer-register,
body.zotta-b2b-shop-guest-page #login-modal .gz-button-register-mode {
	display: none !important;
}

body.zotta-b2b-shop-guest-page #login-modal .woocommerce-customer-login {
	display: block !important;
}

body.zotta-b2b-shop-guest-page #login-modal .woocommerce-customer-login__title,
body.zotta-b2b-shop-guest-page #login-modal .woocommerce-customer-login__title-desc {
	text-align: center;
}

@media (max-width: 640px) {
	.zotta-b2b-access-banner {
		padding: 22px 20px;
	}

	.zotta-b2b-access-banner__content {
		flex-direction: column;
		gap: 10px;
		margin-bottom: 20px;
	}

	.zotta-b2b-access-banner__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.zotta-b2b-access-banner__btn {
		width: 100%;
	}

	body.zotta-b2b-shop-guest-page .wc-b2b-registration-form .form-submit-row .button-primary,
	.zotta-b2b-shop-guest .wc-b2b-registration-form .form-submit-row .button-primary {
		width: 100% !important;
		min-width: 0;
	}
}
