.tmm-product-card {
	--tmm-product-card-border: var(--tmm-color-border, #d8d8d8);
	--tmm-product-card-surface: var(--tmm-color-surface, #fff);
	--tmm-product-card-muted: var(--tmm-color-muted, #666);
	--tmm-product-card-radius: var(--tmm-radius-sm, 3px);
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	gap: 16px 22px;
	align-items: start;
	width: 100%;
	max-width: 640px;
	margin: 24px auto;
	padding: 20px;
	clear: both;
	border: 1px solid var(--tmm-product-card-border);
	border-radius: var(--tmm-product-card-radius);
	background: var(--tmm-product-card-surface);
	color: inherit;
	font: inherit;
}

.tmm-product-card *,
.tmm-product-card *::before,
.tmm-product-card *::after {
	box-sizing: border-box;
}

.tmm-product-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 112px;
	aspect-ratio: 1;
	overflow: hidden;
	border: 1px solid var(--tmm-product-card-border);
	background: #fff;
}

.tmm-product-card__media .tmm-product-card__image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
}

.tmm-product-card__content {
	min-width: 0;
	padding-top: 1px;
}

.tmm-product-card__title {
	margin: 0 0 8px;
	color: inherit;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
}

.entry .tmm-product-card .tmm-product-card__description,
.tmm-product-card .tmm-product-card__description {
	margin: 0;
	color: var(--tmm-product-card-muted);
	font-size: 14px;
	line-height: 1.55;
}

.tmm-product-card__actions {
	grid-column: 1 / -1;
	margin-top: 18px;
	text-align: center;
}

.tmm-product-card .tmm-product-card__button,
.entry .tmm-product-card .tmm-product-card__button,
.widget .tmm-product-card .tmm-product-card__button,
.widget-container .tmm-product-card .tmm-product-card__button,
#sidebar .tmm-product-card .tmm-product-card__button,
#theme-footer .tmm-product-card .tmm-product-card__button {
	min-width: 150px;
	text-align: center;
	font-weight: 700;
	white-space: normal;
	color: #fff;
}

.tmm-product-card .tmm-product-card__button:hover,
.entry .tmm-product-card .tmm-product-card__button:hover,
.widget .tmm-product-card .tmm-product-card__button:hover,
.widget-container .tmm-product-card .tmm-product-card__button:hover,
#sidebar .tmm-product-card .tmm-product-card__button:hover,
#theme-footer .tmm-product-card .tmm-product-card__button:hover,
.tmm-product-card .tmm-product-card__button:focus,
.entry .tmm-product-card .tmm-product-card__button:focus,
.widget .tmm-product-card .tmm-product-card__button:focus,
.widget-container .tmm-product-card .tmm-product-card__button:focus,
#sidebar .tmm-product-card .tmm-product-card__button:focus,
#theme-footer .tmm-product-card .tmm-product-card__button:focus {
	color: #fff;
}

.tmm-product-card--no-image {
	grid-template-columns: minmax(0, 1fr);
}

.tmm-product-card--no-image .tmm-product-card__actions {
	margin-top: 10px;
}

.tmm-product-card--layout-compact {
	grid-template-columns: 88px minmax(0, 1fr);
	gap: 12px 16px;
	max-width: 520px;
	padding: 16px;
}

.tmm-product-card--layout-compact .tmm-product-card__media {
	width: 88px;
}

.tmm-product-card--layout-compact .tmm-product-card__title,
.tmm-product-card--layout-stacked .tmm-product-card__title {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--tmm-product-card-title-lines, 3);
	overflow-wrap: anywhere;
}

.tmm-product-card--layout-compact .tmm-product-card__description,
.tmm-product-card--layout-stacked .tmm-product-card__description {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--tmm-product-card-desc-lines, 5);
}

.tmm-product-card--layout-compact .tmm-product-card__title {
	font-size: 17px;
	line-height: 1.24;
}

.entry .tmm-product-card--layout-compact .tmm-product-card__description,
.tmm-product-card--layout-compact .tmm-product-card__description {
	font-size: 13px;
	line-height: 1.45;
}

.tmm-product-card--layout-compact .tmm-product-card__actions {
	margin-top: 12px;
}

.tmm-product-card--layout-stacked {
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
	max-width: 340px;
	padding: 18px;
}

.tmm-product-card--layout-stacked .tmm-product-card__media {
	width: min(100%, 168px);
	margin: 0 auto;
}

.tmm-product-card--layout-stacked .tmm-product-card__content {
	padding-top: 0;
}

.tmm-product-card--layout-stacked .tmm-product-card__title {
	font-size: 18px;
	line-height: 1.24;
}

.entry .tmm-product-card--layout-stacked .tmm-product-card__description,
.tmm-product-card--layout-stacked .tmm-product-card__description {
	font-size: 13px;
	line-height: 1.45;
}

.tmm-product-card--layout-stacked .tmm-product-card__actions {
	grid-column: 1;
	margin-top: 4px;
}

.tmm-product-card--layout-stacked .tmm-product-card__button {
	width: min(100%, 180px);
}

.tmm-product-card--align-center {
	margin-left: auto;
	margin-right: auto;
}

.tmm-product-card--align-left {
	margin-left: 0;
	margin-right: auto;
}

.tmm-product-card--align-right {
	margin-left: auto;
	margin-right: 0;
}

.tmm-product-card--align-full {
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

@media (max-width: 520px) {
	.tmm-product-card {
		grid-template-columns: 88px minmax(0, 1fr);
		gap: 12px 14px;
		margin: 20px auto;
		padding: 16px;
	}

	.tmm-product-card__media {
		width: 88px;
	}

	.tmm-product-card__title {
		font-size: 18px;
	}

	.tmm-product-card__actions {
		margin-top: 12px;
	}

	.tmm-product-card--layout-stacked {
		grid-template-columns: minmax(0, 1fr);
	}

	.tmm-product-card--layout-stacked .tmm-product-card__media {
		width: min(100%, 160px);
	}

	.tmm-product-card--layout-stacked .tmm-product-card__actions {
		grid-column: 1;
	}
}

@media (max-width: 340px) {
	.tmm-product-card {
		grid-template-columns: minmax(0, 1fr);
	}

	.tmm-product-card__media {
		width: 112px;
	}
}
