.tmm-bom-list {
	--tmm-bom-list-border: var(--tmm-color-border, #d8d8d8);
	--tmm-bom-list-surface: var(--tmm-color-surface, #fff);
	--tmm-bom-list-subtle: var(--tmm-color-surface-subtle, #f7f7f7);
	--tmm-bom-list-muted: var(--tmm-color-muted, #666);
	--tmm-bom-list-radius: var(--tmm-radius-sm, 3px);
	box-sizing: border-box;
	width: 100%;
	max-width: 720px;
	margin: 24px auto;
	padding: 20px;
	clear: both;
	border: 1px solid var(--tmm-bom-list-border);
	border-radius: var(--tmm-bom-list-radius);
	background: var(--tmm-bom-list-surface);
	color: inherit;
	font: inherit;
}

.tmm-bom-list *,
.tmm-bom-list *::before,
.tmm-bom-list *::after {
	box-sizing: border-box;
}

.tmm-bom-list__header {
	padding-bottom: 12px;
	border-bottom: 1px solid var(--tmm-bom-list-border);
}

.tmm-bom-list__title {
	margin: 0;
	color: inherit;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
}

.entry .tmm-bom-list .tmm-bom-list__items,
.tmm-bom-list .tmm-bom-list__items {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tmm-bom-list__column-head,
.entry .tmm-bom-list .tmm-bom-list__item,
.tmm-bom-list .tmm-bom-list__item {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) 96px 128px;
	column-gap: 20px;
	row-gap: 8px;
}

.tmm-bom-list__column-head {
	align-items: end;
	padding: 10px 0 8px;
	border-bottom: 1px solid var(--tmm-bom-list-border);
	color: var(--tmm-bom-list-muted);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
}

.tmm-bom-list__column-label--quantity {
	grid-column: 3;
	text-align: center;
}

.entry .tmm-bom-list .tmm-bom-list__item,
.tmm-bom-list .tmm-bom-list__item {
	align-items: center;
	margin: 0;
	padding: 12px 0;
	border-bottom: 1px solid var(--tmm-bom-list-border);
	line-height: 1.45;
}

.tmm-bom-list__thumb {
	grid-column: 1;
	grid-row: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	aspect-ratio: 1;
	overflow: hidden;
	border: 1px solid var(--tmm-bom-list-border);
	background: #fff;
}

.tmm-bom-list__item--no-image .tmm-bom-list__thumb {
	background: var(--tmm-bom-list-subtle);
}

.tmm-bom-list__thumb .tmm-bom-list__image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
}

.tmm-bom-list__body {
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
}

.tmm-bom-list__line {
	min-width: 0;
}

.tmm-bom-list__name {
	min-width: 0;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.tmm-bom-list__quantity {
	grid-column: 3;
	grid-row: 1;
	color: var(--tmm-bom-list-muted);
	font-size: 13px;
	font-weight: 700;
	text-align: center;
}

.tmm-bom-list__note {
	margin-top: 3px;
	color: var(--tmm-bom-list-muted);
	font-size: 13px;
	line-height: 1.45;
}

.tmm-bom-list__item-actions {
	grid-column: 4;
	grid-row: 1;
	text-align: right;
}

.tmm-bom-list .tmm-bom-list__button,
.entry .tmm-bom-list .tmm-bom-list__button,
.widget .tmm-bom-list .tmm-bom-list__button,
.widget-container .tmm-bom-list .tmm-bom-list__button,
#sidebar .tmm-bom-list .tmm-bom-list__button,
#theme-footer .tmm-bom-list .tmm-bom-list__button {
	min-width: 112px;
	text-align: center;
	font-weight: 700;
	white-space: normal;
	color: #fff;
}

.tmm-bom-list .tmm-bom-list__button:hover,
.entry .tmm-bom-list .tmm-bom-list__button:hover,
.widget .tmm-bom-list .tmm-bom-list__button:hover,
.widget-container .tmm-bom-list .tmm-bom-list__button:hover,
#sidebar .tmm-bom-list .tmm-bom-list__button:hover,
#theme-footer .tmm-bom-list .tmm-bom-list__button:hover,
.tmm-bom-list .tmm-bom-list__button:focus,
.entry .tmm-bom-list .tmm-bom-list__button:focus,
.widget .tmm-bom-list .tmm-bom-list__button:focus,
.widget-container .tmm-bom-list .tmm-bom-list__button:focus,
#sidebar .tmm-bom-list .tmm-bom-list__button:focus,
#theme-footer .tmm-bom-list .tmm-bom-list__button:focus {
	color: #fff;
}

.tmm-bom-list--align-center {
	margin-left: auto;
	margin-right: auto;
}

.tmm-bom-list--align-left {
	margin-left: 0;
	margin-right: auto;
}

.tmm-bom-list--align-right {
	margin-left: auto;
	margin-right: 0;
}

.tmm-bom-list--align-full {
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

@media (max-width: 520px) {
	.tmm-bom-list {
		margin: 20px auto;
		padding: 16px;
	}

	.tmm-bom-list__column-head {
		grid-template-columns: 48px minmax(0, 1fr) 78px;
		column-gap: 10px;
	}

	.entry .tmm-bom-list .tmm-bom-list__item,
	.tmm-bom-list .tmm-bom-list__item {
		grid-template-columns: 48px minmax(0, 1fr) 78px;
		column-gap: 10px;
	}

	.tmm-bom-list__item-actions {
		grid-column: 2 / 4;
		grid-row: 2;
		text-align: left;
	}

	.tmm-bom-list__thumb {
		width: 48px;
	}

	.tmm-bom-list__title {
		font-size: 18px;
	}

	.tmm-bom-list__line {
		display: block;
	}

	.tmm-bom-list__quantity {
		align-self: start;
		padding-top: 2px;
	}
}
