.asf-root {
	--asf-accent: #4c8fca;
	--asf-accent-dark: #3477b2;
	--asf-ink: #111111;
	--asf-muted: #555f69;
	--asf-border: #d5dee8;
	--asf-soft: #f4f9fd;
	clear: both;
	margin: 0 0 28px;
	position: relative;
	width: 100%;
}

/* Keep customer-entered values readable when legacy Avada styles use pale text. */
body input[type="text"],
body input[type="search"],
body input[type="email"],
body input[type="tel"],
body input[type="number"],
body input[type="url"],
body input[type="password"],
body textarea,
body select {
	color: #1d2327 !important;
	opacity: 1 !important;
	-webkit-text-fill-color: #1d2327 !important;
}

body input::placeholder,
body textarea::placeholder {
	color: #4b5563 !important;
	opacity: 1 !important;
	-webkit-text-fill-color: #4b5563 !important;
}

.asf-trigger {
	align-items: center;
	background: transparent;
	border: 1px solid var(--asf-border);
	border-radius: 10px;
	color: var(--asf-ink);
	cursor: pointer;
	display: flex;
	font: inherit;
	font-weight: 600;
	gap: 10px;
	justify-content: flex-start;
	padding: 10px 14px;
	text-align: left;
	width: 100%;
}

.asf-trigger:hover {
	background: var(--asf-soft);
	color: var(--asf-accent);
}

.asf-trigger__icon {
	border: 1.8px solid currentColor;
	border-radius: 2px;
	display: inline-block;
	height: 14px;
	position: relative;
	transform: rotate(45deg);
	width: 14px;
}

.asf-trigger__icon::after {
	background: currentColor;
	content: "";
	height: 7px;
	left: 5px;
	position: absolute;
	top: 12px;
	width: 2px;
}

.asf-trigger__count {
	align-items: center;
	background: var(--asf-accent);
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	font-size: 11px;
	height: 20px;
	justify-content: center;
	min-width: 20px;
	padding: 0 6px;
}

.asf-trigger__count.is-empty {
	display: none;
}

.asf-trigger__chevron {
	border-bottom: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	height: 8px;
	margin-left: auto;
	transform: rotate(45deg);
	transition: transform 180ms ease;
	width: 8px;
}

.asf-trigger[aria-expanded="true"] .asf-trigger__chevron {
	transform: rotate(225deg);
}

.asf-panel {
	background: #fff;
	border: 1px solid var(--asf-border);
	border-radius: 14px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
	margin-top: 8px;
	padding: 16px 18px;
}

.asf-panel,
.asf-panel h2,
.asf-panel legend,
.asf-panel label,
.asf-panel span,
.asf-panel small,
.asf-panel input,
.asf-panel button {
	color: var(--asf-ink) !important;
}

.asf-panel[hidden] {
	display: none;
}

.asf-panel__heading {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin-bottom: 12px;
}

.asf-panel__heading h2 {
	color: var(--asf-ink);
	font-size: clamp(18px, 1.7vw, 22px);
	line-height: 1.2;
	margin: 0;
}

.asf-close {
	background: none;
	border: 0;
	color: var(--asf-ink);
	cursor: pointer;
	display: none;
	font-size: 30px;
	line-height: 1;
	padding: 4px;
}

.asf-groups {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.asf-group {
	border: 0;
	margin: 0;
	min-width: 0;
	padding: 0;
}

.asf-group legend {
	color: var(--asf-ink);
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 8px;
	padding: 0;
}

.asf-options {
	display: grid;
	gap: 5px;
	max-height: 185px;
	overflow: auto;
	padding-right: 8px;
	scrollbar-width: thin;
}

.asf-option {
	align-items: center;
	color: var(--asf-ink);
	cursor: pointer;
	display: grid;
	font-size: 14px;
	gap: 9px;
	grid-template-columns: 18px minmax(0, 1fr) auto;
	margin: 0;
}

.asf-option:hover span {
	color: var(--asf-accent) !important;
}

.asf-option input {
	accent-color: var(--asf-accent);
	height: 16px;
	margin: 0;
	width: 16px;
}

.asf-option small {
	color: var(--asf-muted);
	font-size: 11px;
}

.asf-range {
	align-items: end;
	display: grid;
	gap: 9px;
	grid-template-columns: 1fr auto 1fr;
}

.asf-range label {
	display: grid;
	font-size: 13px;
	gap: 6px;
	margin: 0;
}

.asf-range input {
	background: #fff;
	border: 1px solid var(--asf-border);
	border-radius: 8px;
	box-sizing: border-box;
	color: var(--asf-ink);
	font: inherit;
	height: 36px;
	padding: 8px 10px;
	width: 100%;
}

.asf-treatment {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.asf-treatment label {
	cursor: pointer;
	display: inline-block;
	margin: 0;
}

.asf-treatment__totals {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	font-size: 13px;
	gap: 7px;
	line-height: 1.35;
	margin: 0 0 8px;
}

.asf-treatment__totals i {
	color: var(--asf-border);
	font-style: normal;
}

.asf-treatment input {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.asf-treatment span {
	align-items: center;
	background: #fff;
	border: 1px solid var(--asf-border);
	border-radius: 9px;
	display: flex;
	font-size: 13px;
	font-weight: 700;
	justify-content: center;
	min-height: 32px;
	padding: 5px 10px;
	transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.asf-treatment span small {
	font-size: 10px;
	margin-left: 4px;
}

.asf-treatment label:hover span {
	background: var(--asf-soft);
	border-color: var(--asf-accent);
	color: var(--asf-accent) !important;
}

.asf-treatment input:checked + span {
	background: var(--asf-accent);
	border-color: var(--asf-accent);
	box-shadow: 0 4px 12px rgba(76, 143, 202, 0.18);
	color: #fff !important;
}

.asf-treatment input:checked + span small {
	color: #fff !important;
}

.asf-treatment input:disabled + span {
	cursor: not-allowed;
	opacity: 0.4;
}

.asf-treatment input:focus-visible + span {
	outline: 2px solid var(--asf-accent);
	outline-offset: 2px;
}

.asf-range input::placeholder {
	color: var(--asf-muted);
	opacity: 1;
}

.asf-range input:focus,
.asf-option input:focus-visible,
.asf-trigger:focus-visible,
.asf-clear:focus-visible,
.asf-apply:focus-visible,
.asf-close:focus-visible {
	outline: 2px solid var(--asf-accent);
	outline-offset: 2px;
}

.asf-range__dash {
	padding-bottom: 12px;
}

.asf-actions {
	align-items: center;
	border-top: 1px solid var(--asf-border);
	display: flex;
	gap: 8px;
	justify-content: center;
	margin-top: 14px;
	padding-top: 12px;
}

.asf-clear,
.asf-apply {
	border: 0;
	cursor: pointer;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	padding: 8px 16px;
}

.asf-clear {
	background: transparent;
	color: var(--asf-ink);
	margin-right: 0;
}

.asf-panel .asf-apply {
	background: var(--asf-accent);
	color: #fff !important;
	font-weight: 800;
	min-width: 88px;
}

.asf-panel .asf-apply:hover {
	background: var(--asf-accent-dark);
	filter: none;
}

.asf-status {
	font-size: 14px;
	margin: 10px 0 0;
	min-height: 1em;
	text-align: right;
}

.asf-untreated-badge {
	background: linear-gradient(145deg, #0b6038, #064126);
	border: 1px solid #d8b85a;
	border-radius: 7px;
	box-shadow: 0 4px 12px rgba(0, 41, 23, 0.22);
	color: #fff !important;
	display: inline-block;
	font-family: inherit;
	font-size: inherit;
	font-weight: 900;
	letter-spacing: 0.06em;
	line-height: 1.1;
	margin: 6px 0;
	padding: 6px 9px 5px;
	text-align: center;
	text-transform: uppercase;
}

.asf-root.is-loading {
	opacity: 0.72;
	pointer-events: none;
}

@media (max-width: 800px) {
	.asf-groups {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 640px) {
	/* Compact Avada's logo/header area on the site's primary mobile layout. */
	.fusion-header-wrapper .fusion-header {
		min-height: 0 !important;
		padding-bottom: 8px !important;
		padding-top: 8px !important;
	}

	.fusion-header-wrapper .fusion-logo {
		margin-bottom: 6px !important;
		margin-top: 6px !important;
	}

	.fusion-header-wrapper .fusion-logo img {
		height: auto !important;
		max-height: 56px !important;
		max-width: 76px !important;
		width: auto !important;
	}

	.fusion-header-wrapper .fusion-secondary-main-menu {
		min-height: 0 !important;
		padding-bottom: 0 !important;
		padding-top: 0 !important;
	}

	.fusion-header-wrapper .fusion-mobile-selector {
		font-size: 16px !important;
		min-height: 46px;
		padding: 11px 14px !important;
	}

	/* Two clean, readable product cards per row on phone catalog pages. */
	body.archive.woocommerce ul.products {
		align-items: stretch;
		display: grid !important;
		gap: 22px 12px !important;
		grid-auto-flow: row !important;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* WooCommerce clearfix pseudo-elements otherwise consume grid cells. */
	body.archive.woocommerce ul.products::before,
	body.archive.woocommerce ul.products::after {
		content: none !important;
		display: none !important;
	}

	body.archive.woocommerce ul.products li.product,
	body.archive.woocommerce ul.products li.product.first,
	body.archive.woocommerce ul.products li.product.last {
		clear: none !important;
		float: none !important;
		grid-column: auto !important;
		grid-row: auto !important;
		justify-self: stretch !important;
		margin: 0 !important;
		min-width: 0;
		width: auto !important;
	}

	body.archive.woocommerce ul.products li.product .fusion-product-wrapper {
		border: 1px solid #e1e7ee;
		border-radius: 12px;
		height: 100%;
		overflow: hidden;
	}

	body.archive.woocommerce ul.products li.product .featured-image {
		aspect-ratio: 1 / 1;
		background: #fff;
		height: auto !important;
	}

	body.archive.woocommerce ul.products li.product .featured-image img {
		height: 100% !important;
		object-fit: contain;
		width: 100% !important;
	}

	body.archive.woocommerce ul.products li.product .fusion-product-content {
		padding: 11px 10px 12px !important;
	}

	body.archive.woocommerce ul.products li.product .product-title,
	body.archive.woocommerce ul.products li.product .product-title a {
		color: #111 !important;
		font-size: 15px !important;
		font-weight: 700 !important;
		line-height: 1.35 !important;
	}

	body.archive.woocommerce ul.products li.product .price {
		color: #111 !important;
		font-size: 16px !important;
		font-weight: 800 !important;
		line-height: 1.3;
	}

	body.archive.woocommerce ul.products li.product .sku {
		color: #4d5965 !important;
		font-size: 13px !important;
		line-height: 1.35;
	}

	body.archive.woocommerce ul.products li.product .product-buttons {
		display: none !important;
	}

	/* Improve the first screen of individual product pages. */
	body.single-product .product_title {
		color: #111 !important;
		font-size: 23px !important;
		font-weight: 750 !important;
		line-height: 1.25 !important;
	}

	body.single-product .summary,
	body.single-product .summary p,
	body.single-product .summary li {
		color: #20262c;
		font-size: 16px;
		line-height: 1.55;
	}

	.asf-root {
		margin-bottom: 20px;
	}

	.asf-trigger {
		font-size: 16px;
		min-height: 46px;
		padding: 11px 14px;
	}

	.asf-panel {
		bottom: 0;
		border-bottom: 0;
		border-radius: 18px 18px 0 0;
		left: 0;
		margin: 0;
		max-height: 90vh;
		max-height: 90dvh;
		overflow: auto;
		overflow-x: hidden;
		overscroll-behavior: contain;
		padding: 0 16px calc(14px + env(safe-area-inset-bottom));
		position: fixed;
		right: 0;
		-webkit-overflow-scrolling: touch;
		z-index: 99999;
	}

	.asf-panel::before {
		background: rgba(0, 0, 0, 0.42);
		bottom: 100%;
		content: "";
		height: 100vh;
		left: 0;
		pointer-events: none;
		position: fixed;
		right: 0;
	}

	.asf-close {
		display: inline-block;
		font-size: 34px;
		min-height: 44px;
		min-width: 44px;
	}

	.asf-panel__heading {
		background: #fff;
		border-bottom: 1px solid var(--asf-border);
		margin: 0 -16px 16px;
		padding: 14px 12px 12px 16px;
		position: sticky;
		top: 0;
		z-index: 3;
	}

	.asf-panel__heading h2 {
		font-size: 21px;
	}

	.asf-groups {
		gap: 18px;
		grid-template-columns: 1fr;
	}

	.asf-group legend {
		font-size: 17px;
		margin-bottom: 10px;
	}

	.asf-options {
		gap: 8px;
		max-height: 220px;
		padding-right: 5px;
	}

	.asf-option {
		font-size: 16px;
		gap: 10px;
		grid-template-columns: 22px minmax(0, 1fr) auto;
		min-height: 30px;
	}

	.asf-option input {
		height: 19px;
		width: 19px;
	}

	.asf-option small {
		font-size: 13px;
	}

	.asf-range {
		gap: 8px;
	}

	.asf-range label {
		font-size: 15px;
	}

	.asf-range input {
		font-size: 16px;
		height: 44px;
	}

	.asf-treatment__totals {
		font-size: 14px;
		gap: 6px;
	}

	.asf-treatment {
		display: grid;
		gap: 8px;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.asf-treatment span {
		font-size: 14px;
		min-height: 42px;
		padding: 7px 8px;
	}

	.asf-treatment span small {
		font-size: 11px;
	}

	.asf-actions {
		background: #fff;
		bottom: calc(-14px - env(safe-area-inset-bottom));
		box-shadow: 0 -8px 18px rgba(0, 0, 0, 0.05);
		gap: 10px;
		margin-left: -16px;
		margin-right: -16px;
		padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
		position: sticky;
		z-index: 3;
	}

	.asf-clear,
	.asf-apply {
		flex: 0 0 auto;
		font-size: 15px;
		min-height: 42px;
		padding: 9px 20px;
	}

	.asf-clear {
		border: 1px solid var(--asf-border);
		min-width: 94px;
	}

	.asf-panel .asf-apply {
		min-width: 110px;
	}

	.asf-status {
		font-size: 14px;
		text-align: center;
	}

	.asf-untreated-badge {
		font-size: 15px !important;
		line-height: 1.35;
		padding: 7px 10px 6px;
	}
}
