/**
 * Watch and bid counters on the lower right of a lot image.
 * Colour, type, border, spacing, and flex layout come from the Counters design group.
 */

.spruce-am-lot-detail__gallery,
.spruce-am-lot-detail__placeholder,
.spruce-am-lot-card__media,
.spruce-am-lot-grid-card__media {
	position: relative;
}

.spruce-am-lot-counters {
	position: absolute;
	right: 0.55rem;
	bottom: 0.55rem;
	z-index: 4;
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	gap: 0.65rem;
	padding: 0.2rem 0.5rem;
	background: #fff;
	border: 1px solid rgba(17, 17, 17, 0.12);
	border-radius: 0.45rem;
	color: #111;
	font-size: 0.8rem;
	line-height: 1;
}

.spruce-am-lot-detail__gallery--multi .spruce-am-lot-counters {
	bottom: 1.85rem;
}

.spruce-am-lot-counters__item {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.28em;
}

.spruce-am-lot-counters__heart {
	display: block;
	width: 0.95em;
	height: 0.95em;
	fill: #dc2626;
}

.spruce-am-lot-counters__gavel {
	display: block;
	width: 0.95em;
	height: 0.95em;
	fill: #111;
}

.spruce-am-lot-counters__tip {
	position: absolute;
	bottom: calc(100% + 0.35rem);
	right: 0;
	left: auto;
	z-index: 5;
	width: max-content;
	max-width: 14rem;
	padding: 0.3rem 0.5rem;
	border-radius: 4px;
	background: #1e293b;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.3;
	text-align: left;
	white-space: normal;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.12s ease;
}

.spruce-am-lot-counters__item:hover .spruce-am-lot-counters__tip {
	opacity: 1;
}
