/* ПВАМ.РФ: оформление надстройки над Mega Filter (см. pvam-filter.js) */

/* исходный список Mega Filter скрыт, им управляют кружки и кнопки; чекбоксы остаются в DOM */
.pvam-f .mfilter-content-wrapper { display: none !important; }

.pvam-ui { padding: 12px 10px 14px; box-sizing: border-box; }
.pvam-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 2px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #667080; }
.pvam-h span { font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.pvam-h:not(:first-child) { margin-top: 14px; }

/* кружки цвета */
.pvam-sws { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 8px 6px; }
.pvam-sw { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 58px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; }
.pvam-dot { position: relative; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(0,0,0,.35); box-sizing: border-box; transition: transform .12s, box-shadow .12s; }
.pvam-sw:hover .pvam-dot { transform: scale(1.08); }
.pvam-sw:focus-visible { outline: 2px solid #0b4ea2; outline-offset: 2px; border-radius: 8px; }
.pvam-sw[aria-pressed="true"] .pvam-dot { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0b4ea2; }
.pvam-sw[aria-pressed="true"] .pvam-dot::after { content: ""; position: absolute; left: 11px; top: 6px; width: 8px; height: 14px; border: solid var(--chk, #fff); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.pvam-sw[disabled] { cursor: default; opacity: .32; }
.pvam-sw[disabled]:hover .pvam-dot { transform: none; }
.pvam-sw small { min-height: 11px; font-size: 11px; line-height: 1; color: #667080; font-variant-numeric: tabular-nums; }
.pvam-none { background: repeating-linear-gradient(135deg, #fff 0 5px, #d8dce2 5px 7px); }

/* образец провода */
.pvam-prev { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px 12px; min-height: 54px; border: 1px dashed #cdd2da; border-radius: 10px; background: #f6f7f9; box-sizing: border-box; }
.pvam-wire { flex: 0 0 90px; height: 18px; border-radius: 9px; border: 1px solid rgba(0,0,0,.3); box-shadow: inset 0 -4px 5px rgba(0,0,0,.14), inset 0 3px 4px rgba(255,255,255,.25); }
.pvam-wire-empty { background: repeating-linear-gradient(135deg, #dfe2e7 0 7px, #eceef1 7px 10px); }
.pvam-pt { font-size: 12.5px; line-height: 1.3; color: #667080; }
.pvam-pt b { display: block; font-size: 14px; color: #1d232b; }

/* кнопки-чипы */
.pvam-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pvam-chip { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 54px; height: 42px; padding: 0 12px; border: 1px solid #cdd2da; border-radius: 10px; background: #fff; color: #1d232b; font-weight: 600; font-size: 14px; line-height: 1.1; font-family: inherit; cursor: pointer; font-variant-numeric: tabular-nums; }
.pvam-chip small { font-weight: 400; font-size: 10.5px; line-height: 1; color: #667080; }
.pvam-chip:hover { border-color: #0b4ea2; }
.pvam-chip:focus-visible { outline: 2px solid #0b4ea2; outline-offset: 2px; }
.pvam-chip[aria-pressed="true"] { background: #0b4ea2; border-color: #0b4ea2; color: #fff; }
.pvam-chip[aria-pressed="true"] small { color: #fff; opacity: .85; }
.pvam-chip[disabled] { opacity: .35; cursor: default; }
.pvam-chip[disabled]:hover { border-color: #cdd2da; }

/* выбранное сверху */
.pvam-active { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 10px; }
.pvam-active[hidden] { display: none; }
.pvam-ac { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 11px; border: 0; border-radius: 999px; background: #e3edf9; color: #1d232b; font-weight: 500; font-size: 13px; line-height: 1.2; font-family: inherit; cursor: pointer; text-align: left; }
.pvam-ac i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: #667080; font-style: normal; font-size: 15px; line-height: 1; flex: none; }
.pvam-ac:hover i { color: #0b4ea2; }
.pvam-reset { border: 0; background: none; color: #0b4ea2; font-weight: 500; font-size: 13px; line-height: 1.2; font-family: inherit; cursor: pointer; padding: 4px 2px; }
.pvam-reset:hover { text-decoration: underline; }

/* длинные списки, которые остаются списками (бренды и т.п.): выше и с заметной полосой прокрутки */
.mfilter-content-wrapper.mfilter-iscroll { max-height: 320px !important; }
.mfilter-box .scroll-element.scroll-y { width: 12px !important; }
.mfilter-box .scroll-element.scroll-y .scroll-bar { width: 8px !important; }

@media (max-width: 480px) {
	.pvam-dot { width: 36px; height: 36px; }
	.pvam-sw[aria-pressed="true"] .pvam-dot::after { left: 12px; top: 7px; }
	.pvam-sws { grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .pvam-dot { transition: none; } }
