/* Реновация окна «Выберите коммерческое предложение» в корзине под новый дизайн
   модалки «Добавить в КП». МЕХАНИЗМ НЕ ТРОГАЕМ (тот же kpselect.php + from_basket_to_kp),
   только внешний вид. Всё scoped на #basket-commercial-offers-popup-kpselect, чтобы не
   задеть другие попапы. !important — глобальные .popup/.form-control/bootstrap протекают. */

#basket-commercial-offers-popup-kpselect {
	box-sizing: border-box;
	width: 480px !important;
	max-width: calc(100vw - 32px) !important;
	padding: 24px !important;
	background: #fff !important;
	border-radius: 18px !important;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .14) !important;
	font-family: 'Montserrat', Arial, sans-serif !important;
}
#basket-commercial-offers-popup-kpselect * { box-sizing: border-box; }
#basket-commercial-offers-popup-kpselect .popup-inner { padding: 0 !important; }

/* заголовок окна */
#basket-commercial-offers-popup-kpselect .popup-inner > .text-centered {
	text-align: left !important;
	font: 700 20px 'Montserrat', Arial, sans-serif !important;
	color: #000 !important;
	margin: 0 0 16px !important;
	padding: 0 !important;
}

/* поиск */
#basket-commercial-offers-popup-kpselect #kpsearch {
	width: 100% !important;
	height: 42px !important;
	margin: 0 0 12px !important;
	padding: 0 14px !important;
	border: 1.5px solid #d7d7d7 !important;
	border-radius: 11px !important;
	background: #fff !important;
	font: 400 14px 'Montserrat', Arial, sans-serif !important;
	color: #000 !important;
	box-shadow: none !important;
}
#basket-commercial-offers-popup-kpselect #kpsearch::placeholder { color: #aaa !important; }
#basket-commercial-offers-popup-kpselect #kpsearch:focus {
	border-color: #ffe500 !important;
	box-shadow: 0 0 0 3px rgba(255, 229, 0, .30) !important;
	outline: none !important;
}

/* подпись «Коммерческие предложения:» → как групповой заголовок */
#basket-commercial-offers-popup-kpselect .kpselect-menu > .mb-2 {
	font: 600 10px 'Montserrat', Arial, sans-serif !important;
	letter-spacing: .09em !important;
	text-transform: uppercase !important;
	color: #a7a7a7 !important;
	margin: 4px 0 8px !important;
	white-space: normal !important;
}

/* список */
#basket-commercial-offers-popup-kpselect #kplist { max-height: 320px !important; }
#basket-commercial-offers-popup-kpselect .hg-kpsel-sec {
	font: 600 10px 'Montserrat', Arial, sans-serif !important;
	letter-spacing: .09em !important;
	text-transform: uppercase !important;
	color: #a7a7a7 !important;
	margin: 12px 0 8px !important;
}
#basket-commercial-offers-popup-kpselect .hg-kpsel-row {
	gap: 12px !important;
	padding: 9px 11px !important;
	border: 1.5px solid transparent !important;
	border-radius: 11px !important;
}
#basket-commercial-offers-popup-kpselect .hg-kpsel-row:hover { background: #faf9f6 !important; }
/* выделение выбранной строки жёлтой рамкой (где браузер поддерживает :has — иначе просто
   заливается сам чекбокс, как и раньше) */
#basket-commercial-offers-popup-kpselect .hg-kpsel-row:has(.kp-checkbox:checked) {
	border-color: #ffe500 !important;
	background: #fffdf0 !important;
}
#basket-commercial-offers-popup-kpselect .hg-kpsel-box { width: 20px !important; height: 20px !important; border-radius: 6px !important; }
#basket-commercial-offers-popup-kpselect .hg-kpsel-title { font-weight: 700 !important; font-size: 13.5px !important; }

/* новое КП: поле + кнопка «+» */
#basket-commercial-offers-popup-kpselect #kpnewadd { gap: 8px !important; margin-top: 6px !important; }
#basket-commercial-offers-popup-kpselect #kpnewadd input {
	flex: 1 1 auto !important;
	height: 44px !important;
	margin: 0 !important;
	padding: 0 13px !important;
	border: 1.5px solid #d7d7d7 !important;
	border-radius: 11px !important;
	background: #fff !important;
	font: 400 13.5px 'Montserrat', Arial, sans-serif !important;
	color: #000 !important;
	box-shadow: none !important;
}
#basket-commercial-offers-popup-kpselect #kpnewadd input:focus { border-color: #ffe500 !important; box-shadow: 0 0 0 3px rgba(255, 229, 0, .30) !important; outline: none !important; }
#basket-commercial-offers-popup-kpselect #kpnewadd .toCartSubmit,
#basket-commercial-offers-popup-kpselect #kpnewadd button {
	flex: 0 0 auto !important;
	width: 44px !important; height: 44px !important;
	margin: 0 !important; padding: 0 !important;
	display: inline-flex !important; align-items: center !important; justify-content: center !important;
	border: none !important; border-radius: 11px !important;
	background: #ffe500 !important; color: #000 !important;
	cursor: pointer !important; box-shadow: none !important;
}
#basket-commercial-offers-popup-kpselect #kpnewadd .toCartSubmit:hover,
#basket-commercial-offers-popup-kpselect #kpnewadd button:hover { background: #f2d900 !important; }
#basket-commercial-offers-popup-kpselect #kpnewadd .toCartSubmit i { margin: 0 !important; }

/* кнопка «Добавить в выбранные КП» (появляется при выборе) → жёлтая на всю ширину */
#basket-commercial-offers-popup-kpselect .kpMulti {
	width: 100% !important;
	height: 52px !important;
	margin: 14px 0 0 !important;
	padding: 0 !important;
	display: flex !important; align-items: center !important; justify-content: center !important;
	border: none !important; border-radius: 12px !important;
	background: #ffe500 !important; color: #000 !important;
	font: 700 15px 'Montserrat', Arial, sans-serif !important;
	cursor: pointer !important; box-shadow: none !important;
}
#basket-commercial-offers-popup-kpselect .kpMulti:hover { background: #f2d900 !important; }
#basket-commercial-offers-popup-kpselect .dnone { display: none !important; }
