/* ------------ columns ----------- */

.tabContent .cols {
	position: relative;
	top: 9px;
	width: 100%;
	font-family: Georgia, Garamond, 'Times New Roman', sans;
	font-size: 16px;
	color: #69727a;
}
input.paramsField {
	width: 40px;
	font-family: Georgia, Garamond, 'Times New Roman', sans;
	font-size: 16px;
	color: #3870b2;
	text-align: center;
	border: 1px solid #a5acb2;
	background: #fff;
}
.tabContent input.invalidValue {
	border: 1px solid #a5acb2;
	background: #f1d1d3 !important;
}

.leftCol,
.rightCol {
	position: absolute;
	width: 290px;
}
.tabContent .leftCol {
	width: 300px;
	left: 15px;
	text-align: left;
}

.tabContent .rightCol {
	width: 300px;
	right: 15px;
	text-align: right;
}

/* ------------ scrollable pane ----------- */

.samplesPane {
	position: absolute;
	left: 10px;
	top: 75px;
	width: 604px;
	height: 250px;
	overflow: auto;
	border: 1px solid #ccc;
}
.samplesPane a.textureItem {
	display: block;
	margin: 5px;
	float: left;
	width: 71px;
	height: 70px;
	border: 1px solid #ccc;
}
.samplesPane a.texture-1 {
	background-image: url(../bgs/1.png);
}
.samplesPane a.texture-2 {
	background-image: url(../bgs/2.png);
}
.samplesPane a.texture-3 {
	background-image: url(../bgs/3.png);
}
.samplesPane a.texture-4 {
	background-image: url(../bgs/4.png);
}
.samplesPane a.texture-5 {
	background-image: url(../bgs/5.png);
}
.samplesPane a.imageItem {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 5px;
	float: left;
	width: 71px;
	height: 70px;
	border: 1px solid #ccc;
	overflow: hidden;
}
.samplesPane a:hover {
	border: 1px solid #555;
}
.samplesPane a img {
	border: none;
	display: block;
	width: 100%;
	height: 100%;
	max-width: calc(100% - 8px);
	max-height: calc(100% - 8px);
	margin: 0;
}

#patternLibraryList::after {
	content: '';
	display: block;
	clear: both;
}

/*------------------ misc -------------------*/

@media (max-width: 980px) {
	.tabContent .cols {
		display: flex;
		flex-wrap: wrap;
		gap: 14px 18px;
		padding: 0 15px;
		box-sizing: border-box;
	}

	.leftCol,
	.rightCol,
	.tabContent .leftCol,
	.tabContent .rightCol {
		position: static;
		width: calc(50% - 9px);
	}

	.samplesPane {
		position: static;
		width: auto;
		height: 260px;
		margin: 12px 15px 15px;
		box-sizing: border-box;
	}
}

@media (max-width: 640px) {
	.tabContent .cols {
		display: block;
		top: 0;
		padding: 14px 14px 0;
	}

	.leftCol,
	.rightCol,
	.tabContent .leftCol,
	.tabContent .rightCol {
		width: auto;
	}

	.tabContent .leftCol,
	.tabContent .rightCol {
		margin-bottom: 12px;
		text-align: left;
	}

	.samplesPane {
		height: min(48vh, 340px);
		margin: 10px 14px 14px;
	}

	.samplesPane a.textureItem,
	.samplesPane a.imageItem {
		width: calc(25% - 10px);
		min-width: 62px;
		height: 62px;
		box-sizing: border-box;
	}

	.samplesPane a.imageItem img {
		display: block;
		width: auto;
		height: auto;
		max-width: calc(100% - 8px);
		max-height: calc(100% - 8px);
	}
}
