/**
 * JL Content Fields Filter - UIkit Offcanvas Template Styles
 *
 * @version          3.0.0
 * @author           Joomline / Adapted for J2Store by Senso Media
 * @copyright    (C) 2017-2023 Arkadiy Sedelnikov, Sergey Tolkachyov, Joomline. All rights reserved.
 * @license          GNU General Public License version 2 or later; see LICENSE.txt
 */

/* Container principal */
.jlmf-offcanvas-trigger-wrapper {
	margin-bottom: 15px;
}

/* Bouton déclencheur */
.jlmf-filter-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.jlmf-filter-button .uk-badge {
	background: #fff;
	color: #c56e60 !important;
	font-weight: bold;
}

/* Compteur de produits */
.jlmf-products-count {
	margin: 10px 0;
	font-size: 0.95em;
	color: #666;
}

.jlmf-products-count strong {
	color: #333;
	font-size: 1.1em;
}

/* Container des filtres actifs */
.jlmf-active-filters {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 10px 0;
}

/* Étiquette de filtre actif */
.jlmf-filter-tag {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	background: #FCEDA4;
	border-radius: 20px;
	font-size: 0.85em;
	color: #333;
	transition: background 0.2s;
	box-shadow: 0 0 11px rgba(0, 0, 0, .15);
}

/* Label du filtre */
.jlmf-filter-tag-label {
	font-weight: 600;
	color: #000;
}

/* Valeur du filtre */
.jlmf-filter-tag-value {
	max-width: 150px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Bouton supprimer un filtre */
.jlmf-filter-tag-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	background: #ccc;
	border-radius: 50%;
	color: #fff;
	font-size: 12px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s;
	border: none;
	padding: 0;
}

.jlmf-filter-tag-remove:hover {
	background: #C56E60;
}

/* Bouton "Tout supprimer" */
.jlmf-filter-tag-remove-all {
	background: #C56E60;
	color: #fff;
	cursor: pointer;
}

.jlmf-filter-tag-remove-all:hover {
	background: #ad5446;
}

/* Header de l'offcanvas */
.jlmf-offcanvas-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 20px;
	background: #f8f8f8;
	border-bottom: 1px solid #e5e5e5;
	flex-shrink: 0; /* Ne pas rétrécir le header */
}

.jlmf-offcanvas-header h3 {
	margin: 0;
	font-size: 1.2em;
}

/* Structure de l'offcanvas bar avec flexbox */
.jlmf-offcanvas-bar {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding:0 !important;
}

/* Corps de l'offcanvas (scrollable) */
.jlmf-offcanvas-body {
	padding: 20px;
	flex: 1; /* Prend tout l'espace disponible */
	overflow-y: auto; /* Scrollable si le contenu dépasse */
	overflow-x: hidden;
}

/* Footer de l'offcanvas (sticky en bas) */
.jlmf-offcanvas-footer {
	flex-shrink: 0; /* Ne pas rétrécir le footer */
	padding: 15px 20px;
	background: #fff;
	border-top: 1px solid #e5e5e5;
	box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
}

/* Boutons dans le footer */
.jlmf-offcanvas-buttons {
	display: flex;
	gap: 10px;
	align-items: center;
}

.jlmf-offcanvas-button-wrapper {
	flex: 0; /* Ne pas étendre */
}

/* Bouton primaire dans le footer */
.jlmf-offcanvas-buttons .jlmf-button {
	flex: 1; /* Bouton principal prend plus d'espace */
	min-width: 120px;
}

/* Bouton reset dans le footer */
.jlmf-offcanvas-buttons .jlmf-link {
	white-space: nowrap;
}

/* Responsive */
@media (max-width: 480px) {
	.jlmf-filter-tag-value {
		max-width: 100px;
	}
	
	.jlmf-filter-tag {
		font-size: 0.8em;
		padding: 3px 8px;
	}
}