/**
 * Inline form toast (inquiry + newsletter submit feedback).
 */
.cnc-form-toast-anchor {
	position: relative;
	display: inline-flex;
	max-width: 100%;
}

.cnc-form-toast-stack {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 0.85rem);
	transform: translateX(-50%);
	z-index: 30;
	width: max-content;
	max-width: min(20rem, calc(100vw - 2rem));
	pointer-events: none;
}

.cnc-form-toast {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	width: max-content;
	max-width: min(20rem, calc(100vw - 2rem));
	padding: 0.85rem 0.95rem 0.85rem 0.85rem;
	border-radius: 1rem;
	background: #fff;
	border: 1px solid rgba(25, 117, 77, 0.14);
	box-shadow: 0 16px 36px rgba(33, 35, 38, 0.18);
	opacity: 0;
	transform: translateY(10px) scale(0.92);
	transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
	pointer-events: auto;
}

.cnc-form-toast::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -5px;
	width: 12px;
	height: 12px;
	background: #fff;
	border-right: 1px solid rgba(25, 117, 77, 0.14);
	border-bottom: 1px solid rgba(25, 117, 77, 0.14);
	transform: translateX(-50%) rotate(45deg);
}

.cnc-form-toast.is-error::after {
	border-right-color: rgba(180, 35, 24, 0.18);
	border-bottom-color: rgba(180, 35, 24, 0.18);
}

.cnc-form-toast.is-visible {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.cnc-form-toast.is-success {
	border-color: rgba(25, 117, 77, 0.22);
}

.cnc-form-toast.is-error {
	border-color: rgba(180, 35, 24, 0.18);
}

.cnc-form-toast__icon {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	min-width: 2rem;
	min-height: 2rem;
	border-radius: 999px;
}

.cnc-form-toast.is-success .cnc-form-toast__icon {
	background: rgba(25, 117, 77, 0.1);
	color: #19754d;
}

.cnc-form-toast.is-error .cnc-form-toast__icon {
	background: rgba(180, 35, 24, 0.1);
	color: #b42318;
}

.cnc-form-toast__icon svg {
	display: block;
	width: 1rem;
	height: 1rem;
	max-width: 1rem;
	max-height: 1rem;
}

.cnc-form-toast__content {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
	padding-top: 0.1rem;
}

.cnc-form-toast__title {
	font-size: 0.92rem;
	line-height: 1.3;
	font-weight: 700;
	color: #212326;
}

.cnc-form-toast__message {
	font-size: 0.86rem;
	line-height: 1.45;
	color: #5f6368;
}

.cnc-form-toast__close {
	flex: 0 0 auto;
	width: 1.5rem;
	height: 1.5rem;
	margin-left: 0.15rem;
	border: 0;
	background: transparent;
	color: #8b9098;
	font-size: 1.15rem;
	line-height: 1;
	cursor: pointer;
}

.cnc-form-toast__close:hover {
	color: #212326;
}

.cnc-form-toast-shake,
.cnc-newsletter-form.is-error-shake,
.gbt-inquiry-form.is-error-shake {
	animation: cnc-form-toast-shake 0.45s ease;
}

.cnc-inquiry-submit-anchor {
	position: relative;
	display: inline-flex;
	max-width: 100%;
}

.gbt-inquiry-form .cnc-inquiry-submit-anchor,
.gbt-inquiry-form .cnc-form-toast-anchor {
	position: relative;
	display: block;
	width: 100%;
}

.gbt-inquiry-form .cnc-form-toast-stack {
	left: 50%;
	transform: translateX(-50%);
}

.gbt-inquiry-form .cnc-form-toast {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	flex-wrap: nowrap;
	width: max-content;
	max-width: min(20rem, calc(100vw - 2rem));
	writing-mode: horizontal-tb;
}

.gbt-inquiry-form .cnc-form-toast__icon {
	flex: 0 0 auto;
	width: 2rem;
	height: 2rem;
	min-width: 2rem;
	min-height: 2rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
}

.gbt-inquiry-form .cnc-form-toast__content {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-width: 0;
}

.gbt-inquiry-form .cnc-form-toast__message,
.gbt-inquiry-form .cnc-form-toast__title {
	display: block;
	white-space: normal;
	word-break: normal;
	writing-mode: horizontal-tb;
	letter-spacing: normal;
	text-transform: none;
	color: #212326;
	background: transparent;
	border: 0;
	border-radius: 0;
	min-height: 0;
	padding: 0;
}

.gbt-inquiry-form .cnc-form-toast__close {
	flex: 0 0 auto;
	width: 1.5rem;
	height: 1.5rem;
	min-width: 1.5rem;
	min-height: 1.5rem;
	margin: 0 0 0 0.15rem;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #8b9098;
	font-size: 1.15rem;
	font-weight: 400;
	line-height: 1;
	letter-spacing: normal;
	cursor: pointer;
	transform: none;
}

.gbt-inquiry-form .cnc-form-toast__close:hover {
	background: transparent;
	color: #212326;
	transform: none;
}

.cnc-inquiry-toast__content > .cnc-inquiry-toast__message:only-child,
.cnc-inquiry-toast__content > .cnc-form-toast__message:only-child {
	font-size: 0.92rem;
	line-height: 1.45;
	font-weight: 600;
	color: #212326;
}

.cnc-newsletter-form--stack-light .cnc-form-toast-anchor,
.cnc-newsletter-form--stack-light .cnc-newsletter-submit-anchor {
	display: block;
	width: 100%;
}

.cnc-newsletter-form--stack-light .cnc-form-toast-stack,
.cnc-newsletter-form--stack-light .cnc-newsletter-toast-stack {
	left: 50%;
	right: auto;
}

@keyframes cnc-form-toast-shake {
	0%,
	100% {
		transform: translateX(0);
	}

	20%,
	60% {
		transform: translateX(-6px);
	}

	40%,
	80% {
		transform: translateX(6px);
	}
}

@media (max-width: 640px) {
	.cnc-form-toast-stack {
		left: auto;
		right: 0;
		transform: none;
		max-width: min(18rem, calc(100vw - 2rem));
	}

	.cnc-form-toast {
		width: 100%;
	}

	.cnc-form-toast::after {
		left: auto;
		right: 1.5rem;
		transform: rotate(45deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.cnc-form-toast {
		transition: none;
		animation: none;
		opacity: 1;
		transform: none;
	}

	.cnc-form-toast-shake,
	.cnc-newsletter-form.is-error-shake,
	.gbt-inquiry-form.is-error-shake {
		animation: none;
	}
}
