/**
 * Form fields — parity with sba-react `.sba-gray-field` (admin-ui.css)
 * and Label (`text-sm font-medium leading-none`).
 */

.sba-gray-field input:not([type='checkbox']):not([type='radio']):not([type='hidden']),
.sba-gray-field textarea {
	box-sizing: border-box;
	width: 100%;
	height: 2.5rem;
	min-height: 2.5rem;
	margin: 0;
	padding: 0 12px;
	border: 0;
	border-radius: 0.5rem;
	background-color: #f3f4f6;
	color: #334155;
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.25;
	box-shadow: none;
	outline: none;
	appearance: auto;
}

.sba-gray-field textarea {
	height: auto;
	min-height: 4.5rem;
	padding-top: 8px;
	padding-bottom: 8px;
}

.sba-gray-field input:focus,
.sba-gray-field input:focus-visible,
.sba-gray-field textarea:focus,
.sba-gray-field textarea:focus-visible {
	border: 0;
	outline: none;
	box-shadow: none;
	background-color: #f3f4f6;
}

.sba-gray-field input::placeholder,
.sba-gray-field textarea::placeholder {
	color: #94a3b8;
	opacity: 1;
}

.sba-gray-field .input-wrapper {
	position: relative;
	display: block;
	width: 100%;
	border: none;
	border-radius: 0;
	background: transparent;
}

/* fm_cdmx_styles: .input-wrapper { border; } .input-wrapper input { background #FFF } */
.sba-gray-field .input-wrapper input {
	width: 100% !important;
	background-color: #f3f4f6 !important;
	color: #334155 !important;
	border: none !important;
}

/* Mismo gris en login con credenciales guardadas (autofill) */
.sba-gray-field .input-wrapper input:-webkit-autofill,
.sba-gray-field .input-wrapper input:-webkit-autofill:hover,
.sba-gray-field .input-wrapper input:-webkit-autofill:focus,
.sba-gray-field .input-wrapper input:-webkit-autofill:active {
	-webkit-text-fill-color: #334155 !important;
	caret-color: #334155 !important;
	background-color: #f3f4f6 !important;
	background-image: none !important;
	-webkit-box-shadow: 0 0 0 1000px #f3f4f6 inset !important;
	box-shadow: 0 0 0 1000px #f3f4f6 inset !important;
	transition: background-color 99999s ease-out 0s;
}

.sba-platform-field-label {
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	color: #0f172a;
}
