/*
 * @package     RadicalMart 3 Filter Module
 * @subpackage  mod_radicalmart3_filter
 * @version     1.0.0
 * @author      Domanov Maxim
 * @copyright   Copyright (c) 2025 Domanov Maxim. All rights reserved.
 * @license     GNU/GPL license: https://www.gnu.org/copyleft/gpl.html
 * @link        https://dmsite.ru/
 */

/* Hide unavailable options in "hide" mode */
.mod_radicalmart3_filter[data-show-empty-options="hide"] li.rmf-unavailable,
.mod_radicalmart3_filter[data-show-empty-options="hide"] li[data-rmf-hidden="1"],
.mod_radicalmart3_filter[data-show-empty-options="hide"] .form-check.rmf-unavailable,
.mod_radicalmart3_filter[data-show-empty-options="hide"] .form-check[data-rmf-hidden="1"] {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 0 !important;
	position: absolute !important;
	left: -9999px !important;
	width: 0 !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

/* Show checked unavailable options (allow unchecking) */
.mod_radicalmart3_filter[data-show-empty-options="hide"] li.rmf-unavailable input:checked,
.mod_radicalmart3_filter[data-show-empty-options="hide"] li[data-rmf-hidden="1"] input:checked {
	display: block !important;
	visibility: visible !important;
	height: auto !important;
	overflow: visible !important;
	margin: inherit !important;
	padding: inherit !important;
	line-height: inherit !important;
	position: static !important;
	left: auto !important;
	width: auto !important;
	opacity: 1 !important;
	pointer-events: auto !important;
}

/* Disable unavailable options in "disable" mode */
.mod_radicalmart3_filter[data-show-empty-options="disable"] .form-check.unavailable,
.mod_radicalmart3_filter[data-show-empty-options="disable"] .form-check.rmf-unavailable,
.mod_radicalmart3_filter[data-show-empty-options="disable"] input.rmf-unavailable,
.mod_radicalmart3_filter[data-show-empty-options="disable"] input[data-unavailable="1"] {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

.mod_radicalmart3_filter[data-show-empty-options="disable"] .form-check.unavailable label,
.mod_radicalmart3_filter[data-show-empty-options="disable"] .form-check.rmf-unavailable label {
	cursor: not-allowed;
	color: #6c757d;
}

/* Hide extra options by default */
.radicalmart-fields-standard-filter_checkboxes .extra-option.d-none {
	display: none !important;
}

/* Show More button styles */
.radicalmart-fields-standard-filter_checkboxes .show-more-btn {
	font-size: 0.875rem;
	text-decoration: none;
	color: #0d6efd;
	cursor: pointer;
}

.radicalmart-fields-standard-filter_checkboxes .show-more-btn:hover {
	text-decoration: underline;
	color: #0a58ca;
}

