/* FY Kit - Product facts. Default: the classic black and white label. Themes restyle through the variables below. */
.fyek-product-facts {
	--fyek-facts-ink: var(--fyek-ink, #111);
	--fyek-facts-paper: var(--fyek-paper, #fff);
	--fyek-facts-rule: var(--fyek-facts-ink);
	--fyek-facts-font: inherit;
	--fyek-facts-radius: 0px;
	--fyek-facts-accent: var(--fyek-accent, #c2562d);
	--fyek-facts-max: 520px;
	box-sizing: border-box;
	min-width: 0;
}
.fyek-product-facts *, .fyek-product-facts *::before, .fyek-product-facts *::after { box-sizing: border-box; }
.fyek-product-facts__sample { display: inline-block; margin: 0 0 6px; padding: 2px 8px; border-radius: 99px; background: color-mix(in srgb, currentColor 10%, transparent); font-size: 12px; line-height: 1.6; }
.fyek-product-facts__title { margin: 0 0 .5em; font-size: 1.05em; line-height: 1.2; }

/* Supplement facts panel */
.fyek-facts { width: 100%; max-width: var(--fyek-facts-max); padding: .35em .6em .5em; border: 2px solid var(--fyek-facts-rule); border-radius: var(--fyek-facts-radius); background: var(--fyek-facts-paper); color: var(--fyek-facts-ink); font-family: var(--fyek-facts-font); font-size: max(14px, .92em); line-height: 1.3; }
.fyek-facts__title { margin: 0; padding-bottom: .08em; border-bottom: 1px solid var(--fyek-facts-rule); font-family: var(--fyek-facts-font); font-size: 2.1em; font-weight: 900; line-height: 1.05; letter-spacing: -.01em; overflow-wrap: anywhere; }
.fyek-facts__serving { padding: .3em 0 .35em; border-bottom: 10px solid var(--fyek-facts-rule); }
.fyek-facts__serving p { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1em; margin: 0; }
.fyek-facts__serving p:first-child strong { font-weight: 800; }
.fyek-facts__price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 1em; margin-top: .2em; padding-top: .25em; border-top: 1px solid var(--fyek-facts-rule); }
.fyek-facts__price .fyek-serving { margin: 0; }
.fyek-facts__price .fyek-serving__label { display: none; }
.fyek-facts__table { width: 100%; margin: 0; border-collapse: collapse; border: 0; font-size: 1em; table-layout: auto; }
.fyek-facts__table th, .fyek-facts__table td { padding: .28em 0; border: 0; border-top: 1px solid var(--fyek-facts-rule); background: none; color: inherit; text-align: left; vertical-align: baseline; font-weight: 400; }
.fyek-facts__table thead th { padding: .25em 0; border-top: 0; font-size: .78em; font-weight: 700; }
.fyek-facts__table .fyek-facts__name { width: 100%; padding-right: .8em; font-weight: 700; overflow-wrap: anywhere; }
.fyek-facts__table .fyek-facts__amount { padding-right: 1em; white-space: nowrap; }
.fyek-facts__table .fyek-facts__dv { text-align: right; white-space: nowrap; font-weight: 700; }
.fyek-facts__table thead .fyek-facts__amount { text-align: left; }
.fyek-facts__table thead .fyek-facts__dv { font-weight: 700; }
.fyek-facts__row.is-sub .fyek-facts__name { padding-left: 1.2em; font-weight: 400; }
.fyek-facts__row.is-calories th, .fyek-facts__row.is-calories td { padding: .15em 0 .2em; border-bottom: 5px solid var(--fyek-facts-rule); font-size: 1.45em; font-weight: 900; }
.fyek-facts__row.is-head th { padding-top: .4em; border-top-width: 5px; font-weight: 800; }
.fyek-facts__table tbody tr:first-child th, .fyek-facts__table tbody tr:first-child td { border-top-width: 1px; }
.fyek-facts__table tbody tr:last-child th, .fyek-facts__table tbody tr:last-child td { border-bottom: 5px solid var(--fyek-facts-rule); }
.fyek-facts__note { margin: .4em 0 0; font-size: .75em; line-height: 1.35; }

/* Price per serving */
.fyek-serving { margin: 0; font-variant-numeric: tabular-nums; }
.fyek-serving__price { font-weight: 800; }
.fyek-serving__from { font-size: .85em; }

/* One big number */
.fyek-nutrient { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .35em; margin: 0; line-height: 1; }
.fyek-nutrient__amount { font-family: var(--fyek-display, inherit); font-size: 2.2em; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.fyek-nutrient__label { font-size: .9em; }

/* Ingredients, allergens, how to use */
.fyek-ingredients p, .fyek-use p { margin: 0; }
.fyek-allergens { display: flex; gap: .7em; align-items: flex-start; padding: .8em 1em; border: 2px solid var(--fyek-facts-accent); border-radius: var(--fyek-facts-radius); background: color-mix(in srgb, var(--fyek-facts-accent) 9%, transparent); }
.fyek-allergens__icon { flex: none; width: 1.4em; height: 1.4em; margin-top: .05em; color: var(--fyek-facts-accent); }
.fyek-allergens__body .fyek-product-facts__title { margin-bottom: .15em; }
.fyek-allergens__body p { margin: 0; font-weight: 600; }
.fyek-use__steps { margin: 0; padding-left: 1.3em; }
.fyek-use__steps li + li { margin-top: .3em; }

/* Material and care */
.fyek-care__material, .fyek-care__list { margin: 0; padding: 0; list-style: none; }
.fyek-care__material { display: flex; flex-wrap: wrap; gap: .3em 1.2em; margin-bottom: .8em; }
.fyek-care__share { font-weight: 800; font-variant-numeric: tabular-nums; }
.fyek-care__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: .55em 1em; }
.fyek-care__list li { display: flex; align-items: center; gap: .55em; }
.fyek-care__icon { flex: none; width: 1.9em; height: 1.9em; }
.fyek-care__icon.is-plain { width: 1em; height: 1em; opacity: .5; }

/* Products side by side */
.fyek-compare { width: 100%; margin: 0; border-collapse: collapse; border: 0; font-variant-numeric: tabular-nums; }
.fyek-compare__caption { margin-bottom: .6em; text-align: left; font-weight: 700; }
.fyek-compare th, .fyek-compare td { padding: .7em .8em; border: 0; border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent); background: none; color: inherit; text-align: left; vertical-align: middle; }
.fyek-compare thead th { vertical-align: bottom; border-bottom-width: 2px; }
.fyek-compare tbody th { font-weight: 600; white-space: nowrap; }
.fyek-compare td { font-size: 1.15em; font-weight: 700; }
.fyek-compare__product a { display: grid; gap: .5em; color: inherit; text-decoration: none; }
.fyek-compare__img { display: block; width: 100%; max-width: 140px; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--fyek-facts-radius); }
.fyek-compare__name { font-weight: 700; line-height: 1.2; }
.fyek-compare__product a:hover .fyek-compare__name, .fyek-compare__product a:focus-visible .fyek-compare__name { text-decoration: underline; }
.fyek-compare__product-name { display: none; }
.fyek-compare__row.is-per-serving td { color: var(--fyek-facts-accent); }
@media (max-width: 640px) {
	.fyek-compare, .fyek-compare tbody, .fyek-compare tr, .fyek-compare th, .fyek-compare td { display: block; }
	.fyek-compare thead { display: grid; grid-template-columns: repeat(var(--fyek-compare-n, 3), minmax(0, 1fr)); }
	.fyek-compare thead tr { display: contents; }
	.fyek-compare__corner { display: none !important; }
	.fyek-compare thead th { padding: .4em; border-bottom: 0; font-size: .85em; }
	.fyek-compare__img { max-width: none; }
	.fyek-compare tbody tr { display: grid; grid-template-columns: repeat(var(--fyek-compare-n, 3), minmax(0, 1fr)); border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
	.fyek-compare tbody th { grid-column: 1 / -1; padding: .7em .4em .1em; border: 0; font-size: .8em; white-space: normal; }
	.fyek-compare td { padding: .1em .4em .7em; border: 0; font-size: 1em; overflow-wrap: anywhere; }
}
