.vm-market-history,
.vm-market-history * {
	box-sizing: border-box;
}

.vm-market-history {
	--vm-history-accent: var(--e-global-color-accent, #ae1d27);
	--vm-history-text: var(--e-global-color-text, #171719);
	--vm-history-overflow: clamp(18px, 4.2vw, 60px);
	position: relative;
	width: 100%;
	padding: 0;
	overflow: hidden;
	background: transparent;
	color: var(--vm-history-text);
	font-family: inherit;
	transition: opacity 220ms ease, transform 220ms ease;
}

.vm-market-history.is-cleared {
	opacity: 0;
	transform: translateY(12px);
}

.vm-market-history a {
	color: inherit;
	text-decoration: none;
}

.vm-market-history svg {
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.6;
}

.vm-market-history__inner {
	width: 100%;
	margin: 0;
	padding: 0;
}

.vm-market-history__viewport {
	overflow: visible;
}

.vm-market-history__track {
	display: flex;
	gap: clamp(8px, 1.4vw, 20px);
	margin-right: calc(var(--vm-history-overflow) * -1);
	padding-right: clamp(42px, 8vw, 110px);
}

.vm-market-history-card {
	display: grid;
	min-width: 0;
	min-height: 0;
	aspect-ratio: 2.25 / 1;
	grid-template-columns: 55% 45%;
	flex: 0 0 min(36%, 420px);
	overflow: visible;
	background: transparent;
}

.vm-market-history-card__image {
	position: relative;
	z-index: 2;
	display: block;
	min-width: 0;
	height: calc(100% + 2px);
	margin-block: -1px;
	overflow: hidden;
	border-radius: clamp(7px, 1vw, 12px);
	background: #111;
	box-shadow: 0 6px 14px rgba(20, 20, 22, 0.08);
}

.vm-market-history-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

.vm-market-history-card__image i {
	position: absolute;
	bottom: 8px;
	left: 8px;
	display: grid;
	width: 28px;
	height: 28px;
	place-items: center;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 3px 8px rgba(20, 20, 22, 0.14);
	color: var(--vm-history-accent);
	font-size: 16px;
	font-style: normal;
}

.vm-market-history-card__body {
	position: relative;
	z-index: 1;
	display: flex;
	min-width: 0;
	height: calc(100% - 2px);
	align-self: center;
	flex-direction: column;
	justify-content: center;
	margin-left: -5px;
	padding: clamp(10px, 2vw, 20px);
	border: 1px solid #e1e1de;
	border-radius: 0 clamp(7px, 1vw, 12px) clamp(7px, 1vw, 12px) 0;
	background: #fff;
	box-shadow: 0 6px 14px rgba(20, 20, 22, 0.055);
}

.vm-market-history-card__body > span {
	overflow: hidden;
	color: #929295;
	font-size: clamp(7px, 0.9vw, 9px);
	font-weight: 600;
	letter-spacing: 0.07em;
	line-height: 1.2;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}

.vm-market-history-card h3 {
	display: -webkit-box;
	overflow: hidden;
	margin: 5px 0 clamp(12px, 2vw, 20px);
	font-family: inherit;
	font-size: clamp(11px, 1.5vw, 15px);
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.2;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.vm-market-history-card .vm-market-price {
	display: flex;
	align-items: baseline;
	gap: 5px;
	font-size: clamp(12px, 1.7vw, 18px);
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
}

.vm-market-history-card .vm-market-price del {
	color: #9b9798;
	font-size: 0.78em;
	font-weight: 400;
}

.vm-market-history-card .vm-market-price ins {
	color: inherit;
	text-decoration: none;
}

.vm-market-history-card .vm-market-price del + ins {
	color: var(--vm-history-accent);
}

@media (min-width: 768px) and (max-width: 1179px) {
	.vm-market-history-card {
		flex-basis: min(36%, 420px);
	}
}

@media (min-width: 1180px) {
	.vm-market-history-card {
		flex-basis: calc((100% - 40px) / 3);
	}
}

@media (max-width: 767px) {
	.vm-market-history {
		--vm-history-overflow: clamp(12px, 4.1vw, 16px);
	}

	.vm-market-history__track {
		gap: 7px;
		padding-right: clamp(27px, 8.7vw, 34px);
	}

	.vm-market-history-card {
		min-height: 0;
		grid-template-columns: 55% 45%;
		flex-basis: 40%;
	}

	.vm-market-history-card__image i {
		bottom: 5px;
		left: 5px;
		width: 18px;
		height: 18px;
		font-size: 10px;
	}

	.vm-market-history-card__body {
		padding: clamp(5px, 1.8vw, 7px);
	}

	.vm-market-history-card__body > span {
		font-size: 5px;
	}

	.vm-market-history-card h3 {
		margin: 3px 0 clamp(6px, 2vw, 8px);
		font-size: 8px;
	}

	.vm-market-history-card .vm-market-price {
		gap: 3px;
		font-size: 9px;
	}

}

/*
 * Elementor Button widget.
 * Add the CSS class "vm-history-clear-trigger" to its Advanced settings.
 */
.vm-history-clear-trigger {
	margin-left: auto;
	transition: opacity 180ms ease;
}

.vm-history-clear-trigger[hidden] {
	display: none !important;
}

.vm-history-clear-trigger .elementor-button {
	min-height: 0;
	padding: 0 0 3px !important;
	border: 0 !important;
	border-bottom: 1px solid currentColor !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--e-global-color-accent, #ae1d27) !important;
	font-size: clamp(7px, 1vw, 10px);
	font-weight: 700;
	letter-spacing: 0.07em;
	line-height: 1.3;
	text-transform: uppercase;
}

.vm-history-clear-trigger .elementor-button:hover,
.vm-history-clear-trigger .elementor-button:focus-visible {
	opacity: 0.72;
}
