/* Mobile sticky buy bar — above Woodmart bottom toolbar */
.sj-sticky-buy {
	display: none;
}

@media (max-width: 1024px) {
	.sj-sticky-buy {
		--sj-sticky-buy-h: 64px;
		--sj-toolbar-h: 55px;
		position: fixed;
		inset-inline: 0;
		bottom: var(--sj-toolbar-h);
		z-index: 360;
		display: block;
		padding: 0;
		background: #fff;
		border-top: 1px solid rgba(0, 0, 0, 0.06);
		box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.1);
		transform: translate3d(0, calc(100% + var(--sj-toolbar-h)), 0);
		transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1);
		pointer-events: none;
	}

	.sj-sticky-buy.is-visible {
		transform: translate3d(0, 0, 0);
		pointer-events: auto;
	}

	.sj-sticky-buy[hidden] {
		display: none !important;
	}

	.sj-sticky-buy__inner {
		display: flex;
		align-items: center;
		gap: 10px;
		height: var(--sj-sticky-buy-h);
		padding: 8px 10px;
		direction: rtl;
	}

	.sj-sticky-buy__thumb {
		flex: 0 0 auto;
		width: 48px;
		height: 48px;
		border-radius: 8px;
		overflow: hidden;
		background: #f3f3f3;
	}

	.sj-sticky-buy__thumb img,
	.sj-sticky-buy__img {
		display: block;
		width: 48px;
		height: 48px;
		object-fit: cover;
	}

	.sj-sticky-buy__meta {
		flex: 1 1 auto;
		min-width: 0;
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 2px;
	}

	.sj-sticky-buy__title {
		margin: 0;
		font-size: 12px;
		font-weight: 600;
		line-height: 1.35;
		color: #222;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.sj-sticky-buy__price {
		font-size: 13px;
		font-weight: 700;
		line-height: 1.2;
		color: var(--wd-primary-color, #83b735);
	}

	.sj-sticky-buy__price del {
		font-size: 11px;
		font-weight: 500;
		opacity: 0.65;
		margin-inline-start: 4px;
	}

	.sj-sticky-buy__price .woocommerce-Price-amount {
		font-size: inherit;
	}

	.sj-sticky-buy__btn {
		flex: 0 0 auto;
		appearance: none;
		border: 0;
		border-radius: 8px;
		padding: 0 14px;
		min-width: 78px;
		height: 40px;
		background: var(--wd-primary-color, #83b735);
		color: #fff;
		font-size: 13px;
		font-weight: 700;
		line-height: 1;
		cursor: pointer;
		white-space: nowrap;
	}

	.sj-sticky-buy__btn:active {
		opacity: 0.9;
	}

	/* Hide theme sticky ATC on mobile when ours exists */
	body.has-sj-sticky-buy .wd-sticky-btn {
		display: none !important;
	}

	body.sj-sticky-buy-pad {
		padding-bottom: calc(var(--sj-toolbar-h, 55px) + var(--sj-sticky-buy-h, 64px)) !important;
	}

	body:not(.sticky-toolbar-on) .sj-sticky-buy {
		--sj-toolbar-h: 0px;
		bottom: 0;
	}
}
