:root {
	--qtp-accent: #b5790a;
	--qtp-accent-2: #a8460c;
	--qtp-savings-bg: #e1f5ee;
	--qtp-savings-text: #0f6e56;
	--qtp-border: #e2e2e2;
	--qtp-text-muted: #6b6b6b;
	--qtp-font-size-base: 17px;
	--qtp-price-font-size: 13px;
}

.qtp-tiers {
	margin: 14px 0 18px;
}

.qtp-tiers-label {
	font-size: calc(var(--qtp-font-size-base) - 3px);
	color: var(--qtp-text-muted);
	margin: 0 0 10px;
}

.qtp-tier-row {
	display: block;
	border-top: 1px solid var(--qtp-border);
	border-bottom: 1px solid var(--qtp-border);
	margin-top: -1px;
	padding: 13px 4px;
	cursor: pointer;
	transition: border-color .15s ease;
}

.qtp-tier-row--selected {
	position: relative;
	z-index: 1;
	border-top: 2px solid var(--qtp-accent);
	border-bottom: 2px solid var(--qtp-accent);
	padding-top: 12px;
	padding-bottom: 12px;
}

.qtp-tier-row-inner {
	display: flex;
	align-items: flex-start;
	gap: clamp(20px, 12vw, 70px);
}

.qtp-tier-main {
	display: flex;
	align-items: center;
	gap: 10px;
}

.qtp-tier-radio {
	margin: 0;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
}

.qtp-tier-text {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.qtp-tier-qty {
	font-weight: 600;
	font-size: var(--qtp-font-size-base);
}

.qtp-tier-badges {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 5px;
	margin-left: auto;
	flex-shrink: 0;
}

.qtp-tier-badge {
	font-size: calc(var(--qtp-font-size-base) - 5px);
	font-weight: 700;
	color: #fff;
	background: var(--qtp-accent);
	padding: 3px 10px;
	border-radius: 10px;
	white-space: nowrap;
}

.qtp-tier-badge--alt {
	background: var(--qtp-accent-2);
}

.qtp-tier-price {
	font-size: var(--qtp-price-font-size);
	color: var(--qtp-text-muted);
}

.qtp-tier-savings {
	font-size: var(--qtp-price-font-size);
	font-weight: 700;
	color: var(--qtp-savings-text);
	background: var(--qtp-savings-bg);
	padding: 3px 10px;
	border-radius: 8px;
	white-space: nowrap;
}

.qtp-add-to-cart-btn {
	width: 100%;
	margin-top: 6px;
	background: #2c2c2a;
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 13px;
	font-size: var(--qtp-font-size-base);
	font-weight: 600;
	cursor: pointer;
}

.qtp-add-to-cart-btn:hover {
	opacity: 0.92;
}

.qtp-add-to-cart-btn.qtp-loading {
	opacity: 0.6;
	cursor: default;
}

body.qtp-hide-woodmart .wd-dynamic-discounts {
	display: none !important;
}

body.qtp-hide-native-cart .wd-single-add-cart,
body.qtp-hide-native-cart form.cart:not(.qtp-tiers),
body.qtp-hide-native-cart .elementor-widget-woocommerce-product-add-to-cart {
	display: none !important;
}

/* The theme/Elementor wrapper around the (now hidden) add-to-cart form keeps
   its own margins and padding, leaving a visible empty gap. Collapse it. */
body.qtp-hide-native-cart .elementor-widget-woocommerce-product-add-to-cart,
body.qtp-hide-native-cart .elementor-element.elementor-widget-woocommerce-product-add-to-cart {
	margin: 0 !important;
	padding: 0 !important;
	min-height: 0 !important;
	height: 0 !important;
	overflow: hidden !important;
}

/* Sticky "Buy now" bar — our own self-contained element (see note above
   render_sticky_cta()). Full width, centered content row: product image,
   name, and button. The mobile bottom offset is a starting estimate for
   the theme's own bottom nav bar height and may need a small pixel
   adjustment once checked against the live theme. */
#qtp-sticky-cta {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999997;
	display: none;
	background: #fff;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, .1);
}

#qtp-sticky-cta.qtp-visible {
	display: block;
}

#qtp-sticky-cta .qtp-sticky-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 20px;
}

#qtp-sticky-cta .qtp-sticky-media {
	flex: 0 0 auto;
	line-height: 0;
}

#qtp-sticky-cta .qtp-sticky-thumb {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 6px;
}

#qtp-sticky-cta .qtp-sticky-name {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 14px;
	font-weight: 600;
	color: #2c2c2a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#qtp-sticky-cta .qtp-sticky-btn {
	flex: 0 0 auto;
	text-decoration: none;
	font-weight: 700;
	cursor: pointer;
	padding: 11px 22px;
	font-size: 14px;
	white-space: nowrap;
}

@media (max-width: 767px) {
	#qtp-sticky-cta {
		padding-bottom: env(safe-area-inset-bottom, 0px);
	}

	#qtp-sticky-cta .qtp-sticky-inner {
		padding: 8px 12px;
		gap: 10px;
	}

	#qtp-sticky-cta .qtp-sticky-thumb {
		width: 38px;
		height: 38px;
	}

	#qtp-sticky-cta .qtp-sticky-name {
		font-size: 13px;
	}

	#qtp-sticky-cta .qtp-sticky-btn {
		padding: 10px 16px;
		font-size: 13px;
	}
}

@media (min-width: 768px) {
	#qtp-sticky-cta {
		bottom: 0;
	}
}
