/* Carroll Arms back-in-stock: Notify me + modal. Do not change theme files.
   Size, padding, radius and font come from the theme's Add to cart classes.
   This file only sets the green color, sentence-case label, and the modal. */

/* ---- Button color (only visual difference from Add to cart) ---- */
/* Live IN STOCK text: #58762ede on .woocommerce div.product .stock, .woocommerce div.product .stock a.
   The de is text opacity. The solid fill uses the same green, #58762e.
   Label text is real uppercase (NOTIFY ME); do not force text-transform. */
.ca-bis-notify-btn,
button.ca-bis-notify-btn,
a.ca-bis-notify-btn,
.woocommerce div.product button.ca-bis-notify-btn.single_add_to_cart_button.button.alt {
	background: #58762ede !important;
	background-color: #58762ede !important;
	color: #fff !important;
	border-color: #58762ede !important;
}

/* Theme :root :where(.wp-element-button:hover,:focus) uses contrast #000000
   and base #fdfbfb. Do not follow that: stay green, a little darker, white text. */
.ca-bis-notify-btn:hover,
.ca-bis-notify-btn:focus,
.ca-bis-notify-btn:focus-visible,
.ca-bis-notify-btn:active,
button.ca-bis-notify-btn:hover,
button.ca-bis-notify-btn:focus,
button.ca-bis-notify-btn:focus-visible,
button.ca-bis-notify-btn:active,
.woocommerce div.product button.ca-bis-notify-btn.single_add_to_cart_button.button.alt:hover,
.woocommerce div.product button.ca-bis-notify-btn.single_add_to_cart_button.button.alt:focus,
.woocommerce div.product button.ca-bis-notify-btn.single_add_to_cart_button.button.alt:focus-visible,
.woocommerce div.product button.ca-bis-notify-btn.single_add_to_cart_button.button.alt:active {
	background: #486126 !important;
	background-color: #486126 !important;
	color: #fff !important;
	border-color: #486126 !important;
}

/* Classic loop listings (category, tag, brand, related): Add to cart is an
   <a class="button">; Notify me is a <button>. A link gets appearance:none,
   box-sizing:content-box, font-size:medium (16px, from the theme rule on
   a.button — inherit would be the card's 18px), and margin 1rem auto 0,
   which centers it. A raw button keeps UA appearance, border-box, an 18px
   font, and no auto margins, so it sits left of center and is taller and wider. Scope is listings only — do not change
   the product-page button or the modal submit. */
ul.products li.product button.ca-bis-notify-btn {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	box-sizing: content-box;
	margin: 1rem auto 0;
	border: 0 none;
	border-radius: 0;
	font-family: inherit;
	/* Theme rule .woocommerce a.button uses font-size: medium (16px). That
	   selector does not match a <button>, so inherit would pick up the
	   card's 18px font and the em padding would grow with it. */
	font-size: medium;
	font-weight: inherit;
	font-style: inherit;
	line-height: 1.6;
	letter-spacing: inherit;
	vertical-align: baseline;
}

/* Shared listing min-width: ADD TO CART is the wider label, so both buttons
   (and Select options in the same slot, so the grid stays even) use that
   width. Select options is already a little wider, so min-width does not
   shrink it. white-space:nowrap so neither label wraps. box-sizing is
   border-box so the min-width is the visible width; padding and height
   stay as they are. Values are the live ADD TO CART getBoundingClientRect
   width, measured 18 Nov 2026 on the AR-15 stocks category and /shop/.
   Theme listing typography changes at 781px; shop fonts scale, so shop
   uses an em+padding calc that tracks the label at every width. */
ul.products li.product a.add_to_cart_button,
ul.products li.product a.button,
ul.products li.product button.ca-bis-notify-btn {
	box-sizing: border-box;
	min-width: 100.47px;
	white-space: nowrap;
	text-align: center;
}
@media (min-width: 782px) {
	ul.products li.product a.add_to_cart_button,
	ul.products li.product a.button,
	ul.products li.product button.ca-bis-notify-btn {
		min-width: 144.53px;
	}
}
/* Shop / search product-button block: already border-box; font and
   wp-element-button em padding scale. 6.85em is the measured ADD TO CART
   text width at 390, 780, and 1280. */
.wp-block-button.wc-block-components-product-button .wp-block-button__link,
.wp-block-button.wc-block-components-product-button .ca-bis-notify-btn {
	box-sizing: border-box;
	min-width: calc(8.85em + 4px);
	white-space: nowrap;
	text-align: center;
}

/* Product page: live ADD TO CART is 163.03px wide (border-box, padding
   16px 32px, height 57.59px) at 390, 780, and 1280; NOTIFY ME was 145.59px
   at the same padding and height. Shared min-width, left-aligned as now. */
.woocommerce div.product form.cart button.single_add_to_cart_button,
.woocommerce div.product .ca-bis-single-wrap button.ca-bis-notify-btn,
.woocommerce div.product button.ca-bis-notify-btn.single_add_to_cart_button {
	box-sizing: border-box;
	min-width: 163.03px;
	white-space: nowrap;
	text-align: center;
}

/* Product page: match form.cart — column, flex-start, button is shrink-to-fit
   (not full width) at every breakpoint. Theme has no mobile full-width rule
   for single_add_to_cart_button. */
.woocommerce div.product .ca-bis-single-wrap {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}
.woocommerce div.product .ca-bis-single-wrap[hidden] {
	display: none !important;
}
.woocommerce div.product .ca-bis-notify-btn,
.woocommerce div.product button.ca-bis-notify-btn {
	display: inline-block;
	float: none;
	width: auto;
	max-width: 100%;
	margin-top: 0;
	margin-bottom: 0;
	vertical-align: middle;
}

/* Variable form: sit in the same inline slot as Add to cart, next to qty. */
.woocommerce-variation-add-to-cart .ca-bis-single-wrap,
.woocommerce-variation-add-to-cart .ca-bis-notify-btn {
	display: inline-block !important;
	float: none !important;
	margin: 0 !important;
	vertical-align: middle;
}
.woocommerce-variation-add-to-cart .ca-bis-single-wrap[hidden] {
	display: none !important;
}

/* Chosen variation is out of stock: hide Woo's ADD TO CART (including
   disabled / wc-variation-is-unavailable), keep qty, and show one solid
   enabled NOTIFY ME. Woo's .woocommerce-variation-add-to-cart-disabled
   opacity would also fade our button if we left it as a child, so
   restore opacity and pointer-events on the wrapper and on our button
   (including :disabled / .disabled that Woo may copy onto any
   .single_add_to_cart_button). */
form.cart.ca-bis-variation-oos .single_add_to_cart_button:not(.ca-bis-notify-btn):not(.ca-bis-sticky-btn),
form.variations_form.ca-bis-variation-oos .single_add_to_cart_button:not(.ca-bis-notify-btn):not(.ca-bis-sticky-btn) {
	display: none !important;
}
form.cart.ca-bis-variation-oos .woocommerce-variation-add-to-cart,
form.cart.ca-bis-variation-oos .woocommerce-variation-add-to-cart-disabled,
form.variations_form.ca-bis-variation-oos .woocommerce-variation-add-to-cart-disabled {
	opacity: 1 !important;
	pointer-events: auto !important;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
form.cart.ca-bis-variation-oos .ca-bis-single-wrap,
form.cart.ca-bis-variation-oos .ca-bis-notify-btn,
form.cart.ca-bis-variation-oos button.ca-bis-notify-btn,
form.cart.ca-bis-variation-oos button.ca-bis-notify-btn:disabled,
form.cart.ca-bis-variation-oos button.ca-bis-notify-btn.disabled,
form.cart.ca-bis-variation-oos button.ca-bis-notify-btn.wc-variation-is-unavailable,
form.cart.ca-bis-variation-oos button.ca-bis-notify-btn.wc-variation-selection-needed,
form.variations_form.ca-bis-variation-oos button.ca-bis-notify-btn:disabled {
	opacity: 1 !important;
	pointer-events: auto !important;
	cursor: pointer !important;
	background: #58762ede !important;
	background-color: #58762ede !important;
	color: #fff !important;
	border-color: #58762ede !important;
}

/* Incomplete / no selection: keep Woo ADD TO CART visible, brown, and
   enabled (override .woocommerce-variation-add-to-cart-disabled opacity
   and :disabled / .disabled / .wc-variation-selection-needed). The
   inline prompt sits under the button. Theme text color #8C760E (the
   site brown, not a bright error red). */
form.cart.ca-bis-variation-none .woocommerce-variation-add-to-cart,
form.cart.ca-bis-variation-none .woocommerce-variation-add-to-cart-disabled,
form.variations_form.ca-bis-variation-none .woocommerce-variation-add-to-cart-disabled {
	opacity: 1 !important;
	pointer-events: auto !important;
}
form.cart.ca-bis-variation-none .single_add_to_cart_button:not(.ca-bis-notify-btn):not(.ca-bis-sticky-btn),
form.variations_form.ca-bis-variation-none .single_add_to_cart_button:not(.ca-bis-notify-btn):not(.ca-bis-sticky-btn),
form.cart.ca-bis-variation-none .single_add_to_cart_button:not(.ca-bis-notify-btn):not(.ca-bis-sticky-btn):disabled,
form.cart.ca-bis-variation-none .single_add_to_cart_button:not(.ca-bis-notify-btn):not(.ca-bis-sticky-btn).disabled,
form.cart.ca-bis-variation-none .single_add_to_cart_button:not(.ca-bis-notify-btn):not(.ca-bis-sticky-btn).wc-variation-selection-needed {
	opacity: 1 !important;
	pointer-events: auto !important;
	cursor: pointer !important;
	background: #8C760E !important;
	background-color: #8C760E !important;
	color: #fff !important;
	border-color: #8C760E !important;
}

.ca-bis-select-msg {
	display: block;
	margin: 8px 0 0;
	padding: 0;
	color: #8C760E;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	text-align: left;
}
.ca-bis-select-msg[hidden] {
	display: none !important;
}
.ca-bis-sticky-bar .ca-bis-select-msg,
#ca-bis-sheet .ca-bis-select-msg {
	margin: 8px 0 0;
	font-size: 13px;
	color: #8C760E;
}

.ca-bis-attr-highlight,
.custom-swatch-wrapper.ca-bis-attr-highlight,
select.ca-bis-attr-highlight,
.ca-bis-bar-select.ca-bis-attr-highlight,
.ca-bis-sheet-select.ca-bis-attr-highlight,
.ca-bis-chip-group.ca-bis-attr-highlight {
	outline: 2px solid #8C760E;
	outline-offset: 2px;
}

/* ---- Listing stock lines ---- */
/* Same typography as the product-page line (theme carroll-inline):
   16px, 700, uppercase, #58762ede, no underline. Do not copy the product-page negative top margin.
   Listing lines are always centered over the button, including Out of stock
   (Woo's .stock.out-of-stock is left-aligned and must be overridden).
   The product-page theme line and the phone bar stay left-aligned. */
.ca-bis-listing-cta {
	display: block;
	width: 100%;
	text-align: center !important;
	box-sizing: border-box;
}
.ca-bis-stock-line,
.ca-bis-stock-line a {
	text-transform: uppercase !important;
	font-weight: 700 !important;
	color: #58762ede !important;
	text-decoration: none !important;
	margin: 8px 0 4px !important;
	padding: 0 !important;
	font-size: 16px !important;
	line-height: 1.6 !important;
	letter-spacing: normal;
	display: block;
}
.ca-bis-stock-line a {
	display: inline;
	color: #58762ede !important;
}
.ca-bis-listing-cta .ca-bis-stock-line,
.ca-bis-listing-cta .ca-bis-stock-line a,
.ca-bis-stock-line--listing,
.ca-bis-stock-line--listing a,
.ca-bis-stock-line--listing.stock,
.ca-bis-stock-line--listing.stock.in-stock,
.ca-bis-stock-line--listing.stock.out-of-stock,
ul.products .ca-bis-stock-line--listing,
ul.products .ca-bis-stock-line--listing.out-of-stock,
.wc-block-grid__product .ca-bis-stock-line--listing,
.wc-block-grid__product .ca-bis-stock-line--listing.out-of-stock,
.wc-block-product .ca-bis-stock-line--listing,
.wp-block-post .ca-bis-stock-line--listing,
.wc-block-grid__product-add-to-cart .ca-bis-stock-line--listing,
.wp-block-woocommerce-product-button .ca-bis-stock-line--listing {
	text-align: center !important;
	width: 100%;
	display: block !important;
	box-sizing: border-box;
	margin-left: auto !important;
	margin-right: auto !important;
}
.ca-bis-listing-cta .ca-bis-stock-line a,
.ca-bis-stock-line--listing a {
	display: inline !important;
	width: auto;
	text-align: center !important;
}
/* Phones / 2-column listing grid: shrink so the listing stock line
   stays on one line. Desktop category/search/related listings keep
   the 16px product-page size. In-stock and out-of-stock use the same size. */
@media (max-width: 781px) {
	.ca-bis-listing-cta .ca-bis-stock-line,
	.ca-bis-listing-cta .ca-bis-stock-line a,
	.ca-bis-stock-line--listing,
	.ca-bis-stock-line--listing a,
	ul.products .ca-bis-stock-line--listing,
	.wc-block-grid__product .ca-bis-stock-line--listing {
		font-size: 13px !important;
		line-height: 1.4 !important;
		white-space: nowrap;
	}
}

/* Front page only. Measured 18 Nov 2026 on live 1.1.10: home titles and
   prices are much smaller than category (desktop 1440: title/price 9px vs
   category title 21.6px / price 18px; phone 390: title 13px / price ~8px vs
   category 14px). After shortening the in-stock line to IN STOCK, a 16px
   desktop home line still dwarfs the 9px title and price, so scale it to
   9px to match. Phone home titles are already 13px, the same as the 781px
   listing line, so the shorter IN STOCK text stays 13px. Category, search,
   related, and product pages are unchanged. */
@media (min-width: 782px) {
	body.home .ca-bis-listing-cta .ca-bis-stock-line,
	body.home .ca-bis-listing-cta .ca-bis-stock-line a,
	body.home .ca-bis-stock-line--listing,
	body.home .ca-bis-stock-line--listing a,
	body.home ul.products .ca-bis-stock-line--listing,
	body.home .wc-block-grid__product .ca-bis-stock-line--listing,
	body.home .wp-block-post .ca-bis-stock-line--listing,
	body.home .wc-block-product .ca-bis-stock-line--listing {
		font-size: 9px !important;
		line-height: 1.4 !important;
		white-space: nowrap;
	}
}

/* Phone bar and the in-bar stock line stay left-aligned. */
.ca-bis-sticky-bar .ca-bis-stock-line,
.ca-bis-sticky-bar .ca-bis-stock-line--single,
.ca-bis-sticky-bar .ca-bis-stock-line a,
.ca-bis-stock-line--single,
.ca-bis-stock-line--single a {
	text-align: left !important;
}

/* ---- Phone product sticky bar (always on, max-width 781px) ---- */
.ca-bis-sticky-bar {
	display: none;
}
@media (max-width: 781px) {
	body.single-product .ca-bis-sticky-bar,
	body.woocommerce.single-product .ca-bis-sticky-bar {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 10000;
		box-sizing: border-box;
		background: #fff;
		border-top: 1px solid #ddd;
		padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0px));
		box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
		max-height: 40vh;
		max-height: 40dvh;
		overflow-x: hidden;
		overflow-y: auto;
	}
	body.single-product:has(#ca-bis-sticky-bar) {
		padding-bottom: calc(var(--ca-bis-bar-clearance, 160px) + env(safe-area-inset-bottom, 0px));
	}
	/* Android Brave only (class set on <html> by markBraveAndroid()).
	   Brave's bottom toolbar overlays the layout viewport and is not
	   reported by visualViewport (v1.1.14's lift failed on Tim's Samsung).
	   A fixed 64px gap covers the measured 56–60px toolbar, plus slack.
	   Padding keeps the bar's white background filling the gap so the
	   qty / ADD TO CART row sits above the toolbar. Layout is otherwise
	   unchanged from 1.1.13. Chrome and Samsung Internet typically resize
	   the viewport around their chrome, so they are not given this class.
	   iPhone and desktop are excluded. If Brave's toolbar is at the top
	   or hidden, this leaves a 64px blank gap at the bottom of the bar. */
	html.ca-bis-brave-android {
		--ca-bis-brave-gap: 64px;
	}
	html.ca-bis-brave-android body.single-product .ca-bis-sticky-bar,
	html.ca-bis-brave-android body.woocommerce.single-product .ca-bis-sticky-bar {
		padding-bottom: calc(16px + var(--ca-bis-brave-gap, 64px) + env(safe-area-inset-bottom, 0px));
	}
	html.ca-bis-brave-android body.single-product:has(#ca-bis-sticky-bar) {
		padding-bottom: calc(var(--ca-bis-bar-clearance, 224px) + env(safe-area-inset-bottom, 0px));
	}
}
body.woocommerce-cart .ca-bis-sticky-bar,
body.woocommerce-checkout .ca-bis-sticky-bar,
body.woocommerce-account .ca-bis-sticky-bar {
	display: none !important;
}
.ca-bis-sticky-bar .ca-bis-sticky-stock .ca-bis-stock-line,
.ca-bis-sticky-bar .ca-bis-sticky-stock .ca-bis-stock-line a,
.ca-bis-sticky-bar .stock,
.ca-bis-sticky-bar .stock a {
	text-transform: uppercase !important;
	font-weight: 700 !important;
	color: #58762ede !important;
	text-decoration: none !important;
	margin: 0 0 6px !important;
	padding: 0 !important;
	font-size: 16px !important;
	line-height: 1.6 !important;
	text-align: left !important;
	display: block;
}
.ca-bis-sticky-bar .stock a {
	display: inline;
}
.ca-bis-sticky-price {
	margin: 0 0 6px;
	font-size: 16px;
	line-height: 1.3;
	font-weight: 400;
	color: #000;
	max-height: 2.7em;
	overflow: hidden;
}
/* Match the product-page price: sale (ins) is green with no underline;
   the struck regular price (del) stays line-through. Size stays compact
   so the bar still fits. */
.ca-bis-sticky-price ins,
.ca-bis-sticky-price ins .amount,
.ca-bis-sticky-price ins .woocommerce-Price-amount,
.ca-bis-sticky-price ins bdi {
	text-decoration: none !important;
	color: #58762ede !important;
	background: transparent !important;
	font-style: normal !important;
}
.ca-bis-sticky-price del,
.ca-bis-sticky-price del .amount,
.ca-bis-sticky-price del .woocommerce-Price-amount,
.ca-bis-sticky-price del bdi {
	text-decoration: line-through;
	color: #000;
}
.ca-bis-sticky-price del,
.ca-bis-sticky-price ins,
.ca-bis-sticky-price .woocommerce-Price-amount {
	white-space: nowrap;
}
@media (max-width: 390px) {
	.ca-bis-sticky-price { font-size: 15px; }
}
@media (max-width: 360px) {
	.ca-bis-sticky-price { font-size: 14px; }
}
/* Price left, short status right — every product type (variable hint,
   IN STOCK – READY TO SHIP, and Out of stock). Matches the options-sheet
   footer. ensureStickyMetaLayout() also wraps a live 1.1.10 bar. */
.ca-bis-sticky-meta {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin: 0 0 6px;
}
.ca-bis-sticky-meta .ca-bis-sticky-price {
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
	text-align: left;
}
.ca-bis-sticky-meta .ca-bis-sticky-stock {
	flex: 0 1 auto;
	margin: 0;
	text-align: right !important;
}
.ca-bis-sticky-bar .ca-bis-sticky-meta .ca-bis-stock-line,
.ca-bis-sticky-bar .ca-bis-sticky-meta .ca-bis-stock-line a,
.ca-bis-sticky-bar .ca-bis-sticky-meta .ca-bis-select-hint {
	margin: 0 !important;
	text-align: right !important;
}

/* Compact in-bar attribute dropdowns: phone only, 1–2 attributes.
   Two attributes share a 2-column row when they fit; otherwise they stack. */
.ca-bis-sticky-attrs {
	display: none;
}
@media (max-width: 781px) {
	.ca-bis-sticky-bar .ca-bis-sticky-attrs.is-ready {
		display: grid;
		gap: 6px 8px;
		margin: 0 0 8px;
		grid-template-columns: 1fr;
	}
	.ca-bis-sticky-bar[data-attr-count="2"] .ca-bis-sticky-attrs.is-ready {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 340px) {
	.ca-bis-sticky-bar[data-attr-count="2"] .ca-bis-sticky-attrs.is-ready {
		grid-template-columns: 1fr;
	}
}
.ca-bis-bar-attr {
	display: flex;
	flex-direction: column;
	min-width: 0;
	gap: 2px;
}
.ca-bis-bar-attr-label {
	font-size: 11px;
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #333;
}
.ca-bis-bar-select {
	box-sizing: border-box;
	width: 100%;
	height: 36px;
	min-height: 36px;
	max-height: 36px;
	padding: 0 8px;
	border: 1px solid #ccc;
	border-radius: 2px;
	background: #fff;
	font-size: 14px;
	line-height: 36px;
	color: #111;
}

.ca-bis-sticky-row {
	display: flex;
	align-items: center;
	gap: 8px;
}
.ca-bis-sticky-qty {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	border: 1px solid #ccc;
	height: 44px;
	min-height: 44px;
	max-height: 44px;
	min-width: 96px;
	background: #fff;
	max-width: 120px;
}
.ca-bis-sticky-qty[hidden] {
	display: none !important;
}
.ca-bis-sticky-qty button {
	box-sizing: border-box;
	width: 32px;
	height: 100%;
	border: 0;
	background: transparent;
	font-size: 18px;
	line-height: 1;
	color: #333;
	cursor: pointer;
}
.ca-bis-sticky-qty input[type="number"] {
	box-sizing: border-box;
	width: 36px;
	border: 0;
	text-align: center;
	font-size: 16px;
	height: 100%;
	line-height: 1;
	-moz-appearance: textfield;
}
.ca-bis-sticky-qty input[type="number"]::-webkit-outer-spin-button,
.ca-bis-sticky-qty input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
/* Same 44px outer height as the qty stepper, label vertically centered.
   Typography matches the product-page NOTIFY ME / ADD TO CART (weight 400,
   16px, letter-spacing normal, no text-transform — the label is already
   uppercase in the HTML). Theme .wp-element-button padding (16px 32px)
   and line-height 1.6 would otherwise grow this past 44px. */
.ca-bis-sticky-bar .ca-bis-sticky-btn,
.ca-bis-sticky-bar button.ca-bis-sticky-btn,
.ca-bis-sticky-bar .ca-bis-sticky-btn.button,
.ca-bis-sticky-bar .ca-bis-sticky-btn.button.alt,
.ca-bis-sticky-bar .ca-bis-sticky-btn.wp-element-button,
.ca-bis-sticky-bar .ca-bis-sticky-btn.single_add_to_cart_button {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex: 1 1 auto;
	height: 44px !important;
	min-height: 44px !important;
	max-height: 44px !important;
	margin: 0 !important;
	padding: 0 32px !important;
	border: 0;
	line-height: 1 !important;
	font-family: inherit;
	font-size: 16px !important;
	font-weight: 400 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	white-space: nowrap;
	text-align: center;
	cursor: pointer;
}
/* NOTIFY ME stays the plugin green. ADD TO CART and SELECT OPTIONS use the
   theme form.cart button colors (computed 18 Nov 2026 on CSX): #8C760E
   background, #000 text; hover/focus/active #000 background, #fdfbfb text. */
.ca-bis-sticky-bar .ca-bis-sticky-btn.ca-bis-notify-btn,
.ca-bis-sticky-bar button.ca-bis-sticky-btn.ca-bis-notify-btn {
	background: #58762ede !important;
	background-color: #58762ede !important;
	color: #fff !important;
	border-color: #58762ede !important;
}
.ca-bis-sticky-bar .ca-bis-sticky-btn.ca-bis-notify-btn:hover,
.ca-bis-sticky-bar .ca-bis-sticky-btn.ca-bis-notify-btn:focus,
.ca-bis-sticky-bar .ca-bis-sticky-btn.ca-bis-notify-btn:focus-visible,
.ca-bis-sticky-bar .ca-bis-sticky-btn.ca-bis-notify-btn:active {
	background: #486126 !important;
	background-color: #486126 !important;
	color: #fff !important;
	border-color: #486126 !important;
}
.ca-bis-sticky-bar .ca-bis-sticky-btn.ca-bis-sticky-atc,
.ca-bis-sticky-bar .ca-bis-sticky-btn.ca-bis-sticky-select,
.ca-bis-sticky-bar button.ca-bis-sticky-btn.ca-bis-sticky-atc,
.ca-bis-sticky-bar button.ca-bis-sticky-btn.ca-bis-sticky-select {
	background: #8C760E !important;
	background-color: #8C760E !important;
	color: #fff !important;
	border-color: #8C760E !important;
}
.ca-bis-sticky-bar .ca-bis-sticky-btn.ca-bis-sticky-atc:hover,
.ca-bis-sticky-bar .ca-bis-sticky-btn.ca-bis-sticky-atc:focus,
.ca-bis-sticky-bar .ca-bis-sticky-btn.ca-bis-sticky-atc:focus-visible,
.ca-bis-sticky-bar .ca-bis-sticky-btn.ca-bis-sticky-atc:active,
.ca-bis-sticky-bar .ca-bis-sticky-btn.ca-bis-sticky-select:hover,
.ca-bis-sticky-bar .ca-bis-sticky-btn.ca-bis-sticky-select:focus,
.ca-bis-sticky-bar .ca-bis-sticky-btn.ca-bis-sticky-select:focus-visible,
.ca-bis-sticky-bar .ca-bis-sticky-btn.ca-bis-sticky-select:active {
	background: #000 !important;
	background-color: #000 !important;
	color: #fdfbfb !important;
	border-color: #000 !important;
}

/* The options-sheet ADD TO CART / NOTIFY ME buttons sit outside the bar
   and need the same theme gold / notify green. */
#ca-bis-sheet .ca-bis-sticky-btn.ca-bis-sticky-atc,
#ca-bis-sheet button.ca-bis-sticky-btn.ca-bis-sticky-atc,
#ca-bis-sheet .ca-bis-sheet-btn.ca-bis-sticky-atc {
	background: #8C760E !important;
	background-color: #8C760E !important;
	color: #fff !important;
	border-color: #8C760E !important;
}
#ca-bis-sheet .ca-bis-sticky-btn.ca-bis-sticky-atc:hover,
#ca-bis-sheet .ca-bis-sticky-btn.ca-bis-sticky-atc:focus,
#ca-bis-sheet .ca-bis-sticky-btn.ca-bis-sticky-atc:focus-visible,
#ca-bis-sheet .ca-bis-sticky-btn.ca-bis-sticky-atc:active,
#ca-bis-sheet .ca-bis-sheet-btn.ca-bis-sticky-atc:hover,
#ca-bis-sheet .ca-bis-sheet-btn.ca-bis-sticky-atc:focus,
#ca-bis-sheet .ca-bis-sheet-btn.ca-bis-sticky-atc:focus-visible,
#ca-bis-sheet .ca-bis-sheet-btn.ca-bis-sticky-atc:active {
	background: #000 !important;
	background-color: #000 !important;
	color: #fdfbfb !important;
	border-color: #000 !important;
}
#ca-bis-sheet .ca-bis-sticky-btn.ca-bis-notify-btn,
#ca-bis-sheet button.ca-bis-sticky-btn.ca-bis-notify-btn,
#ca-bis-sheet .ca-bis-sheet-btn.ca-bis-notify-btn {
	background: #58762ede !important;
	background-color: #58762ede !important;
	color: #fff !important;
	border-color: #58762ede !important;
}
#ca-bis-sheet .ca-bis-sticky-btn.ca-bis-notify-btn:hover,
#ca-bis-sheet .ca-bis-sticky-btn.ca-bis-notify-btn:focus,
#ca-bis-sheet .ca-bis-sticky-btn.ca-bis-notify-btn:focus-visible,
#ca-bis-sheet .ca-bis-sticky-btn.ca-bis-notify-btn:active {
	background: #486126 !important;
	background-color: #486126 !important;
	color: #fff !important;
	border-color: #486126 !important;
}


/* ---- Phone product page: bar replaces in-page CTA, qty, and stock line ---- */
/* At max-width 781px the sticky bar shows the stock line, qty, and button.
   Hide those in-page controls visually only. form.cart and its inputs
   (quantity, variation_id, attribute_*, add-to-cart) stay in the DOM so
   the bar can sync qty and submit. Variation selects / swatches stay
   visible. Desktop is unchanged. Do not use display:none or
   visibility:hidden on .quantity — the bar JS would treat that as a
   max-1 form and hide the bar qty. */
@media (max-width: 781px) {
	body.single-product div.product form.cart .quantity,
	body.single-product div.product form.cart button.single_add_to_cart_button:not(.ca-bis-sticky-btn),
	body.single-product div.product form.cart .ca-bis-single-wrap,
	body.single-product div.product .ca-bis-single-wrap,
	body.single-product div.product .summary .ca-bis-notify-btn:not(.ca-bis-sticky-btn),
	body.single-product div.product .entry-summary .ca-bis-notify-btn:not(.ca-bis-sticky-btn),
	body.single-product div.product .summary .single_add_to_cart_button:not(.ca-bis-sticky-btn),
	body.single-product div.product .entry-summary .single_add_to_cart_button:not(.ca-bis-sticky-btn),
	body.single-product div.product .summary > .stock,
	body.single-product div.product .entry-summary > .stock,
	body.single-product div.product .summary p.stock,
	body.single-product div.product .entry-summary p.stock,
	body.single-product div.product form.cart ~ p.stock,
	body.single-product div.product p.stock,
	body.single-product div.product .ca-bis-stock-line--single,
	body.single-product div.product .woocommerce-variation-availability,
	body.single-product div.product .single_variation .stock,
	body.single-product div.product .wp-block-woocommerce-product-stock-indicator {
		position: absolute !important;
		width: 1px !important;
		height: 1px !important;
		padding: 0 !important;
		margin: -1px !important;
		overflow: hidden !important;
		clip: rect(0, 0, 0, 0) !important;
		clip-path: inset(50%) !important;
		white-space: nowrap !important;
		border: 0 !important;
	}
	/* Do not hide listing stock lines (related / upsells) or the bar. */
	body.single-product ul.products .stock,
	body.single-product ul.products p.stock,
	body.single-product li.product .stock,
	body.single-product li.product p.stock,
	body.single-product ul.products .ca-bis-stock-line--listing,
	body.single-product .related .ca-bis-stock-line--listing,
	body.single-product .upsells .ca-bis-stock-line--listing,
	body.single-product .ca-bis-sticky-bar .stock,
	body.single-product .ca-bis-sticky-bar .ca-bis-stock-line,
	body.single-product .ca-bis-sticky-bar .ca-bis-stock-line--single {
		position: static !important;
		width: auto !important;
		height: auto !important;
		overflow: visible !important;
		clip: auto !important;
		clip-path: none !important;
	}
	body.single-product .ca-bis-sticky-bar .stock,
	body.single-product .ca-bis-sticky-bar .ca-bis-stock-line {
		margin: 0 0 6px !important;
		white-space: normal !important;
	}
}


.ca-bis-sticky-bar .ca-bis-select-hint,
.ca-bis-sheet-status .ca-bis-select-hint {
	margin: 0 0 6px;
	padding: 0;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.3;
	color: #222;
	text-transform: none;
	letter-spacing: normal;
	text-align: left;
}
.ca-bis-sheet-status .ca-bis-stock-line,
.ca-bis-sheet-status .ca-bis-stock-line a {
	text-transform: uppercase !important;
	font-weight: 700 !important;
	color: #58762ede !important;
	text-decoration: none !important;
	margin: 0 !important;
	font-size: 15px !important;
	text-align: left !important;
}

/* ---- Modal ---- */
.ca-bis-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.5);
}
.ca-bis-overlay.is-open {
	display: flex;
}
.ca-bis-dialog {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 420px;
	max-height: 90vh;
	overflow: auto;
	padding: 24px 24px 20px;
	background: #fff;
	color: #111;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.ca-bis-close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #333;
}
.ca-bis-product {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 32px 16px 0;
}
.ca-bis-product img {
	width: 72px;
	height: 72px;
	object-fit: contain;
	background: #f6f6f6;
	flex-shrink: 0;
}
.ca-bis-product-name {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}
.ca-bis-dialog label {
	display: block;
	margin: 0 0 6px;
	font-weight: 600;
}
.ca-bis-dialog .ca-bis-field,
.ca-bis-dialog .ca-bis-qty-row {
	margin: 0 0 14px;
}
.ca-bis-dialog input[type="email"],
.ca-bis-dialog input[type="number"] {
	box-sizing: border-box;
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #ccc;
	font-size: 16px;
}
.ca-bis-stepper {
	display: flex;
	align-items: center;
	gap: 0;
	max-width: 160px;
}
.ca-bis-stepper input[type="number"] {
	width: 64px;
	text-align: center;
	border-left: 0;
	border-right: 0;
	-moz-appearance: textfield;
}
.ca-bis-stepper input[type="number"]::-webkit-outer-spin-button,
.ca-bis-stepper input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.ca-bis-stepper button {
	width: 40px;
	height: 40px;
	border: 1px solid #ccc;
	background: #f7f7f7;
	font-size: 18px;
	cursor: pointer;
}
.ca-bis-consent,
.ca-bis-ffl,
.ca-bis-avail,
.ca-bis-weekly {
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.45;
}
.ca-bis-weekly label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-weight: 400;
}
.ca-bis-weekly input[type="checkbox"] {
	margin-top: 3px;
	flex-shrink: 0;
}
.ca-bis-ffl[hidden],
.ca-bis-field[hidden],
.ca-bis-account-email[hidden] {
	display: none !important;
}
.ca-bis-account-email {
	margin: 0 0 14px;
	font-size: 15px;
	line-height: 1.45;
}
.ca-bis-submit {
	display: block;
	width: 100%;
	margin: 8px 0 0;
	padding: 12px 16px;
	background: #58762ede;
	color: #fff;
	border: 2px solid #58762ede;
	font-weight: 700;
	cursor: pointer;
}
.ca-bis-msg {
	min-height: 1.3em;
	margin: 10px 0 0;
	font-size: 14px;
}
.ca-bis-hp {
	position: absolute;
	left: -9999px;
}

@media (max-width: 768px) {
	.ca-bis-overlay {
		padding: 0;
		align-items: flex-end;
		justify-content: stretch;
	}
	.ca-bis-dialog {
		width: 100%;
		max-width: none;
		max-height: 92vh;
		border-radius: 16px 16px 0 0;
		padding-bottom: 28px;
	}
	/* Theme does not make single Add to cart full width at this breakpoint. */
	.woocommerce div.product .ca-bis-notify-btn,
	.woocommerce div.product button.ca-bis-notify-btn {
		width: auto;
	}
}


/* ---- Phone variable-product options sheet ---- */
/* Our colors and wording (not Brownells). Phone-only; the bar is already
   hidden above 781px. Chip/dropdown cutoff: more than 8 values, or any
   label longer than 24 characters. */
.ca-bis-sheet {
	display: none;
}
@media (max-width: 781px) {
	.ca-bis-sheet.is-open {
		display: flex;
		position: fixed;
		inset: 0;
		z-index: 50000;
		align-items: flex-end;
		justify-content: stretch;
	}
	.ca-bis-sheet-backdrop {
		position: absolute;
		inset: 0;
		background: rgba(0, 0, 0, 0.5);
	}
	.ca-bis-sheet-dialog {
		position: relative;
		z-index: 1;
		display: flex;
		flex-direction: column;
		width: 100%;
		max-height: 92vh;
		max-height: 92dvh;
		box-sizing: border-box;
		background: #fff;
		color: #111;
		border-radius: 16px 16px 0 0;
		box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
	}
	.ca-bis-sheet-head {
		display: flex;
		align-items: flex-start;
		gap: 12px;
		padding: 16px 48px 12px 16px;
		flex-shrink: 0;
		border-bottom: 1px solid #eee;
	}
	.ca-bis-sheet-thumb {
		width: 64px;
		height: 64px;
		object-fit: contain;
		background: #f6f6f6;
		border: 1px solid #e5e5e5;
		flex-shrink: 0;
	}
	.ca-bis-sheet-title {
		margin: 0;
		flex: 1;
		font-size: 16px;
		font-weight: 700;
		line-height: 1.3;
		color: #111;
		text-transform: none;
	}
	.ca-bis-sheet-close {
		position: absolute;
		top: 8px;
		right: 8px;
		width: 40px;
		height: 40px;
		border: 0;
		background: transparent;
		font-size: 28px;
		line-height: 1;
		cursor: pointer;
		color: #333;
	}
	.ca-bis-sheet-options {
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		max-height: 60vh;
		max-height: 60dvh;
		padding: 12px 16px 8px;
		flex: 1 1 auto;
	}
	.ca-bis-sheet-group {
		margin: 0 0 16px;
	}
	.ca-bis-sheet-group-label {
		display: block;
		margin: 0 0 8px;
		font-size: 15px;
		font-weight: 700;
		color: #111;
	}
	.ca-bis-chip-row {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
	}
	.ca-bis-chip {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		box-sizing: border-box;
		margin: 0;
		padding: 8px 14px;
		border: 1.5px solid #222;
		border-radius: 20px;
		background: #fff;
		color: #111;
		font-size: 14px;
		font-weight: 400;
		line-height: 1.2;
		text-transform: none;
		letter-spacing: normal;
		cursor: pointer;
	}
	.ca-bis-chip.is-selected {
		background: #8C760E;
		border-color: #8C760E;
		color: #000;
	}
	.ca-bis-chip.is-oos,
	.ca-bis-chip.is-unavailable {
		border-style: dashed;
		border-color: #999;
		color: #888;
		background-color: #f7f7f7;
		background-image: repeating-linear-gradient(-45deg, transparent, transparent 4px, rgba(0, 0, 0, 0.06) 4px, rgba(0, 0, 0, 0.06) 8px);
	}
	.ca-bis-chip.is-selected.is-oos,
	.ca-bis-chip.is-selected.is-unavailable {
		background-color: #e8e2c8;
		border-color: #8C760E;
		color: #333;
	}
	.ca-bis-sheet-select {
		display: block;
		width: 100%;
		box-sizing: border-box;
		padding: 10px 12px;
		border: 1.5px solid #222;
		border-radius: 8px;
		background: #fff;
		font-size: 16px;
		color: #111;
	}
	.ca-bis-sheet-select option.is-oos,
	.ca-bis-sheet-select option.is-unavailable {
		color: #888;
	}
	.ca-bis-sheet-footer {
		flex-shrink: 0;
		padding: 10px 16px calc(16px + env(safe-area-inset-bottom, 0px));
		border-top: 1px solid #eee;
		background: #fff;
	}
	.ca-bis-sheet-meta {
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		gap: 12px;
		margin: 0 0 8px;
	}
	.ca-bis-sheet-price {
		font-size: 16px;
		font-weight: 400;
		color: #000;
		line-height: 1.3;
	}
	.ca-bis-sheet-price ins,
	.ca-bis-sheet-price ins .amount,
	.ca-bis-sheet-price ins .woocommerce-Price-amount,
	.ca-bis-sheet-price ins bdi {
		text-decoration: none !important;
		color: #58762ede !important;
		background: transparent !important;
	}
	.ca-bis-sheet-price del,
	.ca-bis-sheet-price del .amount,
	.ca-bis-sheet-price del .woocommerce-Price-amount,
	.ca-bis-sheet-price del bdi {
		text-decoration: line-through;
		color: #000;
	}
	.ca-bis-sheet-status {
		flex-shrink: 0;
		text-align: right;
	}
	.ca-bis-sheet-status .ca-bis-select-hint {
		margin: 0;
		text-align: right;
	}
	.ca-bis-sheet-row {
		display: flex;
		align-items: center;
		gap: 8px;
	}
	.ca-bis-sheet-row .ca-bis-sticky-btn,
	.ca-bis-sheet-btn {
		flex: 1 1 auto;
		height: 44px !important;
		max-height: 44px !important;
		min-height: 44px !important;
	}
	body.ca-bis-sheet-open {
		overflow: hidden;
	}
}

/* 1.1.18: ADD TO CART / SELECT OPTIONS use white text (was theme black) on the
   theme gold, to match NOTIFY ME. Product page, listings (front, category,
   search, related), phone bar and options sheet. Hover keeps the theme's
   black background with light text. */
.single_add_to_cart_button:not(.ca-bis-notify-btn),
.woocommerce div.product form.cart .single_add_to_cart_button:not(.ca-bis-notify-btn),
a.add_to_cart_button:not(.ca-bis-notify-btn),
.wp-block-button__link.add_to_cart_button:not(.ca-bis-notify-btn),
.wc-block-components-product-button__button:not(.ca-bis-notify-btn),
.ca-bis-sticky-btn.ca-bis-sticky-atc,
.ca-bis-sticky-btn.ca-bis-sticky-select {
	color: #fff !important;
}
