/*
 * FYNDA 2.7F-R
 * Scoped presentation refinements.
 *
 * No quotation, invoice, Chat API, GPS,
 * map or business workflow modifications.
 */

/* Chat header */

#app .fynda-chat-premium .chat-heading {
    min-width: 0;
    box-sizing: border-box;
}

#app .fynda-chat-premium .chat-heading p {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.35;
}

#app .fynda-chat-premium .chat-avatar {
    flex-shrink: 0;
}

/* Chat bubbles */

#app .fynda-chat-premium .message-bubble {
    min-width: 0;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    border-radius: 16px;
    box-shadow: 0 2px 7px rgb(8 27 51 / 6%);
}

#app .fynda-chat-premium .message-bubble p {
    max-width: 100%;
    overflow-wrap: anywhere;
    line-height: 1.45;
}

/* Message composer */

#app .fynda-chat-premium .chat-compose-region {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

#app .fynda-chat-premium
.chat-compose-region :is(input, textarea) {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 16px;
}

/* Application-owned dialog content */

#app [role="dialog"] :is(h1, h2, h3) {
    max-width: 100%;
    overflow-wrap: anywhere;
    line-height: 1.3;
}

#app [role="dialog"] :is(p, label) {
    overflow-wrap: anywhere;
    line-height: 1.45;
}

#app [role="dialog"] :is(
    input:not([type="checkbox"]):not([type="radio"]),
    textarea,
    select
) {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* Narrow devices */

@media (max-width: 320px) {
    #app .fynda-chat-premium .message-bubble {
        border-radius: 14px;
    }
}
