/*
 * Vial label in a seller's branding. Every size is in em: the label is 20em × 10em (2:1),
 * so setting font-size to (label width ÷ 20) prints it at a physical size.
 * --lb-primary / --lb-accent come from the seller's brand kit.
 */
.gw-label-wrap { font-size: 16px; display: flex; justify-content: center; padding: 18px 0; }
.gw-label-wrap-sm { font-size: 11px; padding: 10px 0; justify-content: flex-start; }

.gw-label {
	--lb-primary: #13161B;
	--lb-accent: #C5A059;
	box-sizing: border-box;
	width: 20em;
	height: 10em;
	padding: .75em .9em .6em 1.25em;
	position: relative;
	display: grid;
	grid-template-rows: 3.1em 1fr auto;
	gap: .25em;
	background: #fff;
	color: var(--lb-primary);
	border-radius: .5em;
	overflow: hidden;
	font-family: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 1.2em 2.4em -1.4em rgba(0, 0, 0, .55);
	print-color-adjust: exact;
	-webkit-print-color-adjust: exact;
}
.gw-label::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: .45em; background: var(--lb-accent); }
.gw-label *, .gw-label *::before { box-sizing: border-box; }
.gw-label [hidden] { display: none !important; }

.gw-label-brand { display: flex; align-items: center; min-width: 0; border-bottom: .06em solid color-mix(in srgb, var(--lb-primary) 18%, transparent); padding-bottom: .3em; }
.gw-label-logo { display: block; max-height: 2.6em; max-width: 12em; width: auto; height: auto; object-fit: contain; object-position: left center; }
.gw-label-name { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; font-size: 1.45em; line-height: 1; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--lb-primary); }

.gw-label-body { display: flex; align-items: baseline; gap: .5em; min-width: 0; align-self: center; }
.gw-label-product { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; font-size: 1.9em; line-height: 1; letter-spacing: -.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--lb-primary); }
.gw-label-strength { font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 600; font-size: .85em; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--lb-accent); padding: .2em .45em; border-radius: .25em; white-space: nowrap; }
.gw-label-strength:empty { display: none; }

.gw-label-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: .6em; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .5em; letter-spacing: .06em; text-transform: uppercase; line-height: 1.35; color: color-mix(in srgb, var(--lb-primary) 78%, #fff); }
.gw-label-text { min-width: 0; }
.gw-label-lot { white-space: nowrap; }
