.vm-cart-link { position: relative; }
.vm-cart-link__count {
	position: absolute;
	inset-block-start: -5px;
	inset-inline-end: -6px;
	display: grid;
	place-items: center;
	min-inline-size: 20px;
	min-block-size: 20px;
	padding-inline: 4px;
	border: 1px solid var(--color-surface);
	border-radius: 999px;
	background: var(--color-action);
	color: var(--color-surface);
	font-size: .71rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

.vm-shop-notifications {
	position: fixed;
	z-index: 1200;
	inset-inline-end: max(14px, env(safe-area-inset-right));
	inset-block-end: max(14px, env(safe-area-inset-bottom));
	display: grid;
	gap: 8px;
	inline-size: min(27rem, calc(100% - 28px));
	max-block-size: min(34rem, calc(100dvh - 28px));
	overflow: auto;
	overscroll-behavior: contain;
	padding: 4px;
}
body:has(.vm-back-to-top--floating:not([hidden])) .vm-shop-notifications:not([data-vm-dialog-notifications]) {
	inset-block-end: calc(max(16px, env(safe-area-inset-bottom)) + 56px);
	max-block-size: min(34rem, calc(100dvh - max(16px, env(safe-area-inset-bottom)) - 86px));
}
body:has(dialog:modal) .vm-shop-notifications:not([data-vm-dialog-notifications]) { visibility: hidden; }
.vm-shop-toast {
	--vm-toast-accent: var(--color-action);
	--vm-toast-bg: #e7f2f9;
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr) 44px;
	align-items: start;
	gap: 10px;
	padding: 12px 8px 12px 12px;
	border: 1px solid var(--color-border);
	border-inline-start: 3px solid var(--vm-toast-accent);
	border-radius: 14px;
	background: var(--color-surface);
	color: var(--color-text);
	box-shadow: 0 6px 20px #14223024;
	line-height: 1.4;
}
.vm-shop-toast[data-kind="success"] { --vm-toast-accent: #1d6848; --vm-toast-bg: #e9f7ef; }
.vm-shop-toast[data-kind="error"] { --vm-toast-accent: #a61d34; --vm-toast-bg: #fff0f3; }
.vm-shop-toast__icon {
	display: grid;
	place-items: center;
	inline-size: 32px;
	block-size: 32px;
	border-radius: 50%;
	background: var(--vm-toast-bg);
	color: var(--vm-toast-accent);
	font-weight: 750;
}
.vm-shop-toast__icon::before { content: "i"; }
.vm-shop-toast[data-kind="success"] .vm-shop-toast__icon::before { content: "✓"; }
.vm-shop-toast[data-kind="error"] .vm-shop-toast__icon::before { content: "!"; }
.vm-shop-toast__body { display: grid; min-inline-size: 0; gap: 4px; padding-block-start: 3px; }
.vm-shop-toast__title { color: var(--color-text); font-size: .99rem; font-weight: 700; }
.vm-shop-toast__message { min-inline-size: 0; color: var(--color-text-muted); font-size: .875rem; overflow-wrap: anywhere; }
.vm-shop-toast__message :is(ul, ol) { margin: 0; padding-inline-start: 1.15em; }
.vm-shop-toast__message li + li { margin-block-start: 4px; }
.vm-shop-toast__message a:where(:not(.vm-button)) { color: var(--color-action); font-weight: 600; }
.vm-shop-toast__action { margin-block-start: 6px; }
.vm-shop-toast__message a.button { float: none; margin-inline-end: 8px; }
.vm-shop-toast__close {
	--vm-button-ink: var(--color-text-muted);
	inline-size: 44px;
}
.vm-shop-toast__close svg { inline-size: 18px; block-size: 18px; }
.vm-shop-toast:focus-visible { outline-offset: -2px; }

[data-vm-cart-add] .single_add_to_cart_button[aria-busy="true"] { opacity: .76; cursor: progress; }
[data-vm-cart-add] .single_add_to_cart_button[aria-busy="true"]::after {
	display: inline-block;
	inline-size: .9em;
	block-size: .9em;
	margin-inline-start: .55em;
	border: 2px solid currentColor;
	border-inline-end-color: transparent;
	border-radius: 50%;
	vertical-align: -.1em;
	content: "";
}

@media (prefers-reduced-motion: no-preference) {
	.vm-shop-toast { animation: vm-shop-toast-in .18s ease-out; }
	[data-vm-cart-add] .single_add_to_cart_button[aria-busy="true"]::after { animation: vm-shop-cart-wait .7s linear infinite; }
	@keyframes vm-shop-toast-in { from { opacity: 0; translate: 0 5px; } }
	@keyframes vm-shop-cart-wait { to { rotate: 1turn; } }
}

.woocommerce :is(.woocommerce-error, .woocommerce-info, .woocommerce-message):not([hidden]) {
	padding: 12px 16px;
	border: 1px solid var(--color-border);
	border-radius: 12px;
	background: var(--color-canvas);
	color: var(--color-text);
}
.woocommerce :is(.woocommerce-error, .woocommerce-info, .woocommerce-message)::before { content: none; }
.woocommerce ul.woocommerce-error:not([hidden]) { padding-inline-start: 32px; }
.woocommerce .coupon-error-notice { color: #a61d34; font-size: .875rem; }
