/**
 * Withdrawal form — light styling.
 * Inputs/buttons inherit project Bootstrap (`form-control`, `btn`); these rules
 * only add layout + interactive feedback for the row picker.
 */

.withdrawal-form {
	font-family: inherit;
}

.withdrawal-form__steps {
	list-style: none;
	display: flex;
	gap: 8px;
	padding: 0;
	margin: 0 0 16px;
	flex-wrap: wrap;
}

.withdrawal-form__step {
	flex: 1;
	min-width: 120px;
	padding: 8px 12px;
	background: #f1f1f1;
	border-radius: 3px;
	font-size: 14px;
	color: #666;
}

.withdrawal-form__step--active {
	background: #e6f0ff;
	color: #003e91;
}

.withdrawal-form__step--done {
	background: #d7f5d7;
	color: #1a6b1a;
}

.withdrawal-form__form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.withdrawal-form__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.withdrawal-form .withdrawal-form__field--consent {
	display: flex !important;
	flex-direction: row !important;
	align-items: center;
	gap: 8px;
	margin: 8px 0;
}

.withdrawal-form .withdrawal-form__field--consent input[type="checkbox"] {
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
	position: static;
	width: auto;
	display: inline-block;
	vertical-align: middle;
}

.withdrawal-form .withdrawal-form__field--consent label {
	flex: 1 1 auto;
	margin: 0;
	padding: 0;
	cursor: pointer;
	font-weight: normal;
	display: inline-block;
	vertical-align: middle;
}

/* Kill focus outline/box-shadow on the consent checkbox. */
.withdrawal-form .withdrawal-form__field--consent input[type="checkbox"],
.withdrawal-form .withdrawal-form__field--consent input[type="checkbox"]:focus,
.withdrawal-form .withdrawal-form__field--consent input[type="checkbox"]:active,
.withdrawal-form .withdrawal-form__field--consent input[type="checkbox"]:hover {
	outline: none !important;
	box-shadow: none !important;
}

.withdrawal-form__items {
	width: 100%;
}

.withdrawal-form__item {
	cursor: pointer;
	transition: background-color 120ms ease;
}

.withdrawal-form__item:hover {
	background-color: #f5faff;
}

.withdrawal-form__item.is-selected {
	background-color: #e6f0ff;
}

.withdrawal-form__item-label {
	cursor: pointer;
	margin: 0;
	font-weight: normal;
}

.withdrawal-form__item-piece {
	max-width: 80px;
	-moz-appearance: textfield;
	appearance: textfield;
}

.withdrawal-form__item-piece::-webkit-outer-spin-button,
.withdrawal-form__item-piece::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.withdrawal-form__item-checkbox {
	width: 1%;
	white-space: nowrap;
}

.withdrawal-form__actions {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
	align-items: stretch;
	margin-top: 16px;
}

.withdrawal-form__actions .withdrawal-form__back,
.withdrawal-form__actions .withdrawal-form__submit {
	flex: 0 0 auto;
	width: auto;
	padding: 10px 24px;
	font-size: 14px;
	line-height: 1.4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.withdrawal-form__error {
	margin-bottom: 16px;
}

@media (max-width: 480px) {
	.withdrawal-form__items th,
	.withdrawal-form__items td {
		font-size: 12px;
		padding: 4px;
	}
	.withdrawal-form__item-piece {
		max-width: 60px;
	}
}

/* Kill outline/box-shadow on item checkbox across all states (default, focus, active). */
.withdrawal-form__item input[type="checkbox"],
.withdrawal-form__item input[type="checkbox"]:focus,
.withdrawal-form__item input[type="checkbox"]:active,
.withdrawal-form__item input[type="checkbox"]:hover {
	outline: none !important;
	box-shadow: none !important;
}
