@use "$css/main/mixins";
@use "$css/main/variables";

.error-notice {
	position: relative;
	color: #d63638;
	display: block;
	margin: 0;
	padding: 0;

	@include mixins.breakpoint(sm) {
		display: flex;
		align-items: flex-start;
		justify-content: left;
	}

	:global(.raw-error) {
		color: variables.$primary-black;
	}

	pre {
		background-color: #f1f1f1;
		padding: 25px;
		margin: 20px 0;
		text-align: left;
		white-space: pre-wrap;
		color: #0f0f0f;
		border-radius: 6px;
	}

	.icon {
		color: inherit;
		height: 20px;
		width: 20px;
		line-height: 0;
	}

	&.variant-module .icon-wrapper {
		position: absolute;
		left: -65px;
		top: 0;
		width: 20px;
	}

	&:not(.variant-module) .offset {
		padding-left: 0.5em;
	}

	.main-action:not(:empty) {
		margin-left: auto;

		button {
			margin-left: 0;

			@include mixins.breakpoint(sm) {
				margin-left: 20px;
			}
		}
	}

	.description {
		color: variables.$red_50;
		font-weight: 700;
		margin-bottom: 0.5em;
	}

	.message {
		list-style-type: disc;
		color: variables.$red_50;

		p {
			margin: 0.25em 0;
			color: variables.$red_50;
		}

		button {
			color: variables.$primary-black;
			font-size: 16px;
			margin: 16px auto;
		}

		li {

			@include mixins.word-wrap();
		}
	}
}
