/* CM B2B - Front */

.cm-b2b-form {
	max-width: 720px;
}

.cm-b2b-form label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
}

.cm-b2b-form input[type="text"],
.cm-b2b-form input[type="email"],
.cm-b2b-form input[type="tel"],
.cm-b2b-form input[type="url"],
.cm-b2b-form input[type="number"],
.cm-b2b-form select,
.cm-b2b-form textarea {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	margin-bottom: 14px;
	background: #fff;
	box-sizing: border-box;
}

.cm-b2b-form .cm-b2b-row {
	display: flex;
	gap: 16px;
}

.cm-b2b-form .cm-b2b-col {
	flex: 1;
	min-width: 0;
}

.cm-b2b-form .cm-b2b-col-small {
	flex: 0 0 35%;
}

.cm-b2b-form .cm-b2b-address {
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 12px 16px 0;
	margin: 4px 0 14px;
}

.cm-b2b-form .cm-b2b-address legend {
	font-weight: 700;
	padding: 0 8px;
}

.cm-b2b-form .cm-b2b-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-weight: 400;
}

.cm-b2b-form .cm-b2b-checkbox input {
	margin-top: 4px;
	width: auto;
}

.cm-b2b-form .cm-b2b-gdpr {
	margin: 6px 0 18px;
}

.cm-b2b-form .cm-b2b-submit {
	background: #a11c1c;
	color: #fff;
	border: none;
	padding: 13px 26px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
}

.cm-b2b-form .cm-b2b-submit:hover {
	background: #7f1616;
}

/* Precio bloqueado */
.cm-price-locked {
	color: #a11c1c;
	font-weight: 600;
	font-size: 0.92em;
}

a.cm-price-cta,
.cm-price-locked + .cm-price-cta {
	color: #a11c1c;
	font-weight: 600;
	text-decoration: underline;
}

/* Botón CTA en listados */
a.cm-b2b-cta.button {
	background: #a11c1c;
	border-color: #a11c1c;
	color: #fff !important;
}

a.cm-b2b-cta.button:hover {
	background: #7f1616;
	border-color: #7f1616;
}

/* Alertas */
.cm-b2b-alert {
	padding: 14px 18px;
	border-radius: 4px;
	margin: 16px 0;
}

.cm-b2b-alert.cm-b2b-success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.cm-b2b-alert.cm-b2b-error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.cm-b2b-alert.cm-b2b-info {
	background: #d1ecf1;
	color: #0c5460;
	border: 1px solid #bee5eb;
}

.cm-b2b-alert ul {
	margin: 4px 0 0 18px;
}

/* Zona privada */
.cm-b2b-account .cm-b2b-summary {
	background: #f7f7f7;
	border: 1px solid #e3e3e3;
	border-radius: 6px;
	padding: 14px 18px;
	margin-bottom: 24px;
}

.cm-b2b-account .cm-b2b-summary h3 {
	margin-top: 0;
}

.cm-b2b-summary-list {
	margin: 10px 0 0;
	padding-left: 18px;
}

/* Badges */
.cm-badge {
	display: inline-block;
	padding: 3px 12px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	margin-right: 6px;
}

.cm-badge-mayorista {
	background: #1d3a2a;
	color: #fff;
}

.cm-badge-hosteleria {
	background: #7a4a00;
	color: #fff;
}

.cm-badge-retail {
	background: #9c9c9c;
	color: #fff;
}

.cm-badge-demo {
	background: #bbb;
	color: #333;
}

.cm-badge-status-approved {
	background: #1d8a4e;
	color: #fff;
}

.cm-badge-status-pending {
	background: #e6a800;
	color: #fff;
}

.cm-badge-status-rejected {
	background: #a11c1c;
	color: #fff;
}

.cm-badge-status-demo {
	background: #bbb;
	color: #333;
}

/* Enlace bajo registro/login de WooCommerce */
.cm-b2b-register-link {
	margin-top: 12px;
	font-size: 0.95em;
}

@media (max-width: 640px) {
	.cm-b2b-form .cm-b2b-row {
		flex-direction: column;
		gap: 0;
	}
	.cm-b2b-form .cm-b2b-col-small {
		flex: 1;
	}
}
