/* Reseller registration form. */

.kaupang-wholesale { max-width: 640px; }
.kaupang-wholesale-field { margin: 0 0 1em; }
.kaupang-wholesale-field label { display: block; font-weight: 600; margin-bottom: 0.25em; }
.kaupang-wholesale-field input {
	width: 100%;
	padding: 0.55em 0.7em;
	border: 1px solid #cbd2d9;
	border-radius: 4px;
	box-sizing: border-box;
}
.kaupang-wholesale-field input[readonly] { background: #f3f4f6; color: #4b5563; }

.kaupang-wholesale-row { display: flex; gap: 1em; flex-wrap: wrap; }
.kaupang-wholesale-row .kaupang-wholesale-field { flex: 1 1 12em; }
.kaupang-wholesale-row .kaupang-wholesale-field--narrow { flex: 0 0 8em; }

.kaupang-wholesale-hint { display: block; color: #6b7280; font-size: 0.85em; margin-top: 0.25em; }

/* Details (incl. the submit button) stay hidden until a company is chosen — this
   is JS-driven, so with JS off nothing submittable is shown and the <noscript>
   notice explains why. Revealed by register-b2b.js adding .kaupang-wholesale--revealed. */
.kaupang-wholesale-details { display: none; }
.kaupang-wholesale--revealed .kaupang-wholesale-details { display: block; }

/* Honeypot — off-screen, never shown to humans. */
.kaupang-wholesale-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Typeahead dropdown. */
.kaupang-wholesale-suggest {
	position: absolute;
	z-index: 100;
	left: 0; right: 0;
	margin: 2px 0 0;
	padding: 0;
	list-style: none;
	background: #fff;
	border: 1px solid #cbd2d9;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	max-height: 16em;
	overflow-y: auto;
}
.kaupang-wholesale-item, .kaupang-wholesale-empty {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25em 0.6em;
	padding: 0.5em 0.75em;
	cursor: pointer;
	line-height: 1.3;
}
.kaupang-wholesale-empty { cursor: default; color: #6b7280; }
.kaupang-wholesale-item:hover, .kaupang-wholesale-item.is-active { background: #eef2ff; }
.kaupang-wholesale-item-name { font-weight: 600; }
.kaupang-wholesale-item-meta { color: #6b7280; font-size: 0.85em; }

.kaupang-wholesale-flag {
	display: inline-block;
	padding: 0.05em 0.5em;
	border-radius: 999px;
	font-size: 0.8em;
	font-weight: 600;
	background: #fef3c7; color: #92400e;
}

.kaupang-wholesale-manual {
	background: none;
	border: none;
	color: #3730a3;
	text-decoration: underline;
	cursor: pointer;
	padding: 0;
	font: inherit;
}

.kaupang-wholesale-messages { margin: 0 0 1em; }
.kaupang-wholesale-messages.is-error { color: #b91c1c; font-weight: 600; }
.kaupang-wholesale-field.has-error input { border-color: #b91c1c; background: #fef2f2; }

.kaupang-wholesale-success {
	padding: 1em 1.2em;
	background: #ecfdf5;
	border: 1px solid #6ee7b7;
	border-radius: 6px;
	color: #065f46;
}

.kaupang-wholesale-source { color: #6b7280; font-size: 0.8em; margin-top: 0.5em; }
.kaupang-wholesale-note { color: #6b7280; }
