/* ==========================================================
   BikeTripBNB — chat flutuante original
   ========================================================== */

.mb-chat-root {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 99990;
    font-family: inherit;
}

.mb-chat-bubble {
    position: relative;
    width: 62px;
    height: 62px;
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(
            circle at 35% 25%,
            #f6a543,
            #df7e19 52%,
            #aa5106 100%
        );
    color: #111;
    cursor: pointer;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, .30),
        0 0 0 5px rgba(224, 132, 28, .14);
    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.mb-chat-bubble:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 22px 48px rgba(0, 0, 0, .36),
        0 0 0 7px rgba(224, 132, 28, .18);
}

.mb-chat-bubble-icon {
    width: 31px;
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mb-chat-svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.mb-chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 23px;
    height: 23px;
    padding: 0 6px;
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    background: #b90000;
    color: #fff;
    font-size: 11px;
    font-weight: 1000;
    line-height: 1;
}

.mb-chat-badge.active {
    display: flex;
}

.mb-chat-window {
    position: absolute;
    right: 0;
    bottom: 76px;
    width: min(390px, calc(100vw - 28px));
    height: min(590px, calc(100vh - 125px));
    display: none;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .11);
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .36);
}

.mb-chat-window.active {
    display: grid;
    animation: mbChatOpen .17s ease-out;
}

@keyframes mbChatOpen {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mb-chat-header {
    min-height: 76px;
    padding: 16px 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #fff;
    background:
        radial-gradient(
            circle at 80% 10%,
            rgba(224, 132, 28, .43),
            transparent 37%
        ),
        #111;
}

.mb-chat-header > div {
    min-width: 0;
}

.mb-chat-header strong,
.mb-chat-header span {
    display: block;
}

.mb-chat-header strong {
    overflow: hidden;
    color: #fff;
    font-size: 17px;
    font-weight: 1000;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mb-chat-header span {
    margin-top: 3px;
    overflow: hidden;
    color: rgba(255, 255, 255, .69);
    font-size: 12px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#mb-chat-close {
    flex: 0 0 39px;
    width: 39px;
    height: 39px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}

.mb-chat-body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #f6f2eb;
}

.mb-chat-loading,
.mb-chat-empty {
    min-height: 220px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #64605a;
    text-align: center;
}

.mb-chat-empty strong,
.mb-chat-loading strong {
    color: #111;
    font-size: 17px;
}

.mb-chat-empty p {
    max-width: 270px;
    margin: 0;
    line-height: 1.45;
}

.mb-chat-current-host {
    width: calc(100% - 24px);
    margin: 12px;
    padding: 15px;
    border: 1px solid rgba(224, 132, 28, .30);
    border-radius: 17px;
    display: block;
    background: #fff8ed;
    color: #111;
    text-align: left;
    cursor: pointer;
}

.mb-chat-current-host strong,
.mb-chat-current-host span {
    display: block;
}

.mb-chat-current-host strong {
    color: #111;
    font-size: 14px;
    font-weight: 1000;
}

.mb-chat-current-host span {
    margin-top: 4px;
    color: #6a6258;
    font-size: 12px;
    font-weight: 750;
}

.mb-chat-list {
    display: grid;
}

.mb-chat-list-item {
    position: relative;
    width: 100%;
    padding: 14px 15px;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, .07);
    display: grid;
    grid-template-columns: 43px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    background: #fff;
    color: #111;
    text-align: left;
    cursor: pointer;
}

.mb-chat-list-item:hover {
    background: #fff8ed;
}

.mb-chat-list-icon {
    width: 43px;
    height: 43px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    font-size: 21px;
}

.mb-chat-list-item strong,
.mb-chat-list-item span,
.mb-chat-list-item p {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mb-chat-list-item strong {
    color: #111;
    font-size: 14px;
    font-weight: 950;
}

.mb-chat-list-item span {
    margin-top: 2px;
    color: #7b746b;
    font-size: 11px;
    font-weight: 750;
}

.mb-chat-list-item p {
    margin: 5px 0 0;
    color: #555;
    font-size: 12px;
}

.mb-chat-list-unread {
    min-width: 23px;
    height: 23px;
    padding: 0 6px;
    border-radius: 999px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #df7e19;
    color: #111 !important;
    font-size: 11px !important;
    font-weight: 1000 !important;
}

.mb-chat-back {
    width: 100%;
    padding: 11px 15px;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    background: #fff;
    color: #6b4b24;
    text-align: left;
    font-weight: 900;
    cursor: pointer;
}

.mb-chat-messages {
    min-height: 100%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mb-chat-message {
    width: fit-content;
    max-width: 84%;
    padding: 10px 12px;
    border-radius: 17px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
}

.mb-chat-message.mine {
    align-self: flex-end;
    border-bottom-right-radius: 5px;
    background: #df7e19;
    color: #111;
}

.mb-chat-message.theirs {
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    background: #fff;
    color: #111;
}

.mb-chat-message strong,
.mb-chat-message p,
.mb-chat-message span {
    display: block;
}

.mb-chat-message strong {
    font-size: 11px;
    font-weight: 1000;
}

.mb-chat-message p {
    margin: 4px 0;
    color: inherit;
    font-size: 14px;
    line-height: 1.4;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.mb-chat-message span {
    color: rgba(0, 0, 0, .55);
    font-size: 10px;
    text-align: right;
}

.mb-chat-form {
    padding: 11px;
    display: none;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    border-top: 1px solid rgba(0, 0, 0, .08);
    background: #fff;
}

.mb-chat-form.active {
    display: grid;
}

.mb-chat-form textarea {
    width: 100%;
    min-height: 47px;
    max-height: 100px;
    resize: none;
    border: 1px solid rgba(0, 0, 0, .14);
    border-radius: 15px;
    padding: 11px 12px;
    background: #f8f6f2;
    color: #111;
    font: inherit;
}

.mb-chat-form textarea:focus {
    outline: 2px solid rgba(224, 132, 28, .28);
    border-color: #df7e19;
}

.mb-chat-form button,
.mb-chat-mini-btn {
    border: 0;
    border-radius: 14px;
    padding: 0 15px;
    background: #111;
    color: #fff;
    font-weight: 950;
    cursor: pointer;
}

.mb-chat-mini-btn {
    min-height: 39px;
    padding: 0 16px;
}

.btbnb-chat-host-btn {
    width: 100%;
    min-height: 49px;
    margin-top: 11px;
    border: 1px solid #df7e19;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-weight: 1000;
    cursor: pointer;
}

.btbnb-chat-host-btn:hover {
    background: #252525;
}

.btbnb-chat-host-btn svg {
    width: 20px;
    height: 20px;
    fill: #df7e19;
}

.btbnb-chat-login-bubble {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 99990;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #df7e19;
    color: #111;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, .30),
        0 0 0 5px rgba(224, 132, 28, .14);
}

.btbnb-chat-login-bubble svg {
    width: 31px;
    height: 31px;
    fill: currentColor;
}

@media (max-width: 620px) {
    .mb-chat-root,
    .btbnb-chat-login-bubble {
        right: 12px;
        bottom: 12px;
    }

    .mb-chat-window {
        position: fixed;
        right: 8px;
        bottom: 84px;
        left: 8px;
        width: auto;
        height: min(620px, calc(100vh - 102px));
        border-radius: 21px;
    }

    .mb-chat-bubble,
    .btbnb-chat-login-bubble {
        width: 57px;
        height: 57px;
    }
}
