/* DjimlyStore Messenger V2.1 — inbox alignment and readable conversation rows.
 * Loaded after v4.2.40. No changes to existing threads, actions or data.
 * The older message-center sheet contains fixed avatar min-widths and multiple
 * row height overrides, so reset all relevant sizing together. */
html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-home-shell,
html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-v2-home,
html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-list,
html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-row,
html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-row > span {
  box-sizing:border-box!important;
}
html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-body {
  width:100%!important;min-width:0!important;max-width:100%!important;
  padding-left:18px!important;padding-right:18px!important;
  overflow-x:hidden!important;
}
html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-home-shell {
  width:min(720px,100%)!important;max-width:100%!important;
  margin:0 auto!important;padding:24px 0 44px!important;
}
/* Each category button has an independent, centered icon and label. */
html body #djs-portal #djs-screen-chat .djs-mc-v2-shortcuts {
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  align-items:stretch!important;justify-items:stretch!important;gap:12px!important;margin-bottom:22px!important;
}
html body #djs-portal #djs-screen-chat .djs-mc-v2-shortcuts > button {
  width:100%!important;min-width:0!important;min-height:110px!important;
  height:auto!important;box-sizing:border-box!important;margin:0!important;
  padding:16px 6px 14px!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;
  justify-content:center!important;text-align:center!important;gap:12px!important;
  border:1px solid #e4eaf3!important;border-radius:18px!important;
  background:#f8faff!important;line-height:normal!important;
}
html body #djs-portal #djs-screen-chat .djs-mc-v2-shortcut-icon {
  flex:0 0 46px!important;min-width:46px!important;width:46px!important;height:46px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  margin:0 auto!important;padding:0!important;line-height:1!important;vertical-align:middle!important;
  border-radius:15px!important;
}
html body #djs-portal #djs-screen-chat .djs-mc-v2-shortcut-icon > .ms,
html body #djs-portal #djs-screen-chat .djs-mc-v2-controls .ms,
html body #djs-portal #djs-screen-chat .djs-mc-v2-searchicon,
html body #djs-portal #djs-screen-chat .djs-mc-v2-home .djs-mc-search-submit-v24002 .ms,
html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-avatar > .ms {
  display:flex!important;align-items:center!important;justify-content:center!important;
  flex:none!important;line-height:1!important;vertical-align:middle!important;
  margin:0!important;padding:0!important;transform:none!important;text-indent:0!important;
}
html body #djs-portal #djs-screen-chat .djs-mc-v2-shortcut-icon > svg {
  display:block!important;width:25px!important;height:25px!important;
  flex:none!important;margin:0 auto!important;
  stroke:currentColor!important;stroke-width:2!important;
}
html body #djs-portal #djs-screen-chat .djs-mc-v2-shortcuts b {
  display:block!important;min-width:0!important;width:100%!important;
  margin:0!important;padding:0!important;text-align:center!important;
  line-height:1.25!important;font-size:12px!important;
  overflow-wrap:anywhere!important;
}
html body #djs-portal #djs-screen-chat .djs-mc-v2-controls button {
  display:flex!important;align-items:center!important;justify-content:center!important;
}
/* Old versions set this list to a two-column product grid on desktops.
   Messenger conversations must always remain one readable column. */
html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-list {
  display:block!important;grid-template-columns:none!important;
  width:100%!important;max-width:100%!important;
  min-width:0!important;margin:0 auto!important;padding:0!important;
}
html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-row {
  display:grid!important;
  grid-template-columns:56px minmax(0,1fr) 62px!important;
  align-items:start!important;column-gap:14px!important;row-gap:0!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  height:auto!important;min-height:108px!important;
  margin:0!important;padding:17px 0 19px!important;
  overflow:visible!important;white-space:normal!important;
  border:0!important;border-bottom:1px solid #e8edf5!important;
  border-radius:0!important;box-shadow:none!important;background:#fff!important;
  text-align:left!important;
}
html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-row[hidden] {display:none!important}
html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-row:focus-visible {
  outline:2px solid #8bbdff!important;outline-offset:-2px!important;
}
html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-avatar {
  display:flex!important;align-items:center!important;justify-content:center!important;
  place-items:center!important;align-self:start!important;
  flex:none!important;width:56px!important;min-width:56px!important;max-width:56px!important;
  height:56px!important;min-height:56px!important;max-height:56px!important;
  margin:0!important;padding:0!important;overflow:hidden!important;
  background:#eef5ff!important;border-radius:16px!important;
}
html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-avatar > .ms {
  width:100%!important;height:100%!important;min-width:0!important;
  font-size:27px!important;
}
html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-avatar > img {
  width:100%!important;height:100%!important;object-fit:contain!important;
  margin:auto!important;
}
html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-copy {
  display:block!important;align-self:start!important;min-width:0!important;max-width:100%!important;
  width:auto!important;overflow:visible!important;margin:0!important;padding:1px 0 0!important;
}
html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-copy b {
  display:block!important;font-size:16px!important;line-height:1.3!important;
  margin:0 0 7px!important;white-space:nowrap!important;
  overflow:hidden!important;text-overflow:ellipsis!important;color:#152b49!important;
}
html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-copy small {
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;
  line-clamp:2!important;font-size:13px!important;line-height:1.45!important;
  margin:0!important;padding:0!important;white-space:normal!important;overflow:hidden!important;
  overflow-wrap:anywhere!important;color:#6c798d!important;max-width:100%!important;
}
html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-copy em {
  display:inline-flex!important;width:max-content!important;max-width:100%!important;
  align-items:center!important;min-height:22px!important;margin:9px 0 0!important;
  padding:3px 8px!important;font-size:10px!important;line-height:1.15!important;
}
html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-meta {
  display:flex!important;flex-direction:column!important;align-items:flex-end!important;
  justify-content:flex-start!important;gap:10px!important;align-self:start!important;
  width:62px!important;min-width:0!important;max-width:62px!important;
  margin:0!important;padding:2px 0 0!important;overflow:visible!important;
}
html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-time {
  display:block!important;max-width:100%!important;font-size:10px!important;
  line-height:1.3!important;text-align:right!important;white-space:nowrap!important;
  color:#76849a!important;
}
html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-v2-unread {
  margin:0!important;min-width:20px!important;height:20px!important;
  padding:0 5px!important;line-height:20px!important;
}
html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-row-chevron{display:none!important}
@media(max-width:390px){
  html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-body{padding-left:14px!important;padding-right:14px!important}
  html body #djs-portal #djs-screen-chat .djs-mc-v2-shortcuts{gap:8px!important}
  html body #djs-portal #djs-screen-chat .djs-mc-v2-shortcuts > button{min-height:102px!important;padding:13px 3px 12px!important;gap:9px!important}
  html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-row{
    grid-template-columns:52px minmax(0,1fr) 52px!important;column-gap:11px!important;
    min-height:100px!important;padding:15px 0 16px!important;
  }
  html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-avatar{
    width:52px!important;min-width:52px!important;max-width:52px!important;
    height:52px!important;min-height:52px!important;max-height:52px!important;
  }
  html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-meta{width:52px!important;max-width:52px!important}
  html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-copy b{font-size:15px!important}
  html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-copy small{font-size:12px!important}
}
@media(max-width:340px){
  html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-body{padding-left:11px!important;padding-right:11px!important}
  html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-row{grid-template-columns:47px minmax(0,1fr) 45px!important;column-gap:9px!important}
  html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-avatar{width:47px!important;min-width:47px!important;max-width:47px!important;height:47px!important;min-height:47px!important;max-height:47px!important}
  html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-meta{width:45px!important;max-width:45px!important}
}
/* Use a status dot, not a font ligature that can render as the word "schedule". */
html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-copy em::before {
  content:""!important;display:inline-block!important;flex:0 0 6px!important;
  width:6px!important;height:6px!important;border-radius:50%!important;
  background:#2486e7!important;margin-right:6px!important;font-family:inherit!important;
}
