/* Global toast — minimal creative. Applies via .ed-toast */

body.swal2-toast-shown .swal2-container {
	background: transparent !important;
	pointer-events: none;
	overflow: visible;
}

body.swal2-toast-shown .swal2-container .swal2-popup {
	pointer-events: auto;
}

body.swal2-toast-shown .swal2-container.swal2-top-end,
body.swal2-toast-shown .swal2-container.swal2-top-right,
body.swal2-toast-shown .swal2-container.swal2-top-start,
body.swal2-toast-shown .swal2-container.swal2-top-left {
	padding: 16px;
}

.swal2-popup.swal2-toast.ed-toast {
	--ed-accent: #019267;
	--ed-soft: #e7f6f0;
	--ed-ink: #067a56;
	--ed-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	gap: 0;
	width: auto;
	min-width: 260px;
	max-width: min(380px, calc(100vw - 32px));
	min-height: 0;
	margin: 0;
	padding: 12px 12px 14px;
	border: 1px solid #d1d5db;
	border-radius: 14px;
	background:
		linear-gradient(135deg, var(--ed-soft) 0%, transparent 42%),
		#fff;
	box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
	color: #111827;
	font-family: inherit;
	font-size: 13px;
	line-height: 1.4;
	overflow: hidden;
	backdrop-filter: saturate(1.1);
}

.swal2-popup.swal2-toast.ed-toast::before {
	content: "";
	position: absolute;
	top: 10px;
	bottom: 10px;
	left: 0;
	width: 3px;
	border-radius: 0 4px 4px 0;
	background: var(--ed-accent);
}

.swal2-popup.swal2-toast.ed-toast-success {
	--ed-accent: #019267;
	--ed-soft: #e7f6f0;
	--ed-ink: #067a56;
	--ed-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.swal2-popup.swal2-toast.ed-toast-error {
	--ed-accent: #e11d48;
	--ed-soft: #fff1f2;
	--ed-ink: #be123c;
	--ed-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
}

.swal2-popup.swal2-toast.ed-toast-warning {
	--ed-accent: #ea580c;
	--ed-soft: #fff7ed;
	--ed-ink: #c2410c;
	--ed-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3Cpath d='M10.3 4.3 2.6 18a2 2 0 0 0 1.7 3h15.4a2 2 0 0 0 1.7-3L13.7 4.3a2 2 0 0 0-3.4 0z'/%3E%3C/svg%3E");
}

.swal2-popup.swal2-toast.ed-toast-info {
	--ed-accent: #2563eb;
	--ed-soft: #eff6ff;
	--ed-ink: #1d4ed8;
	--ed-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 8h.01'/%3E%3C/svg%3E");
}

.swal2-popup.swal2-toast.ed-toast-question {
	--ed-accent: #0f766e;
	--ed-soft: #ecfdf5;
	--ed-ink: #0f766e;
	--ed-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.5 9a2.5 2.5 0 1 1 3.5 2.3c-.8.4-1.5 1-1.5 2.2M12 17h.01'/%3E%3C/svg%3E");
}

.swal2-popup.swal2-toast.ed-toast .swal2-header {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 0 0 0 6px;
}

.swal2-popup.swal2-toast.ed-toast .swal2-icon {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 32px;
	min-width: 32px;
	height: 32px;
	margin: 0;
	border: 1px solid color-mix(in srgb, var(--ed-accent) 18%, #d1d5db);
	border-radius: 999px;
	background: var(--ed-soft);
	box-shadow: none;
	color: var(--ed-ink);
	line-height: 1;
}

.swal2-popup.swal2-toast.ed-toast .swal2-icon::before {
	content: "";
	width: 15px;
	height: 15px;
	background: var(--ed-ink);
	-webkit-mask: var(--ed-icon) center / contain no-repeat;
	mask: var(--ed-icon) center / contain no-repeat;
}

.swal2-popup.swal2-toast.ed-toast .swal2-icon > *,
.swal2-popup.swal2-toast.ed-toast .swal2-icon .swal2-success-ring,
.swal2-popup.swal2-toast.ed-toast .swal2-icon [class^="swal2-success-line"],
.swal2-popup.swal2-toast.ed-toast .swal2-icon [class^="swal2-success-circular"],
.swal2-popup.swal2-toast.ed-toast .swal2-icon [class^="swal2-x-mark"],
.swal2-popup.swal2-toast.ed-toast .swal2-icon .swal2-icon-content {
	display: none !important;
}

.swal2-popup.swal2-toast.ed-toast .swal2-title {
	flex: 1;
	min-width: 0;
	margin: 0;
	padding: 0 2px 0 0;
	color: #111827;
	font-size: 13.5px;
	font-weight: 500;
	letter-spacing: -0.01em;
	line-height: 1.4;
	text-align: left;
}

.swal2-popup.swal2-toast.ed-toast .swal2-close {
	position: static;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #9ca3af;
	font-family: inherit;
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.swal2-popup.swal2-toast.ed-toast .swal2-close:hover,
.swal2-popup.swal2-toast.ed-toast .swal2-close:focus {
	background: #f3f5f7;
	color: #374151;
	outline: none;
	box-shadow: none;
}

.swal2-popup.swal2-toast.ed-toast:not(.ed-toast-has-text) .swal2-content,
.swal2-popup.swal2-toast.ed-toast .swal2-actions,
.swal2-popup.swal2-toast.ed-toast .swal2-footer,
.swal2-popup.swal2-toast.ed-toast .swal2-image,
.swal2-popup.swal2-toast.ed-toast .swal2-progresssteps {
	display: none !important;
}

.swal2-popup.swal2-toast.ed-toast.ed-toast-has-text .swal2-content {
	display: block;
	justify-content: flex-start;
	margin: 2px 30px 0 48px;
	padding: 0;
	color: #6b7280;
	font-size: 12.5px;
	font-weight: 400;
	line-height: 1.45;
	text-align: left;
}

.swal2-popup.swal2-toast.ed-toast #swal2-content {
	text-align: left;
	font-weight: 400;
}

.swal2-popup.swal2-toast.ed-toast .ed-toast-bar {
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 5px;
	height: 2px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--ed-accent), color-mix(in srgb, var(--ed-accent) 35%, transparent));
	transform-origin: left center;
	animation-name: edToastBar;
	animation-timing-function: linear;
	animation-fill-mode: forwards;
	opacity: 0.9;
}

.swal2-popup.swal2-toast.ed-toast.swal2-show {
	animation: edToastIn 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.swal2-popup.swal2-toast.ed-toast.swal2-hide {
	animation: edToastOut 0.2s ease forwards;
}

@keyframes edToastIn {
	from {
		opacity: 0;
		transform: translate3d(12px, -6px, 0) scale(0.97);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes edToastOut {
	to {
		opacity: 0;
		transform: translate3d(10px, 0, 0) scale(0.98);
	}
}

@keyframes edToastBar {
	from {
		transform: scaleX(1);
	}
	to {
		transform: scaleX(0);
	}
}

[dir="rtl"] .swal2-popup.swal2-toast.ed-toast::before {
	left: auto;
	right: 0;
	border-radius: 4px 0 0 4px;
}

[dir="rtl"] .swal2-popup.swal2-toast.ed-toast .swal2-header {
	padding: 0 6px 0 0;
}

[dir="rtl"] .swal2-popup.swal2-toast.ed-toast .swal2-title {
	text-align: right;
	padding: 0 0 0 2px;
}

[dir="rtl"] .swal2-popup.swal2-toast.ed-toast.ed-toast-has-text .swal2-content {
	margin: 2px 48px 0 30px;
	text-align: right;
}

[dir="rtl"] .swal2-popup.swal2-toast.ed-toast #swal2-content {
	text-align: right;
}

[dir="rtl"] .swal2-popup.swal2-toast.ed-toast .ed-toast-bar {
	transform-origin: right center;
}

html.dark .swal2-popup.swal2-toast.ed-toast {
	background:
		linear-gradient(135deg, color-mix(in srgb, var(--ed-accent) 16%, transparent) 0%, transparent 42%),
		#2a2d31;
	border-color: #3d4146;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
	color: #f3f4f6;
}

html.dark .swal2-popup.swal2-toast.ed-toast .swal2-title {
	color: #f3f4f6;
}

html.dark .swal2-popup.swal2-toast.ed-toast.ed-toast-has-text .swal2-content {
	color: #d1d5db;
}

html.dark .swal2-popup.swal2-toast.ed-toast .swal2-icon {
	border-color: color-mix(in srgb, var(--ed-accent) 28%, #3d4146);
}

html.dark .swal2-popup.swal2-toast.ed-toast .swal2-close {
	color: #9ca3af;
}

html.dark .swal2-popup.swal2-toast.ed-toast .swal2-close:hover,
html.dark .swal2-popup.swal2-toast.ed-toast .swal2-close:focus {
	background: #3d4146;
	color: #f3f4f6;
}

html.dark .swal2-popup.swal2-toast.ed-toast-success {
	--ed-soft: rgba(1, 146, 103, 0.18);
	--ed-ink: #34d399;
}

html.dark .swal2-popup.swal2-toast.ed-toast-error {
	--ed-soft: rgba(225, 29, 72, 0.18);
	--ed-ink: #fb7185;
}

html.dark .swal2-popup.swal2-toast.ed-toast-warning {
	--ed-soft: rgba(234, 88, 12, 0.18);
	--ed-ink: #fdba74;
}

html.dark .swal2-popup.swal2-toast.ed-toast-info {
	--ed-soft: rgba(37, 99, 235, 0.18);
	--ed-ink: #93c5fd;
}

html.dark .swal2-popup.swal2-toast.ed-toast-question {
	--ed-soft: rgba(15, 118, 110, 0.2);
	--ed-ink: #5eead4;
}

@media (max-width: 520px) {
	body.swal2-toast-shown .swal2-container.swal2-top-end,
	body.swal2-toast-shown .swal2-container.swal2-top-right,
	body.swal2-toast-shown .swal2-container.swal2-top-start,
	body.swal2-toast-shown .swal2-container.swal2-top-left {
		left: 0;
		right: 0;
		justify-content: center;
		padding: 12px;
	}

	.swal2-popup.swal2-toast.ed-toast {
		width: calc(100vw - 24px);
		min-width: 0;
		max-width: none;
	}
}
