.hubpet-chat-widget {
    width: 100%;
}

.hubpet-chat-empty {
    color: #183d3d;
    font-size: 16px;
    text-align: center;
    padding: 24px;
}

.hubpet-chat-title {
    margin: 0 0 16px;
    color: #2e2f34;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.1;
}

.hubpet-chat-tabs {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #d3d9d8;
    margin: 0 0 18px;
}



.hubpet-chat-tab {
    width: 50%;
    appearance: none;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    color: #2e2f34;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    padding: 14px 8px 12px;
    text-align: center;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.hubpet-chat-tab.is-active {
    color: #0f3f3f;
    border-bottom-color: #e97f1a;
}

.hubpet-chat-tab-badge {
    align-items: center;
    background: #e97f1a;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 600;
    height: 20px;
    justify-content: center;
    margin-left: 6px;
    min-width: 20px;
    padding: 0 6px;
    vertical-align: middle;
}

.hubpet-chat-widget-list .hubpet-chat-embed {
    min-height: 280px;
}

.hubpet-chat-widget-list .bp-messages-wrap {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
    min-height: 0;
}

.hubpet-chat-widget-list.has-conversation-url .bp-messages-wrap .chat-header,
.hubpet-chat-widget-list.has-conversation-url .bp-messages-wrap .chat-footer,
.hubpet-chat-widget-list.has-conversation-url .bp-messages-wrap .threads-list-index + .thread-not-selected {
    display: none !important;
}

.hubpet-chat-widget-list.has-conversation-url .bp-messages-wrap .thread-not-selected {
    display: none !important;
}

.hubpet-chat-widget-list .bp-messages-wrap .bp-messages-side-threads {
    border: 0;
    width: 100%;
    max-width: 100%;
}

.hubpet-chat-widget-list .bp-messages-wrap .bp-messages-side-threads > * {
    border-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.hubpet-chat-widget-list .bp-messages-wrap .bp-messages-side-threads .bm-side-content,
.hubpet-chat-widget-list .bp-messages-wrap .bp-messages-side-threads .threads-list-wrapper {
    width: 100% !important;
    max-width: 100% !important;
}

.hubpet-chat-widget-list .bp-messages-wrap .threads-list {
    padding: 0;
}

.hubpet-chat-widget-list .bp-messages-wrap .threads-list .thread {
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid #e9efee;
    border-radius: 0;
    cursor: pointer;
    margin: 0 0 10px;
    overflow: hidden;
}

.hubpet-chat-widget-list .bp-messages-wrap .threads-list .thread > * {
    padding-top: 14px;
    padding-bottom: 14px;
}

.hubpet-chat-widget-list .bp-messages-wrap .threads-list .thread .pic {
    height: 56px;
    min-width: 56px;
    width: 56px;
}

.hubpet-chat-widget-list .bp-messages-wrap .threads-list .thread .pic img {
    border-radius: 50%;
    height: 56px;
    object-fit: cover;
    width: 56px;
}

.hubpet-chat-widget-list .bp-messages-wrap .threads-list .thread .bm-info .name {
    color: #113b3b;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.15;
}

.hubpet-chat-widget-list .bp-messages-wrap .threads-list .thread .bm-info .last-message {
    color: #8f9599;
    font-size: 18px;
}

.hubpet-chat-widget-list .bp-messages-wrap .threads-list .thread .time {
    color: #85888a;
    font-size: 16px;
}

.hubpet-chat-widget-list .hubpet-chat-empty-unread {
    color: #9da0a4;
    font-size: 16px;
    margin: 12px 0 0;
    text-align: center;
}

.hubpet-chat-widget-list .thread.hubpet-chat-hidden-by-filter {
    display: none !important;
}

.hubpet-chat-widget-conversation {
    background: #f5f6f6;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
}

.hubpet-chat-widget-conversation .bp-messages-wrap {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
    min-height: 0;
}

.hubpet-chat-widget-conversation .bp-messages-wrap .chat-header {
    background: transparent;
    border-bottom: 1px solid #e3e6e8;
}

.hubpet-chat-widget-conversation .bp-messages-wrap .chat-header .thread-info .avatar,
.hubpet-chat-widget-conversation .bp-messages-wrap .chat-header .thread-info .avatar img {
    border-radius: 50%;
}

.hubpet-chat-widget-conversation .bp-messages-wrap .bm-messages-list {
    background: #f5f6f6;
    padding: 12px 14px;
}

.hubpet-chat-widget-conversation .bp-messages-wrap .bm-messages-stack.bm-left-side .bm-message-content:not(.bm-hide-background) {
    background: #ebe8e3;
    border-radius: 16px;
    color: #1e4343;
}

.hubpet-chat-widget-conversation .bp-messages-wrap .bm-messages-stack.bm-right-side .bm-message-content:not(.bm-hide-background) {
    background: #0f4a49;
    border-radius: 16px;
    color: #ffffff;
}

.hubpet-chat-widget-conversation .bp-messages-wrap .bm-message .bm-message-info .bm-time {
    color: #bcc0c2;
    font-size: 14px;
}

.hubpet-chat-widget-conversation .bp-messages-wrap .bm-reply {
    background: #ffffff;
    border: 1px solid #e2e7e7;
    border-radius: 0;
}

.hubpet-chat-widget-conversation .bp-messages-wrap .bm-reply .bm-editor {
    color: #9ea1a5;
    font-size: 28px;
}

.hubpet-chat-widget-conversation .bp-messages-wrap .bm-reply .bm-send-message {
    color: #e97f1a;
}

.hubpet-chat-widget-conversation .bp-messages-wrap .bm-reply .bm-send-message svg {
    height: 28px;
    width: 28px;
}

@media (max-width: 767px) {
    .hubpet-chat-title {
        font-size: 26px;
        margin-bottom: 8px;
    }

    .hubpet-chat-tab {
        font-size: 16px;
    }

    .hubpet-chat-widget-list .bp-messages-wrap .threads-list .thread .bm-info .name {
        font-size: 18px;
    }

    .hubpet-chat-widget-list .bp-messages-wrap .threads-list .thread .bm-info .last-message {
        font-size: 15px;
    }

    .hubpet-chat-widget-list .bp-messages-wrap .threads-list .thread .time {
        font-size: 13px;
    }

    .hubpet-chat-widget-conversation {
        border-radius: 26px;
    }
}

@media (min-width: 768px) {
    .hubpet-chat-widget-list.has-conversation-url .bp-messages-wrap .bp-messages-column {
        display: none !important;
    }
}
