.cpt-product-table-wrap {
	max-width: 100%;
	margin: 1.5rem 0;
}

.cpt-product-filters {
	margin: 0 0 1.25rem;
	padding: 1rem;
	border: 1px solid rgba(0, 0, 0, 0.14);
	border-radius: 0.5rem;
}

.cpt-product-filters__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
	gap: 1rem;
}

.cpt-product-filters label,
.cpt-filter-range label {
	display: grid;
	gap: 0.35rem;
	min-width: 0;
	font-size: 0.95rem;
}

.cpt-product-filters input,
.cpt-product-filters select {
	box-sizing: border-box;
	width: 100%;
	min-height: 2.6rem;
	padding: 0.45rem 0.6rem;
}

.cpt-filter-range {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.6rem;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.cpt-filter-range legend {
	margin-bottom: 0.35rem;
	font-weight: 600;
}

.cpt-product-filters__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.8rem;
	margin-top: 1rem;
}

.cpt-product-filters__actions button {
	min-height: 2.6rem;
	padding: 0.45rem 0.9rem;
	cursor: pointer;
}

.cpt-product-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}

.cpt-product-table th,
.cpt-product-table td {
	padding: 0.8rem 1rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
	vertical-align: middle;
}

.cpt-product-table thead th {
	font-weight: 600;
}

.cpt-product-table .cpt-product-name {
	min-width: 12rem;
}

.cpt-product-table td {
	overflow-wrap: anywhere;
}

.cpt-product-table .cpt-product-price {
	white-space: nowrap;
}

.cpt-product-table .cpt-product-cart {
	min-width: 9rem;
}

.cpt-product-table-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.cpt-product-table-pagination a,
.cpt-product-table-pagination span {
	display: inline-block;
	padding: 0.35rem 0.7rem;
	border: 1px solid rgba(0, 0, 0, 0.16);
	text-decoration: none;
}

@media (max-width: 700px) {
	.cpt-product-filters {
		padding: 0.85rem;
	}

	.cpt-product-filters__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.cpt-product-table,
	.cpt-product-table tbody {
		display: block;
		width: 100%;
	}

	.cpt-product-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		clip-path: inset(50%);
	}

	.cpt-product-table tbody tr {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin: 0 0 0.9rem;
		border: 1px solid rgba(0, 0, 0, 0.14);
		border-radius: 0.5rem;
		overflow: hidden;
	}

	.cpt-product-table th,
	.cpt-product-table td {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 0.25rem;
		min-width: 0;
		padding: 0.7rem;
		border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	}

	.cpt-product-table th[data-label]::before,
	.cpt-product-table td[data-label]::before {
		content: attr(data-label);
		font-size: 0.78rem;
		font-weight: 600;
		opacity: 0.72;
	}

	.cpt-product-table .cpt-product-name,
	.cpt-product-table .cpt-product-cart,
	.cpt-product-table td[colspan] {
		grid-column: 1 / -1;
	}

	.cpt-product-table .cpt-product-name {
		min-width: 0;
	}

	.cpt-product-table .cpt-product-cart .button {
		width: 100%;
		box-sizing: border-box;
		text-align: center;
	}
}
