:root {
	--bglp-theme-canvas: #f7fafc;
	--bglp-theme-surface: #ffffff;
	--bglp-theme-surface-raised: #ffffff;
	--bglp-theme-surface-muted: #eef5f8;
	--bglp-theme-ink: #0b283b;
	--bglp-theme-copy: #425c6d;
	--bglp-theme-muted: #667d8b;
	--bglp-theme-line: #d3e1e7;
	--bglp-theme-line-strong: #aec5d0;
	--bglp-theme-link: #087f93;
	--bglp-theme-accent: #55d2df;
	--bglp-theme-focus: #43bfd2;
	--bglp-theme-shadow: 0 14px 34px rgba(7, 35, 52, 0.08);
}

html[data-bglp-theme="dark"] {
	--bglp-theme-canvas: #08141d;
	--bglp-theme-surface: #0f212d;
	--bglp-theme-surface-raised: #142a38;
	--bglp-theme-surface-muted: #193441;
	--bglp-theme-ink: #eef6f8;
	--bglp-theme-copy: #c3d3db;
	--bglp-theme-muted: #9aafba;
	--bglp-theme-line: #294856;
	--bglp-theme-line-strong: #3b6071;
	--bglp-theme-link: #7ddbe8;
	--bglp-theme-accent: #62d5e1;
	--bglp-theme-focus: #8be5ef;
	--bglp-theme-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
	background: var(--bglp-theme-canvas) !important;
	color-scheme: dark;
}

html.bglp-theme-ready body,
html.bglp-theme-ready header.et-l--header,
html.bglp-theme-ready .bglp-theme-toggle {
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

/* The control is rendered by a shortcode inside an editable Divi module. */
.bglp-theme-toggle {
	display: inline-grid;
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	min-width: 44px;
	min-height: 44px;
	place-items: center;
	margin: 0;
	padding: 0;
	border: 1px solid #c9dbe4;
	border-radius: 12px;
	background: #ffffff;
	box-shadow: 0 6px 18px rgba(7, 38, 57, 0.07);
	color: #123d59;
	cursor: pointer;
	font: inherit;
	line-height: 1;
	-webkit-appearance: none;
	appearance: none;
}

.bglp-theme-toggle:hover {
	border-color: #79b9c8;
	background: #eef8fa;
	color: #087f93;
}

.bglp-theme-toggle:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--bglp-theme-focus) 42%, transparent);
	outline-offset: 3px;
}

.bglp-theme-toggle__icon,
.bglp-theme-toggle__icon svg {
	display: block;
	width: 21px;
	height: 21px;
}

.bglp-theme-toggle__icon svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

html[data-bglp-theme="dark"] .bglp-theme-toggle {
	border-color: var(--bglp-theme-line);
	background: var(--bglp-theme-surface-raised);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
	color: var(--bglp-theme-ink);
}

html[data-bglp-theme="dark"] .bglp-theme-toggle:hover {
	border-color: var(--bglp-theme-focus);
	background: #1a3a49;
	color: var(--bglp-theme-link);
}

/* Header presentation. Divi still owns the row, modules, logo and links. */
body.bglp-theme-mode-enabled header.et-l.et-l--header {
	position: sticky;
	z-index: 9998;
	top: 0;
	border-bottom: 1px solid #e3edf1;
	background: rgba(255, 255, 255, 0.97);
	box-shadow: 0 8px 26px rgba(7, 38, 57, 0.07);
	backdrop-filter: saturate(150%) blur(12px);
}

body.admin-bar.bglp-theme-mode-enabled header.et-l.et-l--header {
	top: 32px;
}

body.bglp-theme-mode-enabled header.et-l--header .et_pb_section,
body.bglp-theme-mode-enabled header.et-l--header .et_pb_row,
body.bglp-theme-mode-enabled header.et-l--header .et_pb_menu {
	background: transparent !important;
}

body.bglp-theme-mode-enabled header.et-l--header .et_pb_section {
	padding: 0 !important;
}

body.bglp-theme-mode-enabled header.et-l--header .et_pb_row {
	width: min(1248px, calc(100% - 40px));
	max-width: 1248px;
	padding: 8px 0 !important;
}

body.bglp-theme-mode-enabled header.et-l--header .et_pb_column {
	padding: 0 !important;
}

body.bglp-theme-mode-enabled header.et-l--header .et_pb_menu {
	margin-bottom: 0 !important;
}

body.bglp-theme-mode-enabled header.et-l--header .et_pb_menu_inner_container {
	min-height: 72px;
}

body.bglp-theme-mode-enabled header.et-l--header .et_pb_menu__logo-wrap {
	flex: 0 0 auto;
}

body.bglp-theme-mode-enabled header.et-l--header .et_pb_menu__logo img {
	width: auto;
	max-width: 210px;
	max-height: 58px;
	object-fit: contain;
}

body.bglp-theme-mode-enabled header.et-l--header .et_pb_menu__wrap {
	min-width: 0;
	padding-right: 58px;
	justify-content: flex-end;
}

body.bglp-theme-mode-enabled header.et-l--header .et-menu > li {
	padding-right: 9px;
	padding-left: 9px;
}

body.bglp-theme-mode-enabled header.et-l--header .et-menu > li > a {
	color: #0d2d41 !important;
	font-size: 14px;
	font-weight: 750;
	letter-spacing: -0.01em;
}

body.bglp-theme-mode-enabled header.et-l--header .et-menu > li > a:hover,
body.bglp-theme-mode-enabled header.et-l--header .et-menu > li.current-menu-item > a {
	color: #087f93 !important;
	opacity: 1;
}

body.bglp-theme-mode-enabled header.et-l--header .et_pb_menu__search-button {
	box-sizing: border-box;
	width: 42px;
	height: 42px;
	align-self: center;
	justify-content: center;
	border: 1px solid transparent;
	border-radius: 11px;
	color: #1b526e;
}

body.bglp-theme-mode-enabled header.et-l--header .et_pb_menu__search-button:hover,
body.bglp-theme-mode-enabled header.et-l--header .et_pb_menu__search-button:focus-visible {
	border-color: #c9dbe4;
	background: #eef8fa;
	color: #087f93;
}

body.bglp-theme-mode-enabled header.et-l--header .et_pb_menu__menu .fkcart-custom-menu-link {
	align-items: center;
	padding: 0 5px 0 9px;
}

body.bglp-theme-mode-enabled header.et-l--header .et_pb_menu__menu .fkcart-shortcode-container {
	box-sizing: border-box;
	min-height: 44px;
	gap: 9px;
	align-items: center;
	padding: 8px 13px 8px 11px;
	border: 1px solid #c9dbe4;
	border-radius: 12px;
	background: #ffffff;
	box-shadow: 0 6px 18px rgba(7, 38, 57, 0.07);
	color: #123d59;
	cursor: pointer;
}

body.bglp-theme-mode-enabled header.et-l--header .fkcart-shortcode-icon-wrap svg {
	width: 22px;
	height: 22px;
}

body.bglp-theme-mode-enabled header.et-l--header .fkcart-shortcode-price {
	color: #0d2d41;
	font-size: 14px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

body.bglp-theme-mode-enabled header.et-l--header .fkcart-shortcode-count {
	border: 2px solid #ffffff;
	background: #d52d39;
	color: #ffffff;
	font-weight: 800;
}

/* The editable header contains a native FunnelKit trigger, so its second
 * floating trigger is redundant. The drawer and all cart behavior remain on. */
body.bglp-theme-mode-enabled .fkcart-floating-toggler,
body.bglp-theme-mode-enabled #fkcart-floating-toggler {
	display: none !important;
}

/* Module added in Divi Theme Builder. It contains the two native shortcodes. */
body.bglp-theme-mode-enabled header.et-l--header .bglp-header-actions-module {
	position: absolute;
	z-index: 5;
	top: 50%;
	right: 0;
	width: auto;
	margin: 0 !important;
	transform: translateY(-50%);
}

body.bglp-theme-mode-enabled header.et-l--header .bglp-header-actions-module .et_pb_text_inner,
body.bglp-theme-mode-enabled header.et-l--header .bglp-header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
}

@media (min-width: 981px) {
	body.bglp-theme-mode-enabled header.et-l--header .bglp-header-actions > .fkcart-shortcode-container,
	body.bglp-theme-mode-enabled header.et-l--header .bglp-header-actions > .fkcart-mini-toggler {
		display: none !important;
	}
}

html[data-bglp-theme="dark"] body,
html[data-bglp-theme="dark"] #page-container,
html[data-bglp-theme="dark"] #main-content {
	background: var(--bglp-theme-canvas);
	color: var(--bglp-theme-copy);
}

html[data-bglp-theme="dark"] body.bglp-theme-mode-enabled header.et-l.et-l--header {
	border-bottom-color: var(--bglp-theme-line);
	background: rgba(11, 27, 38, 0.97);
	box-shadow: 0 9px 28px rgba(0, 0, 0, 0.28);
}

html[data-bglp-theme="dark"] body.bglp-theme-mode-enabled header.et-l--header .et_pb_menu__logo-wrap {
	align-self: center;
	padding: 4px 8px;
	border-radius: 10px;
	background: #ffffff;
}

html[data-bglp-theme="dark"] body.bglp-theme-mode-enabled header.et-l--header .et-menu > li > a,
html[data-bglp-theme="dark"] body.bglp-theme-mode-enabled header.et-l--header .et_pb_menu__search-button,
html[data-bglp-theme="dark"] body.bglp-theme-mode-enabled header.et-l--header .fkcart-shortcode-price {
	color: var(--bglp-theme-ink) !important;
}

html[data-bglp-theme="dark"] body.bglp-theme-mode-enabled header.et-l--header .et-menu > li > a:hover,
html[data-bglp-theme="dark"] body.bglp-theme-mode-enabled header.et-l--header .et-menu > li.current-menu-item > a {
	color: var(--bglp-theme-link) !important;
}

html[data-bglp-theme="dark"] body.bglp-theme-mode-enabled header.et-l--header .et_pb_menu__menu .fkcart-shortcode-container,
html[data-bglp-theme="dark"] body.bglp-theme-mode-enabled header.et-l--header .et_pb_menu__search-button:hover,
html[data-bglp-theme="dark"] body.bglp-theme-mode-enabled header.et-l--header .et_pb_menu__search-button:focus-visible {
	border-color: var(--bglp-theme-line);
	background: var(--bglp-theme-surface-raised);
	color: var(--bglp-theme-ink);
}

html[data-bglp-theme="dark"] body.bglp-theme-mode-enabled header.et-l--header .fkcart-shortcode-count {
	border-color: var(--bglp-theme-surface-raised);
}

html[data-bglp-theme="dark"] body.bglp-theme-mode-enabled header.et-l--header .sub-menu,
html[data-bglp-theme="dark"] body.bglp-theme-mode-enabled header.et-l--header .et_mobile_menu {
	border-color: var(--bglp-theme-line) !important;
	background: #102430 !important;
	box-shadow: var(--bglp-theme-shadow) !important;
}

html[data-bglp-theme="dark"] body.bglp-theme-mode-enabled header.et-l--header .sub-menu a,
html[data-bglp-theme="dark"] body.bglp-theme-mode-enabled header.et-l--header .et_mobile_menu a {
	color: var(--bglp-theme-ink) !important;
}

/* Homepage v2. The hero is already dark; only light sections are retokenized. */
html[data-bglp-theme="dark"] .bglp-d2 {
	--d2-ink: #edf6f8;
	--d2-navy: #061e2c;
	--d2-deep: #03141e;
	--d2-teal: #64d4df;
	--d2-mist: #18323f;
	--d2-line: #2d4a58;
	--d2-muted: #adc0c9;
	background: var(--bglp-theme-canvas);
}

html[data-bglp-theme="dark"] .bglp-d2 :is(.bglp-d2-records, .bglp-d2-ledger, .bglp-d2-cards article, .bglp-d2-resources > a, .bglp-d2-faq) {
	border-color: var(--d2-line);
	background: var(--bglp-theme-surface-raised);
	color: var(--d2-ink);
}

html[data-bglp-theme="dark"] .bglp-d2 :is(.bglp-d2-ledger-tools input, .bglp-d2-ledger-tools nav > *, .bglp-d2-ledger-groups details > div) {
	border-color: var(--d2-line);
	background: #0d202b;
	color: var(--d2-ink);
}

html[data-bglp-theme="dark"] .bglp-d2 .bglp-d2-ledger-action {
	border-color: var(--d2-line);
	background: #102430;
	color: var(--d2-ink);
}

html[data-bglp-theme="dark"] .bglp-d2 .bglp-d2-card-media {
	border-color: var(--d2-line);
	background: #dfe9ed;
}

html[data-bglp-theme="dark"] .bglp-d2 :is(.bglp-d2-kicker, .bglp-d2-ledger-action > a:last-child, .bglp-d2-cards article > div > a, .bglp-d2-resources > a > span, .bglp-d2-resources > a > b) {
	color: var(--d2-teal);
}

html[data-bglp-theme="dark"] .bglp-d2 :is(.bglp-d2-records, .bglp-d2-cards, .bglp-d2-resources, .bglp-d2-faq) {
	background-color: var(--bglp-theme-canvas);
}

/* Verified Quality hub. */
html[data-bglp-theme="dark"] .bglp-vq {
	--vq-ink: #edf6f8;
	--vq-navy: #071f2d;
	--vq-deep: #03141e;
	--vq-teal: #64d4df;
	--vq-mist: #18323f;
	--vq-line: #2d4a58;
	--vq-muted: #adc0c9;
	background: var(--bglp-theme-canvas);
}

html[data-bglp-theme="dark"] .bglp-vq :is(.bglp-vq-section, .bglp-vq-legacy) {
	border-color: var(--vq-line);
	background: var(--bglp-theme-canvas);
}

html[data-bglp-theme="dark"] .bglp-vq .bglp-vq-section-alt {
	background: #0d1e29;
}

html[data-bglp-theme="dark"] .bglp-vq :is(.bglp-vq-card, .bglp-vq-method, .bglp-vq-pdfgrid a) {
	border-color: var(--vq-line);
	background: var(--bglp-theme-surface-raised);
	box-shadow: var(--bglp-theme-shadow);
}

html[data-bglp-theme="dark"] .bglp-vq .bglp-vq-card b {
	background: #1a3c49;
	color: var(--vq-teal);
}

/* Public COA ledger. */
html[data-bglp-theme="dark"] .bglp-ledger {
	--bglp-ledger-ink: #edf6f8;
	--bglp-ledger-navy: #061e2c;
	--bglp-ledger-teal: #64d4df;
	--bglp-ledger-teal-light: #183d49;
	--bglp-ledger-line: #2d4a58;
	--bglp-ledger-muted: #adc0c9;
	--bglp-ledger-pale: #08141d;
	--bglp-ledger-white: #142a38;
}

html[data-bglp-theme="dark"] .bglp-ledger :is(.bglp-ledger-shell, .bglp-ledger-group, .bglp-ledger-search input, .bglp-ledger-filter button, .bglp-ledger-view-buttons button) {
	border-color: var(--bglp-ledger-line);
	background: var(--bglp-ledger-white);
	color: var(--bglp-ledger-ink);
}

html[data-bglp-theme="dark"] .bglp-ledger .bglp-ledger-filter button[aria-pressed="true"] {
	border-color: var(--bglp-ledger-teal);
	background: #176a79;
	color: #ffffff;
}

/* WooCommerce catalog and product pages. Product media stays on a light tile. */
html[data-bglp-theme="dark"] body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) #main-content,
html[data-bglp-theme="dark"] body.single-product #main-content {
	background: var(--bglp-theme-canvas);
	color: var(--bglp-theme-copy);
}

html[data-bglp-theme="dark"] body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) #main-content .et_pb_section {
	background: var(--bglp-theme-canvas) !important;
	color: var(--bglp-theme-copy) !important;
}

html[data-bglp-theme="dark"] body.single-product #main-content .et_pb_section {
	background: var(--bglp-theme-canvas) !important;
	color: var(--bglp-theme-copy) !important;
}

html[data-bglp-theme="dark"] body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) :is(.woocommerce-result-count, .woocommerce-ordering select),
html[data-bglp-theme="dark"] body.single-product :is(.summary, .woocommerce-tabs, .woocommerce-Tabs-panel, .et_pb_wc_description, .et_pb_wc_add_to_cart, .et_pb_wc_meta, .et_pb_wc_additional_info, .et_pb_wc_related_products, .et_pb_wc_reviews) {
	border-color: var(--bglp-theme-line) !important;
	background: var(--bglp-theme-surface-raised) !important;
	color: var(--bglp-theme-copy) !important;
}

html[data-bglp-theme="dark"] body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) ul.products li.product {
	border-color: var(--bglp-theme-line) !important;
	background: var(--bglp-theme-surface-raised) !important;
	box-shadow: var(--bglp-theme-shadow);
}

html[data-bglp-theme="dark"] body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) #page-container #main-content ul.products li.product :is(.woocommerce-loop-product__title, h2, h3, .price, .price *),
html[data-bglp-theme="dark"] body.single-product :is(.product_title, h1, h2, h3, h4, .price, label, legend, th) {
	color: var(--bglp-theme-ink) !important;
}

html[data-bglp-theme="dark"] body.single-product :is(p, td, .woocommerce-product-details__short-description, .product_meta) {
	color: var(--bglp-theme-copy) !important;
}

html[data-bglp-theme="dark"] body.single-product #page-container #main-content :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea),
html[data-bglp-theme="dark"] body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) .woocommerce-ordering select {
	border-color: var(--bglp-theme-line-strong) !important;
	background: #0c1d27 !important;
	color: var(--bglp-theme-ink) !important;
}

html[data-bglp-theme="dark"] body.single-product #main-content :is(.bg-white, .bg-slate-50) {
	border-color: var(--bglp-theme-line) !important;
	background: var(--bglp-theme-surface-raised) !important;
	color: var(--bglp-theme-copy) !important;
}

html[data-bglp-theme="dark"] body.single-product #main-content .bg-gradient-to-r {
	border-color: var(--bglp-theme-line) !important;
	background: var(--bglp-theme-surface-muted) !important;
	background-image: none !important;
	color: var(--bglp-theme-copy) !important;
}

html[data-bglp-theme="dark"] body.single-product #main-content :is(.border-slate-100, .border-slate-200) {
	border-color: var(--bglp-theme-line) !important;
}

html[data-bglp-theme="dark"] body.single-product #main-content .text-slate-900 {
	color: var(--bglp-theme-ink) !important;
}

html[data-bglp-theme="dark"] body.single-product #main-content :is(.text-slate-500, .text-slate-600) {
	color: var(--bglp-theme-copy) !important;
}

html[data-bglp-theme="dark"] body.single-product :is(.woocommerce-product-gallery, .woocommerce-product-gallery__image, .et_pb_wc_images),
html[data-bglp-theme="dark"] body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) ul.products li.product :is(.et_shop_image, .et_shop_image img, img.attachment-woocommerce_thumbnail) {
	background: #edf3f5 !important;
}

/*
 * WooCommerce product grids.
 * Divi adds a decorative plus overlay to every shop image. A separate generic
 * .columns-4 utility also turns the related-products list into CSS columns,
 * which fragments individual cards. Keep both repairs scoped to product grids.
 */
body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) ul.products .et_shop_image > .et_overlay,
body.single-product .related.products .et_shop_image > .et_overlay {
	display: none !important;
}

body.single-product #page-container #main-content .related.products > h2 {
	margin: 0 0 22px !important;
	color: var(--bglp-theme-ink) !important;
	font-size: clamp(26px, 3vw, 38px) !important;
	line-height: 1.08 !important;
}

body.single-product .related.products ul.products[class*="columns-"] {
	columns: auto !important;
	column-count: auto !important;
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 24px !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.single-product .related.products ul.products[class*="columns-"]::before,
body.single-product .related.products ul.products[class*="columns-"]::after {
	content: none !important;
	display: none !important;
}

body.single-product .related.products ul.products li.product:nth-child(n) {
	float: none !important;
	clear: none !important;
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
	overflow: hidden;
	border: 1px solid var(--bglp-theme-line);
	border-radius: 16px;
	background: var(--bglp-theme-surface-raised);
	box-shadow: var(--bglp-theme-shadow);
}

body.single-product .related.products ul.products li.product:only-child {
	grid-column: 1 / -1 !important;
	justify-self: center !important;
	width: min(100%, 360px) !important;
}

body.single-product .related.products ul.products li.product > a {
	display: flex;
	height: 100%;
	flex-direction: column;
}

body.single-product .related.products .et_shop_image {
	display: block;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: #edf3f5;
}

body.single-product .related.products .et_shop_image img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	object-fit: contain;
	background: #edf3f5;
}

body.single-product #page-container #main-content .related.products .woocommerce-loop-product__title {
	margin: 0 !important;
	padding: 16px 16px 6px !important;
	color: var(--bglp-theme-ink) !important;
	font-size: 17px !important;
	line-height: 1.35 !important;
}

body.single-product #page-container #main-content .related.products .price {
	display: block;
	margin-top: auto !important;
	padding: 0 16px 16px !important;
	color: var(--bglp-theme-link) !important;
	font-size: 16px !important;
	font-weight: 800 !important;
}

@media (max-width: 980px) {
	body.single-product .related.products ul.products[class*="columns-"] {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 20px !important;
	}
}

@media (max-width: 600px) {
	body.single-product .related.products ul.products[class*="columns-"] {
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 16px !important;
	}
}

/* Existing account plugin already owns detailed dark tokens; these are shell fallbacks. */
html[data-bglp-theme="dark"] body.bglp-account-page,
html[data-bglp-theme="dark"] body.woocommerce-account {
	background: var(--bglp-theme-canvas) !important;
	color: var(--bglp-theme-copy) !important;
}

html[data-bglp-theme="dark"] body.woocommerce-account :is(.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content, .woocommerce-form, .bglp-auth-shell, .bglp-account-card) {
	border-color: var(--bglp-theme-line) !important;
	background: var(--bglp-theme-surface-raised) !important;
	color: var(--bglp-theme-copy) !important;
}

/* CheckoutWC shell only. Hosted payment iframes remain in their provider mode. */
html[data-bglp-theme="dark"] body.checkout-wc,
html[data-bglp-theme="dark"] body.woocommerce-checkout {
	background: var(--bglp-theme-canvas) !important;
	color: var(--bglp-theme-copy) !important;
}

html[data-bglp-theme="dark"] body.checkout-wc :is(#cfw, #cfw-header, .cfw-module, .cfw-panel, .cfw-cart-summary, .cfw-order-review, .cfw-customer-info-address, .cfw-shipping-methods-list, .cfw-payment-methods-list),
html[data-bglp-theme="dark"] body.woocommerce-checkout :is(#customer_details, #order_review, #payment) {
	border-color: var(--bglp-theme-line) !important;
	background: var(--bglp-theme-surface-raised) !important;
	color: var(--bglp-theme-copy) !important;
}

html[data-bglp-theme="dark"] body.checkout-wc #cfw-cart-summary {
	border-color: var(--bglp-theme-line) !important;
	background: var(--bglp-theme-surface-muted) !important;
	color: var(--bglp-theme-copy) !important;
}

html[data-bglp-theme="dark"] body.checkout-wc #cfw :is(.cfw-add-field, .cfw-cart-edit-item-variation, .cfw-show-coupons-module, .cfw-tab-link, .cfw-prev-tab) {
	color: var(--bglp-theme-link) !important;
}

html[data-bglp-theme="dark"] body.checkout-wc #cfw :is(.cfw-small.active, .cfw-quantity-stepper-value-label, .cfw-display-table-row) {
	color: var(--bglp-theme-ink) !important;
}

html[data-bglp-theme="dark"] body.checkout-wc #cfw .cfw-primary-btn {
	border-color: #20a4b5 !important;
	background: #20a4b5 !important;
	color: #ffffff !important;
}

html[data-bglp-theme="dark"] body.checkout-wc :is(h1, h2, h3, h4, label, legend, th, strong, .cfw-product-title),
html[data-bglp-theme="dark"] body.woocommerce-checkout :is(h1, h2, h3, h4, label, legend, th, strong) {
	color: var(--bglp-theme-ink) !important;
}

html[data-bglp-theme="dark"] body.checkout-wc :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea, .select2-selection),
html[data-bglp-theme="dark"] body.woocommerce-checkout :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea, .select2-selection) {
	border-color: var(--bglp-theme-line-strong) !important;
	background: #0c1d27 !important;
	color: var(--bglp-theme-ink) !important;
}

html[data-bglp-theme="dark"] body.checkout-wc iframe,
html[data-bglp-theme="dark"] body.woocommerce-checkout iframe {
	color-scheme: light;
}

/* FunnelKit owns behavior. These declarations only retokenize its verified panel. */
html[data-bglp-theme="dark"] #fkcart-modal,
html[data-bglp-theme="dark"] #fkcart-modal .fkcart-preview-ui {
	--fkcart-primary-color: #58cfdb;
	--fkcart-bg-color: #102430;
	--fkcart-border-color: #2d4b5a;
	--fkcart-text-color: #eef6f8;
	color: var(--bglp-theme-copy);
}

html[data-bglp-theme="dark"] #fkcart-modal :is(.fkcart-panel, .fkcart-slider-header, .fkcart-slider-body, .fkcart-slider-footer, .fkcart--item, .fkcart-quantity-selector, .fkcart-coupon-head, .fkcart-order-summary) {
	border-color: var(--bglp-theme-line) !important;
	background: var(--bglp-theme-surface-raised) !important;
	color: var(--bglp-theme-copy) !important;
}

html[data-bglp-theme="dark"] #fkcart-modal :is(.fkcart-item-title, .fkcart-slider-heading, .fkcart-order-summary strong, .woocommerce-Price-amount) {
	color: var(--bglp-theme-ink) !important;
}

html[data-bglp-theme="dark"] #fkcart-modal :is(.fkcart-title, .fkcart-title span, .fkcart-coupon-title, .fkcart-modal-close, .woocommerce-Price-amount, .woocommerce-Price-amount *) {
	color: var(--bglp-theme-ink) !important;
}

html[data-bglp-theme="dark"] #fkcart-modal :is(.fkcart-attr-key, .fkcart-attr-value, .fkcart-summary-text, .fkcart-shipping-tax-calculation-text, .fkcart-shopping-link, .fkcart-item-meta-content) {
	color: var(--bglp-theme-copy) !important;
}

html[data-bglp-theme="dark"] #fkcart-modal .fkcart-select-options {
	color: var(--bglp-theme-link) !important;
}

html[data-bglp-theme="dark"] #fkcart-modal .fkcart-input-error {
	color: #ffaaaa !important;
}

html[data-bglp-theme="dark"] #fkcart-modal .fkcart-coupon-input-wrap.has-error input {
	border-color: #e87979 !important;
}

html[data-bglp-theme="dark"] #fkcart-modal :is(input, select, textarea, button:not(#fkcart-checkout-button)) {
	border-color: var(--bglp-theme-line-strong) !important;
	background: #0c1d27;
	color: var(--bglp-theme-ink);
}

html[data-bglp-theme="dark"] #fkcart-modal #fkcart-checkout-button {
	background: #20a4b5 !important;
	color: #ffffff !important;
}

/* Generic WordPress/Divi content pages, notices and forms. */
html[data-bglp-theme="dark"] body.bglp-theme-route-generic #main-content .et_pb_section {
	border-color: var(--bglp-theme-line) !important;
	background-color: var(--bglp-theme-canvas) !important;
	color: var(--bglp-theme-copy) !important;
}

html[data-bglp-theme="dark"] body.bglp-theme-route-generic #page-container #main-content :is(h1, h2, h3, h4, h5, h6, strong) {
	color: var(--bglp-theme-ink) !important;
}

html[data-bglp-theme="dark"] body.bglp-theme-route-generic #page-container #main-content :is(p, li, blockquote, td, th) {
	border-color: var(--bglp-theme-line) !important;
	color: var(--bglp-theme-copy) !important;
}

html[data-bglp-theme="dark"] body.bglp-theme-route-generic #page-container #main-content hr {
	border-color: var(--bglp-theme-line) !important;
}

html[data-bglp-theme="dark"] body.bglp-theme-mode-enabled:not(.home):not(.woocommerce-shop):not(.single-product):not(.woocommerce-account):not(.woocommerce-checkout) #main-content :is(article, .entry-content) {
	color: var(--bglp-theme-copy);
}

html[data-bglp-theme="dark"] body.bglp-theme-mode-enabled #main-content :is(h1, h2, h3, h4, h5, h6, strong) {
	color: var(--bglp-theme-ink);
}

html[data-bglp-theme="dark"] body.bglp-theme-mode-enabled #main-content a:not(.button):not(.et_pb_button) {
	color: var(--bglp-theme-link);
}

html[data-bglp-theme="dark"] body.bglp-theme-mode-enabled :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
	border-color: var(--bglp-theme-line) !important;
	background: var(--bglp-theme-surface-raised) !important;
	color: var(--bglp-theme-ink) !important;
}

@media (max-width: 1120px) and (min-width: 981px) {
	body.bglp-theme-mode-enabled header.et-l--header .et_pb_row {
		width: calc(100% - 28px);
	}

	body.bglp-theme-mode-enabled header.et-l--header .et_pb_menu__logo img {
		max-width: 184px;
	}

	body.bglp-theme-mode-enabled header.et-l--header .et-menu > li {
		padding-right: 6px;
		padding-left: 6px;
	}

	body.bglp-theme-mode-enabled header.et-l--header .et-menu > li > a,
	body.bglp-theme-mode-enabled header.et-l--header .fkcart-shortcode-price {
		font-size: 13px;
	}
}

@media (max-width: 980px) {
	body.admin-bar.bglp-theme-mode-enabled header.et-l.et-l--header {
		top: 46px;
	}

	body.bglp-theme-mode-enabled header.et-l--header .et_pb_row {
		width: calc(100% - 24px);
		padding: 7px 0 !important;
	}

	body.bglp-theme-mode-enabled header.et-l--header .et_pb_menu_inner_container {
		min-height: 60px;
	}

	body.bglp-theme-mode-enabled header.et-l--header .et_pb_menu__logo img {
		max-width: 178px;
		max-height: 50px;
	}

	body.bglp-theme-mode-enabled header.et-l--header .et_pb_menu__wrap {
		flex: 0 0 44px;
		width: 44px;
		padding: 0;
		justify-content: flex-end;
	}

	body.bglp-theme-mode-enabled header.et-l--header .et_pb_menu__search-button {
		display: none !important;
	}

	body.bglp-theme-mode-enabled header.et-l--header .et_mobile_nav_menu,
	body.bglp-theme-mode-enabled header.et-l--header .mobile_nav,
	body.bglp-theme-mode-enabled header.et-l--header .mobile_menu_bar {
		width: 44px;
		height: 44px;
	}

	body.bglp-theme-mode-enabled header.et-l--header .mobile_menu_bar {
		box-sizing: border-box;
		display: grid;
		place-items: center;
		border: 1px solid #c9dbe4;
		border-radius: 12px;
		background: #ffffff;
		box-shadow: 0 6px 18px rgba(7, 38, 57, 0.07);
	}

	body.bglp-theme-mode-enabled header.et-l--header .mobile_menu_bar::before {
		position: static;
		color: #123d59;
		font-size: 30px;
	}

	body.bglp-theme-mode-enabled header.et-l--header .bglp-header-actions-module {
		right: 54px;
	}

	body.bglp-theme-mode-enabled header.et-l--header .bglp-header-actions > .fkcart-shortcode-container,
	body.bglp-theme-mode-enabled header.et-l--header .bglp-header-actions > .fkcart-mini-toggler {
		display: flex !important;
		box-sizing: border-box;
		width: 44px;
		height: 44px;
		min-width: 44px;
		min-height: 44px;
		align-items: center;
		justify-content: center;
		padding: 0;
		border: 1px solid #c9dbe4;
		border-radius: 12px;
		background: #ffffff;
		box-shadow: 0 6px 18px rgba(7, 38, 57, 0.07);
		color: #123d59;
	}

	body.bglp-theme-mode-enabled header.et-l--header .bglp-header-actions .fkcart-shortcode-price {
		display: none !important;
	}

	body.bglp-theme-mode-enabled header.et-l--header .et_mobile_menu .fkcart-custom-menu-link {
		display: none !important;
	}

	html[data-bglp-theme="dark"] body.bglp-theme-mode-enabled header.et-l--header .mobile_menu_bar,
	html[data-bglp-theme="dark"] body.bglp-theme-mode-enabled header.et-l--header .bglp-header-actions > .fkcart-shortcode-container,
	html[data-bglp-theme="dark"] body.bglp-theme-mode-enabled header.et-l--header .bglp-header-actions > .fkcart-mini-toggler {
		border-color: var(--bglp-theme-line);
		background: var(--bglp-theme-surface-raised);
		color: var(--bglp-theme-ink);
	}

	html[data-bglp-theme="dark"] body.bglp-theme-mode-enabled header.et-l--header .mobile_menu_bar::before {
		color: var(--bglp-theme-ink);
	}
}

@media (max-width: 420px) {
	body.bglp-theme-mode-enabled header.et-l--header .et_pb_menu__logo img {
		max-width: 158px;
	}

	body.bglp-theme-mode-enabled header.et-l--header .bglp-header-actions {
		gap: 6px;
	}

	body.bglp-theme-mode-enabled header.et-l--header .bglp-header-actions-module {
		right: 52px;
	}
}

@media (max-width: 600px) {
	body.checkout-wc #cfw-breadcrumb {
		display: grid !important;
		width: 100% !important;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 0;
		margin-right: 0 !important;
		margin-left: 0 !important;
		padding-right: 0 !important;
		padding-left: 0 !important;
	}

	body.checkout-wc #cfw-breadcrumb > li {
		box-sizing: border-box;
		width: auto !important;
		min-width: 0 !important;
		margin: 0 !important;
		padding-right: 2px !important;
		padding-left: 2px !important;
		text-align: center;
	}

	body.checkout-wc #cfw-breadcrumb > li > a {
		display: inline-block;
		max-width: 100%;
		font-size: 11px !important;
		white-space: nowrap;
	}
}

@media (max-width: 340px) {
	body.bglp-theme-mode-enabled header.et-l--header .et_pb_row {
		width: calc(100% - 16px);
	}

	body.bglp-theme-mode-enabled header.et-l--header .et_pb_menu__logo img {
		max-width: 132px;
	}

	.bglp-theme-toggle,
	body.bglp-theme-mode-enabled header.et-l--header .et_mobile_nav_menu,
	body.bglp-theme-mode-enabled header.et-l--header .mobile_nav,
	body.bglp-theme-mode-enabled header.et-l--header .mobile_menu_bar,
	body.bglp-theme-mode-enabled header.et-l--header .bglp-header-actions > .fkcart-shortcode-container,
	body.bglp-theme-mode-enabled header.et-l--header .bglp-header-actions > .fkcart-mini-toggler {
		width: 42px;
		height: 42px;
		min-width: 42px;
		min-height: 42px;
	}

	body.bglp-theme-mode-enabled header.et-l--header .bglp-header-actions-module {
		right: 49px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html.bglp-theme-ready body,
	html.bglp-theme-ready header.et-l--header,
	html.bglp-theme-ready .bglp-theme-toggle {
		transition: none !important;
	}
}

@media (forced-colors: active) {
	.bglp-theme-toggle,
	body.bglp-theme-mode-enabled header.et-l--header .fkcart-shortcode-container,
	body.bglp-theme-mode-enabled header.et-l--header .mobile_menu_bar {
		border: 1px solid ButtonText !important;
		box-shadow: none !important;
		forced-color-adjust: auto;
	}
}
