%input {
	@extend %t-s;

	border: 1.5px solid $color-interface-grey-40;
	appearance: none;
	display: block;
	width: 100%;
	outline: 0;

	padding: 14px;
	border-radius: 10px;
	background-color: $color-white;

	&.-half {
		@media (min-width: $md-breakpoint) {
			grid-column: span 6;
		}
	}

	&[disabled] {
		cursor: not-allowed;
		color: $color-interface-grey-60;
		background-color: $color-interface-grey-20;
		border-color: $color-interface-grey-20;
	}

	&[aria-invalid='true'] {
		border-color: $color-error-medium;
	}

	&:focus-visible {
		border-color: $color-interface-grey-60;
	}

	&::placeholder {
		color: $color-interface-grey-60;
	}

	/* &:not([disabled]):hover,
	&:not([disabled]):focus {
	} */
}

%input-wrapper {
	position: relative;
	margin-bottom: 10px;
	grid-column: span 12;
}

%input-label {
	@extend %t-s, %input-optional;

	margin-bottom: 10px;

	display: inline-block;
	pointer-events: none;
	z-index: 1;
	margin-bottom: 8px;

	font-weight: 500;
}

%input-optional {
	display: inline;

	&[data-optional]:not([data-optional=''])::after {
		@extend %t-caption;

		content: attr(data-optional);
		display: inline;
		letter-spacing: 0.5px;
		margin-left: 2px;
		font-family: var(--font-primary);
		color: $color-pink;
	}

	&.-is-disabled[data-optional]:not([data-optional=''])::after {
		color: $color-interface-grey-40;
	}
}

%input-error {
	@extend %t-s;

	display: flex;
	align-items: center;
	gap: 4px;
	margin-top: 4px;
	color: $color-error-dark;

	/* position: absolute;
	left: 0;
	padding-top: 5px;
	width: 100%; */
}

%input-icon {
	width: 14px;
	height: 14px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;

	&.-error {
		background-color: $color-error-dark;
		color: $color-error-light;
	}
}

/* EDIT */
%input-edit {
	color: #00000066;

	max-width: 100%;
	width: calc(100% - 32px);
	margin: 0 16px !important;
	display: inline-block;

	&[data-size='half'] {
		@media (min-width: $md-breakpoint) {
			width: calc(50% - 32px);
		}
	}
}
%input-size-edit {
	max-width: 100%;
	width: calc(100% - 32px);
	margin: 0 16px !important;
}
%input-label-edit {
	background: none !important;
	pointer-events: initial;
}
%input-optional-edit {
	@extend %t-caption;

	position: absolute;
	top: 12px;
	right: 12px;
}
