/* LAB: office private-chat emojis and stickers share existing WhatsApp media.
   No new audio/attachment controls; unchanged original send and message windows. */
.chat-rail .pc-fun-compose,
.messenger-chat-window .pc-fun-compose{position:relative!important}
.chat-rail .pc-fun-compose .pc-fun-btn,
.messenger-chat-window .pc-fun-compose .pc-fun-btn{
  display:inline-flex;align-items:center;justify-content:center;
  flex:0 0 29px;width:29px;min-width:29px;height:32px;
  font:700 1.375rem/1 system-ui,sans-serif;color:var(--vo-light-primary,#a9e8e5);
  background:var(--vo-light-card,#0c3144);border:1px solid #2b6676;border-radius:9px;
  margin:0 2px 0 0;padding:0;cursor:pointer;
}
.chat-rail .pc-fun-compose .pc-fun-stickers,
.messenger-chat-window .pc-fun-compose .pc-fun-stickers{font-size:1.3125rem}
.chat-rail:not(.chat-private-mode) .chat-modern-send.pc-fun-compose .pc-fun-btn,
.chat-rail.v984-no-conversation .chat-modern-send.pc-fun-compose .pc-fun-btn,
.messenger-chat-window[data-chat-key="general"] .pc-fun-btn,
.messenger-chat-window[data-chat-key^="channel:"] .pc-fun-btn{display:none!important}
.pc-fun-compose .pc-fun-picker[hidden],
.pc-fun-compose .pc-fun-notice[hidden]{display:none!important}
.pc-fun-compose .pc-fun-picker{
  display:flex!important;flex-direction:column!important;gap:8px!important;
  position:absolute!important;left:0!important;right:0!important;
  bottom:calc(100% + 5px)!important;z-index:1050!important;
  max-height:min(44vh,300px)!important;overflow-y:auto!important;
  background:var(--vo-light-card,#082b3b)!important;color:var(--vo-light-primary,#e7fff9)!important;
  border:1px solid #368a8a!important;border-radius:11px!important;
  padding:10px!important;box-shadow:0 8px 30px #0009!important;
}
.pc-fun-compose .pc-fun-title{
  display:flex;justify-content:space-between;align-items:center;
  color:var(--vo-light-primary,#e7fff9);font:700 0.8125rem/1.3 system-ui,sans-serif;
}
.pc-fun-compose .pc-fun-sticker-head button{
  color:var(--vo-light-primary,white);background:var(--vo-light-card,#098363);border:1px solid #33c9a2;
  border-radius:7px;padding:6px 9px;font:700 0.6875rem system-ui,sans-serif;
  cursor:pointer;
}
.pc-fun-compose .pc-fun-emoji-grid{
  display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;
}
.pc-fun-compose .pc-fun-emoji-item{
  min-height:35px;width:100%;font-size:1.375rem;background:var(--vo-light-card,#133b4d);
  color:var(--vo-light-primary,white);border:1px solid #315a6e;border-radius:8px;cursor:pointer;
}
.pc-fun-compose .pc-fun-sticker-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(53px,1fr));gap:7px;
}
.pc-fun-compose .pc-fun-sticker-item{
  width:100%;height:58px;padding:3px;display:grid;place-items:center;
  background:var(--vo-light-card,#134050);border:1px solid #2d6970;border-radius:9px;cursor:pointer;
}
.pc-fun-compose .pc-fun-sticker-item:disabled{opacity:var(--vo-light-disabled-opacity,.5);cursor:wait}
.pc-fun-compose .pc-fun-sticker-item img{
  max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;
}
.pc-fun-compose .pc-fun-empty{
  grid-column:1/-1;color:var(--vo-light-secondary,#bed7dd);font:500 0.75rem/1.4 system-ui,sans-serif;
}
.pc-fun-compose .pc-fun-notice{
  position:absolute;z-index:1060;bottom:calc(100% + 5px);left:0;right:0;
  padding:7px 9px;background:var(--vo-light-card,#3d3140);color:var(--vo-light-secondary,#fff0db);border:1px solid #976076;
  border-radius:8px;font:600 0.6875rem/1.4 system-ui,sans-serif;
}
.chat-msg-bubble.pc-fun-sticker-bubble{
  display:flex!important;align-items:center!important;justify-content:center!important;
  min-width:85px!important;min-height:75px!important;max-width:240px!important;
  padding:4px!important;background:transparent!important;box-shadow:none!important;
  color:var(--vo-light-primary,#b6e2dc)!important;
}
.chat-msg-bubble .pc-fun-message-sticker{
  display:block;max-width:190px;max-height:190px;width:auto;height:auto;
  object-fit:contain;border-radius:7px;
}
@media(max-width:430px){
 .pc-fun-compose .pc-fun-emoji-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .pc-fun-compose .pc-fun-picker{max-height:35vh!important}
 .chat-rail .pc-fun-compose .pc-fun-btn{flex-basis:26px;width:26px;min-width:26px}
}

/* Sticker con horario: la imagen permanece completa y la hora debajo a la derecha. */
.chat-msg-bubble.pc-fun-sticker-bubble:has(> .vo-chat-msg-tail){
  flex-direction:column!important;align-items:flex-end!important;
  justify-content:flex-start!important;gap:4px!important;
}
.chat-msg-bubble.pc-fun-sticker-bubble > .pc-fun-message-sticker{align-self:center}
.chat-msg-bubble.pc-fun-sticker-bubble > .vo-chat-msg-tail{
  width:100%;align-self:flex-end;justify-content:flex-end;
}
.chat-msg-bubble.pc-fun-sticker-bubble > .pc-fun-save-received{align-self:center}

/* Only received private-chat stickers offer save; sent stickers never do. */
.chat-msg-row.other .pc-fun-sticker-bubble{flex-direction:column!important;gap:5px}
.chat-msg-bubble .pc-fun-save-received{
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid #279e80;border-radius:7px;background:var(--vo-light-card,#0b5d51);
  color:var(--vo-light-primary,#e6fff6);padding:5px 8px;min-height:27px;
  font:700 0.625rem/1.2 system-ui,sans-serif;cursor:pointer;
}
.chat-msg-bubble .pc-fun-save-received:disabled{opacity:var(--vo-light-disabled-opacity,.55);cursor:wait}

/* v2 · Quitar sticker personal: X accesible en PC, móvil y teclado. */
.pc-fun-compose .pc-fun-sticker-tile{
  position:relative!important;
  min-width:0!important;
  height:58px!important;
}
.pc-fun-compose .pc-fun-sticker-tile .pc-fun-sticker-item{
  width:100%!important;
  height:100%!important;
}
.pc-fun-compose .pc-fun-sticker-remove{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  position:absolute!important;
  top:2px!important;right:2px!important;z-index:2!important;
  width:21px!important;height:21px!important;min-width:21px!important;
  padding:0!important;margin:0!important;
  border:1px solid #68777d!important;border-radius:6px!important;
  color:var(--vo-light-primary,#f5f5f4)!important;background:var(--vo-light-card,#333d42)!important;
  font:700 1.125rem/1 system-ui,sans-serif!important;
  cursor:pointer!important;box-shadow:none!important;
}
.pc-fun-compose .pc-fun-sticker-remove:hover,
.pc-fun-compose .pc-fun-sticker-remove:focus-visible{
  background:var(--vo-light-card,#754648)!important;border-color:var(--vo-light-border,#ae777a)!important;
}
.pc-fun-compose .pc-fun-sticker-remove:focus-visible{
  outline:2px solid #d7e8e8!important;outline-offset:1px!important;
}
.pc-fun-compose .pc-fun-sticker-remove:disabled{opacity:var(--vo-light-disabled-opacity,.5)!important;cursor:wait!important}
