/* Stickers keep their transparency and reserve their size before bytes arrive. */
.inline-sticker {
  width:var(--sticker-width,180px);
  max-width:100%;
  margin:2px 0;
}
.sticker-viewport {
  position:relative;
  width:100%;
  aspect-ratio:var(--sticker-ratio,1);
  display:grid;
  place-items:center;
  background:transparent;
  border:0;
}
.sticker-image {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  background:transparent;
  border:0;
}
.sticker-placeholder {
  max-width:100%;
  color:var(--muted);
  font-size:12px;
  line-height:1.4;
  text-align:center;
}
.sticker-actions {
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:3px 12px;
  min-height:24px;
}
.sticker-actions button {
  appearance:none;
  padding:3px 0;
  min-height:24px;
  margin:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--muted);
  font:inherit;
  font-size:10px;
  line-height:16px;
  cursor:pointer;
}
@media (hover:hover) and (pointer:fine) {
  .sticker-actions button:hover { color:var(--accent); text-decoration:underline; }
}
.sticker-actions button:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.sticker-actions button:disabled { cursor:default; opacity:.65; text-decoration:none; }
.sticker-actions .sticker-retry { color:var(--accent); }
.message.sticker-message:not(.has-text) {
  --message-meta:var(--muted);
  padding:2px 0;
  border:0;
  background:transparent;
  box-shadow:none;
  color:var(--text);
}
.message.sticker-message:not(.has-text) .message-meta { margin-top:0; }
.message.sticker-message:not(.has-text) .edit-button { color:var(--accent); }
