/* WaWink v12: isolate composer icons from legacy Inbox expander and button rules.
   This stylesheet MUST be loaded after all global/refinement styles. */
#wawink-chat-mount .walink-inbox-conversation .wawink-composer-toolbar {
  --ww-composer-control:42px;
  display:grid!important;
  grid-template-columns:42px 42px minmax(0,1fr)!important;
  align-items:center!important;
  justify-items:stretch!important;
  column-gap:8px!important;
  row-gap:0!important;
  width:100%!important;
  padding:0!important;
  margin:0!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
#wawink-chat-mount .walink-inbox-conversation .wawink-composer-toolbar > details.wawink-composer-popover {
  display:block!important;
  box-sizing:border-box!important;
  position:relative!important;
  width:42px!important;
  min-width:42px!important;
  max-width:42px!important;
  height:42px!important;
  min-height:42px!important;
  max-height:42px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:11px!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
  float:none!important;
  align-self:center!important;
}
#wawink-chat-mount .walink-inbox-conversation .wawink-composer-toolbar > details.wawink-composer-popover > summary {
  box-sizing:border-box!important;
  position:relative!important;
  display:grid!important;
  place-items:center!important;
  align-content:center!important;
  justify-content:center!important;
  grid-template-columns:1fr!important;
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  min-height:42px!important;
  max-width:42px!important;
  max-height:42px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid var(--walink-card-border,rgba(120,130,140,.25))!important;
  border-radius:11px!important;
  background:var(--walink-card-bg,var(--walink-surface,#fff))!important;
  color:var(--walink-text-primary,var(--walink-text,#202c34))!important;
  cursor:pointer!important;
  list-style:none!important;
  font-size:0!important;
  line-height:0!important;
  text-indent:0!important;
  text-decoration:none!important;
  transform:none!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
/* inbox.css adds a textual arrow using ::after. Remove it to prevent off-center icons. */
#wawink-chat-mount .walink-inbox-conversation .wawink-composer-toolbar > details.wawink-composer-popover > summary::before,
#wawink-chat-mount .walink-inbox-conversation .wawink-composer-toolbar > details.wawink-composer-popover > summary::after {
  content:none!important;
  display:none!important;
  width:0!important;
  height:0!important;
  margin:0!important;
  padding:0!important;
}
#wawink-chat-mount .walink-inbox-conversation .wawink-composer-toolbar > details.wawink-composer-popover > summary::-webkit-details-marker {display:none!important;}
#wawink-chat-mount .walink-inbox-conversation .wawink-composer-toolbar > details.wawink-composer-popover > summary::marker {content:''!important;}
#wawink-chat-mount .walink-inbox-conversation .wawink-composer-toolbar > details.wawink-composer-popover > summary > svg,
#wawink-chat-mount .walink-inbox-conversation .wawink-composer-toolbar #modal-reply-btn > svg {
  box-sizing:content-box!important;
  display:block!important;
  position:static!important;
  width:19px!important;
  height:19px!important;
  min-width:19px!important;
  min-height:19px!important;
  max-width:19px!important;
  max-height:19px!important;
  margin:0!important;
  padding:0!important;
  flex:0 0 19px!important;
  align-self:center!important;
  justify-self:center!important;
  transform:none!important;
  vertical-align:middle!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.9!important;
  opacity:1!important;
}
#wawink-chat-mount .walink-inbox-conversation .wawink-composer-toolbar > details.wawink-composer-popover > summary > .wawink-composer-tool-label {display:none!important;}
#wawink-chat-mount .walink-inbox-conversation .wawink-composer-toolbar > form#walink-reply-form {
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 42px!important;
  align-items:center!important;
  column-gap:8px!important;
  min-width:0!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
}
#wawink-chat-mount .walink-inbox-conversation .wawink-composer-toolbar #modal-reply-text {
  box-sizing:border-box!important;
  display:block!important;
  height:42px!important;
  min-height:42px!important;
  max-height:42px!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0 13px!important;
  line-height:normal!important;
  align-self:center!important;
}
#wawink-chat-mount .walink-inbox-conversation .wawink-composer-toolbar #modal-reply-btn {
  box-sizing:border-box!important;
  display:grid!important;
  place-items:center!important;
  grid-template-columns:1fr!important;
  align-content:center!important;
  justify-content:center!important;
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  min-height:42px!important;
  max-width:42px!important;
  max-height:42px!important;
  margin:0!important;
  padding:0!important;
  line-height:0!important;
  border-radius:11px!important;
  font-size:0!important;
  transform:none!important;
  overflow:hidden!important;
}
#wawink-chat-mount .walink-inbox-conversation .wawink-composer-toolbar #modal-reply-btn::before,
#wawink-chat-mount .walink-inbox-conversation .wawink-composer-toolbar #modal-reply-btn::after {
  display:none!important;
  content:none!important;
}
#wawink-chat-mount .walink-inbox-conversation .wawink-composer-toolbar :is(summary,#modal-reply-btn):focus-visible {
  outline:2px solid var(--walink-accent-emerald,#087e72)!important;
  outline-offset:2px!important;
}
#wawink-chat-mount .walink-inbox-conversation .wawink-composer-toolbar > details.wawink-composer-popover[open] > summary,
#wawink-chat-mount .walink-inbox-conversation .wawink-composer-toolbar > details.wawink-composer-popover > summary:hover {
  border-color:var(--walink-accent-emerald,#087e72)!important;
  background:var(--walink-bg-muted,var(--walink-surface-2,rgba(128,128,128,.1)))!important;
}
/* Keep the already working popover content completely outside control geometry. */
#wawink-chat-mount .walink-inbox-conversation .wawink-composer-toolbar > details.wawink-composer-popover > form {
  position:absolute!important;
  bottom:calc(100% + 10px)!important;
  top:auto!important;
  z-index:1100!important;
}
@media(max-width:550px) {
  #wawink-chat-mount .walink-inbox-conversation .wawink-composer-toolbar {
    --ww-composer-control:40px;
    grid-template-columns:40px 40px minmax(0,1fr)!important;
    column-gap:5px!important;
  }
  #wawink-chat-mount .walink-inbox-conversation .wawink-composer-toolbar > details.wawink-composer-popover,
  #wawink-chat-mount .walink-inbox-conversation .wawink-composer-toolbar > details.wawink-composer-popover > summary,
  #wawink-chat-mount .walink-inbox-conversation .wawink-composer-toolbar #modal-reply-btn {
    width:40px!important;height:40px!important;
    min-width:40px!important;min-height:40px!important;
    max-width:40px!important;max-height:40px!important;
  }
  #wawink-chat-mount .walink-inbox-conversation .wawink-composer-toolbar > form#walink-reply-form {
    grid-template-columns:minmax(0,1fr) 40px!important;
    column-gap:5px!important;
  }
  #wawink-chat-mount .walink-inbox-conversation .wawink-composer-toolbar #modal-reply-text {
    height:40px!important;min-height:40px!important;max-height:40px!important;
    font-size:16px!important;
  }
}
