/* ============================================================
   .custom-live-chat — isolated live chat widget
   ============================================================ */

.custom-live-chat {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    z-index: 99999 !important;
    display: block !important;
    visibility: visible !important;
    pointer-events: auto !important;
    font-family: 'Montserrat', 'PT Sans', Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.4;
    color: #333;

    /* Виджет нарисован в светлых тонах, фоны заданы жёстко. Без этой
       строки браузер в тёмной теме (особенно Chrome на Android с
       автозатемнением) подставляет СВОИ цвета элементам управления —
       поле ввода получает светлый текст поверх светлого фона. */
    color-scheme: light;
}

/* Элементы управления НЕ наследуют color от родителя — им нужен свой.
   Корень объявляет color:#333, но до <input> это не доходит. */
.custom-live-chat input,
.custom-live-chat textarea,
.custom-live-chat select {
    color: #222;
    -webkit-text-fill-color: #222;
}

.custom-live-chat *,
.custom-live-chat *::before,
.custom-live-chat *::after {
    box-sizing: border-box;
}

/* ── Launcher ──────────────────────────────────────────────── */
.custom-live-chat__launcher {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #df1619;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(223, 22, 25, 0.45);
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    visibility: visible !important;
    opacity: 1 !important;
}

.custom-live-chat__launcher:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 34px rgba(223, 22, 25, 0.52);
}

.custom-live-chat__launcher-icon {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.custom-live-chat.is-open .custom-live-chat__launcher {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

.custom-live-chat.has-unread:not(.is-open) .custom-live-chat__launcher::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4cd964;
    border: 2px solid #fff;
    animation: clc-pulse 1.5s ease infinite;
}


/* ── Window ────────────────────────────────────────────────── */
.custom-live-chat__window {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: calc(100vw - 40px);
    height: 640px;
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: scale(0);
    transform-origin: bottom right;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.38s cubic-bezier(0.34, 1.4, 0.64, 1),
                opacity 0.28s ease;
}

.custom-live-chat.is-open .custom-live-chat__window {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* ── Header ────────────────────────────────────────────────── */
.custom-live-chat__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    padding: 18px 18px 16px;
    background: linear-gradient(135deg, #ea2f32 0%, #df1619 55%, #c91417 100%);
    color: #fff;
}

.custom-live-chat__header-info {
    min-width: 0;
}

.custom-live-chat__title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.custom-live-chat__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    opacity: 0.92;
}

.custom-live-chat__status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4cd964;
    box-shadow: 0 0 0 2px rgba(76, 217, 100, 0.35);
    animation: clc-pulse 2s ease infinite;
}

@keyframes clc-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.55; }
}

.custom-live-chat__minimize {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.custom-live-chat__minimize:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ── Quick callback bar ──────────────────────────────────────── */
.custom-live-chat__quick-bar {
    flex-shrink: 0;
    padding: 10px 14px 0;
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
}

.custom-live-chat__quick-btn {
    display: block;
    width: 100%;
    margin: 0;
    padding: 9px 14px;
    border: 1px dashed #df1619;
    border-radius: 10px;
    background: #fff;
    color: #df1619;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.custom-live-chat__quick-btn:hover {
    background: #fff5f5;
    border-color: #c02525;
}

/* ── Callback form (inline) ────────────────────────────────── */
.custom-live-chat__callback {
    display: none;
    flex-shrink: 0;
    padding: 12px 14px;
    background: #fff8f0;
    border-bottom: 1px solid #f0d0d1;
}

.custom-live-chat__callback.is-visible {
    display: block;
}

.custom-live-chat__callback-title {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.custom-live-chat__callback-row {
    margin-bottom: 8px;
}

.custom-live-chat__callback-input {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    background: #fff;
}

.custom-live-chat__callback-input:focus {
    border-color: #df1619;
}

.custom-live-chat__callback-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.custom-live-chat__callback-submit {
    flex: 1;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: #df1619;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.custom-live-chat__callback-cancel {
    height: 36px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #666;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}

.custom-live-chat__callback-error {
    margin: 6px 0 0;
    font-size: 12px;
    color: #df1619;
    min-height: 0;
}

.custom-live-chat__callback-error:empty {
    display: none;
}

/* ── Messages area ─────────────────────────────────────────── */
.custom-live-chat__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 14px 14px 8px;
    background: #f3f4f6;
    scroll-behavior: smooth;
}

.custom-live-chat__body::-webkit-scrollbar {
    width: 5px;
}

.custom-live-chat__body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.custom-live-chat__messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ── Message balloons ──────────────────────────────────────── */
.custom-live-chat__msg {
    display: flex;
    flex-direction: column;
    max-width: 82%;
    animation: clc-msg-in 0.35s ease;
}

@keyframes clc-msg-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.custom-live-chat__msg--incoming {
    align-self: flex-start;
}

.custom-live-chat__msg--outgoing {
    align-self: flex-end;
    align-items: flex-end;
}

.custom-live-chat__bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.5;
    word-wrap: break-word;
}

.custom-live-chat__msg--incoming .custom-live-chat__bubble {
    background: #fff;
    color: #333;
    border: 1px solid #e8e8e8;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.custom-live-chat__msg--outgoing .custom-live-chat__bubble {
    background: #df1619;
    color: #fff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(223, 22, 25, 0.25);
}

.custom-live-chat__msg--bot .custom-live-chat__bubble {
    background: #fff;
    border-left: 3px solid #df1619;
    color: #333;   /* явно: правило идёт после --incoming и цвет не задавало */
}

.custom-live-chat__meta {
    margin-top: 3px;
    font-size: 11px;
    color: #999;
    padding: 0 4px;
}

.custom-live-chat__msg--outgoing .custom-live-chat__meta {
    text-align: right;
}

/* ── Typing indicator ──────────────────────────────────────── */
.custom-live-chat__typing {
    display: none;
    align-self: flex-start;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    font-size: 12px;
    color: #888;
}

.custom-live-chat__typing.is-visible {
    display: flex;
    align-items: center;
    gap: 6px;
    animation: clc-msg-in 0.3s ease;
}

.custom-live-chat__typing-dots {
    display: inline-flex;
    gap: 3px;
}

.custom-live-chat__typing-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #bbb;
    animation: clc-dot 1.2s ease infinite;
}

.custom-live-chat__typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.custom-live-chat__typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes clc-dot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30%            { transform: translateY(-4px); opacity: 1; }
}

/* ── Attach / images ───────────────────────────────────────── */
.custom-live-chat__attach {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    background: #fafafa;
    color: #666;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.custom-live-chat__attach:hover {
    border-color: #df1619;
    color: #df1619;
    background: #fff;
}

.custom-live-chat__attach-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.custom-live-chat__image-link {
    display: block;
    margin-bottom: 6px;
}

.custom-live-chat__image {
    display: block;
    max-width: 220px;
    max-height: 160px;
    border-radius: 10px;
    object-fit: cover;
    cursor: zoom-in;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.custom-live-chat__msg--bot .custom-live-chat__bubble {
    background: #fdeaea;
    border: 1px solid #f0b8b9;
    color: #333;   /* явно: правило идёт после --incoming и цвет не задавало */
}

/* ── Footer / input ────────────────────────────────────────── */
.custom-live-chat__footer {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 12px 14px;
    background: #fff;
    border-top: 1px solid #eee;
}

.custom-live-chat__input {
    flex: 1;
    min-width: 0;
    height: 42px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid #e0e0e0;
    border-radius: 22px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    background: #fafafa;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.custom-live-chat__input:focus {
    border-color: #df1619;
    background: #fff;
}

.custom-live-chat__input::placeholder {
    color: #aaa;
    opacity: 1;   /* Firefox приглушает placeholder ещё раз */
}

/* Автоподстановка Chrome кладёт своё оформление тенью, обычный background её не перебивает. */
.custom-live-chat__input:-webkit-autofill,
.custom-live-chat__input:-webkit-autofill:hover,
.custom-live-chat__input:-webkit-autofill:focus {
    -webkit-text-fill-color: #222;
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    caret-color: #222;
}

.custom-live-chat__send {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #df1619;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.custom-live-chat__send:hover {
    background: #c02525;
}

.custom-live-chat__send:active {
    transform: scale(0.94);
}

.custom-live-chat__send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.custom-live-chat__send-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Toast inside chat ─────────────────────────────────────── */
.custom-live-chat__toast {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 72px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(30, 30, 30, 0.88);
    color: #fff;
    font-size: 12px;
    text-align: center;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2;
}

.custom-live-chat__toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Mobile ────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .custom-live-chat {
        bottom: 14px;
        right: 14px;
    }

    .custom-live-chat__window {
        width: calc(100vw - 28px);
        height: calc(100vh - 28px);
        max-height: 560px;
    }
}

/* ── Цитата: на какой вопрос отвечает менеджер (02.09.2026) ───────────
   Клиент нередко задаёт три-четыре вопроса подряд. Без цитаты непонятно,
   к чему относится ответ. Цвета сплошные, без color-mix(). */
.custom-live-chat__quote {
    display: block;
    margin: 0 0 6px;
    padding: 5px 9px;
    border-left: 3px solid rgba(0, 0, 0, .18);
    border-radius: 7px;
    background: rgba(0, 0, 0, .05);
    font-size: 12px;
    line-height: 1.35;
}
.custom-live-chat__msg--outgoing .custom-live-chat__quote {
    border-left-color: rgba(255, 255, 255, .6);
    background: rgba(255, 255, 255, .16);
}
.custom-live-chat__quote-who {
    display: block;
    font-weight: 600;
    font-size: 10.5px;
    opacity: .75;
    margin-bottom: 1px;
}
.custom-live-chat__quote-text {
    display: block;
    word-break: break-word;
}

/* ── Карточка акции в чате ────────────────────────────────────────────────
   Менеджер отправляет промокод из панели оператора; условия сервер
   разворачивает из справочника при каждом чтении переписки, поэтому в старом
   сообщении всегда актуальные цифры. Завершённая акция не прячется, а
   гасится: иначе клиент видит в истории код без объяснения, почему он
   перестал работать. */
.custom-live-chat__promo {
    margin-top: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(231, 42, 46, 0.35);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(231, 42, 46, 0.09), rgba(231, 42, 46, 0.03));
}

.custom-live-chat__promo.is-expired {
    border-color: rgba(120, 130, 145, 0.30);
    background: rgba(120, 130, 145, 0.07);
    opacity: 0.75;
}

.custom-live-chat__promo-badge {
    display: inline-block;
    margin-bottom: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e72a2e;
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.custom-live-chat__promo.is-expired .custom-live-chat__promo-badge {
    background: #77808f;
}

.custom-live-chat__promo-title {
    margin-bottom: 8px;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
}

.custom-live-chat__promo-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.custom-live-chat__promo-code {
    padding: 5px 10px;
    border: 1px dashed rgba(231, 42, 46, 0.55);
    border-radius: 8px;
    background: #fff;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    /* длинный код не должен распирать пузырь на телефоне */
    overflow-wrap: anywhere;
}

.custom-live-chat__promo-copy {
    /* 36px — минимум, при котором в кнопку попадают пальцем */
    min-height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: #e72a2e;
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}

.custom-live-chat__promo-copy:disabled {
    background: #9aa3b2;
    cursor: default;
}

.custom-live-chat__promo-terms {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
}

.custom-live-chat__promo-note,
.custom-live-chat__promo-hint {
    margin-top: 6px;
    font-size: 11.5px;
    line-height: 1.45;
    opacity: 0.75;
}

/* 24.09.2026 — сообщение, которое не ушло: видно сразу, текст возвращён в поле. */
.custom-live-chat__msg--failed .custom-live-chat__bubble { opacity: .6; }
.custom-live-chat__msg--failed .custom-live-chat__meta { color: #d93025 !important; }

/* ── Подсказка на карточке товара (26.09.2026) ─────────────── */
.custom-live-chat__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.custom-live-chat__chip {
    margin: 0;
    padding: 6px 11px;
    border: 1px solid #ff6a00;
    border-radius: 999px;
    background: #fff;
    color: #ff6a00;
    -webkit-text-fill-color: #ff6a00;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.custom-live-chat__chip:hover,
.custom-live-chat__chip:focus-visible {
    background: #ff6a00;
    color: #fff;
    -webkit-text-fill-color: #fff;
    outline: none;
}

.custom-live-chat__teaser {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 250px;
    max-width: calc(100vw - 32px);
    padding: 12px 12px 12px 14px;
    border-radius: 14px;
    background: #fff;
    color: #1f2937;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.22);
    border-left: 4px solid #ff6a00;
    font-size: 14px;
    line-height: 1.35;
    cursor: pointer;
    animation: custom-live-chat-teaser-in 0.35s ease;
}

.custom-live-chat__teaser::after {
    content: '';
    position: absolute;
    right: 28px;
    bottom: -7px;
    width: 14px;
    height: 14px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: 3px 3px 6px rgba(15, 23, 42, 0.08);
}

.custom-live-chat__teaser-text {
    flex: 1;
}

.custom-live-chat__teaser-close {
    flex: none;
    margin: -4px -4px 0 0;
    padding: 0 4px;
    border: 0;
    background: none;
    color: #9ca3af;
    -webkit-text-fill-color: #9ca3af;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.custom-live-chat.is-open .custom-live-chat__teaser {
    display: none;
}

@keyframes custom-live-chat-teaser-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.custom-live-chat__status.is-offline .custom-live-chat__status-dot {
    background: #c7ccd4;
    box-shadow: none;
    animation: none;
}

/* ── Карточка «Оставьте номер» (26.09.2026) ─────────────────── */
.custom-live-chat__phone-form {
    margin-top: 10px;
}

.custom-live-chat__phone-row {
    display: flex;
    gap: 6px;
}

.custom-live-chat__phone-input {
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: 15px;
    outline: none;
}

.custom-live-chat__phone-input:focus {
    border-color: #ff6a00;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.custom-live-chat__phone-submit {
    flex: none;
    height: 38px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: #ff6a00;
    color: #fff;
    -webkit-text-fill-color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.custom-live-chat__phone-submit:disabled {
    opacity: 0.6;
    cursor: default;
}

.custom-live-chat__phone-consent {
    margin: 8px 0 0 !important;
    font-size: 11.5px !important;
    color: #667085;
}

.custom-live-chat__phone-error {
    margin-top: 6px;
    font-size: 12.5px;
    color: #c0262d;
}

.custom-live-chat__phone-error:empty {
    display: none;
}

.custom-live-chat__phone-later {
    margin: 6px 0 0;
    padding: 0;
    border: 0;
    background: none;
    color: #98a2b3;
    -webkit-text-fill-color: #98a2b3;
    font: inherit;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
}
/* ══ Помощник в чате (11.10.2026) ════════════════════════════════════ */
.custom-live-chat__quick-bar.has-menu {
    display: flex;
    gap: 8px;
}
.custom-live-chat__quick-bar.has-menu .custom-live-chat__quick-btn {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}
.custom-live-chat__menu-btn {
    flex: 0 0 auto;
    margin: 0;
    padding: 9px 14px;
    border: 1px solid #d5d9df;
    border-radius: 10px;
    background: #fff;
    color: #2b3340;
    -webkit-text-fill-color: #2b3340;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.custom-live-chat__menu-btn:hover,
.custom-live-chat__menu-btn:focus-visible {
    background: #f1f3f6;
    border-color: #b9c0ca;
    outline: none;
}

/* тихая кнопка («Отмена», «Спросить менеджера») */
.custom-live-chat__chip--quiet {
    border-color: #c9ced6;
    color: #5b6472;
    -webkit-text-fill-color: #5b6472;
}
.custom-live-chat__chip--quiet:hover,
.custom-live-chat__chip--quiet:focus-visible {
    background: #5b6472;
    color: #fff;
    -webkit-text-fill-color: #fff;
}
.custom-live-chat__chip-picked {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #7a828e;
}
.custom-live-chat__chip-picked::before {
    content: '✓ ';
}

/* поле ввода в режиме «найти товар / статус заказа» */
.custom-live-chat.is-assist-mode .custom-live-chat__input {
    border-color: #ff6a00;
    box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.14);
}

/* ссылки в сообщениях */
.custom-live-chat__link {
    color: #0a5c84;
    -webkit-text-fill-color: #0a5c84;
    text-decoration: underline;
    word-break: break-all;
}

/* карточки товаров */
.custom-live-chat__products {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}
.custom-live-chat__product {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 9px;
    border: 1px solid #e3e6ea;
    border-radius: 10px;
    background: #fff;
    color: #222;
    -webkit-text-fill-color: #222;
    text-decoration: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.custom-live-chat__product:hover,
.custom-live-chat__product:focus-visible {
    border-color: #ff6a00;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    outline: none;
}
.custom-live-chat__product-pic {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f4f5f7;
    overflow: hidden;
}
.custom-live-chat__product-pic img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.custom-live-chat__product-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.custom-live-chat__product-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.custom-live-chat__product-price {
    font-size: 13px;
    font-weight: 700;
    color: #df1619;
    -webkit-text-fill-color: #df1619;
}
.custom-live-chat__product-price s {
    font-weight: 500;
    font-size: 12px;
    color: #8b929c;
    -webkit-text-fill-color: #8b929c;
}
.custom-live-chat__product-note {
    font-size: 11px;
    color: #8b929c;
    -webkit-text-fill-color: #8b929c;
}
.custom-live-chat__product.is-noprod .custom-live-chat__product-price {
    color: #5b6472;
    -webkit-text-fill-color: #5b6472;
}
/* кнопка звонка не переносится на две строки рядом с «Меню» */
.custom-live-chat__quick-bar.has-menu .custom-live-chat__quick-btn {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 10px;
    padding-right: 10px;
}
