/**
 * Promo of the accessory configurator on najlepsiemobily (inc/konf-promo.php, placements chosen by the personalization plugin).
 * Banner, narrow row, benefit item, floating pill and the 20-step bar, in the blues of the site.
 */
:root {
	--nmkp-brand: var(--primary);
	--nmkp-brand-d: var(--primary-semi-dark, color-mix(in srgb, var(--primary) 70%, #001a2c));
	--nmkp-hi: #e3ff7a;
	--nmkp-cta: var(--nd-c-cta, var(--accent, #a0c801));
}

/* ---------------------------------------------------------------- 20-step bar */
.nmkp-bar {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.nmkp-bar__seg {
	display: grid;
	grid-template-columns: repeat(20, 1fr);
	gap: 2px;
}
.nmkp-bar__seg i {
	height: 8px;
	border-radius: 2px;
	background: rgba(255, 255, 255, .35);
}
.nmkp-bar__seg i.is-mark {
	background: rgba(255, 255, 255, .75);
}
.nmkp-bar__lab {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	font-weight: 700;
	opacity: .85;
}
/* Accessory category band: the bar instead of the 20 steps. */
.kvs-band .nmkp-bar {
	grid-column: 1 / -1;
	min-width: 0;
}
@media (min-width: 900px) {
	.kvs-band .nmkp-bar { grid-column: auto; min-width: 240px; }
}

/* ---------------------------------------------------------------- Banner */
a.nmkp-ban,
a.nmkp-ban:hover {
	color: #fff;
	text-decoration: none;
}
.nmkp-ban {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 12px 16px;
	box-sizing: border-box;
	width: 100%;
	padding: 18px 20px;
	border-radius: var(--nd-radius-l, 16px);
	background: linear-gradient(110deg, var(--nmkp-brand-d) 0%, var(--nmkp-brand) 70%, color-mix(in srgb, var(--nmkp-brand) 60%, #fff) 100%);
	text-align: left;
}
.nmkp-ban * {
	color: inherit;
}
.nmkp-ban__gift {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #fff;
	color: var(--nmkp-brand) !important;
}
.nmkp-ban__gift svg {
	width: 30px;
	height: 30px;
}
.nmkp-ban__txt {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.nmkp-ban__txt small {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	opacity: .85;
}
.nmkp-ban__txt b {
	font-size: 22px;
	line-height: 1.2;
}
.nmkp-ban__txt em {
	font-style: normal;
	white-space: nowrap;
	color: var(--nmkp-hi) !important;
}
.nmkp-ban__sub {
	font-size: 14px;
	opacity: .9;
}
.nmkp-ban__bar {
	grid-column: 1 / -1;
}
.nmkp-ban__cta,
.nmkp-row__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 46px;
	padding: 0 22px;
	border-radius: 999px;
	background: var(--nmkp-cta);
	color: var(--nd-c-on-cta, #fff) !important;
	font-weight: 800;
	font-size: 16px;
	white-space: nowrap;
}
.nmkp-ban__cta {
	grid-column: 1 / -1;
}
@media (min-width: 900px) {
	.nmkp-ban {
		grid-template-columns: auto minmax(0, 1.3fr) minmax(220px, 1fr) auto;
		gap: 24px;
		padding: 20px 28px;
	}
	.nmkp-ban__gift { width: 68px; height: 68px; }
	.nmkp-ban__bar,
	.nmkp-ban__cta { grid-column: auto; }
	.nmkp-ban__txt b { font-size: 26px; }
}
/* 2nd slide of the homepage: the height of the slider pictures (1980 × 528). */
.nmkp-ban--big {
	height: 100%;
	min-height: 260px;
	border-radius: 0;
	padding-right: max(24px, calc((100% - 1200px) / 2));
	padding-left: max(24px, calc((100% - 1200px) / 2));
}
@media (min-width: 768px) {
	.nmkp-ban--big { aspect-ratio: 1980 / 528; min-height: 0; }
	.nmkp-ban--big .nmkp-ban__txt b { font-size: clamp(26px, 2.6vw, 40px); }
}
.hp-hero .splide__slide:has(.nmkp-ban) {
	display: flex;
}
/* The slider, the category promo and the product banner give their links display:block. */
.hp-hero a.nmkp-ban,
.wa-archive__promo a.nmkp-ban,
.product-banner a.nmkp-ban {
	display: grid;
}

/* Full width under the strip of benefits (D). */
.cat-promo.nmkp-full {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}
a.nmkp-ban.nmkp-ban--full {
	display: block;
	border-radius: 0;
	padding: 0;
}
.nmkp-ban--full .nmkp-ban__in {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 10px 14px;
	padding-top: 14px;
	padding-bottom: 14px;
}
@media (min-width: 900px) {
	.nmkp-ban--full .nmkp-ban__in { grid-template-columns: auto minmax(0, 1.3fr) minmax(220px, 1fr) auto; gap: 24px; }
	.nmkp-ban--full .nmkp-ban__gift { width: 56px; height: 56px; }
	.nmkp-ban--full .nmkp-ban__txt b { font-size: 22px; }
}

/* ---------------------------------------------------------------- Narrow row (product page, cart) */
a.nmkp-row,
a.nmkp-row:hover {
	color: inherit;
	text-decoration: none;
}
.nmkp-row {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 12px;
	margin: 12px 0;
	padding: 12px 14px;
	border: 2px dashed color-mix(in srgb, var(--nmkp-brand) 55%, #fff);
	border-radius: var(--nd-radius-m, 12px);
	background: color-mix(in srgb, var(--nmkp-brand) 7%, #fff);
}
.nmkp-row:hover {
	border-style: solid;
}
.nmkp-row__gift {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--nmkp-brand);
	color: #fff;
}
.nmkp-row__txt {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.nmkp-row__txt b {
	font-size: 15px;
	line-height: 1.25;
	color: var(--nmkp-brand-d);
}
.nmkp-row__txt small {
	font-size: 13px;
	color: #555;
}
.nmkp-row__cta {
	min-height: 38px;
	padding: 0 16px;
	font-size: 14px;
}
@media (max-width: 480px) {
	.nmkp-row { grid-template-columns: auto 1fr; }
	.nmkp-row__cta { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- Strip of benefits */
.nmkp-benefit a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 12px 4px 6px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--nmkp-brand) 12%, #fff);
	color: var(--nmkp-brand-d);
	text-decoration: none;
}
.nmkp-benefit__ic {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--nmkp-brand);
	color: #fff;
}
.nmkp-benefit__ic svg {
	width: 16px;
	height: 16px;
}

/* ---------------------------------------------------------------- Floating pill (C) */
.nmkp-pill {
	position: fixed;
	right: 16px;
	bottom: 86px;
	z-index: 9990;
	display: flex;
	align-items: center;
	border-radius: 999px;
	background: var(--nmkp-brand);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.nmkp-pill a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 6px 10px 16px;
	color: #fff !important;
	font-size: 14px;
	text-decoration: none;
}
.nmkp-pill button {
	width: 32px;
	height: 32px;
	margin-right: 6px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .2);
	color: #fff;
	font-size: 18px;
	cursor: pointer;
}
