/* Доработка «Ленточные станки по металлу». Значения — по макету pila-nsk.ru.fig, секция «Лентопильные станки» */

/* ---------- Маркеры уровня автоматизации ---------- */
.lsm-type {
	display: inline-block;
	box-sizing: border-box;
	font-size: 12px;
	line-height: 12px;
	padding: 3px 4px;
	border: 1px solid transparent;
	border-radius: 2px;
	color: #fff;
	white-space: nowrap;
}
.lsm-type--manual { background-color: #F08C00; border-color: #F08C00; }
.lsm-type--semi { background-color: #1A58D7; border-color: #1A58D7; }
.lsm-type--auto { background-color: #04C404; border-color: #04C404; }

/* мини-КТ: бейджи в 15px от края карточки */
.product-list-item .badges {
	top: 15px;
	left: 15px;
}

/* в карточке товара — в размер существующего бейджа «Хит» (15px, отступ 10px, радиус 2px) */
.product-page .badge > span.lsm-type {
	font-size: 15px;
	line-height: 100%;
	border-radius: 2px;
	padding: 9px 10px;
}

/* маркер в табличном виде списка */
.lsm-type--inline {
	display: table;
	margin-top: 6px;
}

/* ---------- Быстрые фильтры «Часто ищут» ---------- */
.lsm-qf {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 20px;
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 14px;
	color: #444648;
}
.lsm-qf__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	box-sizing: border-box;
	height: 32px;
	padding: 8px 10px;
	border: 1px solid #E8E8E8;
	border-radius: 3px;
	background: #F7F7F7;
	color: #444648;
	text-decoration: none;
	transition: background-color .2s, border-color .2s, color .2s;
}
.lsm-qf__chip:hover {
	border-color: #F11924;
	color: #F11924;
	text-decoration: none;
}
.lsm-qf__chip.is-active,
.lsm-qf__chip.is-active:hover {
	background: #F11924;
	border-color: #F11924;
	color: #fff;
}
.lsm-qf__reset {
	font-size: 16px;
	line-height: 14px;
}
@media (max-width: 768px) {
	.lsm-qf {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		gap: 10px;
		margin: 0 0 15px;
		padding-bottom: 4px;
	}
	.lsm-qf__title { flex-shrink: 0; }
	.lsm-qf__chip { flex-shrink: 0; white-space: nowrap; }
}

/* ---------- Кнопка «Уточнить цену» ---------- */
.lsm-price-btn {
	cursor: pointer;
	font-family: inherit;
}
/* КТ: высота как у кнопки «Купить» — 38px (<button> по умолчанию имеет line-height: normal и выходил 34px) */
.product-page .button-order.lsm-price-btn:not(.product-list-item__add2cart) {
	box-sizing: border-box;
	height: 38px;
	line-height: 22px;
}
.product-offers .lsm-price-btn {
	max-width: 200px;
}

/* ---------- Блок консультанта ----------
   Макет + правки ТЗ: фото 55px, подзаголовок 14px #7D7D7D, текст 14px.
   На ПК — Елена Сомшина, на МУ — Алексей Гончаров. */
.lsm-consultant {
	box-sizing: border-box;
	width: 100%;
	max-width: 319px;
	padding: 15px;
	border: 1px solid #E8E8E8;
	border-radius: 3px;
	background: #fff;
	color: #2D2D2D;
}
.lsm-consultant__head {
	display: flex;
	align-items: center;
	gap: 15px;
}
.lsm-consultant__photo {
	display: block;
	width: 55px;
	height: 55px;
	border-radius: 3px;
	object-fit: cover;
	flex-shrink: 0;
}
.lsm-consultant__name {
	font-size: 14px;
	line-height: 20px;
	color: #2D2D2D;
}
.lsm-consultant__role {
	margin-top: 5px;
	font-size: 14px;
	line-height: 20px;
	color: #7D7D7D;
}
.lsm-consultant__text {
	margin-top: 15px;
	font-size: 14px;
	line-height: 20px;
	color: #2D2D2D;
}
.lsm-consultant__btn {
	box-sizing: border-box;
	height: 38px;
	margin-top: 15px;
	padding: 10px 15px;
	border: 1px solid #F11924;
	border-radius: 3px;
	background: #fff;
	color: #494949;
	font-family: inherit;
	font-size: 16px;
	line-height: 16px;
	cursor: pointer;
	transition: background-color .2s, color .2s;
}
.lsm-consultant__btn:hover {
	background: #F11924;
	color: #fff;
}
.lsm-consultant--mob { display: none; }
@media (max-width: 960px) {
	.lsm-consultant { max-width: 100%; }
}
@media (max-width: 768px) {
	.lsm-consultant--pc { display: none; }
	.lsm-consultant--mob { display: block; }
}

/* ---------- Конструктивные особенности ---------- */
.lsm-cf {
	display: flex;
	gap: 21px;
	align-items: flex-start;
}
.lsm-cf__media {
	flex: 1 1 auto;
	max-width: 778px;
	min-width: 0;
}
.lsm-cf__img {
	position: relative;
}
.lsm-cf__img img {
	display: block;
	width: 100%;
	height: auto;
}
.lsm-cf__leads {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
}
.lsm-cf__lead line {
	stroke: #F11924;
	stroke-width: 2;
	vector-effect: non-scaling-stroke;
}
.lsm-cf__lead circle {
	fill: #fff;
	stroke: #F11924;
	stroke-width: 1;
	vector-effect: non-scaling-stroke;
}
.lsm-cf__lead--light line { stroke: #fff; }
.lsm-cf__lead--light circle { fill: #F11924; stroke: #fff; }
.lsm-cf__point {
	position: absolute;
	z-index: 1;
	width: 33px;
	height: 34px;
	margin: -17px 0 0 -16.5px;
	box-sizing: border-box;
	border: 1.5px solid #F11924;
	border-radius: 100px;
	background: #fff;
	color: #292929;
	font-size: 17px;
	font-weight: 700;
	line-height: 31px;
	text-align: center;
	cursor: default;
	transition: background-color .2s, color .2s;
}
.lsm-cf__note {
	font-size: 14px;
	line-height: 20px;
	color: #636363;
}
.lsm-cf__list {
	flex: 0 0 343px;
	margin: 0;
	padding: 0 0 0 21px;
	list-style: none;
	border-left: 1px solid #E3E3E3;
}
.lsm-cf__item {
	display: flex;
	gap: 10px;
	padding: 0 0 20px;
	margin: 0;
	cursor: default;
}
.lsm-cf__item:last-child { padding-bottom: 0; }
.lsm-cf__item:before { display: none; }
.lsm-cf__num {
	flex-shrink: 0;
	width: 29px;
	height: 29px;
	box-sizing: border-box;
	border: 1.5px solid #F11924;
	border-radius: 100px;
	background: #fff;
	color: #292929;
	font-size: 16px;
	font-weight: 700;
	line-height: 26px;
	text-align: center;
	transition: background-color .2s, color .2s;
}
.lsm-cf__title {
	font-size: 16px;
	font-weight: 700;
	line-height: 22px;
	color: #292929;
	transition: color .2s;
}
.lsm-cf__text {
	margin-top: 5px;
	font-size: 14px;
	line-height: 20px;
	color: #636363;
}
/* активный пункт: на ПК — по наведению, на МУ — по тапу на номер (п.14) */
.lsm-cf__point.is-active,
.lsm-cf__item.is-active .lsm-cf__num {
	background: #F11924;
	color: #fff;
}
.lsm-cf__item.is-active .lsm-cf__title {
	color: #F11924;
}
.lsm-cf__point.is-active { z-index: 2; }
@media (max-width: 1100px) {
	.lsm-cf__list { flex-basis: 300px; }
}
@media (max-width: 768px) {
	.lsm-cf {
		flex-direction: column;
		gap: 20px;
	}
	.lsm-cf__media { max-width: 100%; }
	.lsm-cf__leads { display: none; }
	.lsm-cf__point {
		width: 29px;
		height: 28px;
		margin: -14px 0 0 -14.5px;
		line-height: 25px;
	}
	.lsm-cf__list {
		flex-basis: auto;
		padding-left: 0;
		border-left: 0;
	}
}

/* ---------- Сопутствующие товары ---------- */
.lsm-related { margin-top: 10px; }

/* ---------- КТ: телефон — hover как у почты (.order-info__row a) ---------- */
/* !important — чтобы перебить глобальное .phone a { color: #282828 !important } */
.order-info__row .phone a.lsm-phone {
	color: #292929 !important;
	text-decoration: none !important;
	cursor: pointer;
}
.order-info__row .phone a.lsm-phone:hover {
	color: #F11924 !important;
}

/* ---------- КТ, МУ: подсказка у статуса «Под заказ» по ширине экрана ----------
   Тултип позиционируем от строки статуса (она во всю ширину контента), а не от иконки «?». */
@media (max-width: 768px) {
	.product-page .startshop-state {
		position: relative;
	}
	.product-page .startshop-state .delivery-time {
		position: static;
	}
	.product-page .startshop-state .delivery-time .tooltip {
		left: 0;
		right: 0;
		width: auto;
		max-width: 100%;
		box-sizing: border-box;
		white-space: normal;
	}
}

/* ---------- ФОС «Уточнить цену»: поле-ловушка от спама (скрыто для людей) ---------- */
.lsm-hp {
	position: absolute !important;
	left: -10000px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

/* ---------- Конструктивные особенности: номера на схеме — якорные ссылки ---------- */
a.lsm-cf__point,
a.lsm-cf__point:hover,
a.lsm-cf__point:focus {
	text-decoration: none;
	color: #292929;
}
a.lsm-cf__point.is-active,
a.lsm-cf__point.is-active:hover,
a.lsm-cf__point.is-active:focus { color: #fff; }
.lsm-cf__item {
	scroll-margin-top: 160px; /* фиксированная шапка МУ */
}
