.ccc-countdown-wrap {
	display: flex;
	justify-content: center;
	align-items: stretch;
	gap: 4px;
	background: none;
	padding: 6px 4px;
	margin: 6px 0;
	box-sizing: border-box;
	width: 100%;
}

.ccc-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: #ffffff;
	border: 1px solid #000000;
	border-radius: 4px;
	flex: 1 1 0;
	min-width: 0;
	padding: 4px 2px;
	line-height: 1.1;
}

.ccc-number {
	color: #000000;
	font-weight: 700;
	font-size: 18px;
	letter-spacing: 0.5px;
}

.ccc-label {
	color: #000000;
	font-size: 9px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-top: 2px;
}

.ccc-countdown-wrap.ccc-expired .ccc-number {
	color: #777777;
}

.ccc-countdown-wrap.ccc-expired .ccc-label {
	color: #777777;
}

/* Under 2 days left: yellow. */
.ccc-countdown-wrap.ccc-warn .ccc-box {
	background: #fadb6d;
	border-color: #000000;
}
.ccc-countdown-wrap.ccc-warn .ccc-number,
.ccc-countdown-wrap.ccc-warn .ccc-label {
	color: #000000;
}

/* Under 1 day left: red. */
.ccc-countdown-wrap.ccc-critical .ccc-box {
	background: #ea5c58;
	border-color: #000000;
}
.ccc-countdown-wrap.ccc-critical .ccc-number,
.ccc-countdown-wrap.ccc-critical .ccc-label {
	color: #ffffff;
}

/* Shop/Archive loop: plain, unclickable "PRE-ORDER CLOSED" text —
   no button box/background, just text where the Add to Cart button
   would normally be. */
li.product a.ccc-foc-closed {
	display: block;
	background: none !important;
	background-color: transparent !important;
	border: none !important;
	box-shadow: none !important;
	color: #666666 !important;
	text-align: center;
	text-decoration: none !important;
	font-weight: 600;
	padding: 6px 0 !important;
	pointer-events: none;
	cursor: default;
	opacity: 1;
}

/* Single product page: our own disabled "PRE-ORDER CLOSED" button. */
.ccc-foc-closed-button {
	width: 100%;
	background: #cccccc !important;
	color: #666666 !important;
	border-color: #cccccc !important;
	cursor: not-allowed !important;
	opacity: 0.85;
	box-sizing: border-box;
}

/* Hide WooCommerce's real Add to Cart form on the single product page
   once our own closed button has been printed just before it, so the
   two don't both appear. */
.ccc-countdown-wrap.ccc-expired ~ form.cart {
	display: none !important;
}

@media (max-width: 480px) {
	.ccc-number {
		font-size: 14px;
	}
	.ccc-label {
		font-size: 8px;
	}
}
