/* Roll Countdown */

.rcd-container {
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
	max-width: 100%;
	box-sizing: border-box;
}

.rcd-timer {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	font-family: var(--rcd-font, inherit);
	font-size: var(--rcd-size, 48px);
	color: var(--rcd-color, #fff);
	line-height: 1.1;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* The container that holds each of the H / M / S digit groups. */
.rcd-box {
	display: inline-block;
	box-sizing: border-box;
	background: var(--rcd-bg, #222);
	border-radius: var(--rcd-radius, 6px);
	padding: var(--rcd-pt, 10px) var(--rcd-pr, 16px) var(--rcd-pb, 10px) var(--rcd-pl, 16px);
}

.rcd-digits {
	display: inline-flex;
}

/* One digit; clips the rolling animation. */
.rcd-digit {
	position: relative;
	display: inline-block;
	overflow: hidden;
	height: 1.1em;
	line-height: 1.1;
}

.rcd-v {
	display: block;
}

.rcd-sep {
	color: var(--rcd-sep, #222);
	white-space: pre;
}

/* Roll down: the old digit drops out the bottom while the new one drops in from the top. */
.rcd-v.rcd-in {
	animation: rcd-in 0.35s ease-out both;
}

.rcd-v.rcd-out {
	position: absolute;
	top: 0;
	left: 0;
	animation: rcd-out 0.35s ease-out both;
}

@keyframes rcd-in {
	from { transform: translateY(-100%); }
	to   { transform: translateY(0); }
}

@keyframes rcd-out {
	from { transform: translateY(0); }
	to   { transform: translateY(100%); }
}

@media (prefers-reduced-motion: reduce) {
	.rcd-v.rcd-in {
		animation: none;
	}
	.rcd-v.rcd-out {
		display: none;
	}
}

.rcd-notice {
	padding: 12px 16px;
	background: #f0f0f1;
	border: 1px dashed #8c8f94;
	color: #50575e;
	font-size: 14px;
	text-align: center;
}
