/**
 * Wholesale Access Restriction – front-end form styles.
 *
 * Deliberately neutral so the forms inherit your theme's fonts and colours.
 * Override any rule in your child theme; nothing here uses !important.
 */

.war-form-wrap {
	max-width: 520px;
	margin: 0 auto 40px;
	text-align: left;
}

.war-form-title {
	text-align: center;
	margin: 0 0 24px;
	font-size: 1.6em;
	font-weight: 700;
}

/* --- Grid ------------------------------------------------------------- */

.war-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.war-col-full {
	flex: 0 0 100%;
	max-width: 100%;
}

.war-col-half {
	flex: 1 1 calc( 50% - 7px );
	min-width: 160px;
}

/* --- Fields with floating labels -------------------------------------- */

.war-field {
	position: relative;
}

.war-field .war-input {
	width: 100%;
	box-sizing: border-box;
	padding: 22px 14px 8px;
	border: 1px solid #cfcfcf;
	border-radius: 4px;
	background: #fff;
	font-size: 15px;
	line-height: 1.3;
	color: #222;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	appearance: none;
	-webkit-appearance: none;
}

.war-field .war-input:focus {
	outline: none;
	border-color: #111;
	box-shadow: 0 0 0 1px #111;
}

.war-field label {
	position: absolute;
	top: 17px;
	left: 15px;
	font-size: 15px;
	color: #767676;
	pointer-events: none;
	transition: transform 0.15s ease, font-size 0.15s ease, color 0.15s ease;
	transform-origin: left top;
}

/* Raise the label when the field is focused or filled. */
.war-field .war-input:focus + label,
.war-field .war-input:not( :placeholder-shown ) + label {
	transform: translateY( -10px );
	font-size: 11px;
	color: #555;
}

/* Selects are never "empty looking", so keep their label raised. */
.war-field--select label {
	transform: translateY( -10px );
	font-size: 11px;
	color: #555;
}

.war-field--select .war-input {
	background-image: linear-gradient( 45deg, transparent 50%, #666 50% ), linear-gradient( 135deg, #666 50%, transparent 50% );
	background-position: calc( 100% - 18px ) calc( 50% + 2px ), calc( 100% - 13px ) calc( 50% + 2px );
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	padding-right: 34px;
}

/* --- Checkbox --------------------------------------------------------- */

.war-checkbox {
	margin: 16px 0;
	font-size: 14px;
}

.war-checkbox label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.war-checkbox input {
	width: 16px;
	height: 16px;
	margin: 0;
}

/* --- Submit button ---------------------------------------------------- */

.war-submit {
	display: block;
	width: 100%;
	padding: 14px 20px;
	border: 0;
	border-radius: 3px;
	background: #2f2f2f;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.15s ease;
}

.war-submit:hover,
.war-submit:focus {
	background: #000;
}

/* --- Messages --------------------------------------------------------- */

.war-errors {
	margin: 0 0 18px;
	padding: 12px 16px 12px 34px;
	border: 1px solid #e0b4b4;
	border-left: 4px solid #c0392b;
	border-radius: 3px;
	background: #fdf3f3;
	color: #7d2b23;
	font-size: 14px;
	list-style: disc;
}

.war-errors li {
	margin: 2px 0;
}

.war-notice {
	padding: 12px 16px;
	border-left: 4px solid #2f6f4e;
	background: #f2f8f4;
	font-size: 14px;
}

.war-lost-password {
	margin: 14px 0 0;
	font-size: 14px;
	text-align: center;
}

/* --- Two-column layout for [wholesale_account_forms] ------------------ */

.war-columns {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	align-items: flex-start;
}

.war-columns .war-column {
	flex: 1 1 340px;
	min-width: 300px;
}

.war-columns--stacked {
	display: block;
}

/* --- Honeypot: hidden from humans, present for bots ------------------- */

.war-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --- Small screens ---------------------------------------------------- */

@media ( max-width: 600px ) {
	.war-col-half {
		flex: 0 0 100%;
		max-width: 100%;
	}

	.war-columns {
		gap: 32px;
	}
}

/* --- Application status panels ---------------------------------------- */

.war-status {
	max-width: 620px;
	padding: 40px 32px;
	border: 1px solid #e3e3e3;
	border-radius: 6px;
	background: #fff;
	text-align: center;
}

.war-status .war-form-title {
	margin-bottom: 14px;
}

.war-status-icon {
	display: block;
	margin: 0 auto 18px;
	width: 62px;
	height: 62px;
	line-height: 62px;
	border-radius: 50%;
	font-size: 28px;
}

.war-status-icon--ok {
	background: #e7f5ec;
	color: #1a7f37;
}

.war-status-icon--wait {
	background: #fdf3e3;
	color: #b26b00;
}

.war-status-body {
	font-size: 16px;
	line-height: 1.6;
	color: #444;
}

.war-status-body p {
	margin: 0 0 12px;
}

.war-status-meta {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid #eee;
	font-size: 14px;
	color: #666;
}

.war-status-action {
	margin-top: 22px;
}

.war-submit--link {
	display: inline-block;
	width: auto;
	padding: 13px 30px;
	text-decoration: none;
	color: #fff;
}

.war-status--declined {
	border-left: 4px solid #b32d2e;
}

.war-status--pending {
	border-left: 4px solid #d9a441;
}

.war-status--approved {
	border-left: 4px solid #1a7f37;
}

.war-intro {
	margin: 0 0 20px;
	font-size: 15px;
	color: #555;
	line-height: 1.55;
}
