/* Emoji panel with search (2026-11-24): assets/js/parts/emoji.js · button: emojiBtn() in inc/components.php.
   The panel itself (.dm-emoji-pick, tabs, list, grid) is styled in dm.css; here: the search field, the search results,
   the floating panel for comments and the smiley button in the comment field. */
.dm-emoji-pick .em-q{position:relative;display:flex;align-items:center;margin:2px 0 6px}
.dm-emoji-pick .em-q>i{position:absolute;left:12px;top:50%;transform:translateY(-50%);font-size:13px;color:var(--muted);pointer-events:none}
.dm-emoji-pick .em-q input{display:block;width:100%;min-height:0;height:36px;margin:0;padding:0 36px 0 34px;border:1px solid transparent;border-radius:12px;background:#F4F1E8;box-shadow:none;font:400 14.5px/1.2 var(--ui);color:var(--ink);-webkit-appearance:none;appearance:none}
.dm-emoji-pick .em-q input::placeholder{color:var(--muted);opacity:1}
.dm-emoji-pick .em-q input:focus{outline:none;background:#fff;border-color:#BBF7D0;box-shadow:0 0 0 3px rgba(22,163,74,.1)}
.dm-emoji-pick .em-q .em-clear{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:28px;height:28px;aspect-ratio:auto;border-radius:50%;font-size:13px;color:var(--muted)}
.dm-emoji-pick .em-q .em-clear[hidden]{display:none}
.dm-emoji-pick .em-q .em-clear:hover{color:var(--ink)}
/* while you search: only the results, the group tabs step back */
.dm-emoji-pick.is-search .dm-emoji-list>section[data-sec]{display:none}
.dm-emoji-pick.is-search .dm-emoji-tabs button{opacity:.4;filter:grayscale(1);background:none}
.dm-emoji-pick .em-res{padding-top:6px}
.dm-emoji-pick .em-res[hidden]{display:none}
.dm-emoji-pick .em-none{margin:0;padding:28px 10px;text-align:center;color:var(--muted);font-size:14px}
.dm-emoji-pick .em-none[hidden]{display:none}
/* comments: the panel floats over the page; emoji.js sets top (and left on wide screens) */
.dm-emoji-pick.em-float{position:fixed;right:auto;bottom:auto;z-index:1240}
/* the smiley in the comment field, left of the send button (socialfx.css .sc-c-form) */
.sc-c-form.has-emo textarea{padding-right:92px}
.sc-c-form .em-btn{position:absolute;right:60px;bottom:20px;display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:none;color:var(--muted);font-size:16px;line-height:1;cursor:pointer;transition:background .15s,color .15s}
.sc-c-form .em-btn:hover{background:rgba(20,40,25,.06);color:var(--ink)}
.sc-c-form .em-btn[aria-expanded=true]{background:#DCFCE7;color:var(--leaf-2)}
@media (max-width:760px){
  .dm-emoji-pick .em-q input{font-size:16px}   /* 16px: the iPhone does not zoom in on the field */
  .dm-emoji-pick.em-float{left:8px;right:8px;width:auto}
}
