.eds-c-error-summary {
	font-size: $t-a-typography-font-size-s;
	line-height: $t-a-typography-line-height-tight;
	box-sizing: border-box;
	display: flex;
	gap: $t-a-space-relative-200;
	max-width: $t-eds-c-form-width-maximum;
	padding: $t-a-space-relative-400;
	background-color: $t-a-palette-default-white;
	color: $t-a-palette-information-red;
	border: $t-eds-c-form-input-border-width solid $t-a-palette-default-greyscale-400;
	border-radius: $t-a-border-radius-200;
	border-bottom: 4px solid $t-a-palette-information-red;
}

.eds-c-error-summary .eds-form__icon-error svg {
	width: #{$t-eds-c-form-font-size * 2};
	height: #{$t-eds-c-form-font-size * 2};
}

.eds-c-error-summary__errors {
	padding: 0;
	margin: 0;
	list-style: none;
}

.eds-c-error-summary__errors a {
	color: inherit;
	text-decoration: underline;
}

.eds-c-error-summary__title {
	color: initial;
	font-size: $t-a-typography-font-size-default;
	font-weight: bold;
	line-height: $t-a-typography-line-height-base;
}

.eds-c-error-summary__errors li:not(:last-child) {
	margin-bottom: $t-eds-c-form-input-stack-spacing;
}
