/*
 * Страница товара: галерея на всю ширину колонки, закреплённая панель покупки (скрипт item_buy_bar.js).
 */
div.item-foto-box {
	max-width: 100%;
}

.buybar {
	position: fixed;
	z-index: 1250;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	padding: 10px 16px;
	border-top: 1px solid #e5ebf8;
	background: rgba(255, 255, 255, .97);
	box-shadow: 0 -6px 22px rgba(0, 30, 41, .12);
	font-family: 'Montserrat', sans-serif;
}
.buybar[hidden] { display: none; }
.buybar-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
	max-width: 560px;
}
.buybar-name {
	overflow: hidden;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #5b6b76;
}
.buybar-price {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	color: #001e29;
}
.buybar-btn {
	flex: none;
	min-width: 170px;
	height: 46px;
	padding: 0 28px;
	border: 2px solid #fe9900;
	border-radius: 50px;
	background: #fe9900;
	font-family: 'Montserrat', sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	cursor: pointer;
	transition: background .2s ease, border-color .2s ease;
}
.buybar-btn:hover {
	border-color: #00349a;
	background: #00349a;
}
@media (max-width: 991.98px) {
	body.has-buybar .mbar { display: none; }
	body.has-buybar { padding-bottom: 72px; }
	.buybar { justify-content: space-between; padding: 10px 14px; }
	.buybar-info { flex: 1 1 auto; }
	.buybar-btn { min-width: 130px; padding: 0 20px; }
}

/* Блок цены и кнопок */
div.cart-total-box div.models {
	gap: 12px 14px;
	margin: 0;
}
div.cart-total-box div.models > .item-price-box {
	flex: 0 0 100%;
	width: 100%;
	padding: 0;
}
div.cart-total-box div.models div.item-price-box span,
div.cart-total-box div.models div.item-price-box span label {
	font-size: 34px;
	font-weight: 700;
	line-height: 1.15;
	color: #001e29;
}
div.cart-total-box div.models > .item-cart-button-box,
div.cart-total-box div.models > .item-buy-click-box {
	flex: 0 0 auto;
	width: auto;
	max-width: 100%;
	padding: 0;
}
div.cart-total-box .to_shopping {
	height: 48px;
	padding: 0 34px;
	border: 2px solid #fe9900;
	border-radius: 50px;
	background: #fe9900;
	font-family: 'Montserrat', sans-serif;
	font-size: 15px;
	font-weight: 700;
	text-transform: none;
	color: #fff;
	cursor: pointer;
	transition: background .2s ease, border-color .2s ease;
}
div.cart-total-box .to_shopping span { color: #fff; }
div.cart-total-box .to_shopping:hover {
	border-color: #00349a;
	background: #00349a;
}
div.cart-total-box .item-buy-click-box .fast-order-open-btn {
	height: 48px;
	padding: 0 24px;
	border: 2px solid #00349a;
	border-radius: 50px;
	background: transparent;
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	font-weight: 700;
	text-transform: none;
	white-space: nowrap;
	color: #00349a;
}
div.cart-total-box .item-buy-click-box .fast-order-open-btn:hover {
	background: #00349a;
	color: #fff;
}
div.cart-total-box .amount-cart-box td { vertical-align: middle; }
div.cart-total-box .amount-cart-box td + td { padding-left: 12px; }

/* Состояния кнопки закреплённой панели: добавление и «в корзину» после добавления */
.buybar-btn.is-busy { opacity: .75; cursor: progress; }
.buybar-btn.is-added { border-color: #00349a; background: #00349a; }

/* Подтверждение «Товар добавлен в корзину» и «Нет в наличии»: сверху по центру, в цветах сайта (поверх старого бирюзового блока) */
#to_cart,
#not_in_stock {
	position: fixed !important;
	top: 96px;
	right: auto !important;
	bottom: auto !important;
	left: 50% !important;
	float: none !important;
	width: max-content;
	max-width: calc(100vw - 32px);
	padding: 14px 24px !important;
	transform: translateX(-50%);
	border: 0 !important;
	border-radius: 14px !important;
	background: #00349a !important;
	box-shadow: 0 12px 32px rgba(0, 30, 41, .28);
	font-family: 'Montserrat', sans-serif !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.4;
	text-align: center;
	color: #fff !important;
}

/* Миниатюры галереи: вертикальные плитки, чтобы фото двери помещалось целиком (раньше квадрат 72x72 превращал её в узкую полоску) */
.itg .itg-thumb {
	width: 60px;
	height: 76px;
	padding: 3px;
	border-radius: 10px;
	background: #fff;
}
.itg .itg-thumb img { object-fit: contain; }
@media (min-width: 992px) {
	.itg .itg-thumb { width: calc(var(--itg-thumb) - 4px); height: 88px; }
}
@media (max-width: 575.98px) {
	.itg .itg-thumb { width: 50px; height: 64px; padding: 2px; border-radius: 8px; }
}

/* Подсказка, что миниатюр больше, чем видно (класс ставит swipe_hints.js) */
@media (min-width: 992px) {
	.itg .itg-thumbs.is-scrollable:not(.is-end) {
		-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent);
		mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent);
	}
}
@media (max-width: 991.98px) {
	.itg .itg-thumbs.is-scrollable:not(.is-end) {
		-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
		mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
	}
}
