@use "../utils" as *;

/*----------------------------------------*/
/* Alert Styles
/*----------------------------------------*/

.td-alert-box {
	max-width: 576px;
	background: #060608;
	@include border-radius(16px);
	padding: 30px 24px 30px;
	box-shadow: 0px 0px 1px 0px rgba(96, 96, 96, .1), 0px 12px 24px -6px rgba(96, 96, 96, .15);
	z-index: 1;
	position: relative;
	transition: .3s;
	display: flex;
	column-gap: 12px;
	align-items: self-start;

	@media #{$xs} {
		padding: 16px 16px 16px;
	}

	&::before {
		position: absolute;
		content: "";
		inset: 0;
		@include border-radius(16px);
		padding: 1px;
		background: linear-gradient(95.42deg, rgba(189, 124, 240, 1) 0%, rgba(128, 44, 196, 1) 100%);
		-webkit-mask: linear-gradient(var(--td-white) 0 0) content-box, linear-gradient(var(--td-white) 0 0);
		-webkit-mask-composite: xor;
		mask-composite: exclude;
		z-index: -1;
	}

	.alert-content {
		@include flexbox();
		column-gap: 16px;
		flex-grow: 1;

		@media #{$xs} {
			column-gap: 12px;
		}

		.alert-title {
			font-size: 22px;
			font-weight: 500;
			line-height: 1.2;

			@media #{$xs} {
				font-size: 18px;
			}
		}

		.alert-message {
			color: rgba($white, $alpha: 0.7);
			font-size: 14px;
			font-weight: 400;
			position: relative;
			margin-top: 8px;
		}
	}

	.alert-icon {
		flex: 0 0 auto;

		img {
			width: 20px;
			height: 20px;
		}
	}

	.close-btn {
		color: var(--td-white);

		svg {
			width: 20px;
			height: 20px;
		}
	}

	&.hidden {
		opacity: 0;
		transform: translateY(-50%, 20px);
		pointer-events: none;
	}
}

.alert-show-status {
	position: fixed;
	top: 16px;
	right: 16px;
	z-index: 999;
	@media #{$xs} {
		width: calc(100% - 32px);
	}
}