.tgem-campaign-carousel {
	--tgem-card-gap: clamp(18px, 2vw, 36px);
	background: #050505;
	box-sizing: border-box;
	color: #fff;
	font-family: Montserrat, Arial, sans-serif;
	overflow: hidden;
	padding: clamp(22px, 3vw, 50px) 0 clamp(18px, 2vw, 34px) clamp(18px, 2.5vw, 52px);
	position: relative;
	width: 100%;
}

.tgem-campaign-carousel *,
.tgem-campaign-carousel *::before,
.tgem-campaign-carousel *::after {
	box-sizing: border-box;
}

.tgem-campaign-carousel__track {
	cursor: grab;
	display: flex;
	gap: var(--tgem-card-gap);
	padding: 0 clamp(18px, 2.5vw, 52px) 10px 0;
	touch-action: pan-y;
	transform: translate3d(0, 0, 0);
	-webkit-user-select: none;
	user-select: none;
	will-change: transform;
}

.tgem-campaign-carousel__track.is-dragging {
	cursor: grabbing;
	user-select: none;
}

.tgem-campaign-card {
	color: inherit;
	flex: 0 0 calc((100% - var(--tgem-card-gap)) / 2.08);
	min-width: 0;
	text-decoration: none;
	-webkit-user-drag: none;
}

.tgem-campaign-card:hover,
.tgem-campaign-card:focus {
	color: inherit;
	text-decoration: none;
}

.tgem-campaign-card:focus-visible {
	outline: 2px solid #20ef8b;
	outline-offset: 4px;
}

.tgem-campaign-card__media {
	aspect-ratio: 4 / 3;
	background: linear-gradient(135deg, #202126, #09090a);
	overflow: hidden;
	position: relative;
}

.tgem-campaign-card__media.is-placeholder::after {
	color: rgba(255, 255, 255, 0.28);
	content: "GIVEAWAY";
	font-size: clamp(1.3rem, 3vw, 3rem);
	font-weight: 800;
	left: 50%;
	letter-spacing: 0.12em;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
}

.tgem-campaign-carousel .tgem-campaign-card__media > .tgem-campaign-card__image {
	display: block;
	height: 100% !important;
	inset: 0;
	margin: 0;
	max-height: none;
	max-width: none;
	object-fit: cover;
	position: absolute;
	transition: transform 350ms ease;
	width: 100% !important;
	-webkit-user-drag: none;
	pointer-events: none;
	user-select: none;
}

.tgem-campaign-card:hover .tgem-campaign-card__image {
	transform: scale(1.018);
}

.tgem-campaign-card__deadline {
	background: #20ef8b;
	bottom: 0;
	clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
	color: #050505;
	font-size: clamp(0.7rem, 1vw, 0.9rem);
	font-weight: 800;
	left: 0;
	line-height: 1;
	max-width: calc(100% - 20px);
	padding: 12px 34px 12px 14px;
	position: absolute;
	text-transform: none;
	z-index: 2;
	box-sizing: border-box;
	overflow-wrap: anywhere;
}

.tgem-campaign-card__body {
	padding-top: 18px;
}

.tgem-campaign-card__progress-row {
	align-items: center;
	display: flex;
	gap: 12px;
	margin-bottom: 15px;
}

.tgem-campaign-card__progress {
	position: relative;
	min-width: 0;
	background: #232329;
	border-radius: 999px;
	flex: 1 1 auto;
	min-height: 32px;
	overflow: hidden;
}

.tgem-campaign-card__progress > span {
	position: absolute;
	left: 0;
	top: 0;
	background: linear-gradient(90deg, #18ef92 0%, #ffde20 62%, #ff4a0a 100%);
	border-radius: inherit;
	display: block;
	height: 100%;
	max-width: 100%;
	min-width: 0;
	width: var(--tgem-campaign-progress);
}

.tgem-campaign-card__percent {
	color: #9b9ba3;
	font-size: 0.76rem;
	white-space: nowrap;
}

.tgem-campaign-card__progress > .tgem-progress-label {
	position: relative;
	display: block;
	padding: 7px 10px;
	text-align: center;
	color: #fff;
	font: 700 13px/18px Arial, sans-serif;
	text-shadow: 0 1px 2px #000, 0 0 3px #000;
}

.tgem-campaign-card__title {
	font-family: inherit;
	text-transform: none !important;
	color: #fff;
	font-size: clamp(1.05rem, 1.5vw, 1.55rem);
	font-weight: 800;
	line-height: 1.18;
	margin: 0 0 8px;
}

.tgem-campaign-card__subtitle {
	color: #b8b8bd;
	font-size: clamp(0.72rem, 0.9vw, 0.9rem);
	line-height: 1.35;
	margin: 0 0 8px;
	text-transform: uppercase;
}

.tgem-campaign-card__price {
	color: #ffe31a;
	font-size: clamp(1.15rem, 1.6vw, 1.65rem);
	font-weight: 800;
	line-height: 1;
	margin: 0;
}

.tgem-campaign-carousel__controls {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	padding: 10px clamp(18px, 2.5vw, 52px) 0 0;
}

.tgem-campaign-carousel__arrow {
	align-items: center;
	background: transparent;
	border: 1px solid #2f3035;
	border-radius: 50%;
	color: #aaaab1;
	cursor: pointer;
	display: inline-flex;
	font-size: 1.2rem;
	height: 44px;
	justify-content: center;
	padding: 0;
	transition: border-color 150ms ease, color 150ms ease, opacity 150ms ease;
	width: 44px;
}

.tgem-campaign-carousel__arrow:hover,
.tgem-campaign-carousel__arrow:focus-visible {
	border-color: #20ef8b;
	color: #20ef8b;
	outline: none;
}

.tgem-campaign-carousel__arrow:disabled {
	cursor: default;
	opacity: 0.32;
}

.tgem-campaign-carousel-empty {
	padding: 1rem;
	text-align: center;
}

@media (max-width: 767px) {
	/*
	 * Elementor can calculate a shortcode widget's flex height before lazy images
	 * and webfonts finish loading. Reserve the measured carousel height on every
	 * shortcode wrapper so the following Elementor container stays in normal flow.
	 */
	.tgem-campaign-carousel-host {
		display: block !important;
		height: auto !important;
		min-height: var(--tgem-carousel-reserved-height, auto) !important;
		position: relative !important;
		width: 100% !important;
	}

	.tgem-campaign-carousel {
		--tgem-card-gap: 14px;
		clear: both;
		display: flow-root;
		height: auto !important;
		margin: 0;
		min-height: 0 !important;
		padding-left: 16px;
	}

	.tgem-campaign-card {
		flex-basis: 88%;
	}

	.tgem-campaign-card__deadline {
		padding-bottom: 10px;
		padding-top: 10px;
	}

	.tgem-campaign-carousel__controls {
		padding-right: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tgem-campaign-carousel .tgem-campaign-card__media > .tgem-campaign-card__image {
		transition: none;
	}
}
