/* ELKA Filtr velikostí */
.esf {
	--esf-accent: #2f3a45;
	--esf-line: #e2dcd5;
	--esf-bg: #fff;
	--esf-text: #2f3a45;
	--esf-muted: #7b8590;
	--esf-radius: 10px;
	color: var(--esf-text);
	font-size: 14px;
	line-height: 1.3;
	transition: opacity .15s ease;
}
.esf *, .esf *::before, .esf *::after { box-sizing: border-box; }
.esf.is-loading { opacity: .55; pointer-events: none; }

.esf__block + .esf__block { margin-top: 22px; }
.esf__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.esf__title { margin: 0; font-size: 1.05em; font-weight: 600; letter-spacing: .01em; }
.esf__subtitle { margin: 12px 0 6px; font-size: .8em; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--esf-muted); }
.esf__hint { margin: 0 0 8px; font-size: .82em; color: var(--esf-muted); }
.esf__group:first-of-type .esf__subtitle { margin-top: 4px; }

/* Výška | Věk switch */
.esf__toggle { display: inline-flex; border: 1px solid var(--esf-line); border-radius: 999px; padding: 2px; background: var(--esf-bg); }
.esf__toggle button {
	appearance: none; border: 0; background: transparent; color: var(--esf-muted); cursor: pointer;
	font: inherit; font-size: .85em; padding: 4px 12px; border-radius: 999px; min-height: 28px;
}
.esf__toggle button[aria-pressed="true"] { background: var(--esf-accent); color: #fff; }
.esf__toggle button:focus-visible { outline: 2px solid var(--esf-accent); outline-offset: 2px; }

/* hint text follows the mode */
.esf .esf-hint-a { display: none; }
.esf[data-mode="age"] .esf-hint-h { display: none; }
.esf[data-mode="age"] .esf-hint-a { display: inline; }

/* chips */
.esf__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.esf-chip {
	position: relative;
	display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
	min-width: 52px; min-height: 48px; padding: 6px 12px;
	border: 1px solid var(--esf-line); border-radius: var(--esf-radius);
	background: var(--esf-bg); color: var(--esf-text) !important;
	text-decoration: none !important; cursor: pointer; user-select: none;
	transition: border-color .12s, background-color .12s, color .12s, box-shadow .12s;
}
.esf-chip:hover { border-color: var(--esf-accent); }
.esf-chip:focus-visible { outline: 2px solid var(--esf-accent); outline-offset: 2px; }
.esf-chip.is-active { background: var(--esf-accent); border-color: var(--esf-accent); color: #fff !important; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.esf-chip.is-soldout { opacity: .4; cursor: not-allowed; background: transparent; border-style: dashed; }
.esf-chip.is-soldout .esf-l { text-decoration: line-through; }
.esf-chip.is-soldout:hover { border-color: var(--esf-line); }

.esf-l { display: block; white-space: nowrap; }
.esf-l--m, .esf-l--d { font-size: 1.08em; font-weight: 600; }
.esf-l--a { font-size: .74em; font-weight: 400; opacity: .72; margin-top: 1px; }
/* age mode: swap emphasis of the two lines */
.esf[data-mode="age"] .esf-l--a { order: -1; font-size: 1.02em; font-weight: 600; opacity: 1; margin: 0 0 1px; }
.esf[data-mode="age"] .esf-l--d { font-size: .74em; font-weight: 400; opacity: .72; }

.esf-n {
	position: absolute; top: -7px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 9px; background: #fff; border: 1px solid var(--esf-line); color: var(--esf-muted);
	font-size: 10.5px; line-height: 16px; text-align: center; font-weight: 500;
}
.esf-chip.is-active .esf-n { border-color: var(--esf-accent); color: var(--esf-accent); }

/* tag pills */
.esf-chip--tag { flex-direction: row; min-height: 36px; min-width: 0; padding: 4px 14px; border-radius: 999px; gap: 6px; }
.esf-chip--tag .esf-l { font-size: .95em; font-weight: 500; }
.esf-chip--tag .esf-n { position: static; border: 0; background: transparent; min-width: 0; padding: 0; height: auto; line-height: inherit; font-size: .78em; opacity: .7; }
.esf-chip--tag.is-active .esf-n { color: #fff; }
.esf-chip--extra[hidden] { display: none; }

.esf__more { appearance: none; border: 0; background: none; padding: 8px 0 0; font: inherit; font-size: .88em; color: var(--esf-accent); text-decoration: underline; cursor: pointer; }

.esf__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--esf-line); font-size: .88em; }
.esf__total { color: var(--esf-muted); }
.esf__reset { color: var(--esf-accent) !important; text-decoration: underline !important; }

@media (max-width: 480px) {
	.esf-chip { min-height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
	.esf, .esf-chip { transition: none; }
}

/* product grid while an AJAX update is in flight */
.esf-swapping { opacity: .45; transition: opacity .15s ease; pointer-events: none; }
