/* AKVARISTA – pouze kontext formuláře a prameny odpovědi ve widgetu. */
#chatOffcanvas .offcanvas-body,
#chatOffcanvas #chat-window { min-height: 0; }
#chatOffcanvas .ak-chat-compose { flex: 0 0 auto; }
#chatOffcanvas .ak-chat-context {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .65rem;
    margin: 0 0 .45rem;
    padding: .5rem .65rem;
    border: 1px solid #bddaff;
    border-inline-start: 4px solid #1671d5;
    border-radius: .65rem;
    background: #eef6ff;
    color: #143554;
    text-align: start;
}
#chatOffcanvas .ak-chat-context[hidden] { display: none; }
#chatOffcanvas .ak-chat-context__label {
    display: block;
    margin-bottom: .12rem;
    color: #315e89;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .045em;
    line-height: 1.25;
    text-transform: uppercase;
}
#chatOffcanvas .ak-chat-context__name {
    display: block;
    font-size: .875rem;
    font-weight: 650;
    line-height: 1.28;
    overflow-wrap: anywhere;
}
#chatOffcanvas .ak-chat-context__switch {
    min-height: 2.1rem;
    padding: .25rem .6rem;
    border: 1px solid #9dbfe4;
    border-radius: .5rem;
    color: #184f85;
    background: #fff;
    font: inherit;
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
}
#chatOffcanvas .ak-chat-context__switch:hover { background: #e0efff; border-color: #5386bc; }

#chatOffcanvas .ak-chat-sources {
    align-self: flex-start;
    flex: none;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    border: 1px solid #d9e2e9;
    border-radius: .55rem;
    background: #f2f5f8;
    color: #435365;
    font-size: .78rem;
    line-height: 1.45;
    text-align: start;
    overflow-wrap: anywhere;
}
#chatOffcanvas .ak-chat-sources[open] { width: min(100%, 32rem); }
#chatOffcanvas .ak-chat-sources summary {
    display: flex;
    align-items: center;
    gap: .45rem;
    min-height: 2rem;
    padding: .3rem .65rem;
    border-radius: inherit;
    color: #425970;
    font-size: inherit;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
#chatOffcanvas .ak-chat-sources summary::-webkit-details-marker { display: none; }
/* Ikona listu a šipka nepotřebují obrázkový soubor ani ikonový font. */
#chatOffcanvas .ak-chat-sources summary::before {
    content: '';
    flex: none;
    width: .65rem;
    height: .82rem;
    border: 1px solid currentColor;
    border-radius: 2px;
    background: linear-gradient(currentColor,currentColor) 50% 38%/.34rem 1px no-repeat,
                linear-gradient(currentColor,currentColor) 50% 65%/.34rem 1px no-repeat;
}
#chatOffcanvas .ak-chat-sources summary::after {
    content: '';
    width: .42rem;
    height: .42rem;
    margin-inline-start: auto;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: translateY(-1px) rotate(45deg);
}
#chatOffcanvas .ak-chat-sources[open] summary::after { transform: translateY(2px) rotate(225deg); }
#chatOffcanvas .ak-chat-sources summary:hover { background: #e7eef3; }
#chatOffcanvas .ak-chat-sources ul { margin: 0; padding: 0 .7rem .55rem; list-style: none; }
#chatOffcanvas .ak-chat-sources li { padding-top: .35rem; border-top: 1px solid #d9e2e9; }
#chatOffcanvas .ak-chat-sources li + li { margin-top: .45rem; }
#chatOffcanvas .ak-chat-sources a { color: #205789; font-size: inherit; font-weight: 600; text-decoration: underline; }
#chatOffcanvas .ak-chat-sources p { margin: .15rem 0 0; font-size: inherit; line-height: inherit; }
#chatOffcanvas .ak-chat-context__switch:focus-visible,
#chatOffcanvas .ak-chat-sources :focus-visible { outline: 2px solid #125fab; outline-offset: 2px; }
