/**
 * Room Talk — pinned strip + toast
 */

.lms-room-talk-toast {
  position: fixed;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(0.5rem);
  z-index: 100010;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: #111827;
  color: #f9fafb;
  font-size: 0.8125rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.lms-room-talk-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.lms-room-talk-pinned {
  flex-shrink: 0;
  background: #fffbeb;
  border-bottom: 1px solid #fcd34d;
  padding: 0.75rem 1.25rem;
}
html[data-theme="dark"] .lms-room-talk-pinned {
  background: rgba(120, 53, 15, 0.25);
  border-bottom-color: rgba(251, 191, 36, 0.35);
}
.lms-room-talk-pinned__title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #b45309;
  margin-bottom: 0.5rem;
}
.lms-room-talk-pinned-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.lms-room-talk-pinned-item__body {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
}
.lms-room-talk-pinned-item__text {
  min-width: 0;
  word-break: break-word;
}
.lms-room-talk-pinned-item__attachment {
  margin-top: 0.125rem;
}
.lms-room-talk-attach--compact.lms-room-talk-attach--image {
  max-width: min(100%, 7rem);
}
.lms-room-talk-attach--compact .lms-room-talk-attach__img {
  max-height: 5rem;
  max-width: 7rem;
}
.lms-room-talk-attach--compact.lms-room-talk-attach--video {
  max-width: min(100%, 9rem);
}
.lms-room-talk-attach--compact .lms-room-talk-attach__video {
  max-height: 5rem;
}
.lms-room-talk-attach--compact.lms-room-talk-attach--file {
  max-width: 12rem;
  padding: 0.5rem 0.625rem;
}
.lms-room-talk-pinned-unpin {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.5rem;
  border: none;
  border-radius: 0.375rem;
  background: transparent;
  color: #92400e;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.lms-room-talk-pinned-unpin:hover {
  background: rgba(180, 83, 9, 0.12);
  color: #78350f;
}
html[data-theme="dark"] .lms-room-talk-pinned-unpin {
  color: #fbbf24;
}
html[data-theme="dark"] .lms-room-talk-pinned-unpin:hover {
  background: rgba(251, 191, 36, 0.15);
  color: #fde68a;
}
