.wd-toast-popup {
	position: fixed;
	background-color: var(--wd-toast-bg-color, #005ECA);
	color: var(--wd-toast-text-color, #ffffff);
	display: flex;
	align-items: center;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.4;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.3s ease, transform 0.3s ease;
	box-sizing: border-box;
}

/* Desktop styling */
@media (min-width: 768px) {
	.wd-toast-popup {
		bottom: var(--wd-toast-bottom-desktop, 30px);
		right: 30px;
		max-width: 380px;
		padding: 12px 16px;
	}
}

/* Mobile styling */
@media (max-width: 767px) {
	.wd-toast-popup {
		bottom: var(--wd-toast-bottom-mobile, 20px);
		left: 16px;
		right: 16px;
		width: calc(100% - 32px);
		padding: 12px;
	}
}

.wd-toast-popup.wd-show {
	opacity: 1;
	transform: translateY(0);
}

.wd-toast-icon {
	flex-shrink: 0;
	margin-right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wd-toast-icon svg {
	width: 18px;
	height: 18px;
	fill: var(--wd-toast-icon-color, #ffffff);
}

.wd-toast-content {
	flex-grow: 1;
	margin-right: 8px;
}

.wd-toast-close {
	flex-shrink: 0;
	background: transparent;
	border: none;
	color: var(--wd-toast-text-color, #ffffff);
	cursor: pointer;
	padding: 4px;
	margin: -4px; /* Adjust hit area */
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.8;
	transition: opacity 0.2s ease;
	outline: none;
}

.wd-toast-close:hover,
.wd-toast-close:focus {
	opacity: 1;
}

.wd-toast-close svg {
	width: 16px;
	height: 16px;
	stroke: var(--wd-toast-text-color, #ffffff);
}
