/* CEWP Mobile Sticky Add to Cart & Buy Now Bar */

.cewp-sticky-cart-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 99999;
	background-color: #ffffff;
	background-color: rgba(255, 255, 255, 0.98);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	padding: 10px 14px;
	padding-bottom: max(10px, env(safe-area-inset-bottom));
	-webkit-transform: translateY(105%);
	transform: translateY(105%);
	transition: -webkit-transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	display: none;
	box-sizing: border-box;
}

.cewp-sticky-cart-bar.is-visible {
	-webkit-transform: translateY(0);
	transform: translateY(0);
}

.cewp-sticky-cart-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	max-width: 1200px;
	margin: 0 auto;
	box-sizing: border-box;
}

.cewp-sticky-cart-product {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	flex: 1;
}

.cewp-sticky-cart-product img {
	width: 42px;
	height: 42px;
	object-fit: cover;
	border-radius: 4px;
	flex-shrink: 0;
}

.cewp-sticky-cart-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.2;
}

.cewp-sticky-cart-title {
	font-size: 13px;
	font-weight: 600;
	color: #111111;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 140px;
}

.cewp-sticky-cart-price {
	font-size: 13px;
	font-weight: 700;
	color: #e74c3c;
	margin-top: 2px;
}

.cewp-sticky-cart-price ins {
	text-decoration: none;
	font-weight: 700;
}

.cewp-sticky-cart-price del {
	font-size: 11px;
	color: #888888;
	margin-right: 4px;
}

.cewp-sticky-cart-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.cewp-sticky-cart-quantity {
	display: flex;
	align-items: center;
}

.cewp-sticky-qty-input {
	width: 44px;
	height: 38px;
	text-align: center;
	border: 1px solid #dddddd;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
	padding: 0 4px;
	box-sizing: border-box;
	background-color: #f9f9f9;
}

.cewp-sticky-btn {
	height: 38px;
	padding: 0 14px;
	font-size: 13px;
	font-weight: 600;
	border-radius: 4px;
	border: none;
	cursor: pointer;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.2s ease, transform 0.1s ease;
	outline: none;
	box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.cewp-sticky-btn:active {
	transform: scale(0.97);
}

.cewp-sticky-btn.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

/* Mobile Display Trigger */
@media (max-width: 1024px) {
	.cewp-sticky-cart-bar {
		display: block;
	}
}

@media (max-width: 480px) {
	.cewp-sticky-cart-title {
		max-width: 90px;
	}
	.cewp-sticky-btn {
		padding: 0 10px;
		font-size: 12px;
	}
}
