.av-rpn-notification {
	position: fixed;
	bottom: 24px;
	z-index: 2147483000;
	display: grid;
	box-sizing: border-box;
	grid-template-columns: 64px minmax(0, 1fr);
	width: min(410px, calc(100vw - 32px));
	min-height: 98px;
	align-items: center;
	column-gap: 14px;
	padding: 17px 52px 17px 18px;
	overflow: hidden;
	color: #172033;
	background: linear-gradient(135deg, #ffffff 0%, #f8fdf9 100%);
	border: 1px solid rgba(21, 128, 61, 0.18);
	border-radius: 18px;
	box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18), 0 4px 14px rgba(15, 23, 42, 0.08);
	font-family: inherit;
	font-size: 14px;
	line-height: 1.45;
	opacity: 0;
	pointer-events: none;
	transform: translateY(18px) scale(0.985);
	transition: opacity 240ms ease, transform 240ms ease, box-shadow 180ms ease;
}

.av-rpn-notification::before {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 5px;
	background: linear-gradient(180deg, #16a34a, #15803d);
	content: "";
}

/* Leave room for common floating-cart/chat buttons at the bottom right. */
.av-rpn-right { right: max(88px, calc(24px + env(safe-area-inset-right))); }
.av-rpn-left { left: max(24px, env(safe-area-inset-left)); }

.av-rpn-center {
	left: 50%;
	transform: translate(-50%, 18px) scale(0.985);
}

.av-rpn-notification.av-rpn-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0) scale(1);
}

.av-rpn-center.av-rpn-visible {
	transform: translate(-50%, 0) scale(1);
}

.av-rpn-notification:hover {
	box-shadow: 0 24px 56px rgba(15, 23, 42, 0.22), 0 6px 18px rgba(15, 23, 42, 0.09);
}

.av-rpn-media {
	position: relative;
	display: block;
	width: 64px;
	height: 64px;
	background: #ecfdf3;
	border: 1px solid rgba(21, 128, 61, 0.14);
	border-radius: 14px;
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
}

.av-rpn-product-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 13px;
}

.av-rpn-icon {
	position: absolute;
	right: -5px;
	bottom: -5px;
	display: inline-flex;
	width: 23px;
	height: 23px;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: linear-gradient(145deg, #22c55e, #15803d);
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 6px 16px rgba(21, 128, 61, 0.24);
	font-size: 12px;
	font-weight: 700;
}

.av-rpn-media-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(145deg, #ecfdf3, #dcfce7);
}

.av-rpn-media-fallback .av-rpn-icon {
	position: static;
	width: 38px;
	height: 38px;
	border-width: 3px;
	font-size: 18px;
}

.av-rpn-media-link {
	display: block;
	border-radius: 14px;
	color: inherit;
	text-decoration: none;
}

.av-rpn-media-link:hover .av-rpn-media {
	box-shadow: 0 9px 20px rgba(15, 23, 42, 0.14);
	transform: translateY(-1px);
}

.av-rpn-media-link:focus-visible {
	border-radius: 14px;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.24);
	outline: none;
}

.av-rpn-media-link .av-rpn-media {
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.av-rpn-content {
	display: block;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.av-rpn-content:hover .av-rpn-message,
.av-rpn-content:focus .av-rpn-message { color: #166534; }

.av-rpn-content:focus-visible {
	outline: 2px solid #15803d;
	outline-offset: 3px;
	border-radius: 2px;
}

.av-rpn-eyebrow {
	display: block;
	margin-bottom: 3px;
	color: #15803d;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.09em;
	line-height: 1.2;
	text-transform: uppercase;
}

.av-rpn-message {
	display: block;
	font-size: 15px;
	font-weight: 650;
	line-height: 1.4;
	overflow-wrap: anywhere;
	transition: color 160ms ease;
}

.av-rpn-time {
	display: block;
	margin-top: 6px;
	color: #6b7280;
	font-size: 12.5px;
	font-weight: 400;
}

.av-rpn-time::before {
	margin-right: 6px;
	color: #22c55e;
	content: "\2022";
}

.av-rpn-notification button.av-rpn-close {
	position: absolute !important;
	top: 13px !important;
	right: 13px !important;
	bottom: auto !important;
	left: auto !important;
	z-index: 1;
	display: inline-flex !important;
	box-sizing: border-box !important;
	width: 32px !important;
	min-width: 32px !important;
	height: 32px !important;
	min-height: 32px !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 0 !important;
	padding: 0 !important;
	color: #64748b !important;
	background: rgba(248, 250, 252, 0.94) !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 999px !important;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08) !important;
	cursor: pointer;
	font: inherit !important;
	line-height: 1 !important;
	letter-spacing: normal !important;
	text-decoration: none !important;
	text-transform: none !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease !important;
}

.av-rpn-close-icon {
	display: block;
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 1.8;
	pointer-events: none;
}

.av-rpn-notification button.av-rpn-close:hover {
	color: #0f172a !important;
	background: #fff !important;
	border-color: #cbd5e1 !important;
	box-shadow: 0 3px 8px rgba(15, 23, 42, 0.12) !important;
}

.av-rpn-notification button.av-rpn-close:focus-visible {
	color: #166534 !important;
	background: #fff !important;
	border-color: #86efac !important;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2) !important;
	outline: none !important;
}

@media (max-width: 640px) {
	.av-rpn-notification {
		bottom: max(16px, env(safe-area-inset-bottom));
		width: auto;
		min-height: 92px;
		grid-template-columns: 54px minmax(0, 1fr);
		column-gap: 12px;
		padding: 15px 48px 15px 16px;
		border-radius: 15px;
	}

	.av-rpn-left,
	.av-rpn-right,
	.av-rpn-center {
		left: 16px;
		right: 16px;
	}

	.av-rpn-right {
		bottom: max(92px, calc(16px + env(safe-area-inset-bottom)));
	}

	.av-rpn-center {
		transform: translateY(18px) scale(0.985);
	}

	.av-rpn-center.av-rpn-visible {
		transform: translateY(0) scale(1);
	}

	.av-rpn-media {
		width: 54px;
		height: 54px;
		border-radius: 12px;
	}

	.av-rpn-product-image {
		border-radius: 11px;
	}

	.av-rpn-media-link {
		border-radius: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.av-rpn-notification,
	.av-rpn-notification,
	.av-rpn-notification button.av-rpn-close,
	.av-rpn-media-link .av-rpn-media { transition: opacity 1ms linear !important; }
}

