/* Woo Food Tabs – style na stronie produktu */

/* Tabela odżywcza */
.wft-food-info {
        display: grid;
        grid-template-columns: minmax(280px, 520px) minmax(0, 1fr);
        gap: 1.5em 2em;
        align-items: start;
}

.wft-food-info .wft-food-col {
        min-width: 0;
}

.wft-food-info .wft-nutrition {
        max-width: none;
        margin: 0;
}

.wft-food-info .wft-composition-text > :first-child {
        margin-top: 0;
}

.wft-nutrition {
	--wft-line: rgba(128, 128, 128, .25);
	--wft-head-bg: rgba(128, 128, 128, .08);
	--wft-zebra: rgba(128, 128, 128, .04);
	width: 100%;
	max-width: 520px;
	border: 1px solid var(--wft-line);
	border-radius: 10px;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	margin: 0 0 1.5em;
	font-size: .95em;
	line-height: 1.45;
}

.wft-nutrition .wft-caption {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.wft-nutrition th,
.wft-nutrition td {
	padding: .6em .9em;
	text-align: left;
	vertical-align: top;
}

.wft-nutrition thead th {
	background: var(--wft-head-bg);
	font-weight: 600;
}

.wft-nutrition tbody tr + tr th,
.wft-nutrition tbody tr + tr td {
	border-top: 1px solid var(--wft-line);
}

.wft-nutrition tbody tr:nth-child(even) th,
.wft-nutrition tbody tr:nth-child(even) td {
	background: var(--wft-zebra);
}

.wft-nutrition thead th:last-child,
.wft-nutrition tbody td {
	text-align: right;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

.wft-nutrition tr.wft-sub th {
	padding-left: 1.9em;
	font-weight: 400;
}

.wft-nutrition tr.wft-sub td {
	font-weight: 400;
}

/* Skład */
.wft-composition-text {
	margin-bottom: 1em;
	line-height: 1.7;
}

.wft-allergens {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .45em;
	margin: 0;
	font-size: .92em;
}

.wft-allergens strong {
	margin-right: .1em;
}

.wft-alle-tag {
	border: 1px solid rgba(128, 128, 128, .35);
	border-radius: 999px;
	padding: .15em .7em;
	font-size: .88em;
	white-space: nowrap;
}

/* Wyróżniki */
.wft-highlights {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: .9em 1.2em;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.wft-highlights.wft-cols {
	grid-template-columns: repeat(var(--wft-cols, 2), minmax(0, 1fr));
}

.wft-highlights li {
	display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: .65em;
        text-align: center;
}

.wft-highlights .wft-hl-ico {
	flex: none;
        display: block;
	align-items: center;
	justify-content: center;
        width: 100%;
        max-width: 100%;
}

.wft-highlights .wft-hl-img {
	width: 100%;
        height: auto;
        display: block;
        object-fit: contain;
}

.wft-highlights .wft-hl-emoji {
        font-size: 2em;
	line-height: 1;
        display: block;
}

.wft-highlights .wft-hl-lottie-player {
        width: 100%;
        height: auto;
        display: block;
        aspect-ratio: 1 / 1;
}

.wft-highlights .wft-hl-lottie-frame {
        width: 100%;
        height: auto;
        display: block;
        aspect-ratio: 1 / 1;
        border: 0;
        background: transparent;
}

.wft-highlights .wft-hl-body {
	display: flex;
	flex-direction: column;
        align-items: center;
        gap: .22em;
	min-width: 0;
}

.wft-highlights .wft-hl-name {
	font-weight: 600;
	line-height: 1.35;
}

.wft-highlights .wft-hl-desc {
	font-size: .88em;
	line-height: 1.45;
	opacity: .75;
        max-width: 26ch;
}

@media (max-width: 620px) {
        .wft-food-info {
                grid-template-columns: 1fr;
                gap: 1.1em;
        }

	.wft-highlights.wft-cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wft-highlights.wft-cols[style*="--wft-cols:1"] {
		grid-template-columns: 1fr;
	}

	.wft-nutrition {
		font-size: .9em;
	}
}
