/**
 * Cooking B — Toastify overrides (palette + layout).
 */

.toastify.cb-toast {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	min-width: min(320px, calc(100vw - var(--cb-mobile-gutter) * 2));
	max-width: min(420px, calc(100vw - var(--cb-mobile-gutter) * 2));
	padding: 1rem 1.25rem;
	border-radius: var(--radius-md);
	font-family: var(--family-body);
	font-size: var(--text-sm);
	font-weight: 600;
	line-height: 1.5;
	color: var(--color-text-inverse);
	box-shadow: var(--shadow-md);
	border: 1px solid rgba(250, 243, 236, 0.2);
}

.toastify.cb-toast .toast-close {
	color: inherit;
	opacity: 0.72;
	font-size: 1.125rem;
	line-height: 1;
	padding: 0;
	margin-inline-start: var(--space-2);
	flex-shrink: 0;
}

.toastify.cb-toast .toast-close:hover {
	opacity: 1;
}

.toastify.cb-toast--success {
	background: var(--gradient-rose);
}

.toastify.cb-toast--error {
	background: linear-gradient(135deg, #b5503e 0%, #a34f62 100%);
}

.toastify.cb-toast--warning {
	background: linear-gradient(135deg, #c98a3c 0%, #dfa898 100%);
	color: var(--color-text);
	border-color: rgba(42, 30, 24, 0.08);
}

.toastify.cb-toast--warning .toast-close {
	color: var(--color-text);
}

.toastify.cb-toast--info {
	background: linear-gradient(135deg, #2a1e18 0%, #6b574c 100%);
}

body.admin-bar .toastify.cb-toast.toastify-top {
	margin-top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .toastify.cb-toast.toastify-top {
		margin-top: 46px;
	}
}

@media (max-width: 767px) {
	.toastify.cb-toast {
		min-width: calc(100vw - var(--cb-mobile-gutter) * 2);
		max-width: calc(100vw - var(--cb-mobile-gutter) * 2);
	}
}
