/**
 * Bonusfinder Profile Builder Visual Confirmation
 * Toast notification styles following Figma design specs
 *
 * Design specs:
 * - Background: rgba(224, 220, 245, 0.76)
 * - Border radius: 39px (pill shape)
 * - Glass effect with blur and drop shadow
 * - Font: Poppins Medium, 14px, color #31363f
 * - Icon + text with 5px gap
 */

/* Toast Container - Fixed positioning for no CLS */
.bfpbvc-toast-container {
	position: fixed;
	top: 21px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 999999;
	pointer-events: none;
	contain: layout style;
}

/* Toast Component */
.bfpbvc-toast {
	display: flex;
	width: auto;
	min-height: 56px;
	padding: 10px 20px;
	justify-content: center;
	align-items: center;
	gap: 5px;
	background: rgba(224, 220, 245, 0.76);
	border-radius: 39px;
	box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.15);
	opacity: 0;
	transform: translateY(-20px);
	animation: bfpbvc-fade-in 0.3s ease-out forwards;
	pointer-events: auto;
	box-sizing: border-box;
	white-space: nowrap;
}

/* Fade in animation */
@keyframes bfpbvc-fade-in {

	from {
		opacity: 0;
		transform: translateY(-20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Fade out animation */
.bfpbvc-toast-dismissing {
	animation: bfpbvc-fade-out 0.3s ease-in forwards;
}

@keyframes bfpbvc-fade-out {

	from {
		opacity: 1;
		transform: translateY(0);
	}

	to {
		opacity: 0;
		transform: translateY(-20px);
	}
}

/* Icon styles */
.bfpbvc-toast-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 20.126px;
	height: 20.126px;
}

.bfpbvc-toast-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

/* Message styles */
.bfpbvc-toast-message {
	font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-weight: 500;
	font-size: 14px;
	line-height: 1.2;
	color: #31363f;
	text-align: left;
}

/* Responsive adjustments - Mobile */
@media screen and (max-width: 767px) {

	.bfpbvc-toast {
		width: 291px;
		white-space: normal;
	}
}

@media screen and (max-width: 320px) {

	.bfpbvc-toast-container {
		left: 10px;
		right: 10px;
		transform: none;
	}

	.bfpbvc-toast {
		width: auto;
		max-width: 100%;
		padding: 10px 16px;
	}

	.bfpbvc-toast-message {
		font-size: 13px;
	}
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {

	.bfpbvc-toast {
		background: rgba(60, 55, 80, 0.5);
		box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.3);
	}

	.bfpbvc-toast-message {
		color: #eeeffb;
	}
}

/* Manual dark mode class (for theme toggle support) */
.dark .bfpbvc-toast,
[data-theme="dark"] .bfpbvc-toast,
.theme-dark .bfpbvc-toast {
	background: rgba(60, 55, 80, 0.5);
	box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.3);
}

.dark .bfpbvc-toast-message,
[data-theme="dark"] .bfpbvc-toast-message,
.theme-dark .bfpbvc-toast-message {
	color: #eeeffb;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

	.bfpbvc-toast {
		animation: none;
		opacity: 1;
		transform: translateY(0);
	}

	.bfpbvc-toast-dismissing {
		animation: none;
		opacity: 0;
	}
}

/* Screen reader only class for additional context */
.bfpbvc-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
