.tgem-daily-countdown {
	--tgem-daily-accent: #20ef8b;
	align-items: center;
	background: #050505;
	box-sizing: border-box;
	color: #fff;
	display: inline-flex;
	font-family: Montserrat, Arial, sans-serif;
	gap: 10px;
	max-width: 100%;
	min-width: 0;
	padding: 6px 8px;
	vertical-align: middle;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

/* Let only the Elementor widget containing this shortcode shrink in a header. */
.elementor-widget-shortcode:has(.tgem-daily-countdown),
.elementor-widget-container:has(> .elementor-shortcode > .tgem-daily-countdown),
.elementor-shortcode:has(> .tgem-daily-countdown) {
	min-width: 0;
	max-width: 100%;
}

.tgem-daily-countdown *,
.tgem-daily-countdown *::before,
.tgem-daily-countdown *::after {
	box-sizing: border-box;
}

.tgem-daily-countdown__heading {
	align-items: flex-end;
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	font-style: italic;
	font-weight: 900;
	justify-content: center;
	line-height: 0.96;
	min-width: 86px;
	text-align: right;
	text-transform: uppercase;
}

.tgem-daily-countdown__title,
.tgem-daily-countdown__subtitle {
	color: #fff;
	display: block;
	font-family: Montserrat, Arial, sans-serif;
	font-size: clamp(13px, 1vw, 16px);
	font-style: italic;
	font-weight: 900;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.tgem-daily-countdown__timer {
	display: flex;
	gap: 6px;
}

.tgem-daily-countdown__unit {
	align-items: center;
	background: #0c0c0d;
	border: 1px solid var(--tgem-daily-accent);
	border-radius: 10px;
	display: flex;
	flex: 0 0 58px;
	flex-direction: column;
	height: 58px;
	justify-content: center;
	min-width: 0;
	text-align: center;
}

.tgem-daily-countdown__value {
	color: #fff;
	display: block;
	font-size: clamp(18px, 1.5vw, 21px);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1;
}

.tgem-daily-countdown__label {
	color: #fff;
	display: block;
	font-size: 8px;
	font-weight: 800;
	line-height: 1;
	margin-top: 4px;
	text-transform: uppercase;
}

@media (max-width: 767px) {
	.tgem-daily-countdown {
		gap: 3px;
		padding: 1px 2px;
		width: 174px;
		container-type: inline-size;
	}

	.tgem-daily-countdown__heading {
		min-width: 52px;
	}

	.tgem-daily-countdown__title,
	.tgem-daily-countdown__subtitle {
		font-size: 8px;
	}

	.tgem-daily-countdown__timer {
		gap: 2px;
		flex: 1 1 0;
		min-width: 0;
	}

	.tgem-daily-countdown__unit {
		border-radius: 7px;
		flex-basis: 36px;
		flex-grow: 1;
		flex-shrink: 1;
		height: 40px;
	}

	.tgem-daily-countdown__value {
		font-size: 13px;
	}

	.tgem-daily-countdown__label {
		font-size: 5px;
		margin-top: 2px;
	}
}

/* A narrow Elementor column may be smaller than the phone viewport. */
@container (max-width: 140px) {
	.tgem-daily-countdown__heading {
		min-width: 0;
		flex: 0 1 36%;
	}

	.tgem-daily-countdown__title,
	.tgem-daily-countdown__subtitle {
		white-space: normal;
		overflow-wrap: anywhere;
	}
}

@media (max-width: 360px) {
	.tgem-daily-countdown__heading {
		min-width: 48px;
	}

	.tgem-daily-countdown__title,
	.tgem-daily-countdown__subtitle {
		font-size: 7px;
	}
}

/* Use the longstanding ready flag so older CDN scripts can also reveal the timer. */
.tgem-daily-countdown:not([data-tgem-daily-ready="true"]) .tgem-daily-countdown__value {
	visibility: hidden;
}
