:root {
	--foodord-receipt-width: 72mm;
	--foodord-receipt-font-size: 14px;
	--foodord-receipt-font-size-small: 12px;
	--foodord-receipt-font-size-large: 16px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	color: #000;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	margin: 0;
	padding: 0;
	width: var(--foodord-receipt-width);
	-webkit-print-color-adjust: exact;
	print-color-adjust: exact;
}

body {
	overflow-wrap: anywhere;
	word-break: break-word;
}

@page {
	margin: 0;
	size: 72mm auto;
}

.foodord-receipt {
	display: flex;
	flex-direction: column;
	margin: 0 auto;
	padding: 2mm 0 0;
	width: var(--foodord-receipt-width);
}

.foodord-receipt__header,
.foodord-receipt-item,
.foodord-receipt-section,
.foodord-receipt-totals__row,
.foodord-receipt-payment,
.foodord-receipt-note {
	break-inside: avoid;
	page-break-inside: avoid;
}

.foodord-receipt__header {
	font-size: var(--foodord-receipt-font-size);
	line-height: 1.4;
	text-align: center;
}

.foodord-receipt__fulfillment {
	align-items: center;
	background: transparent;
	color: #000;
	display: inline-flex;
	font-size: var(--foodord-receipt-font-size-large);
	font-weight: 700;
	justify-content: center;
	letter-spacing: 0.2em;
	margin-bottom: 10px;
	padding: 12px 24px;
	position: relative;
	text-transform: uppercase;
}

.foodord-receipt__fulfillment::before {
	border: 1px solid currentcolor;
	border-radius: 2px;
	inset: 6px;
	content: "";
	pointer-events: none;
	position: absolute;
}

.foodord-receipt__order-number {
	font-size: var(--foodord-receipt-font-size-large);
	font-weight: 600;
	letter-spacing: 0.1em;
}

.foodord-receipt__placed,
.foodord-receipt__schedule {
	font-size: var(--foodord-receipt-font-size-small);
	letter-spacing: 0.04em;
	margin-top: 2px;
}

.foodord-receipt__schedule strong {
	font-size: var(--foodord-receipt-font-size);
	font-variant-numeric: tabular-nums;
}

.foodord-receipt__schedule--confirmed span,
.foodord-receipt__schedule--confirmed strong {
	display: block;
}

.foodord-receipt__schedule--confirmed strong {
	margin-top: 2px;
}

.foodord-receipt__divider {
	border-top: 1px dashed #000;
	margin: 12px 0;
}

.foodord-receipt-section {
	font-size: var(--foodord-receipt-font-size);
	line-height: 1.4;
}

.foodord-receipt-section--customer {
	text-align: center;
}

.foodord-receipt-item {
	margin-bottom: 10px;
}

.foodord-receipt-item__row {
	align-items: flex-start;
	display: flex;
	font-size: var(--foodord-receipt-font-size);
	justify-content: space-between;
	padding-inline-end: 4px;
}

.foodord-receipt-item__info {
	align-items: center;
	display: flex;
	flex: 1;
	gap: 6px;
	min-width: 0;
}

.foodord-receipt-item__quantity {
	flex: 0 0 auto;
	font-variant-numeric: tabular-nums;
}

.foodord-receipt-item__name {
	flex: 1;
	min-width: 0;
}

.foodord-receipt-item__total {
	flex: 0 0 auto;
	font-variant-numeric: tabular-nums;
	min-width: 60px;
	padding-inline-end: 2px;
	text-align: end;
}

.foodord-receipt-item__meta-label,
.foodord-receipt-item__meta-value {
	font-size: var(--foodord-receipt-font-size-small);
	line-height: 1.3;
	padding-inline-start: 31px;
}

.foodord-receipt-item__meta-label {
	font-weight: 600;
	margin: 6px 0 5px;
}

.foodord-receipt-item__note {
	display: flex;
	flex-direction: column;
	font-size: var(--foodord-receipt-font-size);
	line-height: 1.5;
	margin-top: 4px;
	padding-inline-start: 31px;
	white-space: pre-wrap;
}

.foodord-receipt-item__note strong {
	margin-bottom: 2px;
}

.foodord-receipt-empty {
	font-size: var(--foodord-receipt-font-size);
}

.foodord-receipt-totals {
	font-size: var(--foodord-receipt-font-size);
}

.foodord-receipt-totals__row {
	align-items: flex-start;
	display: flex;
	gap: 8px;
	justify-content: space-between;
	margin-bottom: 4px;
	padding-inline-end: 4px;
}

.foodord-receipt-totals__row span {
	flex: 1;
	min-width: 0;
}

.foodord-receipt-totals__row strong {
	flex: 0 0 auto;
	font-weight: inherit;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.foodord-receipt-totals__row--total {
	font-size: var(--foodord-receipt-font-size-large);
	font-weight: 700;
}

.foodord-receipt-payment {
	font-size: calc(var(--foodord-receipt-font-size-large) + 1px);
	font-weight: 700;
	letter-spacing: 0.03em;
	line-height: 1.4;
	margin: 12px 0;
	text-align: center;
	text-transform: uppercase;
}

.foodord-receipt-note {
	display: flex;
	flex-direction: column;
	font-size: var(--foodord-receipt-font-size);
	font-style: italic;
	line-height: 1.5;
	white-space: pre-wrap;
}

.foodord-receipt-note strong {
	font-style: normal;
	margin-bottom: 4px;
	text-transform: uppercase;
}
