/* Herbawell — popup zgodności Herbalife + banner cookie consent.
   Styleguide 1.0 sklepu: font Jost, zieleń #10261C, kość #F7F5F0, mosiądz #B08D57,
   zero zaokrągleń, zero cieni (dopuszczalny subtelny cień overlay), wersaliki 10.5px/700. */

/* ===== Popup zgodności Herbalife (modal) ===== */

.hw-notice-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--hw-font, 'Jost', system-ui, sans-serif);
}

.hw-notice-modal[hidden] {
	display: none;
}

/* Ukrycie przed pierwszym paintem u kogoś, kto już zamknął (klasa z inline-preflight). */
.hw-hb-seen .hw-notice-modal {
	display: none !important;
}

.hw-notice-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(16, 38, 28, .55);
}

.hw-notice-modal__card {
	position: relative;
	width: 100%;
	max-width: 560px;
	margin: 22px;
	background: var(--hw-bone, #F7F5F0);
	border: 1px solid var(--hw-line, rgba(16, 38, 28, .12));
	border-radius: 0;
	box-shadow: 0 24px 60px rgba(16, 38, 28, .18); /* subtelny cień overlay — dopuszczalny */
	padding: 40px;
	box-sizing: border-box;
}

.hw-notice-modal__label {
	margin: 0 0 14px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--hw-brass-dark, #8A6A3B);
}

.hw-notice-modal__title {
	margin: 0 0 16px;
	font-size: 24px;
	font-weight: 500;
	line-height: 1.25;
	color: var(--hw-green, #10261C);
}

.hw-notice-modal__body {
	margin: 0 0 28px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--hw-text, #3B4A41);
}

.hw-notice-modal__btn {
	display: block;
	width: 100%;
	height: 56px;
	border: 1px solid var(--hw-green, #10261C);
	border-radius: 0;
	background: var(--hw-green, #10261C);
	color: var(--hw-bone, #F7F5F0);
	font-family: inherit;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .15s ease;
}

.hw-notice-modal__btn:hover,
.hw-notice-modal__btn:focus-visible {
	background: var(--hw-green-hover, #1D4030);
}

/* Mobile: bottom sheet pełnej szerokości. */
@media (max-width: 640px) {
	.hw-notice-modal {
		align-items: flex-end;
	}
	.hw-notice-modal__card {
		max-width: none;
		margin: 0;
		padding: 28px 22px;
	}
	.hw-notice-modal__btn {
		height: 52px;
	}
}

/* =====================================================================
   System zgód COOKIES (makieta Premium v2c): baner → modal → badge → toast.
   Odwzorowanie 1:1 z fragmentu makiety. Wszystko fixed do viewportu.
   ===================================================================== */

.hw-ck {
	font-family: var(--hw-font, 'Jost', system-ui, sans-serif);
}

/* Wspólny przycisk cookie. */
.hw-ck-btn {
	border-radius: 0;
	font-family: inherit;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .25s ease, border-color .25s ease, color .25s ease;
}

.hw-ck-btn--dark {
	padding: 16px 30px;
	border: 1px solid #10261C;
	background: #10261C;
	color: #F7F5F0;
}
.hw-ck-btn--dark:hover,
.hw-ck-btn--dark:focus-visible {
	background: #1D4030;
}

.hw-ck-btn--ghost {
	padding: 15px 18px;
	border: 1px solid rgba(16, 38, 28, .35);
	background: transparent;
	color: #10261C;
}
.hw-ck-btn--ghost:hover,
.hw-ck-btn--ghost:focus-visible {
	border-color: #8A6A3B;
	background: #EFE8DB;
}

.hw-ck-btn--outline {
	padding: 15px 24px;
	border: 1px solid #10261C;
	background: transparent;
	color: #10261C;
}
.hw-ck-btn--outline:hover,
.hw-ck-btn--outline:focus-visible {
	background: #EFE8DB;
}

/* ===== Baner ===== */

.hw-ck-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99130;
	display: flex;
	justify-content: center;
	background: linear-gradient(to top, rgba(16, 38, 28, .22), rgba(16, 38, 28, 0));
}
.hw-ck-banner[hidden] {
	display: none;
}

.hw-ck-banner__inner {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 44px;
	align-items: center;
	width: 100%;
	max-width: 1440px;
	padding: 26px 56px 28px;
	background: #F7F5F0;
	border-top: 2px solid #10261C;
	box-shadow: 0 -18px 44px rgba(16, 38, 28, .16);
	box-sizing: border-box;
}

.hw-ck-banner__text {
	display: flex;
	flex-direction: column;
	gap: 9px;
	max-width: 720px;
}

.hw-ck-banner__eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #8A6A3B;
}
.hw-ck-banner__rule {
	width: 26px;
	height: 1px;
	background: #B08D57;
}

.hw-ck-banner__body {
	margin: 0;
	font-size: 14px;
	line-height: 1.7;
	color: #3B4A41;
}

.hw-ck__link {
	color: #8A6A3B;
	text-decoration: underline;
}
.hw-ck__link:hover,
.hw-ck__link:focus-visible {
	text-decoration: none;
}

.hw-ck-banner__actions {
	display: flex;
	flex-direction: column;
	gap: 9px;
	min-width: 300px;
}
.hw-ck-banner__actions .hw-ck-btn--dark {
	width: 100%;
}
.hw-ck-banner__row {
	display: flex;
	gap: 9px;
}
.hw-ck-banner__row .hw-ck-btn {
	flex: 1;
}

/* ===== Modal preferencji ===== */

.hw-ck-prefs {
	position: fixed;
	inset: 0;
	z-index: 99140;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	box-sizing: border-box;
}
.hw-ck-prefs[hidden] {
	display: none;
}

.hw-ck-prefs__overlay {
	position: absolute;
	inset: 0;
	background: rgba(16, 38, 28, .42);
}

.hw-ck-prefs__card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 820px;
	max-height: 88vh;
	background: #F7F5F0;
	border: 1px solid rgba(16, 38, 28, .2);
	box-shadow: 0 40px 90px rgba(16, 38, 28, .3);
	box-sizing: border-box;
}

.hw-ck-prefs__head {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	padding: 28px 34px 22px;
	border-bottom: 1px solid rgba(16, 38, 28, .14);
}
.hw-ck-prefs__heading {
	display: flex;
	flex-direction: column;
	gap: 7px;
}
.hw-ck-prefs__eyebrow {
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #8A6A3B;
}
.hw-ck-prefs__title {
	font-family: var(--hw-font, 'Jost', system-ui, sans-serif);
	font-size: 30px;
	font-weight: 500;
	letter-spacing: -.02em;
	color: #10261C;
}
.hw-ck-prefs__lead {
	font-size: 13px;
	line-height: 1.65;
	color: #4B5A50;
}
.hw-ck-prefs__close {
	margin-left: auto;
	border: 0;
	background: transparent;
	font-size: 19px;
	color: #8A9A8E;
	cursor: pointer;
	line-height: 1;
}

.hw-ck-prefs__body {
	flex: 1;
	overflow-y: auto;
	padding: 6px 34px 8px;
}

/* Kategoria */
.hw-ck-cat {
	display: flex;
	flex-direction: column;
	border-bottom: 1px solid rgba(16, 38, 28, .12);
}
.hw-ck-cat__row {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	padding: 22px 0;
}
.hw-ck-cat__info {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}
.hw-ck-cat__head {
	display: flex;
	align-items: center;
	gap: 12px;
}
.hw-ck-cat__name {
	font-family: var(--hw-font, 'Jost', system-ui, sans-serif);
	font-size: 19px;
	font-weight: 500;
	color: #10261C;
}
.hw-ck-cat__tag {
	padding: 3px 9px;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	border: 1px solid rgba(16, 38, 28, .2);
	background: transparent;
	color: #8A9A8E;
}
/* Tag: kategoria zablokowana (Niezbędne) — stały wygląd. */
.hw-ck-cat[data-hw-ck-locked="1"] .hw-ck-cat__tag {
	background: #EFEDE6;
	border-color: rgba(16, 38, 28, .16);
	color: #4B5A50;
}
/* Tag: kategoria włączona (opcjonalna) — mosiądz. */
.hw-ck-cat[data-hw-ck-locked="0"][data-hw-ck-on="1"] .hw-ck-cat__tag {
	background: #EFE8DB;
	border-color: #B08D57;
	color: #8A6A3B;
}
.hw-ck-cat__desc {
	font-size: 13px;
	line-height: 1.7;
	color: #4B5A50;
	max-width: 520px;
}
.hw-ck-cat__detail {
	align-self: flex-start;
	padding: 0;
	border: 0;
	background: transparent;
	font-family: inherit;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .11em;
	text-transform: uppercase;
	color: #8A6A3B;
	border-bottom: 1px solid #B08D57;
	cursor: pointer;
}

/* Przełącznik 52×30 kwadratowy (makieta). */
.hw-ck-switch {
	margin-left: auto;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: 52px;
	height: 30px;
	flex: 0 0 52px;
	padding: 3px;
	box-sizing: border-box;
	border: 1px solid rgba(16, 38, 28, .3);
	background: transparent;
	border-radius: 0;
	cursor: pointer;
}
.hw-ck-switch__knob {
	width: 22px;
	height: 22px;
	background: #8A9A8E;
}
/* Włączony przełącznik opcjonalny. */
.hw-ck-cat[data-hw-ck-locked="0"][data-hw-ck-on="1"] .hw-ck-switch {
	justify-content: flex-end;
	background: #10261C;
	border-color: #10261C;
}
.hw-ck-cat[data-hw-ck-locked="0"][data-hw-ck-on="1"] .hw-ck-switch__knob {
	background: #F7F5F0;
}
/* Zablokowany (Niezbędne) — zawsze włączony, szary, kursor nieaktywny. */
.hw-ck-cat[data-hw-ck-locked="1"] .hw-ck-switch {
	justify-content: flex-end;
	background: #8A9A8E;
	border-color: #8A9A8E;
	cursor: not-allowed;
}
.hw-ck-cat[data-hw-ck-locked="1"] .hw-ck-switch__knob {
	background: #F7F5F0;
}

/* Rozwijana lista plików */
.hw-ck-cat__detailbox {
	margin-bottom: 22px;
}
.hw-ck-cat__detailbox[hidden] {
	display: none;
}
.hw-ck-table {
	display: flex;
	flex-direction: column;
	border: 1px solid rgba(16, 38, 28, .14);
	background: #FFFFFF;
}
.hw-ck-table__head {
	display: grid;
	grid-template-columns: 1.1fr 1fr 1.6fr .8fr;
	gap: 12px;
	padding: 11px 16px;
	background: #EFEDE6;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #8A6A3B;
}
.hw-ck-table__row {
	display: grid;
	grid-template-columns: 1.1fr 1fr 1.6fr .8fr;
	gap: 12px;
	padding: 12px 16px;
	border-top: 1px solid rgba(16, 38, 28, .1);
	font-size: 12px;
	color: #3B4A41;
}
.hw-ck-table__name {
	font-family: ui-monospace, Menlo, monospace;
	font-size: 11.5px;
	color: #10261C;
	word-break: break-word;
}
.hw-ck-table__row span:nth-child(3) {
	line-height: 1.5;
}
.hw-ck-table__exp {
	white-space: nowrap;
}
.hw-ck-cat__empty {
	margin: 0;
	padding: 14px 16px;
	border: 1px solid rgba(16, 38, 28, .14);
	background: #FFFFFF;
	font-size: 12.5px;
	line-height: 1.7;
	color: #4B5A50;
}

/* Stopka modalu */
.hw-ck-prefs__foot {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 22px 34px 26px;
	border-top: 1px solid rgba(16, 38, 28, .14);
}
.hw-ck-prefs__summary {
	font-size: 12px;
	line-height: 1.6;
	color: #8A9A8E;
	max-width: 260px;
}
.hw-ck-prefs__actions {
	display: flex;
	gap: 10px;
	margin-left: auto;
}
.hw-ck-prefs__actions .hw-ck-btn--ghost {
	padding: 15px 22px;
}

/* ===== Badge + toast ===== */

.hw-ck-badge {
	position: fixed;
	left: 24px;
	bottom: 20px;
	z-index: 99125;
	display: flex;
	align-items: center;
	gap: 12px;
}
.hw-ck-badge[hidden] {
	display: none;
}
.hw-ck-badge__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid rgba(16, 38, 28, .25);
	background: #F7F5F0;
	box-shadow: 0 12px 28px rgba(16, 38, 28, .18);
	cursor: pointer;
	transition: border-color .2s ease;
}
.hw-ck-badge__btn:hover,
.hw-ck-badge__btn:focus-visible {
	border-color: #B08D57;
}
.hw-ck-toast {
	padding: 11px 16px;
	background: #10261C;
	color: #F7F5F0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
}
.hw-ck-toast[hidden] {
	display: none;
}

/* ===== Mobile 390: bottom-sheet ===== */
@media (max-width: 640px) {
	/* Baner = bottom-sheet pełnej szerokości. */
	.hw-ck-banner__inner {
		display: flex;
		flex-direction: column;
		gap: 14px;
		padding: 20px 22px 22px;
	}
	.hw-ck-banner__text {
		gap: 8px;
		max-width: none;
	}
	.hw-ck-banner__eyebrow {
		font-size: 9px;
		letter-spacing: .13em;
	}
	.hw-ck-banner__body {
		font-size: 13px;
		line-height: 1.65;
	}
	.hw-ck-banner__actions {
		min-width: 0;
	}
	.hw-ck-banner__actions .hw-ck-btn--dark {
		min-height: 52px;
		padding: 16px;
		font-size: 10.5px;
	}
	/* Na mobile „Tylko niezbędne" i „Dostosuj" jeden pod drugim, pełna szerokość. */
	.hw-ck-banner__row {
		flex-direction: column;
		gap: 9px;
	}
	.hw-ck-banner__row .hw-ck-btn--ghost {
		min-height: 52px;
		padding: 16px;
		font-size: 10.5px;
	}

	/* Modal = bottom-sheet dosunięty do dołu. */
	.hw-ck-prefs {
		padding: 0;
		align-items: flex-end;
	}
	.hw-ck-prefs__card {
		max-width: none;
		border: 0;
		border-top: 2px solid #10261C;
	}
	.hw-ck-prefs__head {
		padding: 20px 22px 16px;
	}
	.hw-ck-prefs__title {
		font-size: 24px;
	}
	.hw-ck-prefs__body {
		padding: 0 22px;
	}
	/* Tabela plików ciaśniej na mobile — zawijamy do 2 kolumn. */
	.hw-ck-table__head,
	.hw-ck-table__row {
		grid-template-columns: 1fr 1fr;
	}
	.hw-ck-prefs__foot {
		flex-direction: column;
		align-items: stretch;
		gap: 9px;
		padding: 16px 22px 20px;
	}
	.hw-ck-prefs__summary {
		max-width: none;
	}
	.hw-ck-prefs__actions {
		flex-direction: column;
		margin-left: 0;
	}
	.hw-ck-prefs__actions .hw-ck-btn {
		min-height: 52px;
		padding: 16px;
		font-size: 10.5px;
		text-align: center;
	}

	/* Badge lewy dolny róg, mniejszy. */
	.hw-ck-badge {
		left: 16px;
		bottom: 16px;
	}
	.hw-ck-badge__btn {
		width: 46px;
		height: 46px;
	}
	.hw-ck-toast {
		font-size: 10px;
		letter-spacing: .08em;
	}
}
