/* Traka akcije na vrhu (inc/promo-bar.php) – dio fiksnog headera; spacer ispod headera raste za visinu trake. */

body.sw-has-promo {
	--sw-promo-h: 64px;
}

body.sw-has-promo .sw-header-spacer {
	height: calc(86px + var(--sw-promo-h));
}

.sw-promo {
	height: var(--sw-promo-h);
	background-color: var(--sw-promo-bg, var(--e-global-color-primary));
	color: #fff;
	overflow: hidden;
}

.sw-promo__inner {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 40px;
	height: 100%;
	max-width: var(--sw-container);
	margin-inline: auto;
	padding: 0 20px;
	color: inherit;
	text-decoration: none;
}

a.sw-promo__inner:hover,
a.sw-promo__inner:focus {
	color: inherit;
}

.sw-promo__text {
	display: flex;
	flex-direction: column;
	font-family: var(--e-global-typography-primary-font-family, "Oswald"), sans-serif;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.sw-promo__timer {
	display: flex;
	gap: 8px;
}

.sw-promo__unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 52px;
}

.sw-promo__num {
	display: block;
	width: 100%;
	padding: 2px 4px;
	border-radius: 4px;
	background-color: var(--sw-promo-box, var(--e-global-color-secondary));
	font-family: var(--e-global-typography-primary-font-family, "Oswald"), sans-serif;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.sw-promo__label {
	margin-top: 2px;
	font-family: var(--e-global-typography-text-font-family, "Roboto"), sans-serif;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.5px;
}

@media (max-width: 767px) {
	body.sw-has-promo {
		--sw-promo-h: 76px;
	}

	body.sw-has-promo .sw-header-spacer {
		height: calc(70.2px + var(--sw-promo-h));
	}

	.sw-promo__inner {
		justify-content: space-between;
		gap: 12px;
		padding: 0 14px;
	}

	.sw-promo__text {
		font-size: 15px;
	}

	.sw-promo__timer {
		gap: 5px;
	}

	.sw-promo__unit {
		min-width: 44px;
	}

	.sw-promo__num {
		font-size: 22px;
	}

	.sw-promo__label {
		font-size: 9px;
	}
}
