.travel-ai-page {
    background: #f5f3ef;
}

.travel-ai-shell {
    padding: clamp(2rem, 6vw, 5rem) 0;
}

.travel-ai-chat {
    width: min(880px, 100%);
    min-height: 680px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(21, 46, 42, .12);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(21, 46, 42, .12);
}

.travel-ai-chat__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem;
    color: var(--lt-black, #2A2525);
    border-bottom: 3px solid var(--lt-gold, #B69B74);
    background: linear-gradient(
        90deg,
        var(--lt-gold, #B69B74) 0%,
        var(--lt-gold, #B69B74) 38%,
        var(--lt-white, #FFFFFF) 100%
    );
}

.travel-ai-chat__header h1 {
    margin: .15rem 0;
    font-size: clamp(2rem, 5vw, 3.4rem);
}

.travel-ai-chat__header p,
.travel-ai-message__content p {
    margin: 0;
}

.travel-ai-chat__eyebrow {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    opacity: .75;
}

.travel-ai-status {
    flex: 0 0 auto;
    padding: .45rem .8rem;
    border: 1px solid rgba(42, 37, 37, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
    font-size: .78rem;
    font-weight: 700;
}

.travel-ai-status.is-ready::before {
    display: inline-block;
    width: .55rem;
    height: .55rem;
    margin-right: .45rem;
    border-radius: 50%;
    background: #9ee6b8;
    content: '';
}

.travel-ai-chat__messages {
    min-height: 390px;
    max-height: 520px;
    padding: 2rem;
    overflow-y: auto;
    background: linear-gradient(180deg, #fafbf9, #fff);
}

.travel-ai-message {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    margin-bottom: 1.25rem;
}

.travel-ai-message--user {
    justify-content: flex-end;
}

.travel-ai-message__avatar {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #246b5e;
    font-size: .72rem;
    font-weight: 800;
}

.travel-ai-message__content {
    max-width: 72%;
    padding: .9rem 1rem;
    border: 1px solid rgba(21, 46, 42, .1);
    border-radius: 4px 18px 18px;
    background: #fff;
    line-height: 1.55;
}

.travel-ai-message--user .travel-ai-message__content {
    border: 0;
    border-radius: 18px 4px 18px 18px;
    color: #fff;
    background: #246b5e;
}

.travel-ai-message--error .travel-ai-message__content {
    border-color: #e9b8b8;
    color: #812b2b;
    background: #fff5f5;
}

.travel-ai-composer {
    display: flex;
    align-items: flex-end;
    gap: .8rem;
    padding: 1.25rem 2rem;
    border-top: 1px solid rgba(21, 46, 42, .1);
}

.travel-ai-composer textarea {
    width: 100%;
    min-height: 54px;
    max-height: 150px;
    padding: .85rem 1rem;
    resize: vertical;
    border: 1px solid rgba(21, 46, 42, .2);
    border-radius: 14px;
    outline: none;
}

.travel-ai-composer textarea:focus {
    border-color: #246b5e;
    box-shadow: 0 0 0 3px rgba(36, 107, 94, .12);
}

.travel-ai-chat__notice {
    padding: 0 2rem 1.5rem;
    color: #68736f;
    font-size: .78rem;
    text-align: center;
}

.travel-ai-new-conversation {
    padding: 1rem 2rem;
    border-top: 1px solid rgba(21, 46, 42, .1);
    text-align: center;
}

.travel-ai-typing,
.travel-ai-connection {
    padding: .65rem 2rem;
    color: #52635f;
    background: #f3f7f5;
    font-size: .82rem;
}

.travel-ai-conversation-selector {
    padding: .65rem 2rem;
    border-bottom: 1px solid rgba(21, 46, 42, .08);
    background: #fff;
    font-size: .82rem;
}

.travel-ai-conversation-selector select {
    margin-left: .5rem;
    padding: .3rem .45rem;
    border: 1px solid rgba(21, 46, 42, .2);
    border-radius: .45rem;
}

.travel-ai-connection {
    color: #7a3f16;
    background: #fff6e8;
}

.travel-ai-widget {
    position: fixed;
    z-index: 1040;
    right: 1.25rem;
    bottom: 1.25rem;
}

.travel-ai-widget__launcher {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .7rem 1rem;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: #246b5e;
    box-shadow: 0 12px 32px rgba(21, 46, 42, .25);
}

.travel-ai-widget__launcher span {
    display: grid;
    width: 2.1rem;
    height: 2.1rem;
    place-items: center;
    border-radius: 50%;
    color: #246b5e;
    background: #fff;
    font-size: .72rem;
}

.travel-ai-widget__panel {
    position: absolute;
    right: 0;
    bottom: 4.25rem;
    width: min(420px, calc(100vw - 2rem));
}

.travel-ai-chat--widget {
    min-height: 560px;
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(21, 46, 42, .25);
}

.travel-ai-chat--widget .travel-ai-chat__header {
    padding: 1.15rem;
}

.travel-ai-chat--widget .travel-ai-chat__header h1 {
    font-size: 1.25rem;
}

.travel-ai-chat--widget .travel-ai-chat__header p {
    font-size: .78rem;
}

.travel-ai-chat--widget .travel-ai-chat__messages {
    min-height: 310px;
    max-height: 380px;
    padding: 1rem;
}

.travel-ai-chat--widget .travel-ai-composer {
    padding: 1rem;
}

.travel-ai-widget__close {
    border: 0;
    color: var(--lt-black, #2A2525);
    background: transparent;
    font-size: 1.8rem;
    line-height: 1;
}

.travel-ai-admin__table-scroll {
    max-height: 440px;
}

@media (max-width: 575.98px) {
    .travel-ai-shell {
        padding: 1rem 0;
    }

    .travel-ai-chat {
        min-height: 600px;
        border-radius: 18px;
    }

    .travel-ai-chat__header {
        flex-direction: column;
        padding: 1.4rem;
    }

    .travel-ai-chat__messages,
    .travel-ai-composer {
        padding: 1.25rem;
    }

    .travel-ai-composer {
        flex-direction: column;
        align-items: stretch;
    }

    .travel-ai-message__content {
        max-width: 86%;
    }

    .travel-ai-widget {
        right: .75rem;
        bottom: .75rem;
    }

    .travel-ai-widget__panel {
        position: fixed;
        inset: 0;
        width: 100%;
        padding: .5rem;
        background: rgba(10, 28, 25, .35);
    }

    .travel-ai-chat--widget {
        width: 100%;
        height: calc(100dvh - 1rem);
        min-height: 0;
    }

    .travel-ai-chat--widget .travel-ai-chat__messages {
        height: calc(100dvh - 270px);
        max-height: none;
    }
}
