/*
 * Product shots -- the portal's own screens, shared by this block and the
 * homepage hero. Ported from docs/prototypes/redesign-3/site.css ("Product
 * screens"), hero.src.html (Inbox) and whatsapp.src.html (Templates).
 *
 * Two coordinate systems, on purpose:
 *  - the stage around the screen (glow, frame, motion) is page layout, in rem
 *    and tokens like any other block;
 *  - the screen itself (.vc-shot__app and everything in it) is a fixed-size
 *    drawing, 1280 px wide, scaled as one picture by view.js. Its geometry is
 *    px because it is the portal's geometry: rem would let a reader's font
 *    setting push the contents out of the fixed frame.
 *
 * Colours are tokens throughout. The prototype's one-off greys inside the
 * screen are the `shot-*` tokens, and the handful of in-between shades are
 * color-mix()ed from them (each noted with the value it reproduces).
 */

/* ---- Block wrapper ------------------------------------------------------- */

/*
 * No padding of its own: on a channel page the block is the first thing in the
 * body and sits on the inner hero's bottom padding, as the prototype's
 * `.ihero .stage` sits 72px under its title; the next section's top rule meets
 * the bottom of the frame. The glow runs 10% past the column by design -- clip
 * it horizontally so the page never scrolls sideways (clip, unlike hidden,
 * leaves the vertical bloom visible and makes no scroll container).
 */
.vc-shot-block {
  position: relative;
  overflow-x: clip;
}

/* ---- Stage --------------------------------------------------------------- */

.vc-shot {
  --vc-shot-min: 0.56; /* VC_SHOT_MIN_SCALE in shot.php */
  position: relative;
  container-type: inline-size;
}

.vc-shot--inbox {
  --vc-shot-w: 1280;
  --vc-shot-h: 640;
}

.vc-shot--templates {
  --vc-shot-w: 1280;
  --vc-shot-h: 600;
}

.vc-shot__glow {
  position: absolute;
  inset: -8.75rem -10% auto;
  block-size: 32.5rem;
  background: var(--vc-gradient-glow);
  filter: blur(1.875rem);
  pointer-events: none;
}

/*
 * The frame. Its height is the scaled screen's -- computed here from the
 * container width so nothing jumps while view.js loads, and clamped to the
 * same floor the script uses, below which the frame crops instead of shrinking.
 */
.vc-shot__clip {
  position: relative;
  overflow: hidden;
  border-radius: var(--vc-radius-app);
  block-size: clamp(
    calc(var(--vc-shot-h) * var(--vc-shot-min) * 1px),
    calc(100cqw * var(--vc-shot-h) / var(--vc-shot-w)),
    calc(var(--vc-shot-h) * 1px)
  );
}

.vc-shot__sprite {
  position: absolute;
  inline-size: 0;
  block-size: 0;
  overflow: hidden;
}

/* One authored moment per page: the product rises into place once. */
@media (prefers-reduced-motion: no-preference) {
  .vc-shot--rise {
    animation: vc-shot-rise 1.1s var(--vc-ease) 0.15s both;
  }

  .vc-shot--rise .vc-shot__glow {
    animation: vc-shot-bloom 1.6s var(--vc-ease) 0.1s both;
  }
}

@keyframes vc-shot-rise {
  from {
    opacity: 0;
    transform: translateY(1.75rem);
  }
}

@keyframes vc-shot-bloom {
  from {
    opacity: 0;
  }
}

@media (forced-colors: active) {
  .vc-shot__glow {
    display: none;
  }
}

/* ---- The portal window ----------------------------------------------------- */

.vc-shot__app {
  position: relative;
  display: grid;
  inline-size: calc(var(--vc-shot-w) * 1px);
  block-size: calc(var(--vc-shot-h) * 1px);
  transform-origin: 0 0;
  background: var(--vc-shot-app);
  border: 1px solid color-mix(in srgb, var(--vc-white) 9%, transparent);
  border-radius: var(--vc-radius-app);
  box-shadow: var(--vc-shadow-xl);
  font-family: var(--vc-font-body);
  font-size: 13.5px;
  font-weight: var(--vc-weight-regular);
  line-height: 1.55;
  letter-spacing: normal;
  color: var(--vc-fg);
  text-align: start;
}

/* The lit top edge. */
.vc-shot__app::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  z-index: 2;
  block-size: 1px;
  border-radius: var(--vc-radius-app) var(--vc-radius-app) 0 0;
  background: var(--vc-gradient-shot-edge);
}

.vc-shot__app b {
  font-weight: var(--vc-weight-semibold);
}

.vc-shot__i {
  inline-size: 16px;
  block-size: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vc-shot__app--inbox {
  grid-template-columns: 84px 344px minmax(0, 1fr);
  grid-template-rows: 64px 56px minmax(0, 1fr);
}

.vc-shot__app--templates {
  grid-template-columns: 84px minmax(0, 1fr);
  grid-template-rows: 64px 56px 60px minmax(0, 1fr);
}

/* ---- Chrome: rail, app bar, title row -------------------------------------- */

.vc-shot__rail {
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  background: var(--vc-shot-rail);
  border-inline-end: 1px solid var(--vc-line);
}

.vc-shot__toggle {
  margin-block-end: 18px;
  color: color-mix(
    in srgb,
    var(--vc-shot-muted) 80%,
    var(--vc-shot-rail)
  ); /* #6f7584 */
}

.vc-shot__toggle .vc-shot__i {
  inline-size: 18px;
  block-size: 18px;
}

.vc-shot__ri {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: var(--vc-shot-muted);
}

.vc-shot__ri-ico {
  display: grid;
  place-items: center;
  inline-size: 36px;
  block-size: 36px;
  border-radius: 10px;
  background: var(--vc-shot-field);
  color: var(--vc-shot-muted);
}

.vc-shot__ri-ico .vc-shot__i {
  inline-size: 17px;
  block-size: 17px;
}

.vc-shot__ri.is-on {
  color: var(--vc-fg);
}

.vc-shot__ri.is-on .vc-shot__ri-ico {
  background: var(--vc-gradient-brand);
  color: var(--vc-white);
  /* The gradient's midpoint, rgba(110, 76, 253, .8) in the prototype. */
  box-shadow: 0 6px 18px -6px
    color-mix(
      in srgb,
      color-mix(in srgb, var(--vc-blue), var(--vc-violet)) 80%,
      transparent
    );
}

.vc-shot__abar {
  grid-column: 2 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
}

.vc-shot__word {
  display: flex;
  color: var(--vc-wordmark); /* white on dark, the light fg on light -- as the header logo */
}

.vc-shot__word svg {
  display: block;
  inline-size: 112px;
  block-size: auto;
}

.vc-shot__abar-r {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline-start: auto;
}

.vc-shot__circ {
  position: relative;
  display: grid;
  place-items: center;
  inline-size: 36px;
  block-size: 36px;
  border-radius: 50%;
  background: var(--vc-shot-field);
  color: var(--vc-shot-icon);
}

.vc-shot__badge {
  position: absolute;
  inset-block-start: -4px;
  inset-inline-end: -4px;
  min-inline-size: 17px;
  block-size: 17px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--vc-violet);
  color: var(--vc-white);
  font: var(--vc-weight-semibold) 10px/17px var(--vc-font-body);
  text-align: center;
}

.vc-shot__wallet {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  block-size: 36px;
  padding: 0 14px;
  border-radius: 99px;
  background: var(--vc-shot-field);
  color: var(--vc-fg);
  font: var(--vc-weight-medium) 13px/1 var(--vc-font-body);
  font-variant-numeric: tabular-nums;
}

.vc-shot__wallet .vc-shot__i {
  color: var(--vc-shot-icon);
}

.vc-shot__me {
  display: grid;
  place-items: center;
  inline-size: 36px;
  block-size: 36px;
  border-radius: 50%;
  /* #2b3150 -> #463063 in the prototype: the brand pair, deep in the field grey. */
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--vc-blue) 22%, var(--vc-surface-3)),
    color-mix(in srgb, var(--vc-violet) 30%, var(--vc-surface-3))
  );
  /* #dfe2ff on dark; on light the same mix of the light link and fg reads as deep navy. */
  color: color-mix(in srgb, var(--vc-link) 25%, var(--vc-fg));
  font: var(--vc-weight-semibold) 12px/1 var(--vc-font-body);
}

.vc-shot__tbar {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 22px;
  border-block-end: 1px solid var(--vc-line);
}

.vc-shot__title {
  font: var(--vc-weight-bold) 16px/1 var(--vc-font-mono);
  letter-spacing: -0.01em;
}

.vc-shot__tabs {
  display: flex;
  gap: 2px;
}

.vc-shot__tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  block-size: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--vc-accent);
  font-size: 13px;
  white-space: nowrap;
}

.vc-shot__tab .vc-shot__i {
  inline-size: 14px;
  block-size: 14px;
}

.vc-shot__tab.is-on {
  padding: 0 16px;
  background: var(--vc-gradient-brand);
  color: var(--vc-white);
  font-weight: var(--vc-weight-semibold);
}

.vc-shot__new {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  block-size: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--vc-gradient-brand);
  color: var(--vc-white);
  font: var(--vc-weight-semibold) 13px/1 var(--vc-font-body);
}

/* Fields: the Inbox search box and the Templates filters. */
.vc-shot__field {
  display: flex;
  align-items: center;
  gap: 8px;
  block-size: 36px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--vc-shot-field);
  box-shadow: inset 0 0 0 1px var(--vc-line-2);
  color: var(--vc-shot-muted);
  font-size: 13px;
}

/* ---- Inbox ---------------------------------------------------------------- */

.vc-shot__list {
  display: flex;
  flex-direction: column;
  min-block-size: 0;
  border-inline-end: 1px solid var(--vc-line);
}

.vc-shot__find {
  padding: 16px 18px 14px;
  border-block-end: 1px solid var(--vc-line);
}

.vc-shot__find-label {
  display: block;
  margin-block-end: 8px;
  font-size: 12.5px;
  color: var(--vc-fg-2);
}

.vc-shot__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "nm t"
    "sn t"
    "via n";
  gap: 3px 14px;
  padding: 15px 18px;
  border-block-end: 1px solid var(--vc-line);
}

.vc-shot__row.is-on {
  background: var(--vc-shot-field);
  box-shadow: inset 2px 0 0 var(--vc-link);
}

.vc-shot__name {
  grid-area: nm;
  font-size: 14px;
}

.vc-shot__sn {
  grid-area: sn;
  overflow: hidden;
  color: var(--vc-fg-2);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.vc-shot__via {
  grid-area: via;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-block-start: 7px;
  font-size: 12px;
  color: var(--vc-shot-muted);
}

.vc-shot__via .vc-shot__i {
  inline-size: 14px;
  block-size: 14px;
}

.vc-shot__time {
  grid-area: t;
  align-self: center;
  font-size: 12px;
  color: var(--vc-shot-muted);
  font-variant-numeric: tabular-nums;
}

.vc-shot__n {
  grid-area: n;
  align-self: end;
  justify-self: end;
  min-inline-size: 20px;
  block-size: 20px;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--vc-violet);
  color: var(--vc-white);
  font: var(--vc-weight-semibold) 11px/20px var(--vc-font-body);
  text-align: center;
}

.vc-shot__chat {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-inline-size: 0;
  /* #0f1117 -> #0d0f14: the window, a breath lighter at the top. */
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--vc-shot-app) 85%, var(--vc-shot-field)),
    color-mix(in srgb, var(--vc-shot-app) 80%, var(--vc-shot-rail))
  );
}

.vc-shot__chead {
  margin: 16px 20px 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--vc-shot-field);
  box-shadow: var(--vc-shadow-md);
}

.vc-shot__chead b,
.vc-shot__chead span {
  display: block;
}

.vc-shot__chead b {
  font-size: 14.5px;
}

.vc-shot__chead span {
  margin-block-start: 2px;
  font-size: 12.5px;
  color: var(--vc-fg-2);
  font-variant-numeric: tabular-nums;
}

.vc-shot__msgs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px 0;
}

.vc-shot__day {
  align-self: center;
  margin-block-end: 6px;
  font-size: 12px;
  color: var(--vc-shot-muted);
}

.vc-shot__from {
  margin: 8px 0 0 2px;
  font-size: 12px;
  color: var(--vc-shot-muted);
}

.vc-shot__b {
  display: block;
  max-inline-size: 58%;
  padding: 10px 14px 8px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
}

.vc-shot__b small {
  display: block;
  margin-block-start: 4px;
  font-size: 11px;
  text-align: end;
  font-variant-numeric: tabular-nums;
}

.vc-shot__b--in {
  align-self: flex-start;
  background: var(--vc-shot-raised);
  color: var(--vc-fg);
}

.vc-shot__b--in small {
  color: var(--vc-shot-muted);
}

.vc-shot__b--out {
  align-self: flex-end;
  background: color-mix(in srgb, var(--vc-blue) 20%, transparent);
  box-shadow: inset 0 0 0 1px
    color-mix(in srgb, var(--vc-link) 22%, transparent);
  color: var(--vc-fg);
}

.vc-shot__b--out small {
  color: var(--vc-accent);
}

.vc-shot__file {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  block-size: 44px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  background: var(--vc-shot-raised);
  font-size: 13px;
  font-weight: var(--vc-weight-medium);
}

/* A file the customer sent sits on their side of the thread. */
.vc-shot__file--in {
  align-self: flex-start;
}

.vc-shot__file .vc-shot__i {
  inline-size: 18px;
  block-size: 18px;
  color: var(--vc-shot-icon);
}

.vc-shot__composer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 20px 20px;
  padding: 8px;
  border-radius: 14px;
  background: var(--vc-surface-2);
  box-shadow: inset 0 0 0 1px var(--vc-line);
}

.vc-shot__cb {
  display: grid;
  place-items: center;
  flex: none;
  inline-size: 34px;
  block-size: 34px;
  border-radius: 50%;
  background: color-mix(
    in srgb,
    var(--vc-blue) 6%,
    var(--vc-shot-raised)
  ); /* #1d2130 */
  color: var(--vc-accent);
}

.vc-shot__cb .vc-shot__i {
  inline-size: 17px;
  block-size: 17px;
}

.vc-shot__cb--send {
  background: var(--vc-gradient-brand);
  color: var(--vc-white);
}

.vc-shot__inp {
  display: flex;
  flex: 1;
  align-items: center;
  block-size: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: color-mix(
    in srgb,
    var(--vc-shot-field) 50%,
    var(--vc-surface-3)
  ); /* #181b23 */
  box-shadow: inset 0 0 0 1px var(--vc-line-2);
  color: var(--vc-shot-muted);
  font-size: 13.5px;
}

/* ---- Templates ------------------------------------------------------------ */

.vc-shot__filters {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  border-block-end: 1px solid var(--vc-line);
  font-size: 13px;
  color: var(--vc-fg-2);
}

.vc-shot__filters .vc-shot__field {
  display: inline-flex;
  block-size: 34px;
  padding: 0 10px;
  border-radius: 9px;
}

.vc-shot__field--w1 {
  inline-size: 190px;
}
.vc-shot__field--w2 {
  inline-size: 92px;
}
.vc-shot__field--w4 {
  inline-size: 200px;
}

.vc-shot__field--w3 {
  justify-content: space-between;
  inline-size: 150px;
}

.vc-shot__label {
  margin-inline-start: 8px;
}

.vc-shot__tbl {
  grid-column: 2;
  font-size: 13px;
}

.vc-shot__tr {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) 1.25fr 1.25fr 1fr 1.25fr 92px;
  align-items: center;
  gap: 16px;
  block-size: 64px;
  padding: 0 22px;
  border-block-end: 1px solid var(--vc-line);
}

.vc-shot__tr--h {
  block-size: 44px;
  font: var(--vc-weight-medium) 11.5px/1 var(--vc-font-body);
  letter-spacing: 0.01em;
  color: var(--vc-shot-muted);
}

.vc-shot__tr.is-on {
  background: color-mix(
    in srgb,
    var(--vc-shot-field) 85%,
    var(--vc-shot-app)
  ); /* #151821 */
}

.vc-shot__tn {
  display: flex;
  align-items: center;
  gap: 12px;
  min-inline-size: 0;
}

.vc-shot__ico {
  display: grid;
  place-items: center;
  flex: none;
  inline-size: 34px;
  block-size: 34px;
  border-radius: 50%;
  background: var(--vc-tint);
  color: var(--vc-accent);
}

.vc-shot__tn b {
  display: block;
  font: var(--vc-weight-semibold) 13.5px/1.2 var(--vc-font-mono);
  letter-spacing: -0.01em;
}

.vc-shot__tn small {
  display: block;
  margin-block-start: 4px;
  font-size: 12px;
  color: var(--vc-shot-muted);
  font-variant-numeric: tabular-nums;
}

.vc-shot__date {
  color: var(--vc-fg-2);
  font-variant-numeric: tabular-nums;
}

.vc-shot__st {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  block-size: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: var(--vc-weight-medium);
}

.vc-shot__st .vc-shot__i {
  inline-size: 14px;
  block-size: 14px;
}

.vc-shot__st--ok {
  color: var(--vc-ok);
  background: color-mix(in srgb, var(--vc-ok) 10%, transparent);
}

.vc-shot__st--wait {
  color: var(--vc-warn);
  background: color-mix(in srgb, var(--vc-warn) 10%, transparent);
}

.vc-shot__st--no {
  color: var(--vc-bad);
  background: color-mix(in srgb, var(--vc-bad) 10%, transparent);
}

.vc-shot__acts {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.vc-shot__acts span {
  display: grid;
  place-items: center;
  inline-size: 32px;
  block-size: 32px;
  border-radius: 50%;
  background: color-mix(
    in srgb,
    var(--vc-blue) 5%,
    var(--vc-shot-field)
  ); /* #1a1e2b */
  color: var(--vc-accent);
}

.vc-shot__acts .vc-shot__i {
  inline-size: 15px;
  block-size: 15px;
}

/*
 * WordPress's block gap (theme.json blockGap, 24px) would leave a band of page
 * ground between the frame and the next section's top rule; the prototype has
 * the rule meet the frame.
 */
.wp-block-post-content > .vc-shot-block + * {
  margin-block-start: 0;
}

/* ---- Figure: a WhatsApp conversation ---------------------------------------
 *
 * The approved prototype's .convo (docs/prototypes/redesign-3/whatsapp.src.html):
 * a phone drawn behind column one, each message on its own row, and the note
 * that explains it on the same row in column two -- so every note sits beside
 * the message it describes. On a phone the notes restack under their message,
 * inside the handset.
 *
 * Unlike the portal screens above this is laid out at real text size, not
 * scaled, so it is rem and tokens throughout. The prototype's greys are
 * color-mix()ed from tokens (each noted with the value it reproduces). No
 * motion of its own: nothing here moves, so there is nothing for
 * prefers-reduced-motion to switch off.
 * --------------------------------------------------------------------------- */

.vc-convo {
  --vc-convo-phone: 20rem; /* the handset's screen column, 320px */
  --vc-convo-edge: 0.875rem; /* how far the body runs past the screen */
  position: relative;
  display: grid;
  grid-template-columns: var(--vc-convo-phone) minmax(0, 1fr);
  column-gap: 2.5rem;
  row-gap: 0.875rem;
  padding-block-end: 0.5rem;
  color: var(--vc-fg);
  font-size: var(--vc-text-sm);
  line-height: 1.42;
}

/*
 * The handset. Not grid-placed: the rows are implicit, so a 1 / -1 span would
 * cover row one only.
 */
.vc-convo::before {
  content: "";
  position: absolute;
  inset-block: -1.5rem;
  inset-inline-start: calc(-1 * var(--vc-convo-edge));
  inline-size: calc(var(--vc-convo-phone) + 2 * var(--vc-convo-edge));
  border-radius: 2.75rem;
  background: color-mix(in srgb, var(--vc-surface-1) 50%, var(--vc-surface-2)); /* #101218 */
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--vc-white) 10%, transparent),
    inset 0 0 0 9px var(--vc-page),
    inset 0 0 0 10px color-mix(in srgb, var(--vc-white) 6%, transparent),
    var(--vc-shadow-xl);
}

.vc-convo > * {
  position: relative;
  margin: 0;
}

.vc-convo__bar,
.vc-convo__head,
.vc-convo__msg,
.vc-convo__foot {
  grid-column: 1;
}

.vc-convo__bar {
  display: flex;
  justify-content: space-between;
  padding: 0.375rem 1.375rem 0;
  font-size: 0.8125rem;
  font-weight: var(--vc-weight-semibold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.vc-convo__head {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1.125rem 0.875rem;
  border-block-end: 1px solid var(--vc-line);
}

.vc-convo__back {
  flex: none;
  color: var(--vc-fg-2);
}

.vc-convo__avatar {
  display: grid;
  flex: none;
  place-items: center;
  inline-size: 2rem;
  block-size: 2rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--vc-white) 6%, var(--vc-surface-3)); /* #262a38 */
  color: var(--vc-fg-2);
  font-size: 0.8125rem;
  font-weight: var(--vc-weight-semibold);
  line-height: 1;
}

.vc-convo__head b {
  font-size: 0.90625rem;
  font-weight: var(--vc-weight-semibold);
}

/* Plain wrapping, as the phone would: the page's `pretty` pulls a word down early. */
.vc-convo__msg {
  max-inline-size: 80%;
  padding: 0.625rem 0.8125rem 0.4375rem;
  border-radius: 0.875rem;
  text-wrap: wrap;
}

.vc-convo__msg small {
  display: block;
  margin-block-start: 0.1875rem;
  font-size: 0.6875rem;
  text-align: end;
  font-variant-numeric: tabular-nums;
}

/* The business, on the left: the portal's incoming grey. */
.vc-convo__msg.is-biz {
  justify-self: start;
  margin-inline-start: 1rem;
  border-start-start-radius: 0.25rem;
  background: var(--vc-shot-raised); /* #1d2029 */
}

.vc-convo__msg.is-biz small {
  color: var(--vc-fg-2);
}

/* The customer, on the right: their own message, in WhatsApp's green. */
.vc-convo__msg.is-cust {
  justify-self: end;
  margin-inline-end: 1rem;
  border-start-end-radius: 0.25rem;
  background: color-mix(in srgb, var(--vc-ok) 20%, var(--vc-surface-2)); /* #1f3a2c */
}

.vc-convo__msg.is-cust small {
  color: color-mix(in srgb, var(--vc-ok) 45%, var(--vc-fg)); /* #9ccdb2 */
}

/* The template: outlined in the link blue, so the one that opened it reads as different. */
.vc-convo__msg.is-template {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--vc-link) 40%, transparent);
}

.vc-convo__foot {
  block-size: 2.5rem;
  margin: 1.125rem 0.875rem 0;
  border-radius: var(--vc-radius-full);
  background: var(--vc-shot-field); /* #181b23 */
  box-shadow: inset 0 0 0 1px var(--vc-line);
}

/* The notes: column two, each on its message's row. */
.vc-convo__note {
  grid-column: 2;
  align-self: center;
  padding-inline-start: 1.125rem;
  border-inline-start: 1px solid var(--vc-line-2);
}

.vc-convo__note.is-first {
  border-inline-start-color: var(--vc-link);
}

.vc-convo__note b {
  display: block;
  font-size: var(--vc-text-base);
  font-weight: var(--vc-weight-semibold);
  line-height: 1.55;
}

.vc-convo__note span {
  display: block;
  max-inline-size: 34ch;
  margin-block-start: 0.25rem;
  font-size: 0.90625rem;
  line-height: 1.55;
  color: var(--vc-fg-2);
}

/* Standalone, as a product-shot block rather than inside a split. */
.vc-shot-block > .vc-convo {
  inline-size: min(var(--vc-wide), 100% - 2 * var(--vc-gutter) - 2 * var(--vc-convo-edge));
  margin: var(--vc-space-xl) auto;
}

/* Phone: one column inside the handset, each note under its message. */
@media (max-width: 40rem) {
  .vc-convo {
    grid-template-columns: minmax(0, 1fr);
    max-inline-size: 21.25rem;
    margin-inline: auto;
  }

  .vc-convo::before {
    inline-size: auto;
    inset-inline-end: calc(-1 * var(--vc-convo-edge));
  }

  .vc-convo__note {
    grid-column: 1;
    margin-block-start: -0.25rem;
    padding-inline: 1.125rem;
    border-inline-start: 0;
  }

  .vc-convo__note b {
    font-size: 0.8125rem;
    color: var(--vc-accent);
  }

  .vc-convo__note span {
    font-size: 0.84375rem;
  }
}

@media (forced-colors: active) {
  .vc-convo::before {
    border: 1px solid CanvasText;
  }

  .vc-convo__msg {
    border: 1px solid CanvasText;
  }
}
