/* Free shipping bar (Noor Fashion Portál → Shipping Bar). Colours come from the settings. */
.nfx-shipbar {
	position: relative;
	width: 100%;
	box-sizing: border-box;
	background: var(--nfx-sb-bg, #5a5a5a);
	color: var(--nfx-sb-text, #fff);
	font-size: var(--nfx-sb-size, 15px);
	line-height: 1.45;
	text-align: center;
}

.nfx-shipbar__text {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: content-box;
	min-height: 1.45em; /* One line reserved... */
	padding: 8px 16px;
}

.nfx-shipbar__text a {
	color: var(--nfx-sb-link, #fff);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.nfx-shipbar__amount,
.nfx-shipbar__amount .woocommerce-Price-amount {
	font-weight: 700;
	color: inherit;
	white-space: nowrap; /* "10 000 Ft" never breaks inside the amount. */
}

.nfx-shipbar__progress {
	height: var(--nfx-sb-h, 5px);
	background: var(--nfx-sb-track, #d6d6d6);
	overflow: hidden;
}

.nfx-shipbar__progress.is-idle {
	visibility: hidden; /* Keeps its height: no jump when it becomes active. */
}

.nfx-shipbar__fill {
	display: block;
	height: 100%;
	max-width: 100%;
	background: var(--nfx-sb-fill, #3cb54a);
	transition: width .5s ease;
}

@media (prefers-reduced-motion: reduce) {
	.nfx-shipbar__fill {
		transition: none;
	}
}

@media (max-width: 600px) {
	.nfx-shipbar {
		font-size: calc(var(--nfx-sb-size, 15px) - 1px);
	}

	/* ...two on phones, where the longer messages wrap: swapping the message after a cached
	   page loads (cart fragments) then does not change the height (no layout shift). */
	.nfx-shipbar__text {
		min-height: 2.9em;
		padding: 7px 12px;
	}
}

/* Cart / checkout bars: a box among the totals and the payment section. */
.nfx-shipbar--inline {
	margin: 0 0 16px;
	border-radius: 2px;
	overflow: hidden;
}

/* Inside our header (global mode): under the menu rows, full width, sticky with the header.
   The menu rows stack above it, so dropdowns and the search panel open over the bar. */
.nfx-header > .nfx-hdr__frame {
	position: relative;
	z-index: 2;
}

.nfx-header > .nfx-shipbar {
	z-index: 1;
}
