/* WhatsApp authenticity v119 */
html[data-social-app="whatsapp"] .yx36-unsent-wa{
  min-width:0!important;
  font-synthesis:style!important;
  font-style:italic!important;
  font-weight:400!important;
  gap:6px!important;
  line-height:1.22!important;
}
html[data-social-app="whatsapp"] .bubble:has(.yx36-unsent-wa),
html[data-social-app="whatsapp"] .bubble:has(.yx36-viewonce){
  width:max-content!important;
  max-width:82%!important;
  padding:6px 9px 6px!important;
}
html[data-social-app="whatsapp"] .yx36-viewonce{
  gap:6px!important;
  line-height:1.15!important;
  font-style:normal!important;
  white-space:nowrap;
}
html[data-social-app="whatsapp"] .yx36-wa-view-icon{
  width:24px!important;
  height:24px!important;
  flex-basis:24px!important;
}
html[data-social-app="whatsapp"] .yx36-wa-deleted-icon{
  width:18px!important;
  height:18px!important;
  flex-basis:18px!important;
}
html[data-social-app="whatsapp"] .wa118-unsent-preview{
  font-synthesis:style!important;
  font-style:italic!important;
}
html[data-social-app="whatsapp"] .wa118-blocked-row .row-preview{font-style:normal!important}

/* Links follow the room palette: incoming stays WhatsApp green; outgoing is a
   darker shade of the selected outgoing bubble. */
html[data-social-app="whatsapp"] .wa118-link{
  color:#128c63;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:2px;
  font-weight:500;
  overflow-wrap:anywhere;
}
html[data-social-app="whatsapp"] .bubble.out .wa118-link{
  color:color-mix(in srgb,var(--bubble-out-text) 78%,var(--bubble-out) 22%);
}
html[data-theme="dark"][data-social-app="whatsapp"] .bubble.in .wa118-link{color:#53bdeb}

/* One emoji behaves like native WhatsApp: no ordinary text bubble, large glyph,
   with the timestamp kept as its own small capsule below. */
html[data-social-app="whatsapp"] .bubble.wa118-single-emoji{
  background:transparent!important;
  box-shadow:none!important;
  padding:2px 0!important;
  border-radius:0!important;
  overflow:visible!important;
}
html[data-social-app="whatsapp"] .bubble.wa118-single-emoji>.wa-wingtail{display:none!important}
html[data-social-app="whatsapp"] .wa118-single-emoji-copy{
  display:flex!important;
  flex-direction:column;
  gap:6px;
}
html[data-social-app="whatsapp"] .bubble.out .wa118-single-emoji-copy{align-items:flex-end}
html[data-social-app="whatsapp"] .bubble.in .wa118-single-emoji-copy{align-items:flex-start}
html[data-social-app="whatsapp"] .wa118-emoji-glyph{
  display:block;
  font-size:54px!important;
  line-height:1.04!important;
  letter-spacing:0!important;
}
html[data-social-app="whatsapp"] .wa118-single-emoji .bubble-meta-inline{
  float:none!important;
  margin:0!important;
  transform:none!important;
  min-height:28px;
  padding:5px 12px!important;
  border-radius:14px;
  display:inline-flex!important;
  align-items:center;
  background:var(--bubble-in);
  color:var(--bubble-meta)!important;
  box-shadow:0 .5px 1px rgba(0,0,0,.08);
}
html[data-social-app="whatsapp"] .bubble.out.wa118-single-emoji .bubble-meta-inline{
  background:var(--bubble-out);
  color:var(--bubble-out-meta,var(--bubble-meta))!important;
}

/* Blocked DM state mirrors native WhatsApp's bottom action bar. */
html[data-social-app="whatsapp"] .wa118-is-blocked #cv-scroll{
  padding-bottom:116px!important;
}
html[data-social-app="whatsapp"] .wa118-block-actions{
  flex:0 0 auto;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  padding:12px 12px calc(14px + env(safe-area-inset-bottom));
  background:var(--nav-bg);
  border-top:1px solid var(--divider);
  position:relative;
  z-index:25;
}
html[data-social-app="whatsapp"] .wa118-block-actions button{
  min-height:52px;
  border:0;
  border-radius:28px;
  font:inherit;
  font-size:16px;
  font-weight:700;
}
html[data-social-app="whatsapp"] .wa118-block-delete{
  background:color-mix(in srgb,#ff2d55 12%,var(--card-bg) 88%);
  color:#e9003d;
}
html[data-social-app="whatsapp"] .wa118-block-unblock{
  background:color-mix(in srgb,var(--text-main) 5%,var(--card-bg) 95%);
  color:var(--text-main);
}

/* Proper pictograms for the two scene actions. */
html[data-social-app="whatsapp"] .wa118-extra-icon{
  background:rgba(120,120,128,.14)!important;
  color:var(--text-main)!important;
}
html[data-social-app="whatsapp"] .wa118-extra-icon svg{width:25px;height:25px;display:block}


/* v119 — outgoing unsend/link contrast follows the actual chosen bubble,
   not the app theme. This stays readable for pastel and dark custom colors. */
html[data-social-app="whatsapp"] .bubble.out .yx36-unsent-wa{
  color:color-mix(in srgb,var(--bubble-out-text) 74%,var(--bubble-out) 26%)!important;
}
html[data-social-app="whatsapp"] .bubble.in .yx36-unsent-wa{
  color:color-mix(in srgb,var(--bubble-in-text) 66%,var(--bubble-in) 34%)!important;
}
html[data-social-app="whatsapp"] .wa118-is-blocked .composer{
  display:none!important;
}

/* Bubble editor delete actions: equal choices, Save remains the final action. */
html[data-social-app="whatsapp"] .wa119-delete-row{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:8px!important;
  margin-top:14px!important;
}
html[data-social-app="whatsapp"] .wa119-delete-row .wa119-delete-choice{
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  white-space:normal;
  line-height:1.2;
  min-height:46px;
}
html[data-social-app="whatsapp"] .wa119-delete-row .wa119-delete-choice:disabled{
  opacity:.42;
}
html[data-social-app="whatsapp"] .wa119-save-row{
  margin-top:9px;
}
html[data-social-app="whatsapp"] .wa119-save-button{
  width:100%!important;
  margin:0!important;
}
