.tickets-channel-telegram-group-message .message-operations__wrapper {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
  max-width: 100%;
  vertical-align: top;
}

.tickets-channel-telegram-group-message .message-operations__wrapper > * {
  min-width: 0;
}

.tickets-channel-telegram-group-message .message-operations__wrapper > :not(.message-operations__widgets):not(.message-operations__container) {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
  max-width: 100%;
}

.tickets-channel-telegram-group-message .message-operations__widgets,
.tickets-channel-telegram-group-message .message-operations__container {
  align-items: center;
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 5px;
  overflow: visible;
  position: relative;
}

.tickets-channel-telegram-group-message .message-operations__wrapper .interactive-formatter-root {
  max-width: 100%;
  min-width: 0;
}

.tickets-channel-telegram-group-message .message-operations__container .interactive-formatter-root[class*="reaction"] {
  flex: 0 0 auto;
  max-width: none;
  overflow: visible;
}

.tickets-channel-telegram-group-message .message-operations__container form.interactive-formatter-root[class*="reaction"],
.tickets-channel-telegram-group-message .message-operations__container .interactive-formatter-root[class*="reaction"] form {
  bottom: calc(100% + 5px);
  display: block;
  max-height: min(420px, 70vh);
  max-width: min(280px, calc(100vw - 24px));
  min-width: min(260px, calc(100vw - 24px));
  overflow-y: auto;
  position: absolute;
  right: 0;
  width: min(260px, calc(100vw - 24px));
  z-index: 1001;
}

.tickets-channel-telegram-group-message .message-operations__container .interactive-formatter-root[class*="reaction"] input[type="search"],
.tickets-channel-telegram-group-message .message-operations__container .interactive-formatter-root[class*="reaction"] input[type="text"] {
  box-sizing: border-box;
  width: 100%;
}

.tickets-channel-telegram-message .message-operations__container .interactive-formatter-root[class*="reaction"] {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.tickets-channel-telegram-message .message-operations__container .interactive-formatter-root[class*="reaction"] .interactive-formatter-value,
.tickets-channel-telegram-message .message-operations__container .interactive-formatter-root[class*="reaction"] [data-reaction],
.tickets-channel-telegram-message .message-operations__container .interactive-formatter-root[class*="reaction"] button,
.tickets-channel-telegram-message .message-operations__container .interactive-formatter-root[class*="reaction"] a,
.tickets-channel-telegram-message .message-operations__container .interactive-formatter-root[class*="reaction"] [role="button"] {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  line-height: 1;
  text-align: center;
}

.tickets-channel-telegram-message .message-operations__container .interactive-formatter-root[class*="reaction"] .interactive-formatter-value,
.tickets-channel-telegram-message .message-operations__container .interactive-formatter-root[class*="reaction"] [data-reaction] {
  box-sizing: border-box;
  height: 24px;
  line-height: 24px;
  min-width: 24px;
  padding: 0;
}

.tickets-channel-telegram-message .tickets-reaction-item-emoji {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  line-height: 1;
  font-family: sans-serif;
}

.tickets-channel-telegram-message .tickets-reaction-item-emoji::before {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  line-height: 1;
  transform: translateY(2px);
  width: 100%;
}

.tickets-channel-telegram-message .message-user-info a.tickets-dialog-link {
  color: inherit !important;
}

.tickets-channel-telegram-message .tickets-thread-message-content p {
  margin: 0;
}

.tickets-channel-telegram-message .tickets-thread-message-content p:empty::before {
  content: "\00a0";
}

.tickets-channel-telegram-attachment-quote {
  align-items: center;
  box-sizing: border-box;
  display: inline-flex;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
}

.tickets-channel-telegram-attachment-quote i,
.tickets-channel-telegram-attachment-quote .tickets-icon {
  display: block;
  line-height: 1;
}



.tickets-thread-message-quoted-link,
.tickets-thread-message-quoted-link:hover,
.tickets-thread-message-quoted-link:focus {
  text-decoration: none;
}

.tickets-channel-telegram-file-quote .quote-text {
  min-width: 0;
}

.tickets-channel-telegram-quoted-file-name {
  color: var(--accent-color, #0b74de);
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
  white-space: nowrap;
}

.tickets-channel-telegram-quoted-file-filename {
  color: inherit;
}

.tickets-thread-message-quoted-link,
.tickets-thread-message-quoted-link *,
.tickets-thread-message-quoted a,
.tickets-thread-message-quoted a:hover,
.tickets-thread-message-quoted a:focus,
.tickets-thread-message-quoted .message-quoted-info a,
.tickets-thread-message-quoted .message-quoted-info a:hover,
.tickets-thread-message-answer-form-form .tickets-thread-message-quoted a,
.tickets-thread-message-answer-form-form .tickets-thread-message-quoted a:hover,
.ck-content blockquote a[data-quoted-message-link],
.ck-content blockquote a[data-quoted-message-link] *,
.ck-content blockquote a[data-quoted-message-link]:hover,
.ck-content blockquote a[data-quoted-message-link]:focus {
  border-bottom: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  text-decoration-line: none !important;
}

.tickets-thread-message-quoted,
.tickets-thread-message-quoted *,
.tickets-thread-message-answer-form-form blockquote,
.tickets-thread-message-answer-form-form blockquote *,
.tickets-thread-message-form blockquote,
.tickets-thread-message-form blockquote *,
.tickets_thread--omni .ck.ck-editor__editable blockquote,
.tickets_thread--omni .ck.ck-editor__editable blockquote *,
.tickets_thread--omni .ck.ck-content blockquote,
.tickets_thread--omni .ck.ck-content blockquote *,
.ck.ck-editor__editable blockquote a,
.ck.ck-editor__editable blockquote a *,
.ck.ck-content blockquote a,
.ck.ck-content blockquote a * {
  border-bottom: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  text-decoration-color: transparent !important;
  text-decoration-line: none !important;
}
/* The generic link filter adds a separate icon after stored quote links. */
.tickets-thread-message-quoted-link + .tickets-external-link--icon {
  display: none !important;
}
/* CKEditor quote source links should not render as normal underlined links. */
.tickets-thread-message-answer-form-form .ck.ck-editor__editable a[href*="mid="],
.tickets-thread-message-answer-form-form .ck.ck-editor__editable a[href*="mid="] *,
.tickets-thread-message-answer-form-form .ck.ck-editor__editable a[href*="/ticket/"],
.tickets-thread-message-answer-form-form .ck.ck-editor__editable a[href*="/ticket/"] *,
.tickets-thread-message-answer-form-form .ck.ck-editor__editable a[data-quoted-message-link],
.tickets-thread-message-answer-form-form .ck.ck-editor__editable a[data-quoted-message-link] *,
.tickets_thread--omni .ck.ck-editor__editable a[href*="mid="],
.tickets_thread--omni .ck.ck-editor__editable a[href*="mid="] *,
.tickets_thread--omni .ck.ck-editor__editable a[href*="/ticket/"],
.tickets_thread--omni .ck.ck-editor__editable a[href*="/ticket/"] *,
.tickets_thread--omni .ck.ck-editor__editable a[data-quoted-message-link],
.tickets_thread--omni .ck.ck-editor__editable a[data-quoted-message-link] * {
  background-image: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  text-decoration: none !important;
  text-decoration-color: transparent !important;
  text-decoration-line: none !important;
  text-decoration-thickness: 0 !important;
  -webkit-text-decoration-line: none !important;
}
/* Answer-form quote preview links must not inherit normal browser/CKEditor link underline. */
a.tickets-thread-message-quoted-link,
a.tickets-thread-message-quoted-link *,
.tickets-thread-message-answer-form-form a.tickets-thread-message-quoted-link,
.tickets-thread-message-answer-form-form a.tickets-thread-message-quoted-link *,
.tickets-thread-message-answer-form-form a[href*="mid="],
.tickets-thread-message-answer-form-form a[href*="mid="] *,
.tickets-thread-message-answer-form-form a[href*="/ticket/"],
.tickets-thread-message-answer-form-form a[href*="/ticket/"] *,
.tickets_thread--omni__composer a.tickets-thread-message-quoted-link,
.tickets_thread--omni__composer a.tickets-thread-message-quoted-link *,
.tickets_thread--omni__composer a[href*="mid="],
.tickets_thread--omni__composer a[href*="mid="] *,
.tickets_thread--omni__composer a[href*="/ticket/"],
.tickets_thread--omni__composer a[href*="/ticket/"] * {
  background-image: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  text-decoration: none !important;
  text-decoration-color: transparent !important;
  text-decoration-line: none !important;
  text-decoration-thickness: 0 !important;
  -webkit-text-decoration-line: none !important;
}
/* Quoted content can contain copied profile/date links; CKEditor must render them without underline too. */
.tickets-thread-message-answer-form-form .ck.ck-editor__editable a,
.tickets-thread-message-answer-form-form .ck.ck-editor__editable a *,
.tickets-thread-message-answer-form-form .ck-content a,
.tickets-thread-message-answer-form-form .ck-content a *,
.tickets_thread--omni__composer .ck.ck-editor__editable a,
.tickets_thread--omni__composer .ck.ck-editor__editable a *,
.tickets_thread--omni__composer .ck-content a,
.tickets_thread--omni__composer .ck-content a * {
  background-image: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  text-decoration: none !important;
  text-decoration-color: transparent !important;
  text-decoration-line: none !important;
  text-decoration-thickness: 0 !important;
  -webkit-text-decoration-line: none !important;
}
.tickets-channel-telegram-thread-author-avatar {
  align-items: center;
  background: #eef3f7;
  border-radius: 50%;
  box-sizing: border-box;
  display: inline-flex;
  flex: 0 0 40px;
  height: 40px;
  justify-content: center;
  overflow: hidden;
  vertical-align: middle;
  width: 40px;
}

.tickets-channel-telegram-thread-author-avatar__image,
.tickets-channel-telegram-message-author-avatar {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  box-sizing: border-box;
  display: block;
  max-width: none;
  object-fit: cover;
  object-position: center;
  overflow: hidden;
}

.tickets-channel-telegram-thread-author-avatar__image {
  height: 40px;
  width: 40px;
}

.tickets-channel-telegram-message-author-avatar {
  background: #eef3f7;
  flex: 0 0 35px;
  height: 35px;
  margin-right: 8px;
  min-width: 35px;
  vertical-align: top;
  width: 35px;
}
