/* BV Notifications */

.bv-notifications {
	position: fixed;
	left: 22px;
	bottom: 22px;
	z-index: 99998;
	width: min(380px, calc(100vw - 32px));
	border: 1px solid var(--wp--preset--color--accent-10, #E7E9EE);
	border-radius: 18px;
	background: var(--wp--preset--color--base, #fff);
	color: var(--wp--preset--color--contrast, #061B33);
	box-shadow: 0 16px 40px rgba(6, 27, 51, .14);
	overflow: hidden;
	opacity: 0;
	transform: translateY(18px);
	pointer-events: none;
	transition: opacity .24s ease, transform .24s ease, box-shadow .24s ease;
}

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

.bv-notifications:hover {
	box-shadow: 0 18px 44px rgba(6, 27, 51, .18);
}

.bv-notifications__link {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
	min-width: 0;
	padding: 14px 50px 16px 14px;
	color: inherit;
	text-decoration: none;
}

.bv-notifications__link:hover {
	text-decoration: none;
}

.bv-notifications__image-wrap {
	width: 64px;
	height: 64px;
	border-radius: 14px;
	overflow: hidden;
	background: var(--wp--preset--color--accent-9, #F2F4F7);
}

.bv-notifications__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bv-notifications__content {
	min-width: 0;
}

.bv-notifications__subtitle {
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 2px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--wp--preset--color--contrast, #061B33);
}

.bv-notifications__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--wp--preset--color--contrast, #061B33);
}

.bv-notifications__time {
	display: block;
	margin-top: 4px;
	font-size: 11px;
	line-height: 1.2;
	color: var(--wp--preset--color--accent-4, #6B7280);
}

.bv-notifications__close {
	position: absolute;
	top: 50%;
	right: 12px;
	z-index: 3;
	appearance: none;
	width: 24px;
	height: 24px;
	border: 0;
	border-radius: 999px;
	background: color-mix(in srgb, var(--wp--preset--color--contrast, #061B33) 6%, transparent);
	color: var(--wp--preset--color--contrast, #061B33);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
}

.bv-notifications__close:hover,
.bv-notifications__close:focus-visible {
	background: color-mix(in srgb, var(--wp--preset--color--contrast, #061B33) 10%, transparent);
	outline: none;
}

.bv-notifications__progress {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	height: 3px;
	background: var(--wp--preset--color--accent-1, #16A34A);
	transform: scaleX(1);
	transform-origin: left center;
	pointer-events: none;
	opacity: .95;
}

.bv-notifications.is-visible .bv-notifications__progress {
	animation: bv-notifications-progress var(--bv-notifications-duration, 15000ms) linear forwards;
}

@keyframes bv-notifications-progress {
	from {
		transform: scaleX(1);
	}

	to {
		transform: scaleX(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.bv-notifications.is-visible .bv-notifications__progress {
		animation: none;
	}

	.bv-notifications__progress {
		transform: none;
	}
}

@media (max-width: 768px) {
	.bv-notifications {
		left: 12px;
		right: 12px;
		bottom: 14px;
		width: auto;
		border-radius: 16px;
	}

	.bv-notifications__link {
		grid-template-columns: 56px minmax(0, 1fr);
		gap: 12px;
		padding: 12px 46px 14px 12px;
	}

	.bv-notifications__image-wrap {
		width: 56px;
		height: 56px;
		border-radius: 14px;
	}
}
