/**
 * IGSHOP Shop Kit — "recently bought" bubbles.
 *
 * One small card, fixed to the bottom left of the screen, that fades in and
 * out (see assets/js/store-notifications.js).
 *
 *   [photo]  Aisyah from Selangor bought
 *            Velvet Matte Lip Cream
 *            2 h ago                                  [x]
 *
 * A theme with its own fixed bar along the bottom of the phone screen lifts
 * the card clear of it by setting --qav-notif-bottom, for example
 *   body.has-bottom-bar { --qav-notif-bottom: 76px; }
 *
 * Custom properties (all optional):
 *   --qav-notif-bottom   gap between the card and the bottom edge. Default 16px.
 *   --qav-notif-left     gap to the left edge. Default 16px.
 *   --qav-notif-z        stacking order. Default 60.
 */

.qav-notif {
	position: fixed;
	left: calc(var(--qav-notif-left, 16px) + env(safe-area-inset-left, 0px));
	bottom: calc(var(--qav-notif-bottom, 16px) + env(safe-area-inset-bottom, 0px));
	z-index: var(--qav-notif-z, 60);
	display: flex;
	align-items: stretch;
	box-sizing: border-box;
	width: 340px;
	max-width: calc(100vw - 32px);
	background: #fff;
	color: #1d1d1f;
	border-radius: 14px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16), 0 1px 4px rgba(0, 0, 0, 0.08);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.4s ease, transform 0.4s ease;
	pointer-events: none;
}

.qav-notif.is-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.qav-notif__link {
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	gap: 12px;
	min-width: 0;
	padding: 10px 34px 10px 10px;
	color: inherit;
	text-decoration: none;
}

.qav-notif__link:hover,
.qav-notif__link:focus-visible {
	color: inherit;
	text-decoration: none;
}

.qav-notif__link:focus-visible {
	outline: 2px solid var(--qav-brand-accent, var(--e-global-color-accent, #14848c));
	outline-offset: -2px;
	border-radius: 14px;
}

.qav-notif__img {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 10px;
	background: #f2f2f2;
}

.qav-notif__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	line-height: 1.3;
}

.qav-notif__who {
	font-size: 12px;
	color: #5c5c61;
}

.qav-notif__product {
	font-size: 14px;
	font-weight: 600;
	color: var(--qav-brand-primary, var(--e-global-color-primary, #330917));
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.qav-notif__time {
	font-size: 11px;
	color: #86868b;
}

.qav-notif__close {
	position: absolute;
	top: 4px;
	right: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #86868b;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.qav-notif__close:hover,
.qav-notif__close:focus-visible {
	background: #f2f2f2;
	color: #1d1d1f;
}

.qav-notif__close:focus-visible {
	outline: 2px solid var(--qav-brand-accent, var(--e-global-color-accent, #14848c));
}

@media (max-width: 480px) {
	.qav-notif {
		width: auto;
		right: calc(var(--qav-notif-left, 16px) + env(safe-area-inset-right, 0px));
		max-width: 360px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.qav-notif {
		transform: none;
		transition: opacity 0.2s ease;
	}
}

@media print {
	.qav-notif {
		display: none;
	}
}
