/* Orangeherb Fixes – Vesper Infotech. Audit references in comments. */

:root { --ohf-green: #4caf47; --ohf-green-dark: #3c8f38; --ohf-text: #1d1d1b; --ohf-muted: #6b6b6b; --ohf-line: #e3ebe1; --ohf-bg: #f4f9f3; }

/* ---------- T1: tappable phone / email ---------- */
a.ohf-tel, a.ohf-mail { color: inherit; text-decoration: none; }
a.ohf-tel:hover, a.ohf-mail:hover { text-decoration: underline; }

/* ---------- H1: slider buttons on image-only banners ---------- */
.elementor-element-6e25b14 .content-wrap .slide.elementor-repeater-item-73b862e,
.elementor-element-6e25b14 .content-wrap .slide.elementor-repeater-item-70ef0e8 { justify-content: flex-end; }
@media (min-width: 768px) {
	.elementor-element-6e25b14 .content-wrap .slide.elementor-repeater-item-73b862e .url-wrap { position: absolute; right: 13%; bottom: 16%; transform: scale(.85); transform-origin: center bottom; }
	.elementor-element-6e25b14 .content-wrap .slide.elementor-repeater-item-70ef0e8 .url-wrap { position: absolute; left: 16%; bottom: 20%; }
}
@media (max-width: 767px) {
	.elementor-element-6e25b14 .content-wrap .slide.elementor-repeater-item-73b862e .url-wrap,
	.elementor-element-6e25b14 .content-wrap .slide.elementor-repeater-item-70ef0e8 .url-wrap { position: absolute; left: 0; right: 0; bottom: 125px; text-align: center; }
}
.elementor-element-6e25b14 .master-slider { cursor: pointer; }

/* ---------- H3: real saving badge + buy button on phones ---------- */
.onsale.ohf-saving { width: auto !important; min-width: 0 !important; height: auto !important; min-height: 0 !important; padding: 5px 9px !important; line-height: 1.25 !important; border-radius: 4px !important; font-size: 12px !important; white-space: nowrap; }
@media (hover: none), (max-width: 767px) {
	.products li .product-thumbnail .add_to_cart_button,
	.products li .product-thumbnail .added_to_cart {
		position: absolute !important; top: auto !important; left: 8px !important; right: 8px !important; bottom: 8px !important;
		display: block !important; opacity: 1 !important; visibility: visible !important; transform: none !important;
		width: auto !important; height: auto !important; margin: 0 !important; padding: 9px 6px !important; border-radius: 6px !important;
		font-size: 12px !important; line-height: 1.2 !important; text-indent: 0 !important; color: #fff !important; text-align: center;
		background: var(--ohf-green) !important; box-shadow: 0 2px 6px rgba(0,0,0,.2); z-index: 3;
	}
	.products li .product-thumbnail .add_to_cart_button::after,
	.products li .product-thumbnail .added_to_cart::after { display: none !important; }
	.products li .product-thumbnail .add_to_cart_button.added { display: none !important; }
}

/* ---------- P1: price and buy buttons higher on phones ---------- */
@media (max-width: 767px) {
	.ohf-product .product_title { font-size: 22px !important; line-height: 1.3 !important; margin-bottom: 8px !important; letter-spacing: 0 !important; }
	.ohf-product .summary .price { font-size: 20px !important; margin-bottom: 8px !important; }
	.ohf-product .woocommerce-product-details__short-description { font-size: 14px; }
	.ohf-product .woocommerce-product-details__short-description p { margin-bottom: 8px; }
}

.ohf-sticky-buy { display: none; }
@media (max-width: 767px) {
	.ohf-sticky-buy { display: flex; position: fixed; z-index: 9990; left: 0; right: 0; bottom: 0; align-items: center; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -4px 16px rgba(0,0,0,.12); transform: translateY(110%); transition: transform .25s; }
	.ohf-sticky-buy.is-visible { transform: translateY(0); }
	.ohf-sticky-buy__price { flex: 1; font-size: 17px; font-weight: 700; line-height: 1.2; color: var(--ohf-text); }
	.ohf-sticky-buy__price del { font-size: 13px; font-weight: 400; color: var(--ohf-muted); margin-right: 4px; }
	.ohf-sticky-buy__price ins { text-decoration: none; background: none !important; color: var(--ohf-green-dark); }
	.ohf-sticky-buy__btn { flex: 0 0 auto; height: 46px !important; min-height: 0 !important; line-height: 46px !important; padding: 0 28px !important; margin: 0 !important; border: 0; border-radius: 8px !important; background: var(--ohf-green) !important; color: #fff !important; font-size: 15px !important; font-weight: 700; }
	.ohf-product { padding-bottom: 72px; }
}

/* ---------- S3: product gallery does not jump while the slider starts ---------- */
/* Before flexslider wraps the images in .flex-viewport, show only the first one. */
.woocommerce-product-gallery > .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:nth-child(n+2) { display: none; }
/* WooCommerce hides the gallery (opacity 0) until its slider script runs; show the first photo straight away (LCP). */
.woocommerce-product-gallery { opacity: 1 !important; }
/* While flexslider sets up, its viewport briefly holds all images stacked: keep it square (product photos are square). */
.woocommerce-product-gallery .flex-viewport { aspect-ratio: 1 / 1; overflow: hidden; }
@media (max-width: 767px) {
	/* Reserve the thumbnail row (6 per row) that appears under the image after start-up. */
	.woocommerce-product-gallery--with-images > .woocommerce-product-gallery__wrapper { margin-bottom: calc(16.66% + 22px); }
}

/* Shiprocket Buy Now button: its icons have no size, so the button grew when they loaded. */
.sr-headless-checkout img[src*="upi_options"], .sr-headless-checkout img[src*="right_arrow"] { height: 19px !important; width: auto; }
.sr-headless-checkout img[src*="powered_by"] { height: 8px !important; width: auto; }

/* ---------- P2: delivery / COD / returns strip ---------- */
.ohf-trust-strip { list-style: none; margin: 16px 0 0; padding: 12px 15px; background: var(--ohf-bg); border: 1px solid var(--ohf-line); border-radius: 8px; font-size: 14px; line-height: 1.5; color: var(--ohf-text); }
.ohf-trust-strip li { position: relative; padding: 3px 0 3px 22px; margin: 0; }
.ohf-trust-strip li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 10px; height: 6px; border-left: 2px solid var(--ohf-green); border-bottom: 2px solid var(--ohf-green); transform: rotate(-45deg); }
.ohf-trust-strip a { color: var(--ohf-green-dark); text-decoration: underline; }

/* ---------- P4 / P5 ---------- */
.ohf-lab { margin: 6px 0 12px; padding: 7px 12px; display: inline-block; background: #fff8ec; border: 1px solid #f2dfb8; border-radius: 6px; font-size: 13px; font-weight: 600; color: #6a4b12; }
.ohf-lab a { color: inherit; text-decoration: underline; }
.ohf-note { margin-top: 18px; padding: 12px 15px; background: #f7f7f5; border-left: 3px solid var(--ohf-green); font-size: 14px; }

/* ---------- P3 / R1: Google reviews ---------- */
.ohf-google-reviews { clear: both; margin: 40px 0 20px; }
.ohf-google-reviews > h2 { font-size: 26px; margin-bottom: 18px; text-align: center; }
.ohf-reviews-section .elementor-heading-title { font-size: 32px; }
@media (max-width: 767px) { .ohf-reviews-section .elementor-heading-title, .ohf-google-reviews > h2 { font-size: 24px; } }

/* ---------- P7: category buttons instead of sorting box ---------- */
.ohf-shop .woocommerce-ordering, .ohf-shop .woocommerce-result-count { display: none !important; }
.ohf-cat-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; clear: both; }
.ohf-cat-buttons a { padding: 8px 16px; border: 1px solid var(--ohf-line); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ohf-text); background: #fff; text-decoration: none; line-height: 1.3; }
.ohf-cat-buttons a:hover, .ohf-cat-buttons a.is-active { background: var(--ohf-green); border-color: var(--ohf-green); color: #fff; }

/* ---------- P6: add-to-cart confirmation ---------- */
.ohf-toast { position: fixed; z-index: 100000; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; width: min(420px, calc(100% - 32px)); background: #1f2a1e; color: #fff; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25); padding: 14px 16px; font-size: 15px; transition: opacity .2s, transform .2s; }
.ohf-toast.is-open { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.ohf-toast strong { display: block; margin-bottom: 10px; }
.ohf-toast-actions { display: flex; gap: 8px; }
.ohf-toast-actions a, .ohf-toast-actions button { flex: 1; text-align: center; padding: 10px 8px; border-radius: 6px; font-size: 14px; font-weight: 700; line-height: 1.2; cursor: pointer; border: 0; text-decoration: none; }
.ohf-toast-actions a { background: var(--ohf-green); color: #fff; }
.ohf-toast-actions button { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
/* Hide the small inline "View cart" link that pushed Buy Now sideways (the toast replaces it). */
.ohf-product form.cart .added_to_cart { display: none !important; }

/* ---------- C3: checkout logo ---------- */
.woolentor-checkout__logo { padding: 10px 0 !important; margin-bottom: 8px !important; }
.woolentor-checkout__logo img, .woolentor-checkout__logo .custom-logo { max-height: 56px !important; width: auto !important; height: auto !important; }
@media (max-width: 767px) { .woolentor-checkout__logo img, .woolentor-checkout__logo .custom-logo { max-height: 44px !important; } }

/* ---------- C2: keep WhatsApp/Chaty bubble off buttons on phones ---------- */
@media (max-width: 767px) {
	.ohf-cart .chaty-widget, .ohf-checkout .chaty-widget { display: none !important; }
	.ohf-product .chaty-widget { bottom: 84px !important; }
	/* Icon only on phones: the always-open "Contact us" label covered text and buttons. */
	.chaty-widget .chaty-tooltip::after, .chaty-widget .chaty-tooltip::before, .chaty-widget .on-hover-text { display: none !important; }
}

/* ---------- T2–T4: training boxes ---------- */
.ohf-training-box { margin: 0 0 20px; display: grid; gap: 14px; }
.ohf-fee { padding: 14px 16px; background: #fff8ec; border: 1px solid #f2dfb8; border-radius: 8px; font-size: 16px; }
.ohf-fee p { margin: 0 0 4px; }
.ohf-batches { padding: 14px 16px; background: var(--ohf-bg); border: 1px solid var(--ohf-line); border-radius: 8px; }
.ohf-batches h3 { font-size: 18px; margin: 0 0 8px; }
.ohf-batches p { margin: 0; font-size: 14px; }
.ohf-batches table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; }
.ohf-batches th, .ohf-batches td { padding: 6px 8px; border-bottom: 1px solid var(--ohf-line); text-align: left; }
@media (max-width: 600px) {
	.ohf-batches thead { display: none; }
	.ohf-batches tr { display: block; padding: 6px 0; border-bottom: 1px solid var(--ohf-line); }
	.ohf-batches td { display: flex; justify-content: space-between; border: 0; padding: 2px 0; }
	.ohf-batches td::before { content: attr(data-label); font-weight: 600; color: var(--ohf-muted); }
}
.ohf-wa-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 8px; background: #25d366; color: #fff !important; font-weight: 700; font-size: 15px; text-decoration: none !important; }
.ohf-wa-btn:hover { background: #1fb457; }
.ohf-after-enroll { margin: 12px 0 0; padding: 10px 14px; background: #f7f7f5; border-left: 3px solid var(--ohf-green); font-size: 14px; }

/* ---------- H5: founder caption ---------- */
.ohf-founder-caption p { margin: 12px 0 0; font-size: 15px; }

/* ---------- H7: payment logos in one small row ---------- */
.ohf-pay-logos .gallery { display: flex !important; flex-wrap: nowrap; gap: 6px; align-items: center; }
.ohf-pay-logos .gallery-item { width: auto !important; max-width: none !important; flex: 1 1 0; margin: 0 !important; padding: 0 !important; }
.ohf-pay-logos .gallery-item img { width: 100% !important; max-width: 64px; height: 34px !important; object-fit: contain; background: #fff; border-radius: 4px; padding: 3px; border: 0 !important; }
.ohf-pay-logos .gallery-item a { pointer-events: none; }
