/* ==========================================================================
   VOOBO - Favorites Multi-Inquiry Widget & Particle System
   (Нейрочастицы, плавающий док избранного, умные уведомления и мульти-запрос)
   ========================================================================== */

/* 1. НЕЙРОЧАСТИЦЫ (Quantum Particles Spark) */
.vb-particle-burst {
    position: fixed;
    pointer-events: none;
    z-index: 99999;
}

.vb-particle {
    position: absolute;
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 20px rgba(255, 255, 255, 0.4);
    pointer-events: none;
    will-change: transform, opacity;
    animation: vbParticleAnim 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.vb-fav-ripple {
    position: fixed;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.7);
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%) scale(0.2);
    animation: vbRippleAnim 0.45s ease-out forwards;
}

@keyframes vbParticleAnim {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--dx), var(--dy)) scale(0.1);
    }
}

@keyframes vbRippleAnim {
    0% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(0.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2.8);
    }
}

/* 2. ПЛАВАЮЩИЙ ДОК ИЗБРАННОГО (Floating Favorites Dock) */
.vb-fav-dock {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 990;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px 8px 16px;
    background: rgba(14, 14, 18, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(24px) scale(0.95);
    pointer-events: none;
}

.vb-fav-dock.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.vb-fav-dock:hover {
    background: rgba(22, 22, 28, 0.96);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.8), 0 0 24px rgba(255, 255, 255, 0.08);
}

.vb-fav-dock__left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vb-fav-dock__icon-wrap {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
}

.vb-fav-dock__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9999px;
    background: #FFFFFF;
    color: #0A0A0B;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.vb-fav-dock__stack {
    display: flex;
    align-items: center;
    margin-right: 4px;
}

.vb-fav-dock__avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #18181D;
    border: 1.5px solid #0E0E12;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 600;
    color: #E2E8F0;
    margin-left: -8px;
    overflow: hidden;
}

.vb-fav-dock__avatar:first-child {
    margin-left: 0;
}

.vb-fav-dock__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vb-fav-dock__text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.vb-fav-dock__label {
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: -0.01em;
}

.vb-fav-dock__sub {
    font-size: 11px;
    color: #94A3B8;
}

.vb-fav-dock__btn {
    background: #FFFFFF;
    color: #0A0A0B;
    padding: 7px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vb-fav-dock:hover .vb-fav-dock__btn {
    background: #F1F5F9;
    transform: translateX(2px);
}

/* 3. УМНОЕ УВЕДОМЛЕНИЕ-ПОДСКАЗКА (Smart Tooltip Bubble) */
.vb-fav-tooltip {
    position: fixed;
    bottom: 92px;
    right: 28px;
    z-index: 991;
    width: 320px;
    max-width: calc(100vw - 40px);
    background: rgba(18, 18, 23, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.75), 0 0 30px rgba(255, 255, 255, 0.04);
    opacity: 0;
    transform: translateY(16px) scale(0.96);
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.vb-fav-tooltip.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Стрелочка к доку */
.vb-fav-tooltip::after {
    content: '';
    position: absolute;
    bottom: -7px;
    right: 36px;
    width: 12px;
    height: 12px;
    background: rgba(18, 18, 23, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    transform: rotate(45deg);
}

.vb-fav-tooltip__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.vb-fav-tooltip__tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #CBD5E1;
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 8px;
    border-radius: 9999px;
}

.vb-fav-tooltip__close {
    background: transparent;
    border: none;
    color: #64748B;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 2px;
    transition: color 0.2s ease;
}

.vb-fav-tooltip__close:hover {
    color: #FFFFFF;
}

.vb-fav-tooltip__title {
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 6px;
    line-height: 1.35;
}

.vb-fav-tooltip__desc {
    font-size: 12px;
    color: #94A3B8;
    line-height: 1.5;
    margin-bottom: 14px;
}

.vb-fav-tooltip__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vb-fav-tooltip__btn-open {
    flex: 1;
    background: #FFFFFF;
    color: #0A0A0B;
    border: none;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease;
}

.vb-fav-tooltip__btn-open:hover {
    background: #E2E8F0;
}

.vb-fav-tooltip__btn-dismiss {
    background: rgba(255, 255, 255, 0.06);
    color: #94A3B8;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vb-fav-tooltip__btn-dismiss:hover {
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.16);
}

/* Scoped Box-Sizing to guarantee zero padding blowout and no horizontal scroll */
.vb-modal-backdrop,
.vb-modal-backdrop *,
.vb-modal-backdrop *::before,
.vb-modal-backdrop *::after,
.vb-fav-dock,
.vb-fav-dock *,
.vb-fav-dock *::before,
.vb-fav-dock *::after {
    box-sizing: border-box !important;
}

/* 4. МОДАЛЬНОЕ ОКНО МУЛЬТИ-ЗАПРОСА (Multi-Inquiry Modal) */
.vb-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.vb-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.vb-modal-dialog {
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    background: #0E0E12;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overflow-x: hidden !important;
    transform: scale(0.95) translateY(12px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.vb-modal-backdrop.is-open .vb-modal-dialog {
    transform: scale(1) translateY(0);
}

.vb-modal-header {
    padding: 24px 28px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    flex-shrink: 0;
}

.vb-modal-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94A3B8;
    margin-bottom: 6px;
    display: inline-block;
}

.vb-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

.vb-modal-subtitle {
    font-size: 13px;
    color: #94A3B8;
    line-height: 1.45;
}

.vb-modal-close {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94A3B8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
}

.vb-modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
}

.vb-modal-form-content {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0;
    flex: 1;
    overflow: hidden;
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.vb-modal-body {
    padding: 24px 28px;
    overflow-y: auto;
    overflow-x: hidden !important;
    overscroll-behavior-y: contain;
    overscroll-behavior-x: none !important;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* КРИТИЧНО: Запрет схлопывания контента в линию при сужении высоты экрана */
.vb-modal-body > * {
    flex-shrink: 0 !important;
}

/* Онбординг-подсказка внутри первого добавления */
.vb-modal-onboarding-banner {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.vb-modal-onboarding-icon {
    font-size: 18px;
    line-height: 1;
    margin-top: 1px;
}

.vb-modal-onboarding-text {
    font-size: 12.5px;
    color: #CBD5E1;
    line-height: 1.5;
}

.vb-modal-onboarding-text strong {
    color: #FFFFFF;
}

/* Заголовок списка выбранных компаний */
.vb-fav-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
    width: 100%;
    box-sizing: border-box;
}

.vb-fav-list-counter {
    font-size: 11px;
    font-weight: 500;
    color: #94A3B8;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 9999px;
    line-height: 1.3;
}

/* Список выбранных карточек (Плавный скролл, никогда не схлопывается в 1 линию) */
.vb-fav-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 240px;
    min-height: 60px;
    flex-shrink: 0 !important;
    overflow-y: auto;
    overflow-x: hidden !important;
    overscroll-behavior-y: contain;
    overscroll-behavior-x: none !important;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    padding: 2px;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

.vb-fav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 14px;
    min-height: 54px;
    flex-shrink: 0 !important;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.vb-fav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.16);
}

.vb-fav-item__info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.vb-fav-item__avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 9px;
    background: #18181D;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #CBD5E1;
    overflow: hidden;
    flex-shrink: 0;
}

.vb-fav-item__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vb-fav-item__meta {
    min-width: 0;
    flex: 1;
}

.vb-fav-item__title {
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
    margin-bottom: 2px;
}

.vb-fav-item__company-row {
    font-size: 11.5px;
    color: #94A3B8;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vb-fav-item__company {
    color: #CBD5E1;
}

.vb-fav-item__right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.vb-fav-item__price {
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
    white-space: nowrap;
}

.vb-fav-item__remove {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94A3B8;
    cursor: pointer;
    font-size: 11px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
}

.vb-fav-item__remove:hover {
    background: rgba(248, 113, 113, 0.16);
    border-color: rgba(248, 113, 113, 0.35);
    color: #F87171;
    transform: scale(1.05);
}

/* Премиальный ультратонкий темный скроллбар (Chrome, Edge, Safari, Opera) */
.vb-modal-body::-webkit-scrollbar,
.vb-fav-list::-webkit-scrollbar,
.vb-form-textarea::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.vb-modal-body::-webkit-scrollbar-track,
.vb-fav-list::-webkit-scrollbar-track,
.vb-form-textarea::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 9999px;
    margin: 4px 0;
}

.vb-modal-body::-webkit-scrollbar-thumb,
.vb-fav-list::-webkit-scrollbar-thumb,
.vb-form-textarea::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    transition: background-color 0.2s ease;
}

.vb-modal-body::-webkit-scrollbar-thumb:hover,
.vb-fav-list::-webkit-scrollbar-thumb:hover,
.vb-form-textarea::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.42);
}

.vb-modal-body::-webkit-scrollbar-thumb:active,
.vb-fav-list::-webkit-scrollbar-thumb:active,
.vb-form-textarea::-webkit-scrollbar-thumb:active {
    background: rgba(255, 255, 255, 0.6);
}

/* Firefox фоллбэк без ломания WebKit скролла на Windows Chromium */
@supports not selector(::-webkit-scrollbar) {
    .vb-modal-body,
    .vb-fav-list,
    .vb-form-textarea {
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.22) rgba(255, 255, 255, 0.02);
    }
}

/* Быстрые чипы тем вопросов (Лаконичные с векторными SVG) */
.vb-prompt-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vb-prompt-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    padding: 6px 14px;
    font-size: 12px;
    color: #94A3B8;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    line-height: 1;
}

.vb-prompt-chip svg {
    color: currentColor;
    opacity: 0.85;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.vb-prompt-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.18);
}

.vb-prompt-chip:hover svg {
    opacity: 1;
}

.vb-prompt-chip.is-active {
    background: #FFFFFF;
    color: #0A0A0B;
    font-weight: 600;
    border-color: #FFFFFF;
}

.vb-prompt-chip.is-active svg {
    opacity: 1;
    color: #0A0A0B;
}

/* Поля формы */
.vb-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.vb-form-label {
    font-size: 12px;
    font-weight: 500;
    color: #CBD5E1;
}

.vb-form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 540px) {
    .vb-form-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

.vb-form-input,
.vb-form-textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box !important;
    background: #141418;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    color: #FFFFFF;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vb-form-input:focus,
.vb-form-textarea:focus {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06);
}

.vb-form-textarea {
    resize: vertical;
    min-height: 72px;
    line-height: 1.45;
}

.vb-modal-footer {
    padding: 16px 28px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.vb-modal-privacy {
    font-size: 11px;
    color: #64748B;
    max-width: 280px;
    line-height: 1.35;
}

.vb-modal-submit-btn {
    background: #FFFFFF;
    color: #0A0A0B;
    border: none;
    padding: 12px 24px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15);
}

.vb-modal-submit-btn:hover {
    background: #F1F5F9;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 255, 255, 0.25);
}

/* Экран успеха после отправки */
.vb-modal-success {
    text-align: center;
    padding: 36px 20px;
}

.vb-modal-success__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.vb-modal-success__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.vb-modal-success__desc {
    font-size: 13px;
    color: #94A3B8;
    max-width: 380px;
    margin: 0 auto 24px;
    line-height: 1.5;
}

/* ==========================================================================
   Адаптивность виджета избранного (Мобильная оптимизация)
   ========================================================================== */
@media (max-width: 768px) {
    .vb-fav-dock {
        bottom: 14px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: calc(100vw - 24px);
        padding: 6px 10px 6px 12px;
        gap: 8px;
        justify-content: space-between;
        box-sizing: border-box;
    }

    .vb-fav-dock__left {
        gap: 8px;
        min-width: 0;
        flex: 1;
        overflow: hidden;
    }

    /* Организации на мобилке ПОКАЗЫВАЕМ: компактно и красиво */
    .vb-fav-dock__text {
        display: flex !important;
        flex-direction: column;
        min-width: 0;
        text-align: left;
    }

    .vb-fav-dock__label {
        font-size: 11.5px;
        font-weight: 600;
        color: #FFFFFF;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.25;
    }

    .vb-fav-dock__sub {
        font-size: 10px;
        color: #94A3B8;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
    }

    .vb-fav-dock__avatar {
        width: 22px;
        height: 22px;
        min-width: 22px;
        font-size: 8px;
        margin-left: -5px;
    }

    .vb-fav-dock__btn {
        padding: 7px 12px;
        font-size: 11.5px;
        gap: 4px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .vb-fav-tooltip {
        bottom: 74px;
        right: 14px;
        left: 14px;
        width: auto;
        max-width: calc(100vw - 28px);
        padding: 14px;
        border-radius: 14px;
        box-sizing: border-box;
    }

    .vb-fav-tooltip::after {
        right: 32px;
    }

    .vb-modal-backdrop {
        padding: 0;
        align-items: flex-end;
    }

    .vb-modal-dialog {
        max-height: 90vh;
        border-radius: 20px 20px 0 0;
        border-bottom: none;
        width: 100%;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .vb-modal-header {
        padding: 16px 16px 12px;
        box-sizing: border-box;
    }

    .vb-modal-title {
        font-size: 1.125rem;
    }

    .vb-modal-body {
        padding: 16px 16px;
        gap: 14px;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        overscroll-behavior-y: contain;
        overscroll-behavior-x: none !important;
        touch-action: pan-y;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* На мобилке также строго запрещаем схлопывание списка партнеров в линию */
    .vb-modal-body > * {
        flex-shrink: 0 !important;
    }

    .vb-fav-list {
        max-height: 220px;
        min-height: 60px;
        flex-shrink: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        overscroll-behavior-y: contain;
        overscroll-behavior-x: none !important;
        touch-action: pan-y;
        padding: 2px;
    }

    .vb-fav-item {
        padding: 9px 12px;
        gap: 10px;
        min-height: 52px;
        flex-shrink: 0 !important;
    }

    .vb-fav-item__avatar {
        width: 34px;
        height: 34px;
        min-width: 34px;
    }

    .vb-fav-item__title {
        font-size: 12.5px;
    }

    .vb-fav-item__company-row {
        font-size: 11px;
    }

    .vb-fav-item__price {
        font-size: 12px;
    }

    /* ЗАПРЕТ МАСШТАБИРОВАНИЯ: 16px предотвращает авто-зум на смартфонах (iOS Safari / Chrome) */
    .vb-form-input,
    .vb-form-textarea {
        font-size: 16px !important;
        padding: 12px 14px !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        touch-action: manipulation;
    }

    .vb-fav-dock__btn,
    .vb-modal-submit-btn,
    .vb-modal-close,
    .vb-prompt-chip,
    .vb-fav-item__remove {
        touch-action: manipulation;
    }

    .vb-form-row {
        grid-template-columns: 1fr;
        gap: 14px;
        width: 100%;
        box-sizing: border-box;
    }

    .vb-modal-footer {
        padding: 14px 16px 20px;
        flex-direction: column;
        align-items: stretch;
        box-sizing: border-box;
    }

    .vb-modal-privacy {
        max-width: none;
        text-align: center;
        order: 2;
        font-size: 10.5px;
    }

    .vb-modal-submit-btn {
        width: 100%;
        justify-content: center;
        order: 1;
        padding: 12px 20px;
        box-sizing: border-box;
    }
}
