/**
 * Components for Flatsome child theme.
 * Loaded by functions.php.
 */

.webso1-mega-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 15px;
	width: 100%;
	padding: 15px 10px;
}

.webso1-cols-desktop-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.webso1-cols-desktop-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.webso1-cols-desktop-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.webso1-cols-desktop-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.webso1-cols-desktop-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.webso1-cols-desktop-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.webso1-cols-desktop-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.webso1-cols-desktop-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.webso1-cols-desktop-9 { grid-template-columns: repeat(9, minmax(0, 1fr)); }
.webso1-cols-desktop-10 { grid-template-columns: repeat(10, minmax(0, 1fr)); }

.webso1-mega-cat-item {
	min-width: 0;
	text-align: center;
}

.webso1-mega-cat-item > a {
	display: block;
	height: 100%;
	padding: 8px;
	color: #222;
	text-decoration: none;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.webso1-mega-cat-item > a:hover,
.webso1-mega-cat-item > a:focus-visible {
	transform: translateY(-3px);
}

.webso1-mega-image {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 65px;
	margin-bottom: 8px;
}

.webso1-mega-image img {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.webso1-mega-title {
	display: block;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
}

.webso1-mega-message {
	margin: 0;
	padding: 20px;
	color: #777;
	text-align: center;
}

.tl-buy-now-submit {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin-left: 8px;
	line-height: 1.15;
	vertical-align: top;
}

.tl-buy-now-submit small {
	display: block;
	margin-top: 3px;
	font-size: 11px;
	font-weight: 400;
	text-transform: none;
	opacity: 0.85;
}

.tl-product-documents-tab .tl-document-download-btn {
	margin-top: 8px;
}

@media (max-width: 849px) {
	.webso1-cols-tablet-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
	.webso1-cols-tablet-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.webso1-cols-tablet-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.webso1-cols-tablet-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.webso1-cols-tablet-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.webso1-cols-tablet-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 549px) {
	.webso1-mega-grid {
		gap: 10px;
		padding-right: 0;
		padding-left: 0;
	}

	.webso1-cols-mobile-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
	.webso1-cols-mobile-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.webso1-cols-mobile-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.webso1-cols-mobile-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

	.tl-buy-now-submit {
		width: 100%;
		margin-top: 8px;
		margin-left: 0;
	}
}
