/* 0.52.1-alpha — Inbox visual rollback + command reliability
   Restore the premium chip language and neutralize the overly chunky 0.52.0 bar. */
.vchat-frontend-app .vchat-chat-head{
  padding:14px 22px!important;
  min-height:78px!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:14px!important;
  background:#fff!important;
  border-bottom:1px solid #ebe7f4!important;
}
.vchat-frontend-app .vchat-chat-head .vchat-chat-actions,
.vchat-frontend-app .vchat-chat-actions-0518{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  flex-wrap:nowrap!important;
  min-width:0!important;
  padding:0!important;
}
.vchat-frontend-app .vchat-chat-actions-0518 button{
  appearance:none!important;
  -webkit-appearance:none!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  width:auto!important;
  height:42px!important;
  min-height:42px!important;
  max-height:42px!important;
  padding:0 15px!important;
  border-radius:15px!important;
  border:1px solid #dfd8ef!important;
  background:#fff!important;
  color:#5d4ab1!important;
  box-shadow:none!important;
  font-size:13px!important;
  font-weight:760!important;
  line-height:1!important;
  letter-spacing:-.01em!important;
  white-space:nowrap!important;
  text-indent:0!important;
  opacity:1!important;
  visibility:visible!important;
  cursor:pointer!important;
  pointer-events:auto!important;
}
.vchat-frontend-app .vchat-chat-actions-0518 button span{display:inline!important;color:inherit!important;font:inherit!important;line-height:1!important;}
.vchat-frontend-app .vchat-chat-actions-0518 #vchat-open-contact{
  width:42px!important;min-width:42px!important;max-width:42px!important;padding:0!important;border-radius:15px!important;
}
.vchat-frontend-app .vchat-chat-actions-0518 #vchat-open-contact span{font-size:0!important;}
.vchat-frontend-app .vchat-chat-actions-0518 #vchat-open-contact::before{content:'i';font-size:19px;font-weight:850;font-family:ui-serif,Georgia,serif;line-height:1;color:#5d4ab1;}
.vchat-frontend-app .vchat-chat-actions-0518 #vchat-claim.vchat-attention-mode-button{
  min-width:0!important;
  padding:0 18px!important;
  background:#fff!important;
  border-color:#d9d1ec!important;
  color:#5f4db5!important;
  box-shadow:0 8px 18px rgba(61,42,130,.04)!important;
}
.vchat-frontend-app .vchat-chat-actions-0518 #vchat-claim.vchat-attention-mode-button.is-ai-mode{
  background:#6652c7!important;
  border-color:#6652c7!important;
  color:#fff!important;
  box-shadow:0 10px 24px rgba(102,82,199,.18)!important;
}
.vchat-frontend-app .vchat-chat-actions-0518 #vchat-claim.vchat-attention-mode-button.is-human-mode{
  background:#fff!important;
  color:#5d4ab1!important;
}
.vchat-frontend-app .vchat-chat-actions-0518 #vchat-claim.vchat-attention-mode-button::before{content:''!important;display:none!important;}
.vchat-frontend-app .vchat-chat-actions-0518 #vchat-resolve,
.vchat-frontend-app .vchat-chat-actions-0518 #vchat-more{
  min-width:0!important;
  padding:0 16px!important;
  font-size:13px!important;
}

/* Restore the elegant chip/action row instead of large segmented buttons. */
.vchat-frontend-app .vchat-chat-toolbar-0518{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  align-items:center!important;
  gap:12px!important;
  padding:9px 20px!important;
  min-height:54px!important;
  background:#fbfaff!important;
  border-bottom:1px solid #ebe7f4!important;
}
.vchat-frontend-app .vchat-chat-toolbar-0518 .vchat-reply-mode{
  display:inline-flex!important;
  align-items:center!important;
  gap:4px!important;
  padding:4px!important;
  border-radius:16px!important;
  background:#ebe7f4!important;
  border:0!important;
  box-shadow:none!important;
}
.vchat-frontend-app .vchat-chat-toolbar-0518 .vchat-reply-mode button{
  height:34px!important;
  min-height:34px!important;
  padding:0 18px!important;
  border-radius:13px!important;
  border:0!important;
  background:transparent!important;
  color:#7a7290!important;
  box-shadow:none!important;
  font-size:13px!important;
  font-weight:760!important;
}
.vchat-frontend-app .vchat-chat-toolbar-0518 .vchat-reply-mode button.is-active{
  background:#fff!important;
  color:#5a48a6!important;
  box-shadow:0 8px 18px rgba(61,42,130,.07)!important;
}
.vchat-frontend-app .vchat-chat-quick-actions-0518{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  padding:0!important;
  min-width:0!important;
}
.vchat-frontend-app .vchat-chat-quick-actions-0518 button{
  appearance:none!important;
  -webkit-appearance:none!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  flex:0 0 auto!important;
  width:auto!important;
  min-width:auto!important;
  max-width:none!important;
  height:34px!important;
  min-height:34px!important;
  max-height:34px!important;
  padding:0 13px!important;
  border-radius:999px!important;
  border:1px solid #ded8ee!important;
  background:#fff!important;
  color:#5d4ab1!important;
  box-shadow:none!important;
  font-size:12px!important;
  font-weight:760!important;
  line-height:1!important;
  letter-spacing:-.01em!important;
  white-space:nowrap!important;
  text-indent:0!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  cursor:pointer!important;
}
.vchat-frontend-app .vchat-chat-quick-actions-0518 button span,
.vchat-frontend-app .vchat-chat-quick-actions-0518 button b{
  display:inline!important;
  position:static!important;
  width:auto!important;
  max-width:none!important;
  height:auto!important;
  color:inherit!important;
  opacity:1!important;
  visibility:visible!important;
  font-size:inherit!important;
  font-weight:inherit!important;
  line-height:1!important;
  text-indent:0!important;
  white-space:nowrap!important;
  overflow:visible!important;
}
.vchat-frontend-app .vchat-chat-quick-actions-0518 #vchat-pipeline-from-chat{
  min-width:0!important;
  border-color:#a6a0b8!important;
  color:#2d2840!important;
  padding:0 16px!important;
  background:#fff!important;
}
.vchat-frontend-app .vchat-chat-quick-actions-0518 #vchat-pipeline-from-chat span{
  color:#7e7694!important;
  font-size:10px!important;
  text-transform:uppercase!important;
  letter-spacing:.12em!important;
  font-weight:820!important;
}
.vchat-frontend-app .vchat-chat-quick-actions-0518 #vchat-chat-pipeline-label{font-weight:820!important;color:#2d2840!important;}
.vchat-frontend-app .vchat-chat-quick-actions-0518 #vchat-task-from-chat::before,
.vchat-frontend-app .vchat-chat-quick-actions-0518 #vchat-booking-from-chat::before,
.vchat-frontend-app .vchat-chat-quick-actions-0518 #vchat-summary::before{content:none!important;display:none!important;}
.vchat-frontend-app .vchat-chat-quick-actions-0518 #vchat-task-from-chat>* ,
.vchat-frontend-app .vchat-chat-quick-actions-0518 #vchat-booking-from-chat>* ,
.vchat-frontend-app .vchat-chat-quick-actions-0518 #vchat-summary>*{display:inline!important;}
.vchat-frontend-app .vchat-chat-quick-actions-0518 #vchat-summary{background:#f6f2ff!important;border-color:#e2d8fb!important;color:#6652c7!important;}
.vchat-frontend-app .vchat-chat-quick-actions-0518 #vchat-summary::after{content:''!important;}

/* SLA row stays as the good visual reference: compact pills, not heavy controls. */
.vchat-frontend-app .vchat-sla-bar{
  display:flex!important;align-items:center!important;gap:8px!important;overflow-x:auto!important;overflow-y:hidden!important;padding:8px 20px!important;background:#fff!important;border-bottom:1px solid #ebe7f4!important;
}
.vchat-frontend-app .vchat-sla-item{
  flex:0 0 auto!important;display:inline-flex!important;align-items:center!important;gap:8px!important;min-height:30px!important;padding:5px 11px!important;border-radius:999px!important;border:1px solid #ebe7f4!important;background:#fff!important;color:#6f6886!important;box-shadow:none!important;
}
.vchat-frontend-app .vchat-sla-item > span{display:inline-grid!important;place-items:center!important;width:22px!important;height:22px!important;border-radius:999px!important;background:#f1ecfb!important;font-size:12px!important;line-height:1!important;}
.vchat-frontend-app .vchat-sla-item small{font-size:10px!important;color:#8b849d!important;font-weight:650!important;letter-spacing:.01em!important;}
.vchat-frontend-app .vchat-sla-item strong{font-size:12px!important;color:#2d2840!important;font-weight:800!important;}

/* Composer: remove repeated ++ and keep subtle tools. */
.vchat-frontend-app .vchat-composer-wrap{padding:10px 20px 12px!important;background:#fff!important;border-top:1px solid #ebe7f4!important;}
.vchat-frontend-app .vchat-composer-tools{display:flex!important;align-items:center!important;gap:18px!important;min-height:28px!important;padding:0 0 8px!important;overflow-x:auto!important;background:transparent!important;}
.vchat-frontend-app .vchat-composer-tools button{appearance:none!important;-webkit-appearance:none!important;display:inline-flex!important;align-items:center!important;gap:6px!important;height:26px!important;min-height:26px!important;padding:0!important;border:0!important;background:transparent!important;color:#66528e!important;font-size:12px!important;font-weight:760!important;line-height:1!important;box-shadow:none!important;white-space:nowrap!important;}
.vchat-frontend-app .vchat-composer-tools #vchat-attach::before{content:'+'!important;font-weight:850!important;margin-right:2px!important;}
.vchat-frontend-app .vchat-composer-tools #vchat-emoji::before{content:'☻'!important;font-size:12px!important;margin-right:2px!important;}
.vchat-frontend-app .vchat-composer-tools #vchat-schedule-message::before{content:'◷'!important;font-size:12px!important;margin-right:2px!important;}
.vchat-frontend-app .vchat-composer-tools #vchat-saved-reply{margin-left:auto!important;color:#66528e!important;}
.vchat-frontend-app .vchat-composer-tools span:empty{display:none!important;}
.vchat-frontend-app .vchat-composer{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;align-items:end!important;padding:7px!important;border:1.5px solid #d9d1ee!important;border-radius:20px!important;background:#fff!important;box-shadow:0 0 0 3px rgba(102,82,199,.06)!important;}
.vchat-frontend-app .vchat-composer textarea{min-height:52px!important;border:0!important;box-shadow:none!important;background:transparent!important;padding:10px 12px!important;resize:none!important;font-size:13px!important;}
.vchat-frontend-app #vchat-send-message{height:44px!important;min-height:44px!important;min-width:78px!important;border-radius:14px!important;font-size:12px!important;font-weight:820!important;}

/* Keep WordPress/global button styles out of the Inbox command surface. */
.vchat-frontend-app .vchat-chat-actions-0518 button:before,
.vchat-frontend-app .vchat-chat-actions-0518 button:after,
.vchat-frontend-app .vchat-chat-quick-actions-0518 button:before,
.vchat-frontend-app .vchat-chat-quick-actions-0518 button:after{pointer-events:none!important;}

@media (max-width:1180px){
  .vchat-frontend-app .vchat-chat-head{grid-template-columns:1fr!important;}
  .vchat-frontend-app .vchat-chat-actions-0518{justify-content:flex-start!important;overflow-x:auto!important;}
  .vchat-frontend-app .vchat-chat-toolbar-0518{grid-template-columns:1fr!important;}
  .vchat-frontend-app .vchat-chat-quick-actions-0518{justify-content:flex-start!important;}
}
@media (max-width:760px){
  .vchat-frontend-app .vchat-chat-head{padding:12px 14px!important;}
  .vchat-frontend-app .vchat-chat-actions-0518 button{height:38px!important;min-height:38px!important;font-size:12px!important;padding:0 12px!important;}
  .vchat-frontend-app .vchat-chat-actions-0518 #vchat-claim.vchat-attention-mode-button{min-width:148px!important;}
  .vchat-frontend-app .vchat-chat-toolbar-0518{padding:8px 14px!important;}
  .vchat-frontend-app .vchat-composer-wrap{padding:8px 14px 10px!important;}
}
