/* Apex Tech – mobile filters button (see mu-plugins/apex-mobile-filters.php).
   Phones get the base look inline; these rules add the open/closed states
   and cover narrow desktop windows. !important beats the inline styles. */
@media (max-width: 999.98px) {
	.apx-ft__btn {
		display: flex !important;
		align-items: center;
		gap: 10px;
		width: 100%;
		height: 48px;
		padding: 0 16px;
		box-sizing: border-box;
		background: #fff;
		border: 1px solid #e7e8eb;
		border-radius: 10px;
		color: #080d17;
		font-family: Montserrat, Alexandria, sans-serif;
		font-size: 14px;
		font-weight: 600;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
		transition: border-color .2s, box-shadow .2s;
	}
	.apx-ft__body { display: none !important; padding-top: 14px; }
}

/* Lock text/background colours so no theme, plugin or forced dark mode
   can turn the label white while it is pressed or open. */
.apx-ft__btn,
.apx-ft__btn:hover,
.apx-ft__btn:active,
.apx-ft__btn:focus,
.apx-ft__toggle:checked ~ .apx-ft__btn {
	background: #fff !important;
	color: #080d17 !important;
	-webkit-text-fill-color: #080d17;
	color-scheme: light;
	margin: 0 !important;
	opacity: 1 !important;
}
.apx-ft__open,
.apx-ft__close {
	color: #080d17 !important;
	-webkit-text-fill-color: #080d17;
	white-space: nowrap;
	line-height: 1;
}
.apx-ft__toggle:checked ~ .apx-ft__btn { border-color: #be4647 !important; box-shadow: 0 0 0 3px #be464714; }
.apx-ft__toggle:checked ~ .apx-ft__btn .apx-ft__chev { transform: rotate(180deg); color: #be4647 !important; }
.apx-ft__toggle:checked ~ .apx-ft__btn .apx-ft__open { display: none !important; }
.apx-ft__toggle:checked ~ .apx-ft__btn .apx-ft__close { display: inline !important; }
.apx-ft__toggle:checked ~ .apx-ft__body { display: block !important; padding-top: 14px; }
.apx-ft__toggle:focus-visible ~ .apx-ft__btn { outline: 2px solid #be4647; outline-offset: 2px; }
