.chat-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.07), 0 0 1px 0 rgba(0, 0, 0, 0.20);
    border-radius: 16px;
    display: flex;
    padding: 10px;
    flex-direction: column;
    gap: 10px;
    width: 350px;
    max-height: min(500px, 70vh);
    overflow: hidden;
}

/* Floating variant spawned by chat-window-handler */
.chat-window--floating {
    position: fixed;
    top: 0;
    left: 0;
    transform: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 1000;
}

.chat-window--floating.visible {
    opacity: 1;
    pointer-events: auto;
}

.chat-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 5px;
    min-height: 0;
    overflow-y: auto;
}

/* ========================================= */

.user-chat-query {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 5px;
    /* padding: 10px; */
    padding-block: 0px;
    border-left: 2px solid #00000014;
}

.query-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    font-size: 12px;
    font-weight: 500;
    color: var(--surface-text-placeholder);
    font-style: italic;
    gap: 5px;
    padding: 10px;
    padding-block: 0px;
}

.attachment-chip {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-items: center;
    gap: 5px;
    padding-block: 2px;
    padding-inline: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    color:var(--surface-text-placeholder);
    line-height: 150%; /* 18px */
    border-radius: 20px;
    background: #f1f1f1;
}

/* ========================================= */
.thinking-message {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    font-size: 12px;
    font-weight: 500;
    color: var(--surface-text-placeholder);
}

/* ========================================= */

.response-chat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-block: 0px;
    gap: 10px;
}

.response-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    font-size: 14px;
    font-weight: 500;
    color: var(--surface-text-sub);
    /* color: #000000; */
    /* font-style: italic; */
    gap: 5px;
}

.suggestion-cards {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 5px;
}

.suggestion-card {
    width: 100%;
    text-align: left;
    white-space: normal;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fafafa;
    transition: all 0.15s ease;
}

.suggestion-card:hover {
    background: #f0f0f0;
}

/* ========================================= */

.chat-input-bar {
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    padding: 5px;
    padding-left: 10px;
    gap: 5px;
    background: #00000007;
    border: 1px solid #0000000a;
    border-radius: 12px;
    span {
        font-size: 14px;
        font-weight: 500;
        color: #00000068;
    }
    .chat-input {
        flex: 1;
        min-width: 0;
        border: none;
        outline: none;
        background: transparent;
        resize: none;
        overflow: hidden;
        field-sizing: content;
        min-height: 31px;
        align-content: center;
        height: min-content;
        font-family: 'Inter', sans-serif;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 180%; /* 25.2px */
        color: #000000;
    
        &::placeholder {
            color: #00000068;
        }
    }
}