/* AFOX.SU · конфигуратор сервера (/sborka-servera). Токены --af-* — из темы, у каждого var() есть запасное значение. */
.afsb { --afsb-top: var(--scroll-padding-top, 146px); color: var(--af-fg-1, #1f2937); }
.afsb .visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
html.afsb-lock, html.afsb-lock body { overflow: hidden; }
.afsb.is-busy .afsb-summary, .afsb.is-busy .afsb__slots { opacity: .72; transition: opacity .15s; }

/* ── шапка ── */
.afsb-hero { margin-bottom: 1.25rem; }
.afsb-hero__title { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 700; margin: 0 0 .5rem; letter-spacing: -.01em; }
.afsb-hero__lead { color: var(--af-fg-2, #475569); max-width: 820px; margin: 0; line-height: 1.5; }
.afsb-hero__alt { margin: .5rem 0 0; font-size: .9rem; color: var(--af-fg-3, #64748b); }
.afsb-hero__alt a { color: var(--af-primary-700, #1556b3); font-weight: 500; }

/* ── автоподбор ── */
.afsb-auto { border: 1px solid var(--af-primary-100, #d6e6fc); background: var(--af-primary-50, #eaf2fe); border-radius: var(--af-r-lg, 14px); padding: 1.1rem 1.25rem; margin-bottom: 1.5rem; }
.afsb-auto__title { font-size: 1.15rem; font-weight: 700; margin: 0 0 .25rem; }
.afsb-auto__sub { color: var(--af-fg-2, #475569); font-size: .9rem; margin: 0 0 .9rem; max-width: 760px; }
.afsb-auto__profiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; margin-bottom: .75rem; }
.afsb-choice { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; text-align: left; padding: .6rem .8rem; border: 1px solid var(--af-line, #e5e7eb); border-radius: var(--af-r-md, 10px); background: var(--af-bg, #fff); color: var(--af-fg-1, #1f2937); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.afsb-choice b { font-weight: 600; font-size: .93rem; }
.afsb-choice span { font-size: .77rem; color: var(--af-fg-3, #64748b); }
.afsb-choice:hover { border-color: var(--af-primary, #1d6fe8); }
.afsb-choice.is-active { border-color: var(--af-primary, #1d6fe8); box-shadow: 0 0 0 2px var(--af-primary, #1d6fe8) inset; }
.afsb-auto__row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.afsb-auto__presets { display: flex; flex-wrap: wrap; gap: .4rem; }
.afsb-pill { border: 1px solid var(--af-line, #e5e7eb); background: var(--af-bg, #fff); border-radius: var(--af-r-pill, 999px); padding: .45rem .85rem; font-size: .88rem; font-weight: 500; cursor: pointer; color: var(--af-fg-1, #1f2937); }
.afsb-pill:hover, .afsb-pill.is-active { border-color: var(--af-primary, #1d6fe8); color: var(--af-primary-700, #1556b3); }
.afsb-pill.is-active { background: var(--af-primary-100, #d6e6fc); }
.afsb-auto__input { display: inline-flex; align-items: center; gap: .35rem; margin: 0; background: var(--af-bg, #fff); border: 1px solid var(--af-line, #e5e7eb); border-radius: var(--af-r-sm, 8px); padding: 0 .7rem; height: 40px; }
.afsb-auto__input input { border: 0; outline: 0; width: 9.5rem; font: inherit; background: transparent; }
.afsb-auto__input:focus-within { border-color: var(--af-primary, #1d6fe8); box-shadow: 0 0 0 3px rgba(29, 111, 232, .18); }
.afsb-auto__go { height: 40px; }
.afsb-auto__msg { font-size: .9rem; margin-top: .6rem; }
.afsb-auto__msg:empty { margin: 0; }

/* ── сетка и режимы ── */
.afsb__grid { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 1.5rem; align-items: start; }
.afsb-mode { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .75rem; }
.afsb-mode__tab { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; text-align: left; padding: .6rem .85rem; border: 1px solid var(--af-line, #e5e7eb); border-radius: var(--af-r-md, 10px); background: var(--af-bg, #fff); cursor: pointer; color: var(--af-fg-1, #1f2937); }
.afsb-mode__tab b { font-weight: 600; }
.afsb-mode__tab span { font-size: .78rem; color: var(--af-fg-3, #64748b); }
.afsb-mode__tab.is-active { border-color: var(--af-primary, #1d6fe8); box-shadow: 0 0 0 2px var(--af-primary, #1d6fe8) inset; }
.afsb__howto { color: var(--af-fg-2, #475569); font-size: .92rem; margin: 0 0 .9rem; }
.afsb__section { font-size: 1.1rem; font-weight: 700; margin: 1.6rem 0 .75rem; padding-top: 1rem; border-top: 1px solid var(--af-line, #e5e7eb); }
.afsb__slots > .afsb__section:not([hidden]) ~ .afsb__section { margin-top: 1.6rem; }

/* ── слот ── */
.afsb-slot { border: 1px solid var(--af-line, #e5e7eb); border-radius: var(--af-r-lg, 14px); padding: .95rem 1.1rem; margin-bottom: .75rem; background: var(--af-bg, #fff); scroll-margin-top: var(--afsb-top); transition: border-color .15s; }
.afsb-slot.is-done { border-color: var(--af-primary-100, #d6e6fc); }
.afsb-slot.has-error { border-color: #f3b4b4; }
.afsb-slot.is-na, .afsb-slot.is-incl { background: var(--af-bg-alt, #f7f8fa); }
.afsb-slot.is-picking { border-color: var(--af-primary, #1d6fe8); box-shadow: var(--af-sh-2, 0 1px 3px rgba(15, 23, 42, .06), 0 4px 12px rgba(15, 23, 42, .04)); }
.afsb-slot__head { display: flex; align-items: flex-start; gap: .7rem; }
.afsb-slot__step { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--af-bg-soft, #f1f3f6); color: var(--af-fg-3, #64748b); font-weight: 700; font-size: .85rem; margin-top: .05rem; }
.afsb-slot.is-done .afsb-slot__step { background: var(--af-primary, #1d6fe8); color: #fff; }
.afsb-slot__titles { flex: 1 1 auto; min-width: 0; }
.afsb-slot__title { font-size: 1.02rem; font-weight: 600; margin: .2rem 0 0; }
.afsb-slot__hint { font-size: .82rem; color: var(--af-fg-3, #64748b); margin: .2rem 0 0; line-height: 1.4; }
.afsb-slot.is-done .afsb-slot__hint { display: none; }
.afsb-slot__state { font-size: .84rem; color: var(--af-fg-2, #475569); margin: .3rem 0 0; line-height: 1.4; }
.afsb-slot__badge { flex: 0 0 auto; }
.afsb-badge { display: inline-block; font-size: .74rem; padding: .15rem .5rem; border-radius: var(--af-r-pill, 999px); background: var(--af-bg-soft, #f1f3f6); color: var(--af-fg-2, #475569); white-space: nowrap; }
.afsb-badge--ok { background: #e7f6ec; color: #15803d; }
.afsb-badge--need { background: #fff4e5; color: #9a4a00; }
.afsb-slot__actions { margin-top: .7rem; }
.afsb-slot__actions:empty, .afsb-slot.is-picking .afsb-slot__actions { display: none; }

.afsb-slot__issues, .afsb-issues { list-style: none; margin: .6rem 0 0; padding: 0; }
.afsb-issues { margin: 0 0 .6rem; }
.afsb-issue { position: relative; font-size: .82rem; line-height: 1.4; padding: .35rem .55rem .35rem 1.55rem; border-radius: var(--af-r-sm, 8px); margin-top: .3rem; }
.afsb-issue::before { position: absolute; left: .55rem; top: .35rem; font-weight: 700; }
.afsb-issue--errors { background: #fdecec; color: #b42318; }
.afsb-issue--errors::before { content: "!"; }
.afsb-issue--warns { background: #fff6e6; color: #8a4b00; }
.afsb-issue--warns::before { content: "!"; }
.afsb-issue--notes { background: var(--af-bg-alt, #f7f8fa); color: var(--af-fg-2, #475569); }
.afsb-issue--notes::before { content: "i"; font-style: italic; }

/* ── выбранная позиция ── */
.afsb-chosen { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: .75rem; align-items: center; margin-top: .75rem; }
.afsb-chosen + .afsb-chosen { padding-top: .75rem; border-top: 1px dashed var(--af-line, #e5e7eb); }
.afsb-chosen__img img, .afsb-noimg { width: 56px; height: 56px; object-fit: contain; border-radius: var(--af-r-sm, 8px); border: 1px solid var(--af-line-soft, #eef0f3); background: #fff; display: block; }
.afsb-chosen__name { font-weight: 600; line-height: 1.3; color: var(--af-fg-1, #1f2937); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.afsb-chosen__name:hover { color: var(--af-primary-700, #1556b3); text-decoration: underline; }
.afsb-chosen__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .75rem; margin-top: .3rem; }
.afsb-chosen__price { font-weight: 700; }
.afsb-chosen__x { font-weight: 600; color: var(--af-fg-2, #475569); }
.afsb-chosen__ctrl { display: flex; align-items: center; gap: .6rem; }
.afsb-x { width: 32px; height: 32px; border: 1px solid var(--af-line, #e5e7eb); border-radius: 50%; background: #fff; color: var(--af-fg-3, #64748b); font-size: 1.1rem; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.afsb-x:hover { border-color: #dc2626; color: #dc2626; }
.afsb-link { border: 0; background: none; padding: 0; color: var(--af-primary-700, #1556b3); font: inherit; font-size: .88rem; font-weight: 500; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.afsb-link:hover { color: var(--af-primary, #1d6fe8); }
.afsb-qty { display: inline-flex; align-items: center; gap: .3rem; }
.afsb-qty__btn { width: 30px; height: 30px; border: 1px solid var(--af-line, #e5e7eb); border-radius: var(--af-r-sm, 8px); background: #fff; font-size: 1rem; line-height: 1; cursor: pointer; }
.afsb-qty__btn:hover:not(:disabled) { border-color: var(--af-primary, #1d6fe8); color: var(--af-primary, #1d6fe8); }
.afsb-qty__btn:disabled { opacity: .45; cursor: default; }
.afsb-qty__val { min-width: 1.6rem; text-align: center; font-weight: 600; }

/* ── чипы, состояние, наличие ── */
.afsb-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; margin: .35rem 0 0; padding: 0; }
.afsb-chips li { font-size: .74rem; line-height: 1.2; padding: .18rem .45rem; border-radius: var(--af-r-xs, 6px); background: var(--af-bg-soft, #f1f3f6); color: var(--af-fg-2, #475569); }
.afsb-cond { display: inline-block; margin-top: .3rem; font-size: .72rem; font-weight: 600; padding: .12rem .45rem; border-radius: var(--af-r-xs, 6px); background: #fff4e5; color: #9a4a00; }
.afsb-cond--used { background: #f3e8ff; color: #6b21a8; }
.afsb-cond--oem { background: var(--af-bg-soft, #f1f3f6); color: var(--af-fg-2, #475569); }
.afsb-stock { font-size: .76rem; font-weight: 500; white-space: nowrap; }
.afsb-stock--in { color: #15803d; }
.afsb-stock--low { color: #9a4a00; }

/* ── выбор варианта ── */
.afsb-picker { margin-top: .85rem; border-top: 1px solid var(--af-line, #e5e7eb); padding-top: .8rem; }
.afsb-picker__head { display: none; }
.afsb-picker__tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin-bottom: .55rem; }
.afsb-picker__search { flex: 1 1 240px; min-width: 0; height: 40px; border: 1px solid var(--af-line, #e5e7eb); border-radius: var(--af-r-sm, 8px); padding: 0 .75rem; font: inherit; }
.afsb-picker__search:focus, .afsb-picker__sort:focus { outline: none; border-color: var(--af-primary, #1d6fe8); box-shadow: 0 0 0 3px rgba(29, 111, 232, .18); }
.afsb-picker__sort { height: 40px; border: 1px solid var(--af-line, #e5e7eb); border-radius: var(--af-r-sm, 8px); padding: 0 .6rem; font: inherit; background: #fff; }
.afsb-facets { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .55rem; }
.afsb-fchip { border: 1px solid var(--af-line, #e5e7eb); background: #fff; border-radius: var(--af-r-pill, 999px); padding: .28rem .7rem; font-size: .8rem; cursor: pointer; color: var(--af-fg-2, #475569); }
.afsb-fchip:hover { border-color: var(--af-primary, #1d6fe8); }
.afsb-fchip.is-on { border-color: var(--af-primary, #1d6fe8); background: var(--af-primary-100, #d6e6fc); color: var(--af-primary-700, #1556b3); font-weight: 600; }
.afsb-picker__applied { font-size: .82rem; color: #15803d; background: #effaf2; border-radius: var(--af-r-sm, 8px); padding: .4rem .6rem; margin-bottom: .5rem; line-height: 1.45; }
.afsb-picker__applied .afsb-link { font-size: .82rem; margin-left: .35rem; }
.afsb-picker__count { font-size: .8rem; color: var(--af-fg-3, #64748b); margin-bottom: .4rem; }
.afsb-picker__count:empty { display: none; }
.afsb-picker__list { display: grid; gap: .5rem; max-height: min(64vh, 680px); overflow-y: auto; overscroll-behavior: contain; padding-right: .2rem; }
.afsb-picker__loading, .afsb-picker__empty { color: var(--af-fg-3, #64748b); font-size: .9rem; padding: .8rem 0; }
.afsb-picker__more { margin-top: .6rem; width: 100%; }

.afsb-cand { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: .75rem; align-items: center; border: 1px solid var(--af-line, #e5e7eb); border-radius: var(--af-r-md, 10px); padding: .55rem .7rem; background: #fff; }
.afsb-cand:hover { border-color: var(--af-primary-100, #d6e6fc); }
.afsb-cand.is-chosen { border-color: var(--af-primary, #1d6fe8); background: var(--af-primary-50, #eaf2fe); }
.afsb-cand.is-bad { opacity: .8; }
.afsb-cand__img img, .afsb-cand .afsb-noimg { width: 64px; height: 64px; object-fit: contain; display: block; }
.afsb-cand__name { font-size: .9rem; font-weight: 600; line-height: 1.3; color: var(--af-fg-1, #1f2937); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.afsb-cand__name:hover { color: var(--af-primary-700, #1556b3); text-decoration: underline; }
.afsb-cand__note { font-size: .78rem; margin: .3rem 0 0; color: var(--af-fg-2, #475569); line-height: 1.35; }
.afsb-cand__bad { font-size: .78rem; margin: .3rem 0 0; color: #b42318; font-weight: 500; line-height: 1.35; }
.afsb-cand__side { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; text-align: right; }
.afsb-cand__price { font-weight: 700; white-space: nowrap; }
.afsb-pick { padding: .4rem .95rem; font-size: .88rem; margin-top: .15rem; white-space: nowrap; }

/* ── сводка ── */
.afsb__summary { position: sticky; top: calc(var(--afsb-top) + .5rem); }
.afsb-summary { display: flex; flex-direction: column; border: 1px solid var(--af-line, #e5e7eb); border-radius: var(--af-r-lg, 14px); padding: 1.1rem; background: var(--af-bg-alt, #f7f8fa); max-height: calc(100vh - var(--afsb-top) - 6rem); overflow: hidden; }
.afsb-summary__scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 -.45rem; padding: 0 .45rem; }
.afsb-summary__foot { flex: 0 0 auto; border-top: 1px solid var(--af-line, #e5e7eb); margin-top: .2rem; padding-top: .1rem; }
.afsb-summary__head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; }
.afsb-summary__title { font-size: 1.1rem; font-weight: 700; margin: 0; }
.afsb-status { font-size: .88rem; font-weight: 600; border-radius: var(--af-r-sm, 8px); }
.afsb-status:empty { display: none; }
.afsb-status--ok { color: #15803d; background: #e7f6ec; padding: .5rem .65rem; }
.afsb-status--warn { color: #8a4b00; background: #fff4e5; padding: .5rem .65rem; font-weight: 500; }
.afsb-status--warn a { color: inherit; font-weight: 600; }
.afsb-status--err { color: #b42318; background: #fdecec; padding: .5rem .65rem; }
.afsb-ready { display: flex; align-items: center; gap: .6rem; margin: .6rem 0 .3rem; }
.afsb-ready__bar { flex: 1 1 auto; height: 6px; border-radius: 99px; background: var(--af-line, #e5e7eb); overflow: hidden; }
.afsb-ready__bar i { display: block; height: 100%; background: var(--af-primary, #1d6fe8); border-radius: 99px; transition: width .25s; }
.afsb-ready__text { font-size: .78rem; color: var(--af-fg-3, #64748b); white-space: nowrap; }
.afsb-spec { margin: .5rem 0 .4rem; font-size: .82rem; }
.afsb-spec > div { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); gap: .4rem; padding: .2rem 0; }
.afsb-spec dt { color: var(--af-fg-3, #64748b); font-weight: 500; margin: 0; }
.afsb-spec dd { margin: 0; color: var(--af-fg-1, #1f2937); }
.afsb-summary__list { list-style: none; margin: .4rem 0 .6rem; padding: 0; }
.afsb-summary__empty { color: var(--af-fg-3, #64748b); font-size: .88rem; }
.afsb-sum { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .05rem .55rem; align-items: center; padding: .45rem 0; border-bottom: 1px dashed var(--af-line, #e5e7eb); }
.afsb-sum__label { grid-column: 1 / -1; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--af-fg-3, #64748b); }
.afsb-sum__name { font-size: .85rem; line-height: 1.3; color: var(--af-fg-1, #1f2937); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.afsb-sum__name:hover { text-decoration: underline; }
.afsb-sum__price { font-weight: 600; font-size: .85rem; white-space: nowrap; }
.afsb-count { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: .5rem 0; font-size: .86rem; }
.afsb-summary__total { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin: .5rem 0 .15rem; }
.afsb-summary__total strong { font-size: 1.4rem; color: var(--af-fg, #0f172a); }
.afsb-summary__vat { font-size: .78rem; color: var(--af-fg-3, #64748b); margin-bottom: .7rem; }
.afsb-summary__vat:empty { display: none; }
.afsb-summary__actions { display: flex; flex-direction: column; gap: .45rem; }
.afsb-summary__actions .btn { width: 100%; }
.afsb-summary__tools { display: flex; gap: .4rem; margin-top: .6rem; }
.afsb-tool { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: .3rem; height: 36px; border: 1px solid var(--af-line, #e5e7eb); border-radius: var(--af-r-sm, 8px); background: #fff; color: var(--af-fg-2, #475569); font-size: .82rem; cursor: pointer; text-decoration: none; }
.afsb-tool .material-icons { font-size: 17px; }
.afsb-tool:hover:not(:disabled) { border-color: var(--af-primary, #1d6fe8); color: var(--af-primary-700, #1556b3); }
.afsb-tool:disabled { opacity: .5; cursor: default; }
.afsb-saveform { display: flex; gap: .4rem; margin-top: .5rem; }
.afsb-saveform input { flex: 1 1 auto; min-width: 0; height: 36px; border: 1px solid var(--af-line, #e5e7eb); border-radius: var(--af-r-sm, 8px); padding: 0 .6rem; font: inherit; }
.afsb-saveform .btn { height: 36px; padding: 0 .8rem; }
.afsb-summary__msg { margin-top: .5rem; font-size: .84rem; line-height: 1.4; }
.afsb-summary__msg:empty { display: none; }
.afsb-summary__mylink { display: inline-block; margin-top: .5rem; font-size: .84rem; color: var(--af-primary-700, #1556b3); }

/* ── липкая панель (телефон) ── */
.afsb-bar { display: none; }

/* ── тост ── */
.afsb-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 1050; max-width: min(600px, calc(100vw - 32px)); background: var(--af-fg, #0f172a); color: #fff; padding: .7rem 1rem; border-radius: var(--af-r-md, 10px); box-shadow: var(--af-sh-4, 0 24px 48px rgba(15, 23, 42, .12)); font-size: .88rem; line-height: 1.45; opacity: 0; transition: transform .25s, opacity .25s; pointer-events: none; }
.afsb-toast.is-on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.afsb-toast .afsb-link { color: #9cc3ff; margin-left: .35rem; }

/* ── вопросы ── */
.afsb-faq { margin-top: 2rem; max-width: 900px; }
.afsb-faq__item { border-bottom: 1px solid var(--af-line, #e5e7eb); padding: .8rem 0; }
.afsb-faq__item summary { cursor: pointer; font-weight: 600; }
.afsb-faq__item p { margin: .5rem 0 0; color: var(--af-fg-2, #475569); line-height: 1.5; }

@media (prefers-reduced-motion: reduce) { .afsb-toast, .afsb-ready__bar i { transition: none; } }

/* ── планшет и телефон ── */
@media (max-width: 1199.98px) {
  .afsb-auto__profiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .afsb__grid { grid-template-columns: 1fr; }
  .afsb__summary { position: static; }
  .afsb-summary { max-height: none; overflow: visible; scroll-margin-top: var(--afsb-top); }
  .afsb-summary__scroll { overflow: visible; margin: 0; padding: 0; }
  .afsb-auto__profiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .afsb.has-bar { padding-bottom: 76px; }
  .afsb-bar:not([hidden]) { display: flex; align-items: center; gap: .6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; background: #fff; border-top: 1px solid var(--af-line, #e5e7eb); box-shadow: 0 -6px 18px rgba(15, 23, 42, .08); padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom, 0px)); }
  .afsb-bar__info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; text-decoration: none; color: var(--af-fg-1, #1f2937); }
  .afsb-bar__count { font-size: .74rem; color: var(--af-fg-3, #64748b); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .afsb-bar__total { font-size: 1.1rem; }
  .afsb-bar__cta { flex: 0 0 auto; }
  html.afsb-has-bar .afx-contact-fab { bottom: 88px !important; } /* у кнопки инлайновый bottom — как у липкой корзины карточки */
  .afsb-toast { bottom: 88px; }
  .afsb-picker.is-sheet { position: fixed; inset: 0; z-index: 1045; margin: 0; border: 0; padding: 0; background: #fff; display: flex; flex-direction: column; }
  .afsb-picker.is-sheet .afsb-picker__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .75rem 1rem; border-bottom: 1px solid var(--af-line, #e5e7eb); }
  .afsb-picker__title { font-size: 1.05rem; }
  .afsb-picker__close { width: 40px; height: 40px; border: 0; background: var(--af-bg-soft, #f1f3f6); border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer; }
  .afsb-picker.is-sheet .afsb-picker__tools, .afsb-picker.is-sheet .afsb-facets, .afsb-picker.is-sheet .afsb-picker__applied, .afsb-picker.is-sheet .afsb-picker__count, .afsb-picker.is-sheet .afsb-picker__empty { margin-left: 1rem; margin-right: 1rem; }
  .afsb-picker.is-sheet .afsb-picker__tools { margin-top: .7rem; }
  .afsb-picker.is-sheet .afsb-picker__list { flex: 1 1 auto; max-height: none; padding: 0 1rem .5rem; }
  .afsb-picker.is-sheet .afsb-picker__more { margin: .5rem 1rem calc(.75rem + env(safe-area-inset-bottom, 0px)); width: auto; }
}
@media (max-width: 575.98px) {
  .afsb-auto { padding: 1rem; }
  .afsb-auto__profiles { grid-template-columns: 1fr 1fr; }
  .afsb-auto__row { flex-direction: column; align-items: stretch; }
  .afsb-auto__input, .afsb-auto__input input, .afsb-auto__go { width: 100%; }
  .afsb-mode { grid-template-columns: 1fr; }
  .afsb-slot { padding: .85rem .9rem; }
  .afsb-chosen { grid-template-columns: 48px minmax(0, 1fr); }
  .afsb-chosen__img img, .afsb-chosen .afsb-noimg { width: 48px; height: 48px; }
  .afsb-chosen__ctrl { grid-column: 1 / -1; justify-content: flex-end; }
  .afsb-cand { grid-template-columns: 52px minmax(0, 1fr); }
  .afsb-cand__img img, .afsb-cand .afsb-noimg { width: 52px; height: 52px; }
  .afsb-cand__side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .afsb-picker__search { flex-basis: 100%; }
  .afsb-spec > div { grid-template-columns: 1fr; gap: 0; }
}
