/* Чат поддръжка: split layout (админ: списък чатове | нишка; потребител: съобщения | поле за писане).
   Зарежда се винаги (виж components/app-assets), за да работи и без Vite build + CDN Tailwind. */

.easybnb-chat-split {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 1rem;
}

.easybnb-chat-split--user {
    min-height: min(70vh, 42rem);
}

.easybnb-chat-split--admin {
    min-height: min(75vh, 40rem);
}

@media (max-width: 639.98px) {
    .easybnb-chat-split {
        flex-direction: column;
        flex-wrap: wrap;
    }
}

.easybnb-chat-split-sidebar {
    flex: 0 0 18rem;
    width: 18rem;
    max-width: 100%;
    min-width: 0;
    align-self: stretch;
}

/* Потребителски /support: тясна колона със списък от съобщения (един ред + многоточие). */
.easybnb-chat-split-sidebar.easybnb-chat-split-sidebar--user-thread {
    flex: 0 0 14rem;
    width: 14rem;
    min-width: 0;
    max-width: min(14rem, 100%);
}

@media (max-width: 639.98px) {
    .easybnb-chat-split-sidebar.easybnb-chat-split-sidebar--user-thread {
        flex: none;
        width: 100%;
        max-width: 100%;
    }

    .easybnb-chat-split-sidebar {
        flex: none;
        width: 100%;
    }
}

.easybnb-chat-split-main {
    flex: 1 1 0%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Потребителски списък съобщения: един ред, многоточие; избор с клик. */
button.easybnb-support-msg-row {
    display: block;
    width: 100%;
    font: inherit;
    text-align: left;
    background: none;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    border-radius: 0;
}

.easybnb-support-msg-row {
    margin: 0;
    padding: 0.375rem 0.625rem;
    font-size: 0.625rem;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.easybnb-support-msg-row:hover {
    background-color: #f8fafc;
}

.easybnb-support-msg-row.is-selected {
    background-color: #f0fdfa;
    box-shadow: inset 3px 0 0 0 #0d9488;
}

.easybnb-support-msg-meta {
    font-size: 0.625rem;
    font-variant-numeric: tabular-nums;
    color: #94a3b8;
}

.easybnb-support-msg-sep {
    color: #cbd5e1;
    padding: 0 0.125rem;
}

.easybnb-support-msg-who {
    font-weight: 400;
    color: #475569;
}

.easybnb-support-msg-text {
    color: #475569;
}

/* Текстово поле при преглед на избрано съобщение (само за четене). */
#support-body.support-body-readonly {
    cursor: default;
    resize: none;
    background-color: #f8fafc;
    color: #475569;
}

#support-send-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
