a[href*="ai-chat.php"],
a[href*="/ai-chat"],
a[href="#ai-concierge"] {
    cursor: pointer;
}

.bo-ai-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 2147483000;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #0082b3;
    background: #008fbd;
    color: #001927;
    min-height: 44px;
    padding: 0 15px 0 10px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(16, 34, 53, .16);
}

.bo-ai-fab span {
    display: inline-flex;
    width: 30px;
    height: 28px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .12);
    color: #9ed8ee;
}

.bo-ai-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2147482998;
    background: rgba(16, 34, 53, .22);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}

.bo-ai-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 2147482999;
    width: min(520px, 100vw);
    height: 100vh;
    background: #fff;
    border-left: 1px solid #c6d4df;
    box-shadow: -24px 0 70px rgba(16, 34, 53, .22);
    transform: translateX(104%);
    transition: transform .26s ease;
    display: flex;
    flex-direction: column;
}

body.bo-ai-open .bo-ai-backdrop {
    opacity: 1;
    pointer-events: auto;
}

body.bo-ai-open .bo-ai-drawer {
    transform: translateX(0);
}
body.bo-ai-open .bo-ai-fab {
    display: none;
}


.bo-ai-drawer-head {
    height: 74px;
    border-bottom: 1px solid #d8e3ec;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 18px;
    flex: 0 0 auto;
}

.bo-ai-drawer-head span {
    display: block;
    color: #55708d;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 11px;
}

.bo-ai-drawer-head strong {
    display: block;
    margin-top: 4px;
    font-size: 24px;
    letter-spacing: -.02em;
}

.bo-ai-drawer-head button {
    width: 38px;
    height: 38px;
    border: 1px solid #c6d4df;
    background: #fff;
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
}

.bo-ai-drawer-context {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid #d8e3ec;
    background: #f8fbfd;
    flex: 0 0 auto;
}

.bo-ai-drawer-context div {
    padding: 12px 14px;
    border-right: 1px solid #d8e3ec;
}

.bo-ai-drawer-context div:last-child {
    border-right: 0;
}

.bo-ai-drawer-context span {
    display: block;
    color: #55708d;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 10px;
    margin-bottom: 4px;
}

.bo-ai-drawer-context strong {
    display: block;
    color: #102235;
    word-break: break-word;
}

.bo-ai-messages {
    flex: 1 1 auto;
    overflow: auto;
    padding: 18px;
    background:
        linear-gradient(rgba(255, 255, 255, .88), rgba(255, 255, 255, .88)),
        repeating-linear-gradient(0deg, transparent 0, transparent 39px, rgba(15, 109, 183, .055) 39px, rgba(15, 109, 183, .055) 40px),
        repeating-linear-gradient(90deg, transparent 0, transparent 39px, rgba(15, 109, 183, .055) 39px, rgba(15, 109, 183, .055) 40px);
}

.bo-ai-msg {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.bo-ai-msg.is-user {
    flex-direction: row-reverse;
}

.bo-ai-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border: 1px solid #c6d4df;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    font-size: 12px;
    font-weight: 800;
    color: #0f4f84;
}

.bo-ai-bubble {
    max-width: 82%;
    border: 1px solid #d8e3ec;
    background: #fff;
    padding: 12px 13px;
    line-height: 1.5;
    box-shadow: 0 12px 28px rgba(16, 34, 53, .055);
    white-space: pre-wrap;
}

.bo-ai-msg.is-user .bo-ai-bubble {
    background: #0f6db7;
    border-color: #0f6db7;
    color: #fff;
}

.bo-ai-bubble p {
    margin: 6px 0 0;
}

.bo-ai-composer {
    flex: 0 0 auto;
    border-top: 1px solid #d8e3ec;
    padding: 14px;
    background: #fff;
}

.bo-ai-composer label {
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #33495f;
    font-size: 11px;
    font-weight: 800;
}

.bo-ai-composer textarea {
    width: 100%;
    resize: vertical;
    min-height: 78px;
    max-height: 180px;
    border: 1px solid #c6d4df;
    padding: 11px;
    font: inherit;
    outline: none;
}

.bo-ai-composer textarea:focus {
    border-color: #0f6db7;
    box-shadow: 0 0 0 3px rgba(15, 109, 183, .1);
}

.bo-ai-composer button {
    width: 100%;
    height: 42px;
    margin-top: 10px;
    border: 1px solid #0f6db7;
    background: #0f6db7;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.bo-ai-composer button:disabled {
    opacity: .65;
    cursor: wait;
}

.bo-ai-error {
    border-left: 3px solid #b74747;
}

@media (max-width: 620px) {
    .bo-ai-drawer {
        width: 100vw;
    }

    .bo-ai-drawer-context {
        grid-template-columns: 1fr;
    }

    .bo-ai-drawer-context div {
        border-right: 0;
        border-bottom: 1px solid #d8e3ec;
    }

    .bo-ai-fab {
        right: 12px;
        bottom: 12px;
    }
}
