/* Yappy Messaging Extras v36 — WhatsApp unsend, view once, mentions + iMessage unsend. */
.yx36-unsent-wa{
  font-style:italic;
  color:var(--bubble-meta);
  display:flex;
  align-items:center;
  gap:7px;
  min-width:190px;
}
.yx36-viewonce{
  display:inline-flex;align-items:center;gap:7px;
  font-style:italic;
}
.yx36-mention{
  color:#087d62;
  font-weight:700;
}
.bubble.out .yx36-mention{color:#08785c}
:root[data-theme="dark"] .yx36-mention,
:root[data-theme="dark"] .bubble.out .yx36-mention{color:#53bdeb}

.yx36-im-unsent{
  width:100%;
  display:flex;
  justify-content:center;
  padding:8px 16px;
  color:var(--text-sub);
  font-size:12.5px;
  line-height:16px;
  text-align:center;
}
html[data-theme="dark"] .yx36-im-unsent{color:#8e8e93}

.yx36-sheet-note{
  font-size:12px;color:var(--text-sub);line-height:1.4;margin:8px 2px 0;
}
.yx36-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.yx36-choice{
  border:1px solid var(--input-border);background:var(--composer-field);color:var(--text-main);
  border-radius:12px;padding:11px 10px;text-align:center;
}
.yx36-choice.selected{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}

/* Automatic @mention picker for WhatsApp group chats. */
.composer{position:relative}
.yx36-mention-menu{
  position:absolute;
  left:54px;
  right:54px;
  bottom:calc(100% + 8px);
  z-index:90;
  max-height:248px;
  overflow:auto;
  background:var(--composer-field);
  border:1px solid var(--input-border);
  border-radius:16px;
  box-shadow:0 10px 34px rgba(0,0,0,.16);
  padding:6px;
  -webkit-overflow-scrolling:touch;
}
.yx36-mention-menu[hidden]{display:none!important}
.yx36-mention-option{
  width:100%;
  min-height:50px;
  border:0;
  border-radius:12px;
  background:transparent;
  color:var(--text-main);
  display:flex;
  align-items:center;
  gap:10px;
  padding:7px 9px;
  text-align:left;
}
.yx36-mention-option:active{background:rgba(118,118,128,.12)}
.yx36-mention-option>.avatar{width:34px;height:34px;flex:0 0 34px;font-size:12px}
.yx36-mention-option>span{display:flex;flex-direction:column;min-width:0}
.yx36-mention-option strong{font-size:15px;line-height:18px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.yx36-mention-option small{font-size:12px;line-height:16px;color:var(--text-sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* v38: closer WhatsApp deleted + view-once glyphs */
.yx36-wa-deleted-icon{
  width:20px;
  height:20px;
  flex:0 0 20px;
  display:block;
  color:currentColor;
  overflow:visible;
}
.yx36-unsent-wa{
  gap:6px;
  line-height:1.25;
}
.yx36-wa-view-icon{
  width:27px;
  height:27px;
  flex:0 0 27px;
  display:block;
  color:currentColor;
  overflow:visible;
}
.yx36-viewonce{
  gap:7px;
  line-height:1.2;
  align-items:center;
}
.yx36-viewonce.opened{
  color:var(--bubble-meta);
}

/* iMessage mentions keep the native bubble; only the mention text changes. */
.im-text .im-mention{font-weight:700;color:inherit!important}
