.vk-sticky-cart {
	position: fixed;
	z-index: 9990;
	right: 0;
	bottom: 0;
	left: 0;
	visibility: hidden;
	border-top: 1px solid rgba( 7, 82, 122, 0.12 );
	background: rgba( 255, 255, 255, 0.97 );
	box-shadow: 0 -18px 50px rgba( 7, 40, 60, 0.16 );
	opacity: 0;
	pointer-events: none;
	transform: translateY( 110% );
	transition: opacity 220ms ease, transform 260ms ease, visibility 0s linear 260ms;
	backdrop-filter: blur( 18px );
}

.vk-sticky-cart.is-visible {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
	transform: translateY( 0 );
	transition-delay: 0s;
}

.vk-sticky-cart__add {
	position: relative;
	z-index: 2;
	cursor: pointer;
	pointer-events: auto;
	white-space: nowrap;
}

.vk-sticky-cart__add:disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

.vk-sticky-cart__inner {
	display: grid;
	grid-template-columns: 64px minmax( 180px, 1fr ) auto auto auto;
	gap: 14px;
	align-items: center;
	width: min( 1240px, calc( 100% - 32px ) );
	min-height: 88px;
	margin: 0 auto;
	padding: 10px 0;
}

.vk-sticky-cart__image {
	width: 64px;
	height: 64px;
	border-radius: 12px;
	object-fit: cover;
}

.vk-sticky-cart__details {
	min-width: 0;
}

.vk-sticky-cart__details strong {
	display: block;
	overflow: hidden;
	color: #17232c;
	font-size: 14px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vk-sticky-cart__details .price {
	margin: 4px 0 0;
	font-size: 14px;
}

.vk-sticky-cart__qty {
	display: inline-grid;
	grid-template-columns: 34px 44px 34px;
	align-items: center;
	overflow: hidden;
	min-height: 42px;
	border: 1px solid rgba( 7, 82, 122, 0.16 );
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 8px 20px rgba( 7, 82, 122, 0.08 );
}

.vk-sticky-cart__qty-btn,
.vk-sticky-cart__qty-input {
	width: 100%;
	height: 42px;
	border: 0;
	background: transparent;
	color: #07527a;
	font-weight: 900;
	text-align: center;
}

.vk-sticky-cart__qty-btn {
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
}

.vk-sticky-cart__qty-btn:hover {
	background: #edf8e3;
	color: #67aa22;
}

.vk-sticky-cart__qty-input {
	padding: 0;
	color: #17232c;
	font-size: 14px;
	appearance: textfield;
}

.vk-sticky-cart__qty-input::-webkit-outer-spin-button,
.vk-sticky-cart__qty-input::-webkit-inner-spin-button {
	margin: 0;
	appearance: none;
}

@media ( max-width: 575px ) {
	.vk-sticky-cart__inner {
		grid-template-columns: 42px minmax( 54px, 1fr ) auto auto auto;
		width: calc( 100% - 16px );
		min-height: 68px;
		gap: 6px;
		padding: 7px 0 calc( 7px + env( safe-area-inset-bottom ) );
	}

	.vk-sticky-cart__image {
		width: 42px;
		height: 42px;
	}

	.vk-sticky-cart__details strong,
	.vk-sticky-cart__details del,
	.vk-sticky-cart__details .vk-price-saving {
		display: none;
	}

	.vk-sticky-cart .vk-whatsapp span {
		display: none;
	}

	.vk-sticky-cart .button,
	.vk-sticky-cart .vk-whatsapp {
		min-height: 40px;
		padding: 10px 9px !important;
		font-size: 10px;
	}

	.vk-sticky-cart__add {
		min-width: 84px;
	}

	.vk-sticky-cart__qty {
		grid-template-columns: 28px 34px 28px;
		min-height: 40px;
	}

	.vk-sticky-cart__qty-btn,
	.vk-sticky-cart__qty-input {
		height: 40px;
		font-size: 12px;
	}
}
