/* Elush Promotion Campaigns — front-end */

.elush-campaign-banner {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 20px;
	margin: 16px 0;
	border-radius: 12px;
	background: linear-gradient( 135deg, #111827, #1f2937 );
	color: #fff;
}
.elush-campaign-badge {
	background: #e02b2b;
	color: #fff;
	font-weight: 700;
	font-size: 12px;
	padding: 4px 10px;
	border-radius: 4px;
	text-transform: uppercase;
}
.elush-campaign-title {
	font-size: 18px;
}
.elush-campaign-bannertext {
	opacity: 0.85;
	margin-top: 2px;
}
.elush-campaign {
	margin: 16px 0;
}

/* ---- Counters (Phase 4) ---- */
.elush-counter {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
}
.elush-countdown {
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
}
.elush-countdown.has-label {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	line-height: 1.1;
}
.elush-cd-label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6b7280;
	margin-top: 2px;
}
.elush-countdown.is-ended {
	display: none;
}
/* style="inline" — plain text, inherits surrounding type (the default). */
.elush-cd-inline {
	color: #b26a00;
}
/* style="boxed" — a compact pill/badge. */
.elush-cd-boxed {
	padding: 4px 10px;
	border-radius: 6px;
	background: #fff4e0;
	border: 1px solid #f0d199;
	color: #b26a00;
	font-size: 14px;
}
/* style="bar" — full-width attention strip. */
.elush-cd-bar {
	display: flex;
	justify-content: center;
	width: 100%;
	padding: 8px 12px;
	border-radius: 4px;
	background: #b26a00;
	color: #fff;
	font-size: 15px;
}
.elush-counter-sold,
.elush-counter-stock,
.elush-counter-usage {
	font-size: 13px;
	color: #b26a00;
}

/* ---- Per-product progress bar + product-page auto-inject ---- */
.elush-counter-progress {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #b26a00;
}
.elush-progress-track {
	display: inline-block;
	width: 140px;
	height: 8px;
	border-radius: 999px;
	background: #f0e3cf;
	overflow: hidden;
}
.elush-progress-fill {
	display: block;
	height: 100%;
	background: #b26a00;
	transition: width 0.3s ease;
}
.elush-product-promo {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin: 12px 0;
}

/* ---- Deal Of The Day carousel (Phase 4) ---- */
.elush-dotd-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 12px;
}
.elush-dotd-title {
	font-size: 22px;
	font-weight: 800;
	margin: 0;
}
.elush-dotd-sub {
	color: #6b7280;
	margin: 2px 0 0;
}
/* Top-right nav: bare icon buttons (original position, icon swap only). */
.elush-dotd-nav {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}
.elush-dotd-arrow,
.elush-dotd-arrow:hover,
.elush-dotd-arrow:focus,
.elush-dotd-arrow:active {
	display: inline-flex;
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	box-shadow: none;
	outline: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.elush-dotd-arrow img {
	display: block;
	width: auto;
	height: auto;
}
.elush-dotd-track {
	display: flex;
	gap: var( --dotd-gap, 16px );
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	padding-bottom: 6px;
	-ms-overflow-style: none;
	scrollbar-width: none;
}
.elush-dotd-track::-webkit-scrollbar {
	display: none;
}
.elush-dotd-card {
	scroll-snap-align: start;
	flex: 0 0 220px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
	padding: 12px;
	position: relative;
}
.elush-dotd-card .elush-sale {
	position: absolute;
	top: 10px;
	left: 10px;
	background: #e02b2b;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 4px;
	text-transform: uppercase;
}
.elush-dotd-thumb {
	display: block;
}
.elush-dotd-thumb img {
	width: 100%;
	height: auto;
	border-radius: 8px;
}
.elush-dotd-name a {
	color: inherit;
	text-decoration: none;
}
.elush-dotd-name a:hover {
	text-decoration: underline;
}
.elush-dotd-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 8px;
}
.elush-dotd-price ins {
	text-decoration: none;
	font-weight: 800;
}
.elush-dotd-price del {
	color: #9ca3af;
	font-size: 12px;
	display: block;
}
.elush-dotd-name {
	font-size: 14px;
	font-weight: 600;
	margin: 6px 0 2px;
}
.elush-dotd-excerpt {
	font-size: 12px;
	color: #6b7280;
}
.elush-dotd-stock {
	margin-top: 4px;
	font-size: 12px;
}

/* Multi-campaign DOTD: filter chips, rows×cols grid carousel, view-more. */
.elush-dotd-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 14px;
}
.elush-dotd-chip {
	border: 1px solid #e5e7eb;
	background: #fff;
	border-radius: 999px;
	padding: 5px 14px;
	cursor: pointer;
	font-size: 13px;
	color: #374151;
}
.elush-dotd-chip.is-active {
	background: #111827;
	color: #fff;
	border-color: #111827;
}
.elush-dotd-card.is-hidden {
	display: none;
}
.elush-dotd-pgrid {
	display: grid;
	grid-auto-flow: column;
	grid-template-rows: repeat( var( --dotd-rows, 2 ), auto );
	grid-auto-columns: calc(
		( 100% - ( var( --dotd-cols, 4 ) - 1 ) * var( --dotd-gap, 16px ) ) / var( --dotd-cols, 4 )
	);
	gap: var( --dotd-gap, 16px );
}
.elush-dotd-foot {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	margin-top: 22px;
}
.elush-dotd-foot-nav {
	display: inline-flex;
	gap: 16px;
}
.elush-dotd-more {
	display: inline-block;
	border: 1px solid #111827;
	border-radius: 999px;
	padding: 9px 26px;
	text-decoration: none;
	color: #111827;
	font-weight: 600;
	font-size: 14px;
}
.elush-dotd-more:hover {
	background: #111827;
	color: #fff;
}

/* Campaign price (price-html override + [elush_campaign_price]). */
.elush-campaign-price {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
}
.elush-campaign-price del {
	color: #9ca3af;
	font-weight: 400;
	text-decoration: line-through;
}
.elush-campaign-price ins {
	color: #b26a00;
	font-weight: 700;
	text-decoration: none;
}

/* Responsive DOTD carousel.
   Inline style sets --dotd-cols as a variable, so override the *computed*
   grid-auto-columns directly to win the cascade without !important.
   Rows stay at whatever the shortcode set (default 2). */
@media ( max-width: 1024px ) {
	.elush-dotd-pgrid {
		grid-auto-columns: calc( ( 100% - var( --dotd-gap, 16px ) ) / 2 );
	}
}

@media ( max-width: 768px ) {
	.elush-campaign-banner {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media ( max-width: 600px ) {
	.elush-dotd-pgrid {
		grid-auto-columns: 100%;
	}
	.elush-dotd-head {
		flex-wrap: wrap;
		gap: 8px;
	}
}
