.sling-calc-module .calc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
	gap: 1.8rem;
}

.sling-calc-module.standalone {
	position: absolute;
	left: calc(50% + 10px);
	top: 0px;
}

.sling-calc-module.standalone .calc-card {
	width: 490px;
}

.sling-calc-module .calc-card {
	width: 400px;
	z-index: 1;
	position: relative;
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
	transition: transform 0.2s, box-shadow 0.2s;
	overflow: hidden;
}

.sling-calc-module .calc-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.sling-calc-module .calc-header {
	padding: 1rem 1.5rem;
	border-bottom: 2px solid #cbd5e1;
	font-size: 1.4rem;
	font-weight: 400;
	color: #0054a5;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.calc-header-link {
	background: #0054a5;
	color: white;
	font-weight: 400;
	font-size: 13px;
	border-radius: 4px;
	padding: 8px;
}

.sling-calc-module .calc-body {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.sling-calc-module .calc-image {
	display: flex;
	justify-content: center;
	background: #f8fafc;
	border-radius: 4px;
	padding: 0.75rem;
}

.sling-calc-module .calc-image img {
	max-width: 200px;
	height: auto;
}

.sling-calc-module .input-group {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
}

.sling-calc-module .input-group label {
	flex: 1;
	min-width: 110px;
	display: flex;
	flex-direction: column;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	color: #475569;
	gap: 0.3rem;
}

.sling-calc-module .input-group input {
	padding: 0.7rem 0.8rem;
	font-size: 1rem;
	border: 1.5px solid #e2e8f0;
	border-radius: 6px;
	background: #fff;
	transition: 0.2s;
	width: 100%;
}

.sling-calc-module .input-group input:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.sling-calc-module .btn-calc {
	background: #0054a5;
	border: none;
	padding: 0.8rem;
	font-size: 1rem;
	font-weight: 600;
	color: white;
	border-radius: 8px;
	cursor: pointer;
	transition: 0.2s;
	width: 100%;
	margin-top: 0.5rem;
}

.sling-calc-module .btn-calc:hover {
	transform: scale(0.98);
}

.sling-calc-module .results {
	background: #f8fafc;
	border-radius: 4px;
	padding: 0.8rem 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.sling-calc-module .result-line {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 0.95rem;
	border-bottom: 1px dashed #cbd5e1;
	padding: 0.4rem 0;
}

.sling-calc-module .result-line span:first-child {
	font-weight: 500;
	color: #334155;
}

.sling-calc-module .result-line span:last-child {
	font-weight: 700;
	background: #e6f0ff;
	padding: 0.1rem 0.6rem;
	border-radius: 4px;
	color: #1e3a8a;
}

.sling-calc-module .impossible {
	background: #fee2e2;
	border-radius: 4px;
	padding: 0.5rem;
	text-align: center;
	color: #b91c1c;
	font-weight: bold;
	display: none;
	margin-top: 0.5rem;
	justify-content: center;
	gap: 5px;
}

.sling-calc-module .warning {
	background: #fff0f0;
	padding: 0.6rem 1rem;
	border-radius: 4px;
	font-size: 0.75rem;
	color: #991b1b;
	display: flex;
	align-items: center;
	gap: 5px;
}

@media (max-width: 560px) {
	.sling-calc-module .calc-grid {
		grid-template-columns: 1fr;
	}

	.sling-calc-module .input-group label {
		min-width: 100%;
	}
}



.catalogue {
	position: relative;
}

@media screen and (min-width: 1640px) {
	.catalogue-row {
		width: calc(100% - 40%);
	}

	.catalogue-item_category-page {
		width: calc(33.3% - 12px);

	}

	.sling-calc-module.standalone {
		left: calc(60% + 10px);
	}
}
@media screen and (max-width: 1640px) {
	.catalogue-row, .fence_wrap {
		width: calc(100% - 50%);
	}

	.catalogue-item_category-page {
		width: calc(50% - 12px);
	}
}

@media screen and (max-width: 1320px) {
	.catalogue-row, .fence_wrap {
		width: 100%;
	}
	
	.sling-calc-module.standalone {
		position: unset;
	}

	.sling-calc-module.standalone .calc-card {
		width: unset;
	}

	.catalogue-row, .fence_wrap {
		width: 100%;
	}

	.catalogue-item_category-page {
		width: calc(33.3% - 12px);

	}
}

@media screen and (max-width: 629px) {
	.catalogue-item_category-page {
		width: 100%;
 	}
}