/* Aviso do canto do Messenger dentro do XP: o mesmo `MsgrToastRoot` (UIB 921)
   do msn-sala (src/componentes/avisos/Toast.tsx e estilo/dialogos.css):
   fundo 1473 em nove partes 19,18,19,18, ícone 600, moldura da foto 1525
   (28,33,33,28 → fatias 33 33 28 28) e o "x" 21016. As imagens estão em /xp-ui/msn/aviso. */
.msn-aviso {
  position: relative;
  isolation: isolate;
  width: 218px;
  min-height: 132px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 8px 10px 10px 8px;
  font: 12px/16px 'Segoe UI', Tahoma, sans-serif;
  color: #333;
  user-select: none;
  pointer-events: auto;
}
.msn-aviso::before,
.msn-aviso-moldura {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-style: solid;
  border-color: transparent;
}
.msn-aviso::before {
  z-index: -1;
  border-width: 18px 19px 18px 19px;
  border-image: url(/xp-ui/msn/aviso/4000_1473_0.png) 18 19 18 19 fill stretch;
}
.msn-aviso-barra {
  display: flex;
  align-items: flex-start;
  flex: none;
}
.msn-aviso-icone {
  display: block;
  margin: 7px 3px 0 10px;
  flex: none;
}
.msn-aviso-titulo {
  flex: 1;
  min-width: 0;
  padding-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msn-aviso-fechar {
  padding: 6px 8px 0 0;
  line-height: 0;
}
.msn-aviso-fechar button {
  display: inline-flex;
  padding: 3px;
  border: 0;
  background: none;
  line-height: 0;
  cursor: default;
}
.msn-aviso-fechar img {
  display: block;
}
.msn-aviso-cliente {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 2px 4px 4px;
}
.msn-aviso-conteudo {
  display: flex;
  align-items: flex-start;
  width: 100%;
  padding: 4px 2px 0 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.msn-aviso-imagem {
  position: relative;
  flex: none;
  width: 62px;
  height: 62px;
  margin: 2px 2px 0 6px;
}
.msn-aviso-foto {
  position: absolute;
  left: 5px;
  top: 5px;
  width: 48px;
  height: 48px;
  object-fit: cover;
  background: #fff;
}
.msn-aviso-moldura {
  border-width: 33px 33px 28px 28px;
  border-image: url(/xp-ui/msn/aviso/4000_1525_0.png) 33 33 28 28 fill stretch;
}
.msn-aviso-mensagem {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 3px 1px 3px 3px;
}
.msn-aviso-linha1,
.msn-aviso-linha2 {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msn-aviso-linha1.sozinha,
.msn-aviso-linha2 {
  white-space: normal;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.msn-aviso-linha2 {
  -webkit-line-clamp: 2;
}
.msn-aviso-rodape {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}
.msn-aviso-link {
  padding: 0 1px 0 0;
  border: 0;
  background: none;
  font: inherit;
  color: #0066cc;
  cursor: pointer;
}
.msn-aviso-link:hover {
  text-decoration: underline;
}
/* sobe de trás da barra de tarefas, como a pilha do msn-sala */
.msn-aviso {
  animation: msn-aviso-sobe 450ms cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
@keyframes msn-aviso-sobe {
  from {
    transform: translateY(100%);
  }
  to {
    transform: none;
  }
}
