/**
 * Попапы шапки: корзина + AJAX-поиск.
 * Вынесено из shop_lk.pages.css — нужно на всех страницах, не только в ЛК.
 */

/* --- Корзина (.t cart-wrap-overlay) --- */
.t .popoverCart {
	z-index: 1040;
	width: 380px;
	height: 100%;
	background-color: #fff;
	box-shadow: rgba(99, 99, 99, .2) 0 2px 8px 0;
}

.t .popoverCart__list {
	padding: 16px 16px 0;
	height: 100%;
	max-height: 320px;
	overflow: auto;
}

.t .popoverCart__list::-webkit-scrollbar {
	width: 6px;
}

.t .popoverCart__list::-webkit-scrollbar-thumb {
	background: #adb5bd;
	border-radius: 4px;
}

.t .popoverCart__list::-webkit-scrollbar-track {
	border-radius: 4px;
	background: #dee2e6;
	margin: 16px 0;
}

.t .popoverCart__item {
	position: relative;
	display: flex;
	padding: 14px 16px;
}

.t .popoverCart__item:hover .popoverCart__item-remove {
	display: block;
}

.t .popoverCart__item-img {
	width: 92px;
	height: 92px;
	margin-right: 16px;
}

.t .popoverCart__item-name {
	width: 100%;
	max-width: 190px;
	font-size: 16px;
	cursor: pointer;
	color: #6c757d;
	display: block;
	line-height: 1.2;
	margin-bottom: 8px;
}

@media (max-width: 575.98px) {
	.t .popoverCart__item-name {
		font-size: 14px;
		margin-bottom: 16px;
	}
}

.t .popoverCart__item-name:hover {
	color: #6c757d;
}

.t .popoverCart__price {
	font-weight: 500;
	line-height: normal;
}

.t .popoverCart__price.--is-total {
	font-weight: 600;
}

.t .popoverCart__quantity {
	font-size: 14px;
	display: inline-block;
	padding: 0 3px 1px;
	line-height: normal;
	border-radius: 5px;
	background-color: #ced4da;
	color: #6c757d;
	font-weight: 500;
}

.t .popoverCart__item-remove {
	cursor: pointer;
	display: none;
	position: absolute;
	right: 0;
	width: 18px;
	height: 18px;
	top: 20px;
	color: #adb5bd;
}

.t .popoverCart__footer {
	padding: 0 16px;
	background-color: #fff;
	height: 100px;
	display: flex;
	align-items: center;
	width: 100%;
	justify-content: center;
	border-top: 1px solid #e4e4e4;
}

.t .popoverCart__btn {
	display: inline-block;
	max-width: 240px;
	width: 100%;
	padding: 8px 16px;
	border-radius: 4px;
	background-color: #eb212e;
	border: 2px solid #eb212e;
	text-decoration: none;
	text-align: center;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	text-transform: uppercase;
	margin: 0 auto 10px;
}

.t .popoverCart__btn:hover {
	transition: all ease-in-out .2s;
	background-color: #fff;
	color: #eb212e;
}

/* --- AJAX-поиск: переопределение main_page_style (.swiper-slide { width: 100% }) --- */
.search-list-right .container > .hot-offer__item.swiper-slide,
#popup_search_result .hot-offer__item.swiper-slide {
	width: auto !important;
	max-width: 255px !important;
	flex: 0 0 auto !important;
	float: none !important;
	margin-right: 0 !important;
}

@media (max-width: 576px) {
	.search-list-right .container > .hot-offer__item.swiper-slide,
	#popup_search_result .hot-offer__item.swiper-slide {
		width: 170px !important;
		max-width: 170px !important;
	}
}
