/* Виджет «Написать менеджеру» (разметка - templates/nero/client_chat.php, логика - assets/js/client_chat.js).
   Кнопка справа внизу: ПК - белая «таблетка» с подписью, телефон (до 768px) - круглая кнопка над нижним меню.
   Высоту кнопки над низом окна (--ab-chat-bottom) ставит скрипт: над нижним меню, плашкой cookie и панелью корзины, а на
   широком экране - на одной линии с нижним меню. Значения ниже - до запуска скрипта.
   Панель: ПК - карточка 384px над кнопкой, телефон - во весь экран между верхом и нижним меню.
   Цвета пузырей - как в переписке на странице заказа (style.css, .my-order__chat): покупатель - серый справа, магазин -
   зелёный слева. Слои: кнопка ниже шапки (1000) - выпадающие списки шапки ложатся поверх; панель - над нижним меню. */

.ab-chat {
    --ab-chat-edge: 24px;
    --ab-chat-fab-size: 52px;
    font-family: var(--font-primary, 'Benzin', Arial, sans-serif);
}
/* Поля и кнопки браузер по умолчанию рисует системным шрифтом - везде фирменный */
.ab-chat button,
.ab-chat input,
.ab-chat textarea,
.ab-chat select { font-family: inherit; }

/* ---------- кнопка ---------- */
.ab-chat__fab {
    position: fixed;
    right: var(--ab-chat-edge);
    bottom: var(--ab-chat-bottom, calc(var(--ab-bottom-nav-b, 32px) + var(--ab-bottom-nav-h, 76px) + 16px));
    z-index: 995;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: var(--ab-chat-fab-size);
    padding: 0 22px 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--white, #F8FAF9);
    color: var(--black, #1B1B1B);
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .8), 0 4px 14px rgba(0, 0, 0, .35);
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease, bottom .25s ease;
    -webkit-tap-highlight-color: transparent;
}
.ab-chat__fab:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -14px rgba(0, 0, 0, .85), 0 6px 18px rgba(0, 0, 0, .4); }
.ab-chat__fab:active { transform: translateY(0); }
.ab-chat__fab:focus-visible { outline: 2px solid var(--white, #F8FAF9); outline-offset: 3px; }
.ab-chat__fab-icon { width: 22px; height: 22px; color: currentColor; }

.ab-chat__badge {
    position: absolute;
    top: -6px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: #ED3C38;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
    box-shadow: 0 0 0 3px var(--black, #1B1B1B);
}
.ab-chat__badge[hidden] { display: none; }

/* Есть непрочитанное: мягкое кольцо вокруг кнопки, пока панель закрыта */
.ab-chat--unread:not(.ab-chat--open) .ab-chat__fab::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(237, 60, 56, .55);
    animation: ab-chat-ring 2.4s ease-out infinite;
    pointer-events: none;
}
@keyframes ab-chat-ring {
    0% { box-shadow: 0 0 0 0 rgba(237, 60, 56, .5); }
    70%, 100% { box-shadow: 0 0 0 14px rgba(237, 60, 56, 0); }
}

/* ---------- панель ---------- */
.ab-chat__panel {
    position: fixed;
    right: var(--ab-chat-edge);
    bottom: calc(var(--ab-chat-bottom, 124px) + var(--ab-chat-fab-h, 52px) + 12px);
    z-index: 1001;
    box-sizing: border-box;
    width: 384px;
    max-width: calc(100vw - 2 * var(--ab-chat-edge));
    height: min(600px, calc(100vh - var(--ab-chat-bottom, 124px) - var(--ab-chat-fab-h, 52px) - 36px));
    height: min(600px, calc(100dvh - var(--ab-chat-bottom, 124px) - var(--ab-chat-fab-h, 52px) - 36px));
    min-height: 320px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--gray-darker, #232323);
    border: 1px solid #333;
    border-radius: 20px;
    box-shadow: 0 28px 60px -18px rgba(0, 0, 0, .85), 0 2px 12px rgba(0, 0, 0, .4);
    color: var(--white, #F8FAF9);
    font-size: 12px;
    line-height: 1.45;
    transform-origin: 100% 100%;
    animation: ab-chat-in .22s cubic-bezier(.2, .7, .2, 1) both;
}
.ab-chat__panel[hidden] { display: none; }
@keyframes ab-chat-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

.ab-chat__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 12px 14px 18px;
    border-bottom: 1px solid #2E2E2E;
    flex: none;
}
.ab-chat__back:not([hidden]) + .ab-chat__head-text { margin-left: -4px; }
.ab-chat__head:has(.ab-chat__back:not([hidden])) { padding-left: 8px; }
.ab-chat__head-text { flex: 1; min-width: 0; }
.ab-chat__title {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ab-chat__sub {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0 0;
    font-size: 10px;
    line-height: 1.3;
    color: var(--gray-medium, #ACACAC);
}
.ab-chat__sub[hidden] { display: none; }
.ab-chat__dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--gray-dark, #4F5052); }
.ab-chat__sub--open .ab-chat__dot { background: var(--green, #5AE0AE); box-shadow: 0 0 0 3px rgba(90, 224, 174, .15); }

.ab-chat__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--white, #F8FAF9);
    cursor: pointer;
    transition: background .15s;
}
.ab-chat__icon-btn[hidden] { display: none; }
.ab-chat__icon-btn:hover { background: #2E2E2E; }
.ab-chat__icon-btn:focus-visible { outline: 2px solid var(--white, #F8FAF9); outline-offset: 1px; }
.ab-chat__icon-btn svg { width: 18px; height: 18px; }
.ab-chat__back svg { width: 16px; height: 16px; transform: rotate(90deg); }

.ab-chat__body {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.ab-chat__view {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.ab-chat__view[hidden] { display: none; }
/* Список на всю высоту панели: пустое состояние - строго по центру */
.ab-chat__list { flex: 1 0 auto; display: flex; flex-direction: column; }
.ab-chat__view--list,
.ab-chat__view--guest {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px;
}

.ab-chat__notice {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 179, 71, .1);
    border: 1px solid rgba(255, 179, 71, .35);
    color: var(--white, #F8FAF9);
    font-size: 11px;
}
.ab-chat__notice[hidden] { display: none; }

.ab-chat__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
    min-height: 120px;
    color: var(--gray-medium, #ACACAC);
    font-size: 11px;
}
.ab-chat__spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .15);
    border-top-color: var(--white, #F8FAF9);
    border-radius: 50%;
    animation: ab-chat-spin .8s linear infinite;
}
@keyframes ab-chat-spin { to { transform: rotate(360deg); } }

.ab-chat__caption {
    margin: 0 0 10px;
    font-size: 10px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--gray-text, #898A8A);
}

/* ---------- список заказов ---------- */
.ab-chat__threads { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ab-chat__thread {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #2E2E2E;
    border-radius: 14px;
    background: var(--black, #1B1B1B);
    color: var(--white, #F8FAF9);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.ab-chat__thread:hover { border-color: #4A4A4A; background: #1F1F1F; }
.ab-chat__thread:focus-visible { outline: 2px solid var(--white, #F8FAF9); outline-offset: 2px; }
.ab-chat__thread.is-unread { border-color: rgba(90, 224, 174, .45); }
.ab-chat__thread.is-unread::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--green, #5AE0AE);
}
.ab-chat__thread-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ab-chat__thread-title { font-size: 12px; font-weight: 500; }
.ab-chat__thread-time { flex: none; font-size: 10px; color: var(--gray-text, #898A8A); }
.ab-chat__thread.is-unread .ab-chat__thread-time { color: var(--green, #5AE0AE); }
.ab-chat__thread-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.45;
    color: var(--gray-medium, #ACACAC);
    word-break: break-word;
}
.ab-chat__thread.is-unread .ab-chat__thread-text { color: var(--white, #F8FAF9); }
.ab-chat__thread.is-empty .ab-chat__thread-text { color: var(--gray-text, #898A8A); }
.ab-chat__thread-who { color: var(--gray-text, #898A8A); }
.ab-chat__thread-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 18px; }
.ab-chat__thread-status {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 8px;
    border-radius: 9px;
    background: #2A2A2A;
    color: var(--gray-medium, #ACACAC);
    font-size: 9px;
    white-space: nowrap;
}
.ab-chat__thread-status:empty { display: none; }
.ab-chat__thread-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    margin-left: auto;
    border-radius: 10px;
    background: #ED3C38;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}
.ab-chat__all {
    display: block;
    margin: 12px 0 2px;
    text-align: center;
    color: var(--gray-medium, #ACACAC);
    font-size: 11px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.ab-chat__all:hover { color: var(--white, #F8FAF9); }

/* ---------- пустые состояния ---------- */
.ab-chat__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 10px;
    padding: 20px 8px;
    text-align: center;
}
.ab-chat__empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 4px;
    border-radius: 50%;
    background: var(--black, #1B1B1B);
    border: 1px solid #313131;
    color: var(--white, #F8FAF9);
}
.ab-chat__empty-icon svg { width: 24px; height: 24px; fill: currentColor; }
.ab-chat__empty-title { margin: 0; font-size: 13px; font-weight: 500; line-height: 1.3; }
.ab-chat__empty-text { margin: 0; max-width: 300px; font-size: 11px; line-height: 1.55; color: var(--gray-medium, #ACACAC); }
.ab-chat__empty--thread { padding-top: 40px; }

.ab-chat__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    margin-top: 6px;
    padding: 0 24px;
    border: 1px solid #3A3A3A;
    border-radius: 12px;
    background: transparent;
    color: var(--white, #F8FAF9);
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: opacity .15s, transform .15s;
}
.ab-chat__btn--primary { min-width: 160px; border-color: var(--white, #F8FAF9); background: var(--white, #F8FAF9); color: var(--black, #1B1B1B); }
.ab-chat__btn:hover { opacity: .9; }
.ab-chat__btn:active { transform: translateY(1px); }
.ab-chat__btn:focus-visible { outline: 2px solid var(--white, #F8FAF9); outline-offset: 2px; }

/* ---------- ветка заказа ---------- */
.ab-chat__order {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex: none;
    padding: 10px 18px;
    border-bottom: 1px solid #2E2E2E;
    font-size: 10px;
    color: var(--gray-medium, #ACACAC);
}
.ab-chat__order:empty { display: none; }
.ab-chat__order-info { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ab-chat__order-status {
    padding: 3px 8px;
    border-radius: 9px;
    background: #2A2A2A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ab-chat__order-link { flex: none; color: var(--white, #F8FAF9); text-decoration: underline; text-underline-offset: 3px; }
.ab-chat__order-link:hover { opacity: .8; }

.ab-chat__messages {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 14px 16px;
}
.ab-chat__day {
    align-self: center;
    margin: 6px 0 2px;
    padding: 3px 10px;
    border-radius: 9px;
    background: #2A2A2A;
    color: var(--gray-medium, #ACACAC);
    font-size: 9px;
    letter-spacing: .03em;
}
.ab-chat__msg { display: flex; }
.ab-chat__msg--mine { justify-content: flex-end; }
.ab-chat__bubble {
    max-width: 84%;
    padding: 9px 12px 7px;
    border-radius: 16px;
}
.ab-chat__msg--mine .ab-chat__bubble {
    border-bottom-right-radius: 5px;
    background: var(--gray-dark, #4F5052);
    color: var(--white, #F8FAF9);
}
.ab-chat__msg--shop .ab-chat__bubble {
    border-bottom-left-radius: 5px;
    background: var(--green, #5AE0AE);
    color: var(--gray-darker, #232323);
}
.ab-chat__msg-text {
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.ab-chat__msg-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 4px;
    font-size: 9px;
    opacity: .7;
}
.ab-chat__msg-new {
    padding: 1px 6px;
    border-radius: 6px;
    background: var(--gray-darker, #232323);
    color: var(--green, #5AE0AE);
    font-size: 8px;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.ab-chat__msg.is-new .ab-chat__msg-meta { opacity: 1; }

/* ---------- поле ввода ---------- */
.ab-chat__composer {
    position: relative;
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    flex: none;
    padding: 10px 12px 12px;
    border-top: 1px solid #2E2E2E;
    background: var(--gray-darker, #232323);
}
.ab-chat__composer[hidden] { display: none; }
.ab-chat__input {
    --ab-autofill-bg: var(--black, #1B1B1B);
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    height: 44px;
    max-height: 132px;
    padding: 12px 14px;
    border: 1px solid #333;
    border-radius: 14px;
    background: var(--black, #1B1B1B);
    color: var(--white, #F8FAF9);
    font: inherit;
    font-size: 12px;
    line-height: 1.5;
    resize: none;
    outline: none;
    transition: border-color .15s;
}
.ab-chat__input::placeholder { color: var(--gray-text, #898A8A); opacity: 1; }
.ab-chat__input:focus { border-color: #5A5A5A; }
.ab-chat__send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: var(--white, #F8FAF9);
    color: var(--black, #1B1B1B);
    cursor: pointer;
    transition: opacity .15s, transform .15s;
}
.ab-chat__send svg { width: 24px; height: 24px; fill: currentColor; }
.ab-chat__send:hover { opacity: .9; }
.ab-chat__send:active { transform: translateY(1px); }
.ab-chat__send:disabled { opacity: .5; cursor: default; }
.ab-chat__send:focus-visible { outline: 2px solid var(--white, #F8FAF9); outline-offset: 2px; }
.ab-chat--sending .ab-chat__send svg { animation: ab-chat-send .8s ease-in-out infinite alternate; }
@keyframes ab-chat-send { to { transform: translateX(3px); opacity: .5; } }
.ab-chat__error { flex-basis: 100%; margin: 0; color: #FF6B67; font-size: 10px; }
.ab-chat__error[hidden] { display: none; }

/* ---------- связь без переписки ---------- */
.ab-chat__contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: none;
    padding: 12px 14px 14px;
    border-top: 1px solid #2E2E2E;
}
.ab-chat__contacts[hidden] { display: none; }
.ab-chat__contact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    justify-content: center;
    height: 46px;
    padding: 0 8px;
    border: 1px solid #333;
    border-radius: 12px;
    background: var(--black, #1B1B1B);
    color: var(--white, #F8FAF9);
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    transition: border-color .15s;
}
.ab-chat__contact:hover { border-color: #555; }
.ab-chat__contact--phone { flex-basis: 100%; }
.ab-chat__contact:focus-visible { outline: 2px solid var(--white, #F8FAF9); outline-offset: 2px; }
.ab-chat__contact svg { width: 17px; height: 17px; flex: none; fill: currentColor; color: currentColor; }

.ab-chat__sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- телефон ---------- */
@media (max-width: 768px) {
    .ab-chat { --ab-chat-edge: 16px; --ab-chat-fab-size: 54px; }
    .ab-chat__fab {
        bottom: var(--ab-chat-bottom, calc(var(--ab-bottom-nav-h, 64px) + env(safe-area-inset-bottom, 0px) + 12px));
        width: var(--ab-chat-fab-size);
        padding: 0;
        justify-content: center;
    }
    .ab-chat__fab-icon { width: 24px; height: 24px; }
    .ab-chat__fab-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
    .ab-chat--open .ab-chat__fab { opacity: 0; pointer-events: none; transform: scale(.8); }

    .ab-chat__panel {
        left: 8px;
        right: 8px;
        top: calc(8px + env(safe-area-inset-top, 0px));
        bottom: calc(var(--ab-bottom-nav-h, 64px) + env(safe-area-inset-bottom, 0px) + 8px);
        bottom: max(calc(var(--ab-bottom-nav-h, 64px) + env(safe-area-inset-bottom, 0px) + 8px), calc(var(--ab-chat-kb, 0px) + 8px));/* над клавиатурой (client_chat.js) */
        width: auto;
        max-width: none;
        height: auto;
        min-height: 0;
        border-radius: 18px;
        transform-origin: 50% 100%;
    }
    .ab-chat__messages { padding: 12px 12px 14px; }
    .ab-chat__input { font-size: 16px; line-height: 1.25; padding: 11px 14px; }/* 16px - iOS не увеличивает страницу при фокусе */
}

@media (prefers-reduced-motion: reduce) {
    .ab-chat__panel, .ab-chat__spinner, .ab-chat--sending .ab-chat__send svg { animation: none; }
    .ab-chat--unread:not(.ab-chat--open) .ab-chat__fab::after { animation: none; box-shadow: 0 0 0 3px rgba(237, 60, 56, .35); }
    .ab-chat__fab { transition: none; }
}

/* ---------- конверт «новые сообщения» в верхней строке шапки (templates/nero/desktop.php, #not_viewed_msg) ---------- */
.ab-hdr-msg {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 8px 0 6px;
    border-radius: 14px;
    color: var(--white, #F8FAF9);
    text-decoration: none;
    transition: background .15s;
}
.ab-hdr-msg:hover { background: #2E2E2E; }
.ab-hdr-msg__icon { width: 20px; height: 20px; color: currentColor; }
.ab-hdr-msg__count {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #ED3C38;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

/* ---------- страница заказа: заметная переписка (content/shop/order_process/my_order.php) ---------- */
.ab-order-chat {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 var(--space-6, 24px);
    padding: 16px 20px;
    border: 1px solid #333;
    border-radius: var(--radius-2xl, 16px);
    background: var(--gray-darker, #232323);
}
.ab-order-chat--unread { border-color: rgba(90, 224, 174, .5); box-shadow: inset 3px 0 0 var(--green, #5AE0AE); }
.ab-order-chat__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--black, #1B1B1B);
    border: 1px solid #313131;
    color: var(--white, #F8FAF9);
}
.ab-order-chat__icon svg { width: 22px; height: 22px; }
.ab-order-chat__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ab-order-chat__title { margin: 0; font-size: var(--text-base, 14px); font-weight: 500; color: var(--white, #F8FAF9); }
.ab-order-chat__sub { margin: 0; font-size: var(--text-sm, 12px); line-height: 1.45; color: var(--gray-medium, #ACACAC); }
.ab-order-chat--unread .ab-order-chat__sub { color: var(--green, #5AE0AE); }
.ab-order-chat__actions { display: flex; align-items: center; gap: 16px; flex: none; }
.ab-order-chat__link { color: var(--gray-medium, #ACACAC); font-size: var(--text-sm, 12px); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.ab-order-chat__link:hover { color: var(--white, #F8FAF9); }
@media (max-width: 768px) {
    .ab-order-chat { flex-wrap: wrap; padding: 14px; gap: 12px; }
    .ab-order-chat__icon { width: 40px; height: 40px; }
    .ab-order-chat__text { flex-basis: calc(100% - 52px); }
    .ab-order-chat__actions { width: 100%; flex-direction: column-reverse; align-items: stretch; gap: 12px; }
    .ab-order-chat__actions .btn { width: 100%; padding: 0 16px; }
    .ab-order-chat__link { text-align: center; }
}
