/* Recently viewed strip — scoped to .bk-recent / .bk-recent-source */

.bk-recent-source--hide,
.elementor-section:has(.bk-recent-source--hide) {
	display: none !important;
}

.bk-recent[hidden] {
	display: none !important;
}

.bk-recent-slot {
	width: 100%;
}

.bk-recent {
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}

.bk-recent__inner {
	box-sizing: border-box;
	width: 100%;
	max-width: 1260px;
	margin: 0 auto;
	padding: 8px 20px 28px;
}

.bk-recent-source .bk-recent__inner {
	max-width: none;
	padding-inline: 0;
	padding-top: 4px;
	padding-bottom: 8px;
}

.bk-recent__title {
	margin: 0 0 12px;
	font-size: 1rem;
	line-height: 1.5;
	font-weight: 800;
	color: #202723;
}

.bk-recent__row {
	display: flex;
	flex-wrap: nowrap;
	justify-content: flex-start;
	align-items: stretch;
	gap: 12px;
	overflow-x: auto;
	overflow-y: hidden;
	max-width: 100%;
	padding-bottom: 2px;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	touch-action: pan-x;
	scrollbar-width: thin;
}

.bk-recent-card {
	box-sizing: border-box;
	flex: 0 0 280px;
	width: 280px;
	max-width: 280px;
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	height: 120px;
	padding: 12px;
	background: #fff;
	border: 1px solid #e4ebe6;
	border-radius: 12px;
	box-shadow: 0 1px 2px rgb(22 56 42 / 4%);
	text-decoration: none;
	color: inherit;
}

.bk-recent-card:focus-visible {
	outline: 2px solid #176d02;
	outline-offset: 2px;
}

.bk-recent-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	border-radius: 8px;
	background: #f6f8f6;
	overflow: hidden;
}

.bk-recent-card__media img,
.bk-recent-card__photo {
	width: 76px;
	height: 76px;
	max-width: 76px;
	max-height: 76px;
	object-fit: contain;
	object-position: center;
}

.bk-recent-card__text {
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
}

.bk-recent-card__name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 0.88rem;
	line-height: 1.45;
	font-weight: 700;
	color: #202723;
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
}

.bk-recent-card__go {
	font-size: 0.8rem;
	font-weight: 700;
	color: #176d02;
	white-space: nowrap;
}

@media (max-width: 899px) {
	.bk-recent__inner {
		padding-inline: 14px;
		padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
	}

	.bk-recent__row {
		padding-inline-end: 28px;
	}

	.bk-recent-card {
		flex-basis: 270px;
		width: 270px;
		max-width: 270px;
		height: 118px;
	}
}

@media (max-width: 360px) {
	.bk-recent-card {
		flex-basis: 260px;
		width: 260px;
		max-width: 260px;
	}
}
