.iwe-live {
    margin-top: .85rem;
    padding: 1rem;
    border: 1px solid var(--iwe-line);
    border-radius: .55rem;
}
.iwe-live form:not([hidden]), .iwe-live-message-form:not([hidden]) {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: .65rem;
}
.iwe-live form label, .iwe-live-message-form label {
    display: grid;
    width: 100%;
    gap: .25rem;
}
.iwe-live form p { width: 100%; margin: 0; }
.iwe-live input, .iwe-live textarea, .iwe-live-message-form textarea {
    width: 100%;
    min-height: 0;
    padding: .5rem;
    font: inherit;
}
.iwe-live-messages {
    list-style: none;
    padding: 0;
    margin: 0 0 .75rem;
    max-height: 16rem;
    overflow: auto;
}
.iwe-live-messages li {
    padding: .55rem .7rem;
    margin-bottom: .4rem;
    background: #eef4f8;
    color: #162a3a;
    border-radius: .4rem;
}
.iwe-live-messages p, .iwe-inbox-summary {
    margin: .2rem 0 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.iwe-live-status:empty { display: none; }
.iwe-inbox-layout {
    display: grid;
    grid-template-columns: minmax(11rem, 16rem) minmax(0, 1fr);
    gap: 1.5rem;
    max-width: 64rem;
}
.iwe-inbox-conversation {
    padding: 1rem;
    background: #fff;
    border: 1px solid #c3c4c7;
}
.iwe-inbox-conversation details { margin-bottom: .75rem; }
.iwe-inbox-threads button { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 650px) {
    .iwe-inbox-layout { grid-template-columns: minmax(0, 1fr); }
}

.iwe-inbox-route {
    border: 1px solid #d3e0e8;
    border-radius: .55rem;
    background: #f6f9fb;
}
.iwe-inbox-route summary {
    cursor: pointer;
    padding: .75rem 1rem;
    font-weight: 600;
}
.iwe-inbox-summary { padding: 0 1rem 1rem; }
.iwe-route-steps {
    margin: 0;
    padding-inline-start: 1.6rem;
    white-space: normal;
}
.iwe-route-steps li {
    padding: .75rem 0;
    border-top: 1px solid #d3e0e8;
}
.iwe-route-steps li::marker { color: #235977; font-weight: 700; }
.iwe-route-question { font-weight: 700; color: #162a3a; }
.iwe-inbox-summary p {
    margin: 0;
    white-space: pre-wrap;
}
.iwe-inbox-summary .iwe-route-answer,
.iwe-inbox-summary .iwe-route-advice {
    margin-top: .5rem;
    padding: .55rem .7rem;
    border-inline-start: 3px solid #3181ac;
    border-radius: .2rem;
    background: #e6f2f9;
    color: #162a3a;
}
.iwe-route-answer strong, .iwe-route-advice strong { display: block; font-size: .85em; }
.iwe-inbox-summary .iwe-route-advice {
    border-color: #6c7b86;
    background: #fff;
}
.iwe-live-messages li { width: fit-content; max-width: 92%; }
.iwe-live-messages .iwe-message-staff {
    margin-inline-start: auto;
    background: #d9edf9;
}

/* v0.3.6: overzicht in de livechat-inbox */
.iwe-live-overview { display:flex; flex-wrap:wrap; gap:12px; margin:18px 0 8px; }
.iwe-live-overview > div { display:grid; gap:5px; min-width:185px; padding:15px 20px; background:#fff; border:1px solid #cbdce7; border-radius:9px; }
.iwe-live-overview strong { color:#162a3a; font-size:27px; line-height:1.1; }
.iwe-live-overview span { color:#526878; }

/* Explicit perspective, set by the message renderer. */
.iwe-live-messages.iwe-visitor-view:not([hidden]) { display:flex; flex-direction:column; gap:.4rem; }
.iwe-live-messages.iwe-visitor-view > li { max-width:85%; box-sizing:border-box; }
.iwe-live .iwe-live-status { text-align:center; font-size:.85em; }
