/* Бриф 5.2: блок «Для установки нужна скрытая часть», окно-напоминание, пометки в корзине и оформлении.
   Цвета — переменные темы --im-*. */
.vtv-hp {
	margin: 0 0 20px;
	padding: 16px;
	border: 1px solid var(--im-akcent);
	background: var(--im-fon);
}
.vtv-hp__title {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.35;
	color: var(--im-chernyy);
}
.vtv-hp__title svg {
	flex-shrink: 0;
	margin-top: 1px;
	color: var(--im-akcent);
}
.vtv-hp__note {
	margin-top: 6px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--im-seryy);
}
.vtv-hp__choices {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 12px;
}
.vtv-hp__caption {
	font-size: 13px;
	line-height: 1.4;
	color: var(--im-seryy);
}
.vtv-hp__caption a,
.vtv-hp__ask {
	color: #4d87de;
	text-decoration: underline;
	text-decoration-skip-ink: none;
}
.vtv-hp__part {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}
.vtv-hp__img {
	display: block;
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	background: var(--im-belyy);
}
.vtv-hp__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.vtv-hp__info {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}
.vtv-hp__name {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--im-chernyy);
	text-decoration: underline;
	text-decoration-skip-ink: none;
	overflow-wrap: anywhere;
}
.vtv-hp__name:hover {
	color: var(--im-akcent---dop);
}
.vtv-hp__meta {
	font-size: 12px;
	line-height: 1.35;
	color: var(--im-seryy);
}
.vtv-hp__meta b {
	font-size: 13px;
	font-weight: 600;
	color: var(--im-chernyy);
}
.vtv-hp__choice {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--im-chernyy);
	cursor: pointer;
}
.vtv-hp__choice input {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	margin: 1px 0 0;
	accent-color: var(--im-akcent);
	cursor: pointer;
}
.vtv-hp__choice--part {
	padding: 8px;
	border: 1px solid rgba(128, 126, 125, .25);
	background: var(--im-belyy);
}
.vtv-hp__choice--part:has(input:checked) {
	border-color: var(--im-akcent);
}
.vtv-hp__ask {
	display: inline-block;
	margin-top: 10px;
	font-size: 14px;
}
.vtv-hp__stock {
	color: var(--im-seryy);
}
.vtv-hp--attention {
	animation: vtv-hp-pulse 1.1s ease 2;
}
@keyframes vtv-hp-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(179, 163, 133, 0); }
	50% { box-shadow: 0 0 0 5px rgba(179, 163, 133, .45); }
}

/* Окно-напоминание: оформление как у окна «Товар добавлен в корзину» (.modal-cart) */
.vtv-hp-modal .modal-cart__top .h4 {
	padding: 0 44px; /* не наезжать на крестик fancybox */
}
.vtv-hp-modal__note {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--im-seryy);
}
.vtv-hp-modal__part {
	margin-bottom: 14px;
}
.vtv-hp-modal__part .vtv-hp__img {
	width: 80px;
	height: 80px;
}
.vtv-hp-modal__part .vtv-hp__name {
	font-size: 14px;
}
.vtv-hp-modal__cancel {
	display: block;
	margin: 16px auto 0;
	padding: 0;
	border: 0;
	background: none;
	font-family: inherit;
	font-size: 14px;
	color: var(--im-seryy);
	text-decoration: underline;
	cursor: pointer;
}
.vtv-hp-modal .modal-cart__bottom .button,
.vtv-hp-modal .modal-cart__bottom .button-border {
	cursor: pointer;
}
/* запасное окно, если fancybox недоступен */
.vtv-hp-overlay {
	position: fixed;
	inset: 0;
	z-index: 99990;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(30, 30, 30, .58);
}
.vtv-hp-overlay .vtv-hp-modal {
	display: block !important;
	width: 100%;
	max-width: 607px;
	max-height: calc(100vh - 32px);
	overflow: auto;
	background: var(--im-belyy);
}

/* Корзина и оформление */
.vtv-hp-note {
	margin-top: 8px;
	font-size: 13px;
	line-height: 1.35;
	color: var(--im-chernyy);
}
.vtv-hp-note span {
	color: var(--im-seryy);
}
.vtv-hp-checkout__title {
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
}
.vtv-hp-checkout ul {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
	line-height: 1.4;
}
.vtv-hp-checkout li + li {
	margin-top: 4px;
}
/* окно темы «Товар добавлен в корзину»: выбор по скрытой части (этап 8) */
.vtv-hp-added {
	margin-top: 8px;
	font-size: 13px;
	line-height: 1.35;
	color: var(--im-seryy);
}

@media (max-width: 480px) {
	.vtv-hp {
		padding: 12px;
	}
	.vtv-hp-modal__part .vtv-hp__img {
		width: 56px;
		height: 56px;
	}
}
