.eds-c-form {
	font-size: $t-eds-c-form-font-size;
	line-height: $t-eds-c-form-line-height;
	& small {
		font-size: inherit;
	}
}

.eds-c-form__field {
	max-width: $t-eds-c-form-width-maximum;
}

.eds-c-form__input {
	box-sizing: border-box;
	border: $t-eds-c-form-input-border-width solid $t-a-palette-default-greyscale-600;
	border-radius: $t-a-border-radius-100;
	color: $t-eds-c-form-input-color;
	width: 100%;
	padding: $t-a-space-relative-200 $t-a-space-relative-400;
	background-color: $t-eds-c-form-input-background-color;
	font-weight: $t-eds-c-form-input-font-weight;
	line-height: $t-a-typography-line-height-base;
}

.eds-c-form__input:focus {
	outline: 3px solid $t-eds-c-form-input-focus-outline-color;
}

.eds-c-form__input[invalid] {
	border-color: $t-eds-c-form-input-border-color-error;
	border-width: #{calc($t-eds-c-form-input-border-width * 2)};
}

.eds-c-form__input[disabled] {
	cursor: not-allowed;
	border-color: $t-eds-c-form-input-border-color-disabled;
}

.eds-c-form__inline-fields * {
	margin: 0;
}

.eds-c-form__inline-fields {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: var(--form-inline-gap, #{$t-a-space-relative-200});
}

.eds-c-form__inline-fields--nowrap {
	flex-wrap: nowrap;
}

.eds-c-form__inline-fields {
	.eds-c-form__field--input-inline {
		/* ↓ Make it max out the available space with a super high value */
		flex-grow: 666;
	}
}

.eds-c-form__icon-error svg {
    height: $t-eds-c-form-icon-error-size;
    width: $t-eds-c-form-icon-error-size;
    vertical-align: calc((#{$t-a-space-relative-200} / 8) * -2);
    overflow: visible;
    pointer-events: none;
}

.eds-c-form__disclosure-box {
	margin-left: calc(#{$t-a-space-relative-600} / 4);
	padding: $t-a-space-relative-200 0 $t-a-space-relative-200 $t-a-space-relative-600;
	position: relative;
	display: none;
}

.eds-c-form__disclosure-box::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: calc(#{$t-a-space-relative-600} / 2);
	background-color: $t-a-border-color-indent;
	border-radius: $t-a-border-radius-100;
}

:checked~.eds-c-form__disclosure-box {
	display: block;
}