.wa-clientbook-conversation { display: none; }
body.vf.ib-view .ib[data-book-overview=true][data-whatsapp-conversation=true] > :is(.bb-book,.cb-header) {
  display: none!important;
}
body.vf.ib-view .ib[data-book-overview=true][data-whatsapp-conversation=true] > .wa-clientbook-conversation {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  display: grid;
  grid-template-rows: auto minmax(0,1fr);
  min-height: 0;
  background: #f1f4ef;
  color: #26362f;
}
.wa-clientbook-conversation > header,
.wa-clientbook-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.wa-clientbook-conversation > header {
  padding: 13px clamp(12px,3vw,32px);
  gap: clamp(10px,3vw,24px);
  border-bottom: 1px solid #dce7dd;
  background: #fff;
}
.wa-clientbook-identity { min-width: 0; overflow-wrap: anywhere; }
.wa-clientbook-identity h2 { margin: 0; font-size: 19px; }
.wa-clientbook-identity p { margin: 4px 0 0; color: #52665b; font-size: 13px; }
.wa-clientbook-actions { margin-inline-start: auto; }
.wa-clientbook-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.wa-clientbook-panel .wa-clientbook-thread {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding: 18px clamp(12px,5vw,72px);
}
.wa-clientbook-thread .ix-message { min-width: min(120px,100%); overflow-wrap: anywhere; }
.wa-clientbook-thread .ix-incoming { align-self: flex-start; margin-right: auto; }
.wa-clientbook-thread .ix-outgoing { align-self: flex-end; margin-left: auto; }
.wa-clientbook-thread .ib-day {
  align-self: center;
  font-size: 12px;
  color: #52665b;
  border-radius: 8px;
  background: #fff;
  padding: 4px 10px;
}
.wa-clientbook-compose {
  border-top: 1px solid #dce7dd;
  background: #fff;
  padding: 12px clamp(12px,5vw,72px);
}
.wa-clientbook-compose > .entry-contact-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}
.wa-clientbook-compose textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 72px;
  margin-top: 4px;
  padding: 8px 10px;
  font: inherit;
  font-size: 16px;
  border: 1px solid #ccdfd1;
  border-radius: 8px;
  background: #fff;
  color: #26362f;
  resize: vertical;
}
.wa-clientbook-compose textarea:focus-visible { outline: 2px solid #2f5e85; outline-offset: 2px; }
.wa-reply-status { margin: 0 0 8px; }
.wa-reply-status:empty { display: none; }
.bo-whatsapp-row[data-wa-row] { cursor: pointer; }
.bo-whatsapp-row[data-wa-row]:focus-visible { outline: 2px solid #47765f; outline-offset: -2px; }
.bo-whatsapp-row .bo-awaiting { color: #268153; }
.bo-whatsapp-row .bo-exchange-text,
.bo-customer-cell > .bo-exchange-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
@media(max-width:560px) {
  .wa-clientbook-conversation > header { gap: 8px 12px; }
  .wa-clientbook-actions { flex-basis: 100%; margin-inline-start: 0; }
  .wa-clientbook-actions button,
  .wa-clientbook-conversation > header > button,
  .wa-clientbook-compose .entry-contact-actions button { min-height: 40px; }
  .wa-clientbook-panel .wa-clientbook-thread { padding-block: 12px; }
}
