/* Desktop recent-product drawer; mobile already has a HISTORY tab. */
.recent-floating {
	position: fixed;
	right: 18px;
	bottom: 24px;
	z-index: 40;
	display: flex;
	align-items: flex-end;
	gap: 8px;
	font-size: 12px;
}

.recent-floating-details {
	position: relative;
}

.recent-floating-details summary,
.recent-floating-top {
	display: block;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid #dedede;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
	color: #333;
	text-decoration: none;
}

.recent-floating-details summary {
	cursor: pointer;
	list-style: none;
}

.recent-floating-details summary::-webkit-details-marker {
	display: none;
}

.recent-floating-details[open] summary {
	border-color: #2e7655;
}

.recent-floating-top {
	width: 42px;
	text-align: center;
	font-size: 16px;
}

.recent-floating-panel {
	position: absolute;
	right: 0;
	bottom: calc(100% + 8px);
	box-sizing: border-box;
	width: 280px;
	max-height: min(450px, calc(100vh - 90px));
	padding: 16px;
	overflow-y: auto;
	border: 1px solid #dedede;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .14);
}

.recent-floating-panel > strong {
	display: block;
	margin-bottom: 12px;
	font-size: 15px;
}

.recent-floating-panel > p {
	margin: 0 0 12px;
	color: #777;
}

.recent-floating-panel ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.recent-floating-panel li {
	display: flex;
	align-items: flex-start;
	gap: 5px;
	padding: 8px 0;
	border-bottom: 1px solid #eee;
}

.recent-floating-panel li > a {
	display: flex;
	flex: 1;
	gap: 9px;
	min-width: 0;
	color: #333;
	text-decoration: none;
}

.recent-floating-panel li img {
	width: 52px;
	height: 52px;
	object-fit: cover;
}

.recent-floating-panel li span {
	min-width: 0;
	max-height: 52px;
	overflow: hidden;
	line-height: 1.35;
}

.recent-floating-panel li small {
	display: block;
	margin-top: 4px;
	font-weight: 700;
}

.recent-floating-panel li form {
	margin: 0;
}

.recent-floating-panel li button {
	border: 0;
	background: transparent;
	color: #777;
	cursor: pointer;
	font-size: 18px;
}

.recent-floating-all {
	display: block;
	margin-top: 12px;
	color: #286d4d;
	text-align: right;
	text-decoration: underline;
}

@media (max-width: 768px) {
	.recent-floating {
		display: none;
	}
}
