[data-player-page]:not(.is-meeting-chat-visible) .conference-chat-event,
[data-player-page]:not(.is-meeting-chat-visible) .conference-chat-events {
    display: none;
}

.conference-chat-empty-transcript {
    display: none;
}

[data-player-page]:not(.is-meeting-chat-visible) .conference-chat-empty-transcript {
    display: block;
}

.conference-chat-event {
    box-sizing: border-box;
    clear: both;
    width: fit-content;
    max-width: 85%;
    margin: 12px 0 12px auto;
    padding: 10px 14px;
    border: 1px solid #e9ddff;
    border-radius: 12px;
    background: #f5f1ff;
    color: #334155;
    text-align: left;
    overflow-wrap: anywhere;
}

.conference-chat-events {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.conference-chat-events > .conference-chat-event {
    margin-top: 0;
    margin-bottom: 0;
}

.conference-chat-event__meta,
.conference-chat-event small {
    display: block;
    font-size: 0.8em;
    opacity: 0.75;
}

.conference-chat-event__row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.conference-chat-event__time {
    flex-shrink: 0;
    line-height: 20px;
    white-space: nowrap;
}

.conference-chat-event__content {
    min-width: 0;
    flex: 1;
    font-size: 14px;
    line-height: 20px;
}

.conference-chat-event__meta {
    font-size: 14px;
    line-height: 20px;
}

@media (max-width: 639px) {
    .conference-chat-event__row {
        flex-direction: column;
        gap: 10px;
    }
}

.conference-chat-event--participant {
    border-color: #e2e8f0;
    background: #f8fafc;
}

.conference-chat-event__text {
    white-space: pre-wrap;
}

.conference-chat-event__file-link,
.conference-chat-event__file-link:visited {
    color: #1d4ed8;
    text-decoration: underline;
}

.conference-chat-event__file-link:hover,
.conference-chat-event__file-link:focus-visible {
    color: #1e40af;
}

.conference-chat-event__image-link {
    display: block;
    margin-top: 8px;
}

.conference-chat-event__image-link img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}
