/*
 * CSS codes for forms to display on frontend
 * Using :where() selectors for low specificity instead of !important
 */

:where(.flr-blocks-hide) {
	display: none;
}

:where(.flr-blocks-loading, #flr-blocks-login-form-result) {
	text-align: center;
}

:where(.flr-blocks-danger) {
	border: 1px solid #e08888;
	padding: 5px;
	background-color: #f8f8ff;
}

:where(.flr-blocks-success) {
	border: 1px solid #9dcb9d;
	padding: 5px;
	background-color: #f8f8ff;
}

:where(.flr-blocks-input-control, .flr-blocks-textarea-control) {
	width: 100%;
	margin-bottom: 10px;
	margin-top: 5px;
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	display: block;
	padding: 0.375rem 0.75rem;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: #212529;
	background-color: #fff;
	background-clip: padding-box;
	border: 1px solid #ced4da;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

:where(.flr-blocks-btn) {
	margin-top: 10px;
	margin-bottom: 10px;
	width: 100%;
	cursor: pointer;
	display: inline-block;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	vertical-align: middle;
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
	padding: 0.375rem 0.75rem;
	font-size: 1rem;
}

:where(.flr-blocks-form-check-input) {
	border-radius: 0.25em;
	margin-top: 0.25em;
	margin-right: 0.25em;
	vertical-align: top;
	background-color: #fff;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	border: 1px solid rgba(0, 0, 0, 0.25);
}

:where(.flr-blocks-form-check-group) {
	display: flex;
	align-items: center;
}

:where(.flr-blocks-input-group) {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	width: 100%;
}
