/* ── WC B2B Account — Registration Form ── */

:root {
	--wcb2b-blue: #1d4ed8;
	--wcb2b-blue-hover: #1e40af;
	--wcb2b-dark: #0a2540;
	--wcb2b-text: #1f2937;
	--wcb2b-text-2: #6b7280;
	--wcb2b-line: #e5e7eb;
	--wcb2b-bg-soft: #f6f7f9;
	--wcb2b-green: #16a34a;
	--wcb2b-red: #dc2626;
	--wcb2b-radius: 10px;
}

/* ── Type Switcher (pill toggle) ─────────────────────────────────── */

.wcb2b-type-switcher {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	padding: 4px;
	border: 1px solid var(--wcb2b-line);
	border-radius: 999px;
	background: var(--wcb2b-bg-soft);
	margin-bottom: 18px;
}

.wcb2b-type-option {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 16px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--wcb2b-text-2);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, box-shadow 0.2s;
	text-align: center;
}

.wcb2b-type-option input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.wcb2b-type-option.is-active {
	background: var(--wcb2b-blue);
	color: #fff;
	box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

/* ── B2B Panel ───────────────────────────────────────────────────── */

.wcb2b-panel {
	margin-bottom: 14px;
	padding: 16px;
	border: 1px solid var(--wcb2b-line);
	border-radius: var(--wcb2b-radius);
	background: #fff;
	animation: wcb2b-slide-in 0.25s ease;
}

.wcb2b-panel[hidden] {
	display: none !important;
}

@keyframes wcb2b-slide-in {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.wcb2b-panel-title {
	margin: 0 0 14px;
	font-size: 14px;
	font-weight: 800;
	color: var(--wcb2b-dark);
}

/* ── Fields ──────────────────────────────────────────────────────── */

.wcb2b-field {
	margin-bottom: 12px;
}

.wcb2b-field:last-child {
	margin-bottom: 0;
}

.wcb2b-field label {
	display: block;
	margin-bottom: 5px;
	font-size: 12px;
	font-weight: 700;
	color: var(--wcb2b-text);
}

.wcb2b-field label abbr.required {
	color: var(--wcb2b-red);
	text-decoration: none;
	margin-left: 2px;
}

.wcb2b-field-hint {
	font-weight: 500;
	color: var(--wcb2b-text-2);
	font-size: 11px;
	margin-left: 4px;
}

.wcb2b-field input[type="text"],
.wcb2b-field input[type="tel"],
.wcb2b-field input[type="email"],
.wcb2b-field textarea {
	width: 100%;
	min-height: 42px;
	padding: 10px 12px;
	border: 1px solid var(--wcb2b-line);
	border-radius: 8px;
	background: #fff;
	font-family: inherit;
	font-size: 13.5px;
	color: var(--wcb2b-text);
	box-shadow: none;
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.wcb2b-field textarea {
	min-height: 60px;
	resize: vertical;
}

.wcb2b-field input:focus,
.wcb2b-field textarea:focus {
	border-color: var(--wcb2b-blue);
	box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.wcb2b-field input::placeholder,
.wcb2b-field textarea::placeholder {
	color: #9ca3af;
}

/* File input */
.wcb2b-field input[type="file"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px dashed var(--wcb2b-line);
	border-radius: 8px;
	background: var(--wcb2b-bg-soft);
	font-size: 12px;
	color: var(--wcb2b-text-2);
	cursor: pointer;
	transition: border-color 0.15s;
}

.wcb2b-field input[type="file"]:hover {
	border-color: var(--wcb2b-blue);
}

/* ── File upload list ───────────────────────────────────────────── */

.wcb2b-file-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 8px;
}

.wcb2b-file-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border: 1px solid var(--wcb2b-line);
	border-radius: 8px;
	background: #fff;
	font-size: 12.5px;
}

.wcb2b-file-name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--wcb2b-text);
	font-weight: 600;
}

.wcb2b-file-size {
	flex-shrink: 0;
	font-size: 11px;
	color: var(--wcb2b-text-2);
}

.wcb2b-file-remove {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	border: none;
	border-radius: 6px;
	background: transparent;
	color: var(--wcb2b-text-2);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.12s, color 0.12s;
}

.wcb2b-file-remove:hover {
	background: #fee2e2;
	color: var(--wcb2b-red);
}

.wcb2b-file-add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 6px;
	padding: 8px 16px;
	border: 1px dashed var(--wcb2b-line);
	border-radius: 8px;
	background: var(--wcb2b-bg-soft);
	color: var(--wcb2b-text-2);
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s;
}

.wcb2b-file-add:hover {
	border-color: var(--wcb2b-blue);
	color: var(--wcb2b-blue);
}

/* ── DaData Suggestions Dropdown ─────────────────────────────────── */

.wcb2b-dadata-wrap {
	position: relative;
}

.wcb2b-dadata-list {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	z-index: 30;
	margin-top: 4px;
	padding: 6px;
	border: 1px solid var(--wcb2b-line);
	border-radius: var(--wcb2b-radius);
	background: #fff;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
	list-style: none;
	max-height: 300px;
	overflow: hidden auto;
}

.wcb2b-dadata-item {
	display: block;
	width: 100%;
	padding: 9px 10px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 20px !important;
	text-align: left;
	color: var(--wcb2b-text);
	cursor: pointer;
	transition: background 0.1s;
	overflow: hidden;
	word-break: break-word;
}

.wcb2b-dadata-item:hover {
	background: var(--wcb2b-bg-soft);
}

.wcb2b-dadata-item small {
	display: block;
	margin-top: 2px;
	font-size: 11px;
	font-weight: 400;
	color: var(--wcb2b-text-2);
}

/* ── Responsive ──────────────────────────────────────────────────── */

@media (max-width: 480px) {
	.wcb2b-type-switcher {
		grid-template-columns: 1fr 1fr;
	}

	.wcb2b-type-option {
		font-size: 12px;
		min-height: 38px;
		padding: 7px 10px;
	}

	.wcb2b-panel {
		padding: 12px;
	}

	.wcb2b-field input[type="text"],
	.wcb2b-field input[type="tel"],
	.wcb2b-field textarea {
		min-height: 40px;
		font-size: 13px;
	}
}
