/* OncoMed Boost — matches the site's green (#3a9b3c) */
:root {
	--ob-green: #3a9b3c;
	--ob-green-dk: #2b7a2d;
	--ob-green-lt: #eef7ee;
	--ob-ink: #1d2a1e;
	--ob-muted: #5f6b60;
	--ob-line: #e3e8e3;
	--ob-amber: #fff4d6;
	--ob-amber-ink: #7a5300;
	--ob-wa: #25d366;
}

/* ---------- generic line under title ---------- */
.ob-generic-line { margin: 4px 0 12px; font-size: 14px; color: var(--ob-muted); }
.ob-generic-line a { color: var(--ob-green-dk); font-weight: 600; }

/* ---------- trust box ---------- */
.ob-trust { margin: 18px 0 8px; padding: 16px; border: 1px solid var(--ob-line); border-radius: 10px; background: #fff; }
.ob-trust ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.ob-trust li { position: relative; padding-left: 26px; font-size: 14px; line-height: 1.4; color: var(--ob-ink); }
.ob-trust li::before { content: ""; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%;
	background: var(--ob-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M8 13.2 4.8 10l-1.1 1.1L8 15.4l8.3-8.3-1.1-1.1z'/%3E%3C/svg%3E") center/14px no-repeat; }
.ob-trust li.ob-hl { font-weight: 700; color: var(--ob-green-dk); background: var(--ob-green-lt); padding: 8px 10px 8px 34px; border-radius: 8px; }
.ob-trust li.ob-hl::before { left: 9px; top: 9px; }
.ob-license { margin: 10px 0 0; font-size: 12px; color: var(--ob-muted); }

.ob-contact { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-cbtn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 8px;
	font-weight: 600; font-size: 14px; text-decoration: none !important; flex: 1 1 auto; }
.ob-wa { background: var(--ob-wa); color: #fff !important; }
.ob-wa:hover { filter: brightness(.95); }
.ob-call { background: #fff; color: var(--ob-green-dk) !important; border: 1.5px solid var(--ob-green); }

/* ---------- comparison table ---------- */
.ob-compare { clear: both; margin: 32px 0; padding: 20px; border: 1px solid var(--ob-line); border-radius: 12px; background: #fbfdfb; }
.ob-compare h2 { margin: 0 0 6px; font-size: 22px; }
.ob-compare-sub { margin: 0 0 14px; font-size: 14px; color: var(--ob-muted); }
.ob-table-wrap { overflow-x: auto; }
.ob-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; margin: 0; }
.ob-table th { text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ob-muted);
	padding: 10px 12px; border-bottom: 2px solid var(--ob-line); background: #fff; }
.ob-table td { padding: 12px; border-bottom: 1px solid var(--ob-line); vertical-align: middle; }
.ob-table tr.ob-current td { background: var(--ob-green-lt); }
.ob-table a { color: var(--ob-ink); }
.ob-price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ob-price small { display: block; font-weight: 400; color: var(--ob-muted); font-size: 12px; }
.ob-ask { font-weight: 600; color: var(--ob-green-dk); }
.ob-tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; vertical-align: middle; }
.ob-tag-low { background: var(--ob-amber); color: var(--ob-amber-ink); }
.ob-tag-me { background: var(--ob-green); color: #fff; }
.ob-act { text-align: right; white-space: nowrap; }
.ob-table a.ob-btn.button { display: inline-block; padding: 8px 14px !important; font-size: 13px !important; font-weight: 700 !important; border-radius: 6px !important; line-height: 1.2 !important;
	text-transform: none !important; letter-spacing: 0 !important; background: var(--ob-green) !important; color: #fff !important; border: 1.5px solid var(--ob-green) !important; min-width: 0 !important; height: auto !important; }
.ob-table a.ob-btn.button:hover { background: var(--ob-green-dk) !important; border-color: var(--ob-green-dk) !important; }
.ob-table a.ob-btn.button::before, .ob-table a.ob-btn.button::after { display: none !important; }
.ob-table a.ob-btn.button.added { opacity: .85; }
.ob-table .added_to_cart { display: block; font-size: 12px; margin-top: 4px; }
.ob-table a.ob-btn-ghost.button { background: #fff !important; color: var(--ob-green-dk) !important; }
.ob-compare-more { margin: 12px 0 0; font-weight: 600; }
.ob-compare-more a { color: var(--ob-green-dk); }

@media (max-width: 767px) {
	.ob-compare { padding: 14px; margin: 24px 0; }
	.ob-compare h2 { font-size: 18px; }
	.ob-table thead { display: none; }
	.ob-table, .ob-table tbody, .ob-table tr, .ob-table td { display: block; width: 100%; }
	.ob-table tr { border: 1px solid var(--ob-line); border-radius: 10px; margin-bottom: 10px; padding: 10px 12px; background: #fff;
		display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
	.ob-table tr.ob-current { background: var(--ob-green-lt); }
	.ob-table td { border: 0; padding: 0; background: transparent !important; }
	.ob-table td[data-label="Brand"] { grid-column: 1 / -1; font-size: 15px; margin-bottom: 2px; }
	.ob-table td[data-label="Strength"], .ob-table td[data-label="Manufacturer"] { grid-column: 1; color: var(--ob-muted); font-size: 13px; }
	.ob-table td.ob-price { grid-column: 1; margin-top: 6px; }
	.ob-table td.ob-act { grid-column: 2; grid-row: 2 / span 3; align-self: end; }
}

/* ---------- FAQ ---------- */
.ob-faq { clear: both; margin: 0 0 32px; }
.ob-faq h2 { font-size: 20px; margin: 0 0 10px; }
.ob-faq details { border-bottom: 1px solid var(--ob-line); padding: 12px 0; }
.ob-faq summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 24px; }
.ob-faq summary::-webkit-details-marker { display: none; }
.ob-faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 20px; color: var(--ob-green); }
.ob-faq details[open] summary::after { content: "–"; }
.ob-faq details p { margin: 8px 0 0; color: var(--ob-muted); font-size: 14px; }

/* ---------- last updated line ---------- */
.ob-updated { margin: 2px 0 12px; font-size: 12px; color: var(--ob-muted); }

/* ---------- A–Z generics index ---------- */
.ob-az-letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; position: sticky; top: 0; background: #fff; padding: 8px 0; z-index: 2; }
.ob-az-letters a { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; border: 1px solid var(--ob-line); border-radius: 6px; font-weight: 700; color: var(--ob-green-dk); text-decoration: none; }
.ob-az-letters a:hover { border-color: var(--ob-green); background: var(--ob-green-lt); }
.ob-az h2 { font-size: 22px; margin: 22px 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--ob-green-lt); scroll-margin-top: 70px; }
.ob-az-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 18px; }
.ob-az-list li { padding: 6px 0; border-bottom: 1px dashed var(--ob-line); font-size: 14px; }
.ob-az-list a { color: var(--ob-ink); text-decoration: none; }
.ob-az-list a:hover strong { color: var(--ob-green-dk); text-decoration: underline; }
.ob-az-list span { color: var(--ob-muted); font-size: 13px; }

/* ---------- generic landing page ---------- */
.ob-generic-intro { font-size: 15px; margin-bottom: 8px; }

/* ---------- checkout / no-results ---------- */
.ob-checkout-note { margin: 0 0 16px; padding: 12px 14px; border-radius: 8px; background: var(--ob-green-lt); border: 1px solid #cfe6cf; font-size: 14px; }
.ob-checkout-note a { color: var(--ob-green-dk); font-weight: 600; }
.ob-noresults { margin: 20px 0; padding: 20px; border: 1px dashed var(--ob-green); border-radius: 12px; background: var(--ob-green-lt); }
.ob-noresults h3 { margin-top: 0; }
.ob-noresults .ob-cbtn { flex: 0 0 auto; margin: 4px 6px 0 0; }

/* ---------- USP bar shortcode ---------- */
.ob-usp { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; padding: 8px 12px; background: var(--ob-green); color: #fff; font-size: 13px; font-weight: 600; }
.ob-usp a { color: #fff; text-decoration: underline; }

/* ---------- sticky mobile buy bar ---------- */
.ob-sticky { display: none; }
@media (max-width: 767px) {
	.ob-sticky { position: fixed; left: 0; right: 0; bottom: var(--ob-bottom, 0px); z-index: 9990; display: flex; align-items: center; gap: 8px;
		padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--ob-line);
		box-shadow: 0 -4px 16px rgba(0,0,0,.08); transform: translateY(120%); transition: transform .2s ease; }
	.ob-sticky.is-on { transform: none; }
	.ob-sticky-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
	.ob-sticky-name { font-size: 12px; color: var(--ob-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.ob-sticky-price { font-weight: 700; font-size: 16px; }
	.ob-sticky-wa { min-height: 44px; padding: 0 12px; display: flex; align-items: center; border-radius: 8px; background: var(--ob-wa); color: #fff !important; font-weight: 600; font-size: 13px; text-decoration: none !important; }
	.ob-sticky-buy { min-height: 44px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--ob-green); color: #fff; font-weight: 700; font-size: 14px; }

	/* Product grid: 2 columns on phones instead of 1 huge card */
	.woocommerce ul.products, .woocommerce-page ul.products { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; }
	.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; float: none !important; }
	.woocommerce ul.products li.product .woocommerce-loop-product__title,
	.woocommerce ul.products li.product h2, .woocommerce ul.products li.product h3 { font-size: 13px !important; line-height: 1.3 !important; }
	.woocommerce ul.products li.product .price { font-size: 14px !important; }

	/* Keep the floating WhatsApp (Chaty) button clear of the cart icon / sticky bar */
	.chaty-widget, .chaty, #chaty-widget-0 { bottom: calc(var(--ob-bottom, 0px) + 76px) !important; }
	body.single-product .chaty-widget, body.single-product .chaty, body.single-product #chaty-widget-0 { display: none !important; } /* sticky bar has WhatsApp */
}
