.td-alert-overlay {
	position: fixed;
	inset: 0;
	z-index: 20000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(48, 48, 48, 0.55);
}

.td-alert-dialog {
	display: flex;
	gap: 16px;
	width: min(460px, 100%);
	max-height: calc(100vh - 48px);
	overflow: auto;
	padding: 22px;
	border: 1px solid #d8d8d8;
	border-radius: 6px;
	background: #ffffff;
	box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
	color: #2f2f2f;
	font-family: Arial, Helvetica, sans-serif;
}

.td-alert-icon {
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 18px;
	color: #ffffff;
	background: #ab1d37;
}

.td-alert-success .td-alert-icon {
	background: #2e7d32;
}

.td-alert-warning .td-alert-icon {
	background: #b26a00;
}

.td-alert-error .td-alert-icon {
	background: #b3261e;
}

.td-alert-content {
	min-width: 0;
	flex: 1 1 auto;
}

.td-alert-title {
	margin: 0 0 8px;
	font-size: 18px;
	line-height: 1.25;
	font-weight: 700;
	color: #2f2f2f;
	letter-spacing: 0;
}

.td-alert-message {
	margin: 0;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	font-size: 14px;
	line-height: 1.45;
	color: #4a4a4a;
}

.td-alert-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 22px;
}

.td-alert-button {
	min-width: 84px;
	min-height: 36px;
	padding: 8px 14px;
	border: 1px solid #d0b6bd;
	border-radius: 4px;
	background: #ffffff;
	color: #8f182f;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
}

.td-alert-button:hover,
.td-alert-button:focus {
	border-color: #ab1d37;
	box-shadow: 0 0 0 2px rgba(171, 29, 55, 0.18);
	outline: none;
}

.td-alert-button-primary {
	border-color: #ab1d37;
	background: #ab1d37;
	color: #ffffff;
}

.td-alert-button-primary:hover,
.td-alert-button-primary:focus {
	background: #8f182f;
}

@media (max-width: 520px) {
	.td-alert-overlay {
		align-items: center;
		padding: 14px;
	}

	.td-alert-dialog {
		gap: 12px;
		padding: 18px;
	}

	.td-alert-actions {
		flex-direction: column-reverse;
	}

	.td-alert-button {
		width: 100%;
	}
}
