trix-editor {
  border: 1px solid #bbb;
  border-radius: 3px;
  margin: 0;
  padding: 0.4em 0.6em;
  min-height: 5em;
  outline: none; }

trix-toolbar * {
  box-sizing: border-box; }

trix-toolbar .trix-button-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  overflow-x: auto; }

trix-toolbar .trix-button-group {
  display: flex;
  margin-bottom: 10px;
  border: 1px solid #bbb;
  border-top-color: #ccc;
  border-bottom-color: #888;
  border-radius: 3px; }
  trix-toolbar .trix-button-group:not(:first-child) {
    margin-left: 1.5vw; }
    @media (max-width: 768px) {
      trix-toolbar .trix-button-group:not(:first-child) {
        margin-left: 0; } }

trix-toolbar .trix-button-group-spacer {
  flex-grow: 1; }
  @media (max-width: 768px) {
    trix-toolbar .trix-button-group-spacer {
      display: none; } }

trix-toolbar .trix-button {
  position: relative;
  float: left;
  color: rgba(0, 0, 0, 0.6);
  font-size: 0.75em;
  font-weight: 600;
  white-space: nowrap;
  padding: 0 0.5em;
  margin: 0;
  outline: none;
  border: none;
  border-bottom: 1px solid #ddd;
  border-radius: 0;
  background: transparent; }
  trix-toolbar .trix-button:not(:first-child) {
    border-left: 1px solid #ccc; }
  trix-toolbar .trix-button.trix-active {
    background: #cbeefa;
    color: black; }
  trix-toolbar .trix-button:not(:disabled) {
    cursor: pointer; }
  trix-toolbar .trix-button:disabled {
    color: rgba(0, 0, 0, 0.125); }
  @media (max-width: 768px) {
    trix-toolbar .trix-button {
      letter-spacing: -0.01em;
      padding: 0 0.3em; } }

trix-toolbar .trix-button--icon {
  font-size: inherit;
  width: 2.6em;
  height: 1.6em;
  max-width: calc(0.8em + 4vw);
  text-indent: -9999px; }
  @media (max-width: 768px) {
    trix-toolbar .trix-button--icon {
      height: 2em;
      max-width: calc(0.8em + 3.5vw); } }
  trix-toolbar .trix-button--icon::before {
    display: inline-block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.6;
    content: "";
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain; }
    @media (max-width: 768px) {
      trix-toolbar .trix-button--icon::before {
        right: 6%;
        left: 6%; } }
  trix-toolbar .trix-button--icon.trix-active::before {
    opacity: 1; }
  trix-toolbar .trix-button--icon:disabled::before {
    opacity: 0.125; }

trix-toolbar .trix-button--icon-attach::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M10.5%2018V7.5c0-2.25%203-2.25%203%200V18c0%204.125-6%204.125-6%200V7.5c0-6.375%209-6.375%209%200V18%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-miterlimit%3D%2210%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
  top: 8%;
  bottom: 4%; }

trix-toolbar .trix-button--icon-bold::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6.522%2019.242a.5.5%200%200%201-.5-.5V5.35a.5.5%200%200%201%20.5-.5h5.783c1.347%200%202.46.345%203.24.982.783.64%201.216%201.562%201.216%202.683%200%201.13-.587%202.129-1.476%202.71a.35.35%200%200%200%20.049.613c1.259.56%202.101%201.742%202.101%203.22%200%201.282-.483%202.334-1.363%203.063-.876.726-2.132%201.12-3.66%201.12h-5.89ZM9.27%207.347v3.362h1.97c.766%200%201.347-.17%201.733-.464.38-.291.587-.716.587-1.27%200-.53-.183-.928-.513-1.198-.334-.273-.838-.43-1.505-.43H9.27Zm0%205.606v3.791h2.389c.832%200%201.448-.177%201.853-.497.399-.315.614-.786.614-1.423%200-.62-.22-1.077-.63-1.385-.418-.313-1.053-.486-1.905-.486H9.27Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-italic::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M9%205h6.5v2h-2.23l-2.31%2010H13v2H6v-2h2.461l2.306-10H9V5Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-link::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M18.948%205.258a4.337%204.337%200%200%200-6.108%200L11.217%206.87a.993.993%200%200%200%200%201.41c.392.39%201.027.39%201.418%200l1.623-1.613a2.323%202.323%200%200%201%203.271%200%202.29%202.29%200%200%201%200%203.251l-2.393%202.38a3.021%203.021%200%200%201-4.255%200l-.05-.049a1.007%201.007%200%200%200-1.418%200%20.993.993%200%200%200%200%201.41l.05.049a5.036%205.036%200%200%200%207.091%200l2.394-2.38a4.275%204.275%200%200%200%200-6.072Zm-13.683%2013.6a4.337%204.337%200%200%200%206.108%200l1.262-1.255a.993.993%200%200%200%200-1.41%201.007%201.007%200%200%200-1.418%200L9.954%2017.45a2.323%202.323%200%200%201-3.27%200%202.29%202.29%200%200%201%200-3.251l2.344-2.331a2.579%202.579%200%200%201%203.631%200c.392.39%201.027.39%201.419%200a.993.993%200%200%200%200-1.41%204.593%204.593%200%200%200-6.468%200l-2.345%202.33a4.275%204.275%200%200%200%200%206.072Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-strike::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6%2014.986c.088%202.647%202.246%204.258%205.635%204.258%203.496%200%205.713-1.728%205.713-4.463%200-.275-.02-.536-.062-.781h-3.461c.398.293.573.654.573%201.123%200%201.035-1.074%201.787-2.646%201.787-1.563%200-2.773-.762-2.91-1.924H6ZM6.432%2010h3.763c-.632-.314-.914-.715-.914-1.273%200-1.045.977-1.739%202.432-1.739%201.475%200%202.52.723%202.617%201.914h2.764c-.05-2.548-2.11-4.238-5.39-4.238-3.145%200-5.392%201.719-5.392%204.316%200%20.363.04.703.12%201.02ZM4%2011a1%201%200%201%200%200%202h15a1%201%200%201%200%200-2H4Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-quote::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M4.581%208.471c.44-.5%201.056-.834%201.758-.995C8.074%207.17%209.201%207.822%2010%208.752c1.354%201.578%201.33%203.555.394%205.277-.941%201.731-2.788%203.163-4.988%203.56a.622.622%200%200%201-.653-.317c-.113-.205-.121-.49.16-.764.294-.286.567-.566.791-.835.222-.266.413-.54.524-.815.113-.28.156-.597.026-.908-.128-.303-.39-.524-.72-.69a3.02%203.02%200%200%201-1.674-2.7c0-.905.283-1.59.72-2.088Zm9.419%200c.44-.5%201.055-.834%201.758-.995%201.734-.306%202.862.346%203.66%201.276%201.355%201.578%201.33%203.555.395%205.277-.941%201.731-2.789%203.163-4.988%203.56a.622.622%200%200%201-.653-.317c-.113-.205-.122-.49.16-.764.294-.286.567-.566.791-.835.222-.266.412-.54.523-.815.114-.28.157-.597.026-.908-.127-.303-.39-.524-.72-.69a3.02%203.02%200%200%201-1.672-2.701c0-.905.283-1.59.72-2.088Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-heading-1::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21.5%207.5v-3h-12v3H14v13h3v-13h4.5ZM9%2013.5h3.5v-3h-10v3H6v7h3v-7Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-code::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3.293%2011.293a1%201%200%200%200%200%201.414l4%204a1%201%200%201%200%201.414-1.414L5.414%2012l3.293-3.293a1%201%200%200%200-1.414-1.414l-4%204Zm13.414%205.414%204-4a1%201%200%200%200%200-1.414l-4-4a1%201%200%201%200-1.414%201.414L18.586%2012l-3.293%203.293a1%201%200%200%200%201.414%201.414Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-bullet-list::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%207.5a1.5%201.5%200%201%200%200-3%201.5%201.5%200%200%200%200%203ZM8%206a1%201%200%200%201%201-1h11a1%201%200%201%201%200%202H9a1%201%200%200%201-1-1Zm1%205a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm0%206a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm-2.5-5a1.5%201.5%200%201%201-3%200%201.5%201.5%200%200%201%203%200ZM5%2019.5a1.5%201.5%200%201%200%200-3%201.5%201.5%200%200%200%200%203Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-number-list::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3%204h2v4H4V5H3V4Zm5%202a1%201%200%200%201%201-1h11a1%201%200%201%201%200%202H9a1%201%200%200%201-1-1Zm1%205a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm0%206a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm-3.5-7H6v1l-1.5%202H6v1H3v-1l1.667-2H3v-1h2.5ZM3%2017v-1h3v4H3v-1h2v-.5H4v-1h1V17H3Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-undo::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3%2014a1%201%200%200%200%201%201h6a1%201%200%201%200%200-2H6.257c2.247-2.764%205.151-3.668%207.579-3.264%202.589.432%204.739%202.356%205.174%205.405a1%201%200%200%200%201.98-.283c-.564-3.95-3.415-6.526-6.825-7.095C11.084%207.25%207.63%208.377%205%2011.39V8a1%201%200%200%200-2%200v6Zm2-1Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-redo::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21%2014a1%201%200%200%201-1%201h-6a1%201%200%201%201%200-2h3.743c-2.247-2.764-5.151-3.668-7.579-3.264-2.589.432-4.739%202.356-5.174%205.405a1%201%200%200%201-1.98-.283c.564-3.95%203.415-6.526%206.826-7.095%203.08-.513%206.534.614%209.164%203.626V8a1%201%200%201%201%202%200v6Zm-2-1Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-decrease-nesting-level::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%206a1%201%200%200%201%201-1h12a1%201%200%201%201%200%202H6a1%201%200%200%201-1-1Zm4%205a1%201%200%201%200%200%202h9a1%201%200%201%200%200-2H9Zm-3%206a1%201%200%201%200%200%202h12a1%201%200%201%200%200-2H6Zm-3.707-5.707a1%201%200%200%200%200%201.414l2%202a1%201%200%201%200%201.414-1.414L4.414%2012l1.293-1.293a1%201%200%200%200-1.414-1.414l-2%202Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-increase-nesting-level::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%206a1%201%200%200%201%201-1h12a1%201%200%201%201%200%202H6a1%201%200%200%201-1-1Zm4%205a1%201%200%201%200%200%202h9a1%201%200%201%200%200-2H9Zm-3%206a1%201%200%201%200%200%202h12a1%201%200%201%200%200-2H6Zm-2.293-2.293%202-2a1%201%200%200%200%200-1.414l-2-2a1%201%200%201%200-1.414%201.414L3.586%2012l-1.293%201.293a1%201%200%201%200%201.414%201.414Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-dialogs {
  position: relative; }

trix-toolbar .trix-dialog {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  font-size: 0.75em;
  padding: 15px 10px;
  background: #fff;
  box-shadow: 0 0.3em 1em #ccc;
  border-top: 2px solid #888;
  border-radius: 5px;
  z-index: 5; }

trix-toolbar .trix-input--dialog {
  font-size: inherit;
  font-weight: normal;
  padding: 0.5em 0.8em;
  margin: 0 10px 0 0;
  border-radius: 3px;
  border: 1px solid #bbb;
  background-color: #fff;
  box-shadow: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none; }
  trix-toolbar .trix-input--dialog.validate:invalid {
    box-shadow: #F00 0px 0px 1.5px 1px; }

trix-toolbar .trix-button--dialog {
  font-size: inherit;
  padding: 0.5em;
  border-bottom: none; }

trix-toolbar .trix-dialog--link {
  max-width: 600px; }

trix-toolbar .trix-dialog__link-fields {
  display: flex;
  align-items: baseline; }
  trix-toolbar .trix-dialog__link-fields .trix-input {
    flex: 1; }
  trix-toolbar .trix-dialog__link-fields .trix-button-group {
    flex: 0 0 content;
    margin: 0; }

trix-editor [data-trix-mutable]:not(.attachment__caption-editor) {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none; }

trix-editor [data-trix-mutable]::-moz-selection,
trix-editor [data-trix-cursor-target]::-moz-selection, trix-editor [data-trix-mutable] ::-moz-selection {
  background: none; }

trix-editor [data-trix-mutable]::selection,
trix-editor [data-trix-cursor-target]::selection, trix-editor [data-trix-mutable] ::selection {
  background: none; }

trix-editor .attachment__caption-editor:focus[data-trix-mutable]::-moz-selection {
  background: highlight; }

trix-editor .attachment__caption-editor:focus[data-trix-mutable]::selection {
  background: highlight; }

trix-editor [data-trix-mutable].attachment.attachment--file {
  box-shadow: 0 0 0 2px highlight;
  border-color: transparent; }

trix-editor [data-trix-mutable].attachment img {
  box-shadow: 0 0 0 2px highlight; }

trix-editor .attachment {
  position: relative; }
  trix-editor .attachment:hover {
    cursor: default; }

trix-editor .attachment--preview .attachment__caption:hover {
  cursor: text; }

trix-editor .attachment__progress {
  position: absolute;
  z-index: 1;
  height: 20px;
  top: calc(50% - 10px);
  left: 5%;
  width: 90%;
  opacity: 0.9;
  transition: opacity 200ms ease-in; }
  trix-editor .attachment__progress[value="100"] {
    opacity: 0; }

trix-editor .attachment__caption-editor {
  display: inline-block;
  width: 100%;
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
  color: inherit;
  text-align: center;
  vertical-align: top;
  border: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none; }

trix-editor .attachment__toolbar {
  position: absolute;
  z-index: 1;
  top: -0.9em;
  left: 0;
  width: 100%;
  text-align: center; }

trix-editor .trix-button-group {
  display: inline-flex; }

trix-editor .trix-button {
  position: relative;
  float: left;
  color: #666;
  white-space: nowrap;
  font-size: 80%;
  padding: 0 0.8em;
  margin: 0;
  outline: none;
  border: none;
  border-radius: 0;
  background: transparent; }
  trix-editor .trix-button:not(:first-child) {
    border-left: 1px solid #ccc; }
  trix-editor .trix-button.trix-active {
    background: #cbeefa; }
  trix-editor .trix-button:not(:disabled) {
    cursor: pointer; }

trix-editor .trix-button--remove {
  text-indent: -9999px;
  display: inline-block;
  padding: 0;
  outline: none;
  width: 1.8em;
  height: 1.8em;
  line-height: 1.8em;
  border-radius: 50%;
  background-color: #fff;
  border: 2px solid highlight;
  box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.25); }
  trix-editor .trix-button--remove::before {
    display: inline-block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.7;
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg%20height%3D%2224%22%20width%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M19%206.41%2017.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012z%22%2F%3E%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22%2F%3E%3C%2Fsvg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 90%; }
  trix-editor .trix-button--remove:hover {
    border-color: #333; }
    trix-editor .trix-button--remove:hover::before {
      opacity: 1; }

trix-editor .attachment__metadata-container {
  position: relative; }

trix-editor .attachment__metadata {
  position: absolute;
  left: 50%;
  top: 2em;
  transform: translate(-50%, 0);
  max-width: 90%;
  padding: 0.1em 0.6em;
  font-size: 0.8em;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 3px; }
  trix-editor .attachment__metadata .attachment__name {
    display: inline-block;
    max-width: 100%;
    vertical-align: bottom;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; }
  trix-editor .attachment__metadata .attachment__size {
    margin-left: 0.2em;
    white-space: nowrap; }

.trix-content {
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-word; }
  .trix-content * {
    box-sizing: border-box;
    margin: 0;
    padding: 0; }
  .trix-content h1 {
    font-size: 1.2em;
    line-height: 1.2; }
  .trix-content blockquote {
    border: 0 solid #ccc;
    border-left-width: 0.3em;
    margin-left: 0.3em;
    padding-left: 0.6em; }
  .trix-content [dir=rtl] blockquote,
  .trix-content blockquote[dir=rtl] {
    border-width: 0;
    border-right-width: 0.3em;
    margin-right: 0.3em;
    padding-right: 0.6em; }
  .trix-content li {
    margin-left: 1em; }
  .trix-content [dir=rtl] li {
    margin-right: 1em; }
  .trix-content pre {
    display: inline-block;
    width: 100%;
    vertical-align: top;
    font-family: monospace;
    font-size: 0.9em;
    padding: 0.5em;
    white-space: pre;
    background-color: #eee;
    overflow-x: auto; }
  .trix-content img {
    max-width: 100%;
    height: auto; }
  .trix-content .attachment {
    display: inline-block;
    position: relative;
    max-width: 100%; }
    .trix-content .attachment a {
      color: inherit;
      text-decoration: none; }
      .trix-content .attachment a:hover, .trix-content .attachment a:visited:hover {
        color: inherit; }
  .trix-content .attachment__caption {
    text-align: center; }
    .trix-content .attachment__caption .attachment__name + .attachment__size::before {
      content: ' \2022 '; }
  .trix-content .attachment--preview {
    width: 100%;
    text-align: center; }
    .trix-content .attachment--preview .attachment__caption {
      color: #666;
      font-size: 0.9em;
      line-height: 1.2; }
  .trix-content .attachment--file {
    color: #333;
    line-height: 1;
    margin: 0 2px 2px 2px;
    padding: 0.4em 1em;
    border: 1px solid #bbb;
    border-radius: 5px; }
  .trix-content .attachment-gallery {
    display: flex;
    flex-wrap: wrap;
    position: relative; }
    .trix-content .attachment-gallery .attachment {
      flex: 1 0 33%;
      padding: 0 0.5em;
      max-width: 33%; }
    .trix-content .attachment-gallery.attachment-gallery--2 .attachment, .trix-content .attachment-gallery.attachment-gallery--4 .attachment {
      flex-basis: 50%;
      max-width: 50%; }
/*
 * Provides a drop-in pointer for the default Trix stylesheet that will format the toolbar and
 * the trix-editor content (whether displayed or under editing). Feel free to incorporate this
 * inclusion directly in any other asset bundle and remove this file.
 *

*/

/*
 * We need to override trix.css’s image gallery styles to accommodate the
 * <action-text-attachment> element we wrap around attachments. Otherwise,
 * images in galleries will be squished by the max-width: 33%; rule.
*/
.trix-content .attachment-gallery > action-text-attachment,
.trix-content .attachment-gallery > .attachment {
  flex: 1 0 33%;
  padding: 0 0.5em;
  max-width: 33%;
}

.trix-content .attachment-gallery.attachment-gallery--2 > action-text-attachment,
.trix-content .attachment-gallery.attachment-gallery--2 > .attachment, .trix-content .attachment-gallery.attachment-gallery--4 > action-text-attachment,
.trix-content .attachment-gallery.attachment-gallery--4 > .attachment {
  flex-basis: 50%;
  max-width: 50%;
}

.trix-content action-text-attachment .attachment {
  padding: 0 !important;
  max-width: 100% !important;
}
/* The CMS keeps one navigation tree in both its expanded and compact modes. */
.cms-dashboard { --cms-sidebar-width: 256px; }
html[data-sidebar-compact="true"] .cms-dashboard { --cms-sidebar-width: 74px; }
.cms-sidebar, .cms-sidebar *, .cms-sidebar-flyout, .cms-sidebar-flyout * { box-sizing: border-box; }
.cms-dashboard #default-sidebar.cms-sidebar {
  position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 50;
  display: flex; flex-direction: column; height: 100dvh; width: 100vw;
  background: linear-gradient(165deg, #293368, #242d6c 75%, #283270);
  color: #e1e5ff;
  box-shadow: 1px 0 5px #28316922;
}
.cms-dashboard[dir="rtl"] #default-sidebar.cms-sidebar { left: auto; right: 0; }
.cms-dashboard[dir="ltr"] #default-sidebar.cms-sidebar { left: 0; right: auto; }
.cms-sidebar > div { background: transparent; }
.cms-sidebar > div:first-child { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 12px 12px; scrollbar-width: thin; scrollbar-color: #ffffff30 transparent; }
.cms-sidebar > div:first-child > div:first-child { position: relative; display: flex; justify-content: center; margin: 4px 0 28px; }
.cms-sidebar > div:first-child > div:first-child img { width: 56px; height: 56px; margin: 0; }
.cms-sidebar ul { list-style: none; padding: 0; }
.cms-sidebar ul.hidden { display: none; }
.cms-sidebar [data-mobile-sidebar-close] { position: absolute; inset-inline-end: 0; top: 0; }
.cms-sidebar > div:first-child > ul { display: flex; flex-direction: column; gap: 6px; }
.cms-dashboard .cms-sidebar > div:first-child > ul > li { margin: 0; }
.cms-sidebar :is(a, button):focus-visible, .cms-sidebar-size-toggle:focus-visible,
.cms-sidebar-flyout :is(a, button):focus-visible { outline: 2px solid #bfc9ff; outline-offset: 3px; }
.cms-sidebar .cms-nav-control {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px;
  width: 100%; padding: 10px 12px; border-radius: 11px; background: transparent;
  border: 0; font: inherit; color: #e1e5ff; text-decoration: none; transition: background 160ms, color 160ms;
}
.cms-sidebar .cms-nav-control:hover { background: #ffffff12; color: white; }
.cms-sidebar .cms-nav-control[aria-current="page"],
.cms-sidebar .cms-nav-control.bg-secondary,
.cms-sidebar .cms-nav-control.cms-nav-active { background: #cfd6ff; color: #263477; }
.cms-dashboard .cms-sidebar .cms-nav-control > svg,
.cms-dashboard .cms-sidebar svg[class],
.cms-dashboard .cms-sidebar-flyout svg[class] { color: inherit; }
.cms-sidebar .cms-nav-control > svg:first-child { width: 23px; height: 23px; flex: 0 0 23px; margin: 0; }
.cms-sidebar .cms-nav-control > span:not([data-chat-unread-badge]) { margin: 0; text-align: start; }
.cms-sidebar .cms-nav-control > svg:last-child:not(:first-child) { width: 11px; height: 11px; margin-inline-start: auto; flex-shrink: 0; transition: transform 180ms; }
.cms-sidebar [data-sidebar-submenu][aria-expanded="true"] > svg:last-child { transform: rotate(180deg); }
.cms-sidebar ul ul { margin: 5px 0 6px 22px; padding: 0 0 0 10px; border-inline-start: 1px solid #ffffff22; }
[dir="rtl"] .cms-sidebar ul ul { margin: 5px 22px 6px 0; padding: 0 10px 0 0; }
.cms-sidebar ul ul :is(a, button) { min-height: 38px; padding: 8px 10px; border-radius: 8px; font-size: 13px; background: transparent; color: #dce1ff; }
.cms-sidebar ul ul :is(a, button):hover { background: #ffffff12; color: white; }
.cms-sidebar > div:not(:first-child) { padding: 5px 12px; border-color: #ffffff14; }
.cms-sidebar > div:last-child { padding: 10px 12px; }
.cms-sidebar > div:last-child p { color: #acb6dd; font-size: 11px; }
.cms-sidebar-size-toggle { display: none; }
.cms-dashboard > main > nav { position: relative; min-height: 56px; }
.cms-sidebar-tooltip {
  position: fixed; z-index: 70; pointer-events: none; padding: 8px 12px; border-radius: 8px;
  background: #25305b; color: white; font-size: 12px; box-shadow: 0 5px 20px #18235025;
}
.cms-sidebar-flyout {
  position: fixed; z-index: 65; width: 244px; max-width: calc(100vw - 100px); max-height: calc(100dvh - 24px);
  overflow: auto; padding: 8px; margin: 0; border: 1px solid #e1e5f6; border-radius: 14px;
  background: #fff; color: #344064; box-shadow: 0 12px 36px #18235022; list-style: none;
  animation: cms-flyout-in 120ms ease-out;
}
.cms-sidebar-flyout::before { content: attr(aria-label); display: block; padding: 9px 10px; color: #7c87a5; font-size: 11px; letter-spacing: .05em; }
.cms-sidebar-flyout li { margin: 0; list-style: none; }
.cms-sidebar-flyout :is(a, button) { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px; margin: 0; border-radius: 8px; background: transparent; color: #344064; text-decoration: none; text-align: start; font-size: 13px; }
.cms-sidebar-flyout :is(a, button):hover { background: #eef1ff; color: #263477; }
.cms-sidebar-flyout svg { width: 19px; height: 19px; flex-shrink: 0; }
.cms-sidebar-flyout svg [fill="white"] { fill: currentColor; }
.cms-sidebar-flyout button > svg:last-child { width: 10px; margin-inline-start: auto; }
.cms-sidebar-flyout :is(a, button) > span { margin: 0; white-space: normal; }
.cms-sidebar-flyout ul { margin: 2px 0 2px 12px; padding: 0 0 0 8px; border-inline-start: 1px solid #e1e5f6; }
[dir="rtl"] .cms-sidebar-flyout ul { margin: 2px 12px 2px 0; padding: 0 8px 0 0; }
.cms-sidebar-flyout ul.hidden { display: none; }
.cms-sidebar-flyout button[aria-expanded="true"] > svg:last-child { transform: rotate(180deg); }
[hidden].cms-sidebar-tooltip { display: none; }
@keyframes cms-flyout-in { from { opacity: 0; translate: 0 3px; } to { opacity: 1; translate: 0 0; } }
@media (min-width: 640px) {
  .cms-dashboard [data-mobile-sidebar-open] { display: none; }
  .cms-sidebar [data-mobile-sidebar-close] { display: none; }
  .cms-dashboard #default-sidebar.cms-sidebar { width: var(--cms-sidebar-width); transition: width 200ms ease; }
  .cms-dashboard .cms-dashboard-content, .cms-dashboard > main > nav { margin-inline-start: var(--cms-sidebar-width); margin-inline-end: 0; transition: margin 200ms ease; }
  .cms-sidebar-size-toggle { position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #e4e8f4; border-radius: 10px; background: #f8f9ff; color: #35427e; cursor: pointer; transition: background 160ms; }
  .cms-sidebar-size-toggle:hover { background: #e9edff; }
  .cms-sidebar-size-toggle svg { width: 21px; height: 21px; }
  html[data-sidebar-compact="true"] .cms-sidebar-size-toggle svg { transform: rotate(180deg); }
  html[data-sidebar-compact="true"] .cms-sidebar > div:first-child { padding: 20px 14px 10px; }
  html[data-sidebar-compact="true"] .cms-sidebar > div:first-child > div:first-child { margin: 4px 0 35px; }
  html[data-sidebar-compact="true"] .cms-sidebar > div:first-child > div:first-child img { width: 42px; height: 42px; flex-shrink: 0; }
  html[data-sidebar-compact="true"] .cms-sidebar > div:first-child > div:nth-child(2),
  html[data-sidebar-compact="true"] .cms-sidebar > div:last-child,
  html[data-sidebar-compact="true"] .cms-sidebar > div:first-child > ul > li > div,
  html[data-sidebar-compact="true"] .cms-sidebar .cms-nav-control > span:not([data-chat-unread-badge]),
  html[data-sidebar-compact="true"] .cms-sidebar .cms-nav-control > svg:not(:first-child),
  html[data-sidebar-compact="true"] .cms-sidebar > div:first-child > ul > li > ul { display: none; }
  html[data-sidebar-compact="true"] .cms-sidebar > div:first-child > ul { gap: 7px; }
  html[data-sidebar-compact="true"] .cms-sidebar .cms-nav-control { justify-content: center; width: 46px; height: 44px; min-height: 44px; padding: 0; gap: 0; }
  html[data-sidebar-compact="true"] .cms-sidebar .cms-nav-control.cms-nav-active,
  html[data-sidebar-compact="true"] .cms-sidebar .cms-nav-control.bg-secondary,
  html[data-sidebar-compact="true"] .cms-sidebar .cms-nav-control[aria-current="page"] { color: white; background: linear-gradient(135deg, #4352c7, #3948ad); box-shadow: 0 5px 14px #14205833; }
  html[data-sidebar-compact="true"] .cms-sidebar > div:not(:first-child):not(:last-child) { padding: 5px 14px; }
  html[data-sidebar-compact="true"] .cms-sidebar [data-chat-unread-badge]:not([hidden]) { position: absolute; inset-inline-end: -4px; top: -3px; margin: 0; font-size: 10px; min-width: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .cms-dashboard #default-sidebar.cms-sidebar, .cms-dashboard .cms-dashboard-content,
  .cms-dashboard > main > nav, .cms-sidebar .cms-nav-control { transition: none; }
  .cms-sidebar-flyout { animation: none; }
}
.cms-dashboard .cms-toolbar { min-height: 64px; border-bottom: 1px solid #e4e8f5; background: linear-gradient(105deg, #fff 30%, #f7f8ff); color: #34416d; }
.cms-toolbar, .cms-toolbar * { box-sizing: border-box; }
.cms-toolbar-inner { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-height: 64px; padding: 10px 22px 10px 64px; }
.cms-toolbar-actions { display: flex; align-items: center; gap: 10px; }
.cms-service-status { display: grid; place-items: center; width: 22px; height: 30px; margin-inline-end: 2px; }
.cms-service-status > span { display: block; width: 7px; height: 7px; border-radius: 50%; background: #36b18b; box-shadow: 0 0 0 4px #e5f6ef; }
.cms-service-status.is-disconnected > span { background: #dc6678; box-shadow: 0 0 0 4px #fcecef; }
.cms-toolbar .cms-toolbar-action { position: relative; display: inline-flex; flex: 0 0 38px; align-items: center; justify-content: center; gap: 0; width: 38px; height: 38px; padding: 0; border: 1px solid #e4e8f7; border-radius: 12px; background: #f8f9ff; color: #495784; text-decoration: none; transition: background 160ms, border-color 160ms, box-shadow 160ms; }
.cms-toolbar .cms-toolbar-action:hover { color: #303da0; border-color: #d5dcfa; background: #edf0ff; box-shadow: 0 3px 9px #3645940b; }
.cms-toolbar .cms-toolbar-action > svg { display: block; flex: 0 0 20px; width: 20px; height: 20px; margin: 0; }
.cms-toolbar .cms-toolbar-badge { position: absolute; top: -5px; inset-inline-end: -5px; display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border: 2px solid #fff; border-radius: 10px; background: #dd5972; color: #fff; font-size: 9px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; box-shadow: 0 2px 5px #b5425a14; }
.cms-toolbar .cms-toolbar-badge[hidden], .cms-toolbar .cms-toolbar-badge.hidden { display: none; }
.cms-toolbar .cms-user-trigger { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; margin: 0; padding: 3px 10px 3px 4px; border: 1px solid #e5e9fa; border-radius: 22px; background: #f8f9ff; color: #34416d; cursor: pointer; transition: background 160ms, border-color 160ms; }
.cms-toolbar .cms-user-trigger:hover { background: #edf0ff; border-color: #d7def9; }
.cms-toolbar .cms-user-trigger[aria-expanded="true"] { background: #edf0ff; border-color: #cbd4fa; }
.cms-toolbar .cms-user-trigger[aria-expanded="true"] .cms-toolbar-chevron { transform: rotate(180deg); }
.cms-toolbar-avatar { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border: 1px solid #dbe1ff; border-radius: 50%; background: #e5eaff; color: #3445b7; font-size: 11px; font-weight: 650; line-height: 1; }
.cms-toolbar-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 550; }
.cms-toolbar-chevron { display: block; flex: 0 0 13px; width: 13px; height: 13px; color: #7783aa; transition: transform 160ms; }
.cms-toolbar .cms-toolbar-menu { z-index: 60; min-width: 220px; margin-top: 8px; overflow: hidden; border: 1px solid #e3e8f8; border-radius: 16px; background: #fff; box-shadow: 0 12px 36px #25305b1c; color: #34416d; }
.cms-toolbar .cms-toolbar-menu > div { padding: 15px 17px; border-bottom: 1px solid #edf0f8; }
.cms-toolbar .cms-toolbar-menu > div > span { display: block; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.cms-toolbar .cms-toolbar-menu > div > span:first-child { font-weight: 650; color: #263357; }
.cms-toolbar .cms-toolbar-menu > div > span:not(:first-child) { color: #8892ac; font-size: 11px; text-decoration: none; }
.cms-toolbar .cms-toolbar-menu ul { padding: 6px; margin: 0; list-style: none; }
.cms-toolbar .cms-toolbar-menu a { display: block; padding: 10px 11px; border-radius: 9px; color: #495784; font-size: 12px; text-decoration: none; }
.cms-toolbar .cms-toolbar-menu a:hover { color: #303da0; background: #f0f3ff; }
.cms-toolbar-locale { padding-inline-start: 12px; border-inline-start: 1px solid #e6eaf7; }
.cms-toolbar-locale > div { display: flex; align-items: center; }
.cms-toolbar-locale button[data-dropdown-toggle] { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 9px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #637096; font-size: 11px; font-weight: 600; transition: background 160ms, color 160ms; }
.cms-toolbar-locale button[data-dropdown-toggle]:hover { color: #3445b7; background: #edf0ff; }
.cms-toolbar-locale button[data-dropdown-toggle] > svg { display: block; width: 18px; height: 18px; margin: 0; border-radius: 50%; }
.cms-toolbar #language-dropdown-menu { z-index: 60; border: 1px solid #e3e8f8; border-radius: 14px; background: #fff; box-shadow: 0 12px 36px #25305b1c; }
.cms-toolbar :is(button, a):focus-visible { outline: 2px solid #8796e8; outline-offset: 3px; }
.cms-toolbar .cms-toolbar-menu.hidden, .cms-toolbar #language-dropdown-menu.hidden { display: none; }
@media (max-width: 900px) { .cms-toolbar-name { display: none; } .cms-toolbar .cms-user-trigger { gap: 5px; padding-inline-end: 7px; } }
@media (max-width: 639px) {
  .cms-toolbar [data-mobile-sidebar-open] { left: auto; right: auto; inset-inline-start: 12px; }
  .cms-toolbar-inner { gap: 8px; padding-inline: 60px 12px; }
  .cms-toolbar-actions { gap: 7px; }
  .cms-service-status { width: 12px; margin: 0; }
  .cms-toolbar-locale { padding-inline-start: 6px; }
  .cms-toolbar .cms-toolbar-action { width: 34px; height: 34px; flex-basis: 34px; border-radius: 11px; }
  .cms-toolbar .cms-user-trigger { min-height: 36px; padding: 2px; border-radius: 50%; }
  .cms-toolbar .cms-toolbar-chevron { display: none; }
  .cms-toolbar-avatar { width: 30px; height: 30px; flex-basis: 30px; }
  .cms-toolbar-locale button[data-dropdown-toggle] { padding-inline: 5px; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) { .cms-toolbar :is(a, button) { transition: none; } }
.cms-account-menu{position:relative}
.cms-account-menu summary{list-style:none}
.cms-account-menu summary::-webkit-details-marker{display:none}
.cms-account-menu[open] .cms-toolbar-chevron{transform:rotate(180deg)}
.cms-account-menu .cms-toolbar-menu{position:absolute;inset-inline-end:0;top:100%}
.cms-account-menu .cms-toolbar-menu button{display:block;width:100%;padding:10px 11px;border:0;border-radius:9px;background:transparent;color:#495784;font-size:12px;text-align:start;cursor:pointer}
.cms-account-menu .cms-toolbar-menu button:hover{background:#f0f3ff;color:#303da0}
.chat-header-actions{margin-inline-start:auto;flex-shrink:0}
.chat-header-actions .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@tailwind base;
@tailwind components;
@tailwind utilities;

/*

@layer components {
  .btn-primary {
    @apply py-2 px-4 bg-blue-200;
  }
}

*/
@import 'actiontext.css';
/* Scoped to the CS workspace. CMS navigation markup/icons remain shared. */
.chat-inbox .chat-reply-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  margin-bottom: 8px;
  background: #eef1fc;
  border-inline-start: 3px solid #4459c7;
  border-radius: 8px;
}
.chat-reply-preview > div {
  min-width: 0;
}
.chat-reply-preview p {
  overflow-wrap: anywhere;
  max-height: 3em;
  overflow: hidden;
}
.chat-inbox .chat-reply-quote {
  display: flex;
  flex-direction: column;
  text-align: start;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  gap: 3px;
  margin-bottom: 8px;
  border: 0;
  border-inline-start: 3px solid #7b8ee7;
  background: #e9edfb;
  color: #27324d;
  border-radius: 6px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.chat-reply-quote span {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.chat-inbox .agent .chat-reply-quote {
  background: #ffffff24;
  color: white;
  border-color: #b6c2ff;
}
.chat-bubble-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
}
.chat-message.agent .chat-bubble-row {
  flex-direction: row-reverse;
}
.chat-bubble-row > .chat-message-bubble {
  flex: 0 1 auto;
  max-width: calc(100% - 40px);
}
.chat-inbox .chat-reply-action {
  position: relative;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 7px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: #eef1f8;
  color: #7b86a7;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
  transition:
    opacity 0.15s,
    transform 0.15s,
    background 0.15s;
}
.chat-reply-action svg {
  width: 18px;
  height: 18px;
}
.chat-inbox .chat-reply-action {
  z-index: 3;
}
/* The row owns the space between the bubble and icon, keeping hover continuous. */
.chat-inbox .chat-message:is(:hover, :focus-within) .chat-reply-action {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}
.chat-inbox .chat-reply-action:hover {
  background: #e0e6f7;
  color: #3448bd;
}
@media (hover: none), (pointer: coarse) {
  .chat-inbox .chat-reply-action {
    opacity: 0.8;
    pointer-events: auto;
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    padding: 11px;
  }
  .chat-bubble-row > .chat-message-bubble {
    max-width: calc(100% - 48px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .chat-inbox .chat-reply-action {
    transition: none;
  }
}
.chat-reply-highlight .chat-message-bubble {
  outline: 3px solid #e8b13d;
  outline-offset: 3px;
}
.chat-inbox {
  --cms-primary: #222b78;
  --cms-secondary: #cdd5fb;
  --cms-muted: #7b839c;
  --cms-border: #e9ecf4;
  --chat-rail-width: 72px;
  margin: 0;
  background: #f7f8fc;
  color: #27324d;
  font:
    13px/1.5 "Segoe UI",
    system-ui,
    sans-serif;
}
.chat-inbox * {
  box-sizing: border-box;
}
.chat-inbox [hidden] {
  display: none !important;
}
.chat-inbox button,
.chat-inbox input,
.chat-inbox textarea,
.chat-inbox select {
  font: inherit;
}
.chat-inbox button,
.chat-inbox select {
  cursor: pointer;
}
.chat-inbox button {
  border: 1px solid var(--cms-border);
  background: white;
  border-radius: 9px;
  padding: 8px 12px;
  color: var(--cms-primary);
  transition:
    background 0.16s,
    box-shadow 0.16s;
}
.chat-inbox button:hover {
  background: #f0f2fc;
}
.chat-inbox button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.chat-inbox input,
.chat-inbox select,
.chat-inbox textarea {
  border: 1px solid #e1e5ef;
  border-radius: 9px;
  background: white;
  padding: 9px 11px;
  width: 100%;
  color: #27324d;
}
.chat-inbox :is(input, select, textarea, button, a):focus-visible {
  outline: 3px solid #8e9ee9;
  outline-offset: 2px;
}
.chat-inbox input::placeholder,
.chat-inbox textarea::placeholder {
  color: #9199af;
}
.chat-inbox label {
  display: block;
  font-size: 11px;
  color: #7c859c;
}
.chat-inbox svg {
  flex-shrink: 0;
  vertical-align: middle;
}
.chat-inbox p {
  margin: 0;
}
.chat-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.chat-inbox #chat-inbox {
  padding-left: var(--chat-rail-width);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-inbox .chat-primary {
  background: var(--cms-primary);
  color: #fff;
  border-color: var(--cms-primary);
  font-weight: 600;
}
.chat-inbox .chat-primary:hover {
  background: #303c94;
}
.chat-inbox .chat-icon-button {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: transparent;
  background: transparent;
  color: #7b85a1;
}
.chat-inbox .chat-icon-button:hover {
  background: #eef1fc;
  color: var(--cms-primary);
}
/* The real CMS sidebar in compact mode: original SVGs, links and hierarchy. */
.chat-brand-rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--chat-rail-width);
  z-index: 40;
  background: var(--cms-primary);
  color: white;
}
.chat-brand-rail #default-sidebar {
  position: static;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 16px 10px 10px;
}
.chat-brand-rail #default-sidebar > div:first-child {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.chat-brand-rail #default-sidebar > div:first-child > div:first-child {
  display: flex;
  justify-content: center;
  margin: 4px 0 18px;
}
.chat-brand-rail img {
  width: 42px;
  height: 42px;
}
.chat-brand-rail [data-mobile-sidebar-close] {
  display: none;
}
.chat-brand-rail #default-sidebar > div:first-child > div:nth-child(2) {
  display: none;
}
.chat-brand-rail ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.chat-brand-rail #default-sidebar > div:first-child > ul {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.chat-brand-rail li {
  position: relative;
}
.chat-brand-rail #default-sidebar > div:first-child > ul > li > :is(a, button),
.chat-brand-rail #default-sidebar > div:not(:first-child):not(:last-child) > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 43px;
  border: 0;
  padding: 0;
  border-radius: 11px;
  color: #e1e5ff;
  text-decoration: none;
  background: transparent;
}
.chat-brand-rail :is(a, button) > svg {
  width: 23px;
  height: 23px;
}
.chat-brand-rail
  #default-sidebar
  > div:first-child
  > ul
  > li
  > :is(a, button)
  > :not(svg:first-child),
.chat-brand-rail
  #default-sidebar
  > div:not(:first-child):not(:last-child)
  > a
  > span {
  display: none;
}
.chat-brand-rail #default-sidebar > div:first-child > ul > li > div {
  height: 1px;
  background: #ffffff20;
  margin: 7px 8px;
}
.chat-brand-rail #default-sidebar > div:first-child > ul > li > div > span {
  display: none;
}
.chat-brand-rail
  #default-sidebar
  > div:first-child
  > ul
  > li
  > :is(a, button):hover,
.chat-brand-rail
  #default-sidebar
  > div:first-child
  > ul
  > li
  > :is(a, button)[aria-expanded="true"],
.chat-brand-rail
  #default-sidebar
  > div:first-child
  > ul
  > li
  > a[aria-current="page"] {
  background: #ffffff19;
  color: #fff;
}
.chat-brand-rail
  #default-sidebar
  > div:first-child
  > ul
  > li
  > a[aria-current="page"] {
  box-shadow: inset 3px 0 #cdd5fb;
}
.chat-brand-rail #default-sidebar > div:not(:first-child) {
  padding: 5px 0;
  border-top: 1px solid #ffffff13;
}
.chat-brand-rail #default-sidebar > div:last-child {
  color: #b6bde5;
  text-align: center;
  font-size: 9px;
  white-space: nowrap;
  padding: 10px 0 0;
}
.chat-brand-rail #default-sidebar > div:last-child p {
  font-size: 9px;
}
.chat-brand-rail #default-sidebar > div:first-child > ul > li > ul {
  display: none;
}
/* Fixed flyouts escape the narrow rail and keep nested archive links reachable. */
.chat-brand-rail
  #default-sidebar
  > div:first-child
  > ul
  > li
  > ul.chat-rail-flyout {
  display: block;
  position: fixed;
  left: calc(var(--chat-rail-width) - 2px);
  top: var(--flyout-top, 80px);
  width: 264px;
  max-height: calc(100dvh - var(--flyout-top, 80px) - 12px);
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #e3e7f2;
  border-radius: 0 14px 14px 14px;
  background: #fff;
  color: #293553;
  box-shadow: 8px 12px 36px #202b5b24;
  animation: chat-flyout-in 0.14s ease-out;
}
.chat-rail-flyout::before {
  content: attr(aria-label);
  display: block;
  color: #8b94ab;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 10px;
  padding: 7px 9px 10px;
}
.chat-brand-rail .chat-rail-flyout :is(a, button) {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #344064;
  text-decoration: none;
  text-align: left;
  font-size: 12px;
}
.chat-brand-rail .chat-rail-flyout :is(a, button):hover {
  background: #f0f2fe;
  color: var(--cms-primary);
}
.chat-brand-rail .chat-rail-flyout :is(a, button) > svg {
  width: 18px;
  height: 18px;
}
.chat-brand-rail .chat-rail-flyout svg [fill="white"] {
  fill: currentColor;
}
.chat-brand-rail .chat-rail-flyout button > svg:last-child {
  width: 10px;
  margin-left: auto;
}
.chat-brand-rail .chat-rail-flyout ul {
  display: none;
  padding-left: 16px;
  border-left: 1px solid #e9ecf6;
  margin-left: 10px;
}
.chat-brand-rail
  .chat-rail-flyout
  li:is(:hover, :focus-within, .chat-nav-expanded)
  > ul {
  display: block;
}
.chat-rail-tooltip {
  position: fixed;
  z-index: 45;
  left: calc(var(--chat-rail-width) + 8px);
  background: #25305b;
  color: white;
  border-radius: 7px;
  padding: 7px 11px;
  font-size: 11px;
  pointer-events: none;
  box-shadow: 0 4px 15px #18235020;
  white-space: nowrap;
}
@keyframes chat-flyout-in {
  from {
    opacity: 0;
    translate: -4px 0;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
/* Workspace shell */
.chat-topbar {
  height: 76px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 25px;
  background: white;
  border-bottom: 1px solid var(--cms-border);
}
.chat-breadcrumb {
  font-size: 10px;
  color: #9aa3b8;
  margin-bottom: 3px !important;
}
.chat-breadcrumb span {
  margin: 0 6px;
  color: #c1c6d8;
}
.chat-topbar h1 {
  font-size: 22px;
  letter-spacing: -0.6px;
  margin: 0;
  font-weight: 650;
  color: #222d4c;
}
.chat-workspace-badge {
  vertical-align: middle;
  background: #f0f2ff;
  color: #6571ac;
  font-size: 9px;
  padding: 4px 8px;
  border: 1px solid #e5e9fb;
  border-radius: 6px;
  margin-left: 8px;
  font-weight: 500;
  letter-spacing: 0;
}
.chat-agent {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: #536080;
}
.chat-agent a {
  margin-left: 12px;
  color: #8993aa;
  text-decoration: none;
}
.chat-dot {
  width: 7px;
  height: 7px;
  border-radius: 100%;
  background: #43aa89;
  box-shadow: 0 0 0 4px #ecf8f1;
}
.chat-workspace {
  display: grid;
  grid-template-columns: 316px minmax(0, 1fr);
  flex: 1;
  min-height: 0;
}
.chat-threads {
  background: white;
  border-right: 1px solid var(--cms-border);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.chat-inbox-heading {
  padding: 20px 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-eyebrow {
  color: #8995b1;
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 600;
}
.chat-inbox-heading h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
  margin: 2px 0 0;
  font-weight: 650;
}
.chat-inbox-heading h2 span {
  display: inline-block;
  vertical-align: middle;
  font-size: 10px;
  background: #eff1fc;
  color: #5966a4;
  border-radius: 7px;
  padding: 2px 6px;
  margin-left: 5px;
  letter-spacing: 0;
}
.chat-filters {
  padding: 0 16px 12px;
  border-bottom: 1px solid var(--cms-border);
}
.chat-search-toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
}
.chat-inbox .chat-search-field {
  display: flex;
  align-items: center;
  background: #f6f7fb;
  border: 1px solid #edf0f6;
  border-radius: 9px;
  padding-left: 10px;
  flex: 1;
  min-width: 0;
}
.chat-search-field svg {
  width: 16px;
  color: #9ba4b9;
}
.chat-inbox .chat-search-field input {
  background: transparent;
  border: 0;
  min-width: 0;
  padding: 10px 6px;
  font-size: 11px;
}
.chat-new-button {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 37px;
  padding: 0 9px !important;
  white-space: nowrap;
  font-size: 11px !important;
}
.chat-new-button svg {
  width: 15px;
}
.chat-filter-row {
  display: flex;
  gap: 7px;
  margin-top: 9px;
}
.chat-filter-row > * {
  width: 50%;
  min-width: 0;
}
.chat-filter-row select {
  font-size: 11px;
  padding: 6px 7px;
  background-color: #fff;
  height: 31px;
}
.chat-filter-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 7px;
}
.chat-inbox .chat-checkbox {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
}
.chat-checkbox input {
  width: 13px;
  height: 13px;
  accent-color: var(--cms-primary);
  margin: 0;
}
.chat-inbox .chat-apply-filters {
  border: 0;
  color: #5968a6;
  font-size: 10px;
  padding: 5px 7px;
}
.chat-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-top: 7px;
}
.chat-inbox .chat-filter-chip {
  font-size: 10px;
  background: #f0f2ff;
  border: 0;
  padding: 3px 7px;
  color: #5664a1;
}
#chat-thread-list {
  flex: 1;
  overflow: auto;
  padding: 7px 8px;
}
.chat-inbox .chat-thread-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 84px;
  padding: 11px 10px;
  margin: 3px 0;
  border: 1px solid transparent;
  border-radius: 11px;
  text-align: left;
}
.chat-thread-card:hover {
  background: #f7f8fc !important;
}
.chat-thread-card[aria-current="true"] {
  background: #f0f2ff !important;
  border-color: #e4e8fc !important;
  box-shadow: inset 3px 0 #5969c0;
}
.chat-card-avatar,
.chat-header-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 14px;
  background: #eef1fd;
  color: #6978b4;
  font-size: 12px;
  font-weight: 600;
}
.chat-thread-card[aria-current="true"] .chat-card-avatar {
  background: #dfe5ff;
  color: var(--cms-primary);
}
.chat-card-content {
  flex: 1;
  min-width: 0;
}
.chat-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.chat-card-heading strong {
  font-size: 12px;
  font-weight: 600;
  color: #303c60;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-card-time {
  font-size: 9px;
  color: #a1a9ba;
  flex-shrink: 0;
}
.chat-card-preview {
  font-size: 11px;
  color: #8790a7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 3px 0 !important;
}
.chat-card-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #98a1b7;
  font-size: 9px;
  min-width: 0;
}
.chat-card-meta > span:not(.chat-card-unread) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-card-status {
  text-transform: capitalize;
}
.chat-card-status::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #68ad94;
  margin-right: 4px;
  vertical-align: middle;
}
.chat-needs-reply {
  color: #ad7726;
}
.chat-card-unread {
  margin-left: auto;
  background: var(--cms-primary);
  color: white;
  border-radius: 6px;
  padding: 0 5px;
  font-size: 9px;
}
.chat-inbox #chat-more-threads {
  margin: 8px 16px;
  font-size: 11px;
  flex-shrink: 0;
}
.chat-conversation {
  overflow: hidden;
  position: relative;
  background: #f7f8fc;
  min-width: 0;
}
.chat-empty-selection {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 25px;
  color: #939db5;
  background: radial-gradient(ellipse at center, #edf0ff, #f8f9fd 65%);
}
.chat-empty-selection h2 {
  color: #344273;
  font-size: 28px;
  letter-spacing: -0.7px;
  line-height: 1.4;
  font-weight: 550;
  margin: 14px 0;
}
.chat-empty-selection p {
  font-size: 12px;
  max-width: 340px;
}
.chat-empty-symbol {
  width: 76px;
  height: 76px;
  border-radius: 23px;
  background: white;
  color: #8b9edb;
  display: grid;
  place-items: center;
  font-size: 38px;
  border: 1px solid #e2e7fa;
  margin-bottom: 24px;
}
.chat-inbox #chat-thread {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 238px;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.chat-thread-header {
  min-height: 82px;
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 22px;
  background: white;
  border-bottom: 1px solid var(--cms-border);
  min-width: 0;
}
.chat-customer-heading {
  min-width: 0;
}
.chat-thread-header h2 {
  font-size: 15px;
  font-weight: 650;
  margin: 0 0 3px;
  color: #2c3857;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 250px;
}
.chat-thread-header p {
  font-size: 10px;
  color: #9aa3b8;
}
.chat-state {
  font-size: 9px;
  border-radius: 5px;
  background: #edf7f2;
  color: #5c9c83;
  padding: 3px 7px;
  text-transform: capitalize;
}
.chat-state[data-status="resolved"] {
  color: #8991a6;
  background: #f1f3f7;
}
.chat-thread-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
}
.chat-thread-actions label {
  font-size: 9px;
  margin: 0;
  color: #929bb1;
}
.chat-thread-actions select {
  font-size: 10px;
  padding: 5px 7px;
  width: 130px;
  max-width: 14vw;
  border-color: #e8ebf5;
}
.chat-thread-actions > button:not(.chat-icon-button) {
  font-size: 10px;
  height: 32px;
  padding: 5px 9px;
  background: #f7f8fe;
}
.chat-history {
  grid-column: 1;
  grid-row: 2;
  overflow: auto;
  min-height: 0;
  padding: 20px 26px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #d3d9eb transparent;
  background: #f7f8fc;
}
.chat-history > button {
  display: block;
  margin: 0 auto 20px;
  border-color: #e4e9f6;
  background: #fff;
  font-size: 10px;
  border-radius: 20px;
}
.chat-date-separator {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 12px 0 23px;
  color: #a5aec2;
  font-size: 9px;
  text-align: center;
}
.chat-date-separator::before,
.chat-date-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e9ecf5;
}
.chat-message {
  width: fit-content;
  max-width: min(78%, 640px);
  margin: 0 0 17px;
}
.chat-message.agent {
  margin-left: auto;
}
.chat-message-author {
  font-size: 9px;
  font-weight: 500;
  color: #8a96af;
  margin: 0 2px 5px;
}
.chat-message.agent .chat-message-author {
  text-align: right;
  color: #8b96b6;
}
.chat-message-bubble {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: white;
  border: 1px solid #e9edf5;
  border-radius: 13px 13px 13px 3px;
  padding: 10px 14px;
  line-height: 1.65;
  font-size: 12px;
  box-shadow: 0 2px 4px #27367002;
}
.chat-message.agent .chat-message-bubble {
  background: var(--cms-primary);
  color: #fff;
  border-color: var(--cms-primary);
  border-radius: 13px 13px 3px 13px;
  box-shadow: 0 3px 8px #222b780d;
}
.chat-message-time {
  color: #a6aec1;
  font-size: 8px;
  margin: 5px 2px 0;
}
.chat-message.agent .chat-message-time {
  text-align: right;
}
.chat-message a {
  color: inherit;
}
.chat-text-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.chat-text-link:hover {
  text-decoration-thickness: 2px;
}
/* Contact panel / responsive drawer */
.chat-contact-details {
  grid-column: 2;
  grid-row: 1/4;
  min-height: 0;
  background: #fff;
  border-left: 1px solid var(--cms-border);
  padding: 0 20px;
  overflow: auto;
}
.chat-details-heading {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f0f2f7;
}
.chat-details-heading h3 {
  color: #65718c;
  font-size: 11px;
  font-weight: 500;
  margin: 0;
}
.chat-contact-profile {
  text-align: center;
  padding: 26px 0 23px;
}
.chat-contact-avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 21px;
  background: #edf1ff;
  box-shadow: 0 0 0 6px #f8f9ff;
  color: #6274b2;
  display: grid;
  place-items: center;
  font-size: 21px;
  font-weight: 600;
}
.chat-contact-profile h3 {
  font-size: 13px;
  color: #3c4967;
  margin: 0;
  overflow-wrap: anywhere;
}
.chat-contact-kind {
  font-size: 10px;
  color: #a7afc1;
  margin-top: 4px !important;
}
.chat-contact-section {
  border-top: 1px solid #eef1f7;
  padding: 23px 0;
}
.chat-contact-section h4 {
  font-size: 8px;
  letter-spacing: 1.25px;
  color: #a3acc2;
  margin: 0 0 14px;
  font-weight: 600;
}
.chat-contact-section label {
  font-size: 10px;
  color: #a0a9bd;
}
.chat-contact-section p {
  font-size: 11px;
  line-height: 1.8;
  color: #8190a8;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.chat-private-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  background: #f7f8fd;
  border-radius: 9px;
  padding: 12px;
  font-size: 10px;
  color: #7581a5;
  margin-top: 23px;
}
.chat-private-note svg {
  width: 14px;
  height: 17px;
}
.chat-private-note span {
  display: block;
  font-size: 9px;
  line-height: 1.8;
  color: #a4adc3;
  margin-top: 5px;
}
.chat-details-backdrop {
  position: absolute;
  inset: 0;
  z-index: 21;
  border: 0 !important;
  border-radius: 0 !important;
  background: #17204d33 !important;
}
.chat-inbox .chat-mobile-back {
  display: none;
}
/* Compact composer; all media / recording / location controls remain real. */
.chat-composer {
  grid-column: 1;
  grid-row: 3;
  padding: 11px 20px 8px;
  background: #fff;
  border-top: 1px solid var(--cms-border);
  min-width: 0;
}
.chat-compose-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 3px 6px;
}
.chat-compose-heading label {
  color: #a0a8ba;
  font-size: 9px;
}
.chat-compose-heading strong {
  font-weight: 500;
  color: #7d88a4;
}
.chat-compose-heading select {
  width: auto;
  font-size: 9px;
  border: 0;
  background: #f7f8fc;
  padding: 3px 7px;
}
.chat-composer-bar {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  padding: 5px;
  background: #f7f8fc;
  border: 1px solid #eceff6;
  border-radius: 16px;
}
.chat-composer-bar:focus-within {
  border-color: #c6cfee;
  box-shadow: 0 0 0 2px #edf0fd;
}
.chat-inbox .chat-composer-bar textarea {
  display: block;
  flex: 1;
  min-width: 0;
  min-height: 35px;
  max-height: 142px;
  height: 35px;
  padding: 8px 5px;
  border: 0;
  border-radius: 0;
  resize: none;
  background: transparent;
  font-size: 12px;
  line-height: 20px;
  outline: none;
  overflow-y: auto;
}
.chat-inbox .chat-send-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  padding: 0;
  border-radius: 11px;
  flex-shrink: 0;
}
.chat-send-button.is-empty {
  display: none !important;
}
.chat-send-button.is-sending svg {
  animation: chat-send-pulse 0.8s ease-in-out infinite alternate;
}
@keyframes chat-send-pulse {
  to {
    opacity: 0.3;
  }
}
.chat-attachment-control {
  position: relative;
  flex-shrink: 0;
}
.chat-attachment-menu {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  width: 175px;
  padding: 6px;
  background: white;
  border: 1px solid #e3e8f5;
  border-radius: 12px;
  box-shadow: 0 10px 35px #202b5b21;
  z-index: 15;
}
.chat-inbox .chat-attachment-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  width: 100%;
  padding: 9px;
  text-align: left;
  font-size: 12px;
}
.chat-attachment-menu svg {
  width: 17px;
}
.chat-special-compose-label {
  flex: 1;
  padding: 9px 5px;
  font-size: 11px;
  color: #8792ae;
}
.chat-compose-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 5px 4px 0;
  color: #a4adc0;
  font-size: 8px;
}
.chat-media-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 9px 2px;
  color: #929bb0;
  font-size: 10px;
}
.chat-file-picker {
  display: flex !important;
  align-items: center;
  gap: 8px;
  color: #68789b !important;
  font-size: 11px !important;
}
.chat-file-picker input {
  max-width: 210px;
  padding: 4px;
  font-size: 10px;
  border: 0;
}
#chat-record-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0 10px;
}
#chat-record-controls button {
  font-size: 11px;
  padding: 6px 9px;
}
#chat-record-time {
  font-size: 11px;
  color: #b35c6c;
  font-variant-numeric: tabular-nums;
}
#chat-media-preview {
  background: #f7f8ff;
  border: 1px solid #e4e9f9;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 9px;
}
#chat-media-preview-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11px;
}
#chat-media-preview img {
  max-width: 130px;
  max-height: 90px;
  border-radius: 8px;
}
#chat-media-preview audio,
.chat-message audio {
  max-width: 100%;
  width: 260px;
  height: 38px;
}
.chat-attachment-image {
  display: block;
  max-width: min(280px, 100%);
  max-height: 300px;
  border-radius: 8px;
  object-fit: contain;
}
.chat-pdf-link {
  display: block;
  padding: 10px;
  background: #cdd5fb22;
  border-radius: 7px;
}
.chat-media-meta {
  display: block;
  font-size: 10px;
  margin-top: 5px;
}
#chat-upload-progress {
  width: 100%;
  height: 6px;
  accent-color: var(--cms-primary);
}
.chat-inbox #chat-discard-media {
  margin-top: 6px;
  color: #ae5267;
  padding: 4px 8px;
  font-size: 10px;
}
#chat-location {
  padding: 0 0 10px;
}
#chat-location input {
  padding: 5px 8px;
  font-size: 11px;
}
#chat-location > label {
  margin-top: 7px;
}
.chat-empty,
.chat-readonly {
  padding: 25px;
  color: #9aa3b6;
  text-align: center;
  font-size: 12px;
}
.chat-readonly {
  grid-column: 1;
  grid-row: 3;
}
#chat-alert {
  background: #fff3e9;
  color: #9b6248;
  padding: 9px 22px;
  font-size: 12px;
  flex-shrink: 0;
}
/* Existing outreach flow */
.chat-start-dialog {
  width: min(560px, 94vw);
  border: 1px solid #e4e8f6;
  border-radius: 19px;
  padding: 26px;
  box-shadow: 0 30px 100px #19257d30;
  color: #293756;
  max-height: 90dvh;
}
.chat-start-dialog::backdrop {
  background: #151e4d60;
  backdrop-filter: blur(4px);
}
.chat-dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
}
.chat-dialog-heading h2 {
  font-size: 22px;
  letter-spacing: -0.4px;
  margin: 4px 0;
}
.chat-dialog-heading button {
  font-size: 23px;
  padding: 0 8px;
  border: 0;
}
.chat-dialog-description {
  font-size: 12px;
  color: #8b95ae;
  line-height: 1.8;
  margin: 10px 0 20px !important;
}
.chat-search-row {
  display: flex;
  gap: 8px;
}
.chat-patient-result {
  display: block;
  width: 100%;
  text-align: left;
  margin: 7px 0;
  padding: 12px !important;
}
.chat-patient-result[aria-current="true"] {
  background: #f0f2ff !important;
  border-color: #c3cdef !important;
}
.chat-patient-result strong {
  display: block;
  font-size: 12px;
}
.chat-patient-result span {
  font-size: 10px;
  color: #929cb1;
}
#chat-patient-results {
  max-height: 210px;
  overflow: auto;
  margin: 14px 0;
}
#chat-first-body {
  margin-top: 6px;
  resize: vertical;
  font-size: 12px;
}
#chat-start-send {
  width: 100%;
  font-size: 12px;
  margin-top: 5px;
}
#chat-start-error {
  font-size: 11px;
  color: #a35a3a;
}
@media (max-width: 1450px) {
  .chat-workspace {
    grid-template-columns: 294px minmax(0, 1fr);
  }
  .chat-inbox #chat-thread {
    grid-template-columns: minmax(0, 1fr) 210px;
  }
  .chat-thread-header {
    padding: 12px 16px;
    gap: 8px;
  }
  .chat-thread-header h2 {
    max-width: 170px;
    font-size: 14px;
  }
  .chat-contact-details {
    padding: 0 16px;
  }
  .chat-thread-actions select {
    width: 110px;
  }
}
@media (max-width: 1250px) {
  .chat-inbox #chat-thread {
    grid-template-columns: minmax(0, 1fr);
  }
  .chat-contact-details {
    display: none;
  }
  .chat-inbox #chat-details-toggle {
    color: #6f7fa6;
  }
}
@media (min-width: 1251px) {
  #chat-thread.chat-details-collapsed {
    grid-template-columns: minmax(0, 1fr);
  }
  #chat-thread.chat-details-collapsed .chat-contact-details {
    display: none;
  }
}
@media (max-width: 850px) {
  .chat-inbox {
    --chat-rail-width: 60px;
  }
  .chat-brand-rail #default-sidebar {
    padding: 12px 7px 8px;
  }
  .chat-topbar {
    height: 66px;
    padding: 10px 16px;
  }
  .chat-topbar h1 {
    font-size: 19px;
  }
  .chat-workspace {
    grid-template-columns: 265px minmax(0, 1fr);
  }
  .chat-workspace-badge,
  .chat-agent a {
    display: none;
  }
  .chat-thread-header {
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 13px;
  }
  .chat-header-avatar {
    width: 33px;
    height: 33px;
    border-radius: 10px;
  }
  .chat-thread-actions {
    gap: 4px;
  }
  .chat-thread-actions label > span {
    display: none;
  }
  .chat-thread-actions select {
    max-width: none;
    width: 100px;
  }
  .chat-history {
    padding: 15px;
  }
  .chat-message {
    max-width: 92%;
  }
  .chat-composer {
    padding: 10px 11px 7px;
  }
  .chat-keyboard-hint {
    display: none;
  }
}
@media (max-width: 680px) {
  .chat-workspace {
    display: block;
    position: relative;
  }
  .chat-threads,
  .chat-conversation {
    height: 100%;
  }
  .chat-conversation {
    display: none;
  }
  #chat-inbox.chat-thread-open .chat-threads {
    display: none;
  }
  #chat-inbox.chat-thread-open .chat-conversation {
    display: block;
  }
  .chat-inbox .chat-mobile-back {
    display: inline-flex;
    width: 27px;
  }
  .chat-thread-header {
    gap: 7px;
  }
  .chat-thread-header h2 {
    max-width: 150px;
    font-size: 13px;
  }
  .chat-thread-header .chat-header-avatar {
    display: none;
  }
  .chat-thread-actions {
    margin-left: auto;
  }
  .chat-thread-actions select {
    width: 93px;
  }
  .chat-thread-header .chat-state {
    display: none;
  }
  .chat-thread-actions > button:not(.chat-icon-button) {
    padding: 4px 6px;
  }
  .chat-agent {
    font-size: 10px;
  }
  .chat-inbox #chat-thread {
    grid-template-rows: auto minmax(0, 1fr) auto;
  }
  .chat-inbox-heading {
    padding-top: 16px;
  }
  .chat-message {
    max-width: 96%;
  }
  .chat-compose-heading label {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
@media (max-height: 720px) {
  .chat-brand-rail #default-sidebar > div:first-child > div:first-child {
    margin-bottom: 8px;
  }
  .chat-brand-rail #default-sidebar > div:first-child > ul {
    gap: 1px;
  }
  .chat-brand-rail
    #default-sidebar
    > div:first-child
    > ul
    > li
    > :is(a, button),
  .chat-brand-rail
    #default-sidebar
    > div:not(:first-child):not(:last-child)
    > a {
    height: 36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .chat-inbox *,
  .chat-inbox *::before,
  .chat-inbox *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Reference composition: floating panels on a soft indigo workspace. */
.chat-inbox {
  --cms-primary: #2034b1;
  --cms-border: #e1e5f6;
  --chat-rail-width: 74px;
  color: #1c264d;
  background: #edf0ff;
}
.chat-inbox #chat-inbox {
  background:
    radial-gradient(ellipse at 80% -10%, #dce3ff80, transparent 48%),
    linear-gradient(120deg, #fafbff, #eef1ff 72%, #e9eeff);
}
.chat-brand-rail {
  background: linear-gradient(165deg, #293368, #242d6c 75%, #283270);
  box-shadow: 1px 0 5px #28316922;
}
.chat-brand-rail #default-sidebar {
  padding: 18px 10px 10px;
}
.chat-brand-rail #default-sidebar > div:first-child > div:first-child {
  margin: 4px 0 35px;
}
.chat-brand-rail #default-sidebar > div:first-child > ul {
  gap: 7px;
}
.chat-brand-rail #default-sidebar > div:first-child > ul > li > :is(a, button) {
  width: 46px;
  height: 44px;
}
.chat-brand-rail #default-sidebar > div:first-child > ul > li > div {
  display: none;
}
.chat-brand-rail
  #default-sidebar
  > div:first-child
  > ul
  > li
  > a[aria-current="page"] {
  background: linear-gradient(135deg, #4352c7, #3948ad);
  box-shadow: 0 5px 14px #14205833;
}
.chat-topbar {
  height: 90px;
  padding: 15px 25px;
  border: 0;
  background: transparent;
}
.chat-topbar h1 {
  color: #182349;
  font-size: 24px;
  letter-spacing: -0.7px;
}
.chat-breadcrumb {
  color: #6f7caa;
  font-size: 11px;
  margin-bottom: 4px !important;
}
.chat-workspace-badge {
  background: #dfe4ff;
  border: 0;
  color: #354bc6;
  border-radius: 16px;
  padding: 5px 12px;
  font-size: 11px;
  margin-left: 10px;
}
.chat-agent {
  gap: 14px;
  color: #273355;
  font-size: 12px;
}
.chat-account-menu {
  position: relative;
}
.chat-account-menu summary {
  display: flex;
  align-items: center;
  gap: 9px;
  list-style: none;
  padding: 8px 13px;
  background: #ffffff9c;
  border: 1px solid #ecedff;
  box-shadow: 0 3px 6px #38418508;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
}
.chat-account-menu summary::-webkit-details-marker {
  display: none;
}
.chat-chevron {
  margin-left: 4px;
}
.chat-account-menu > div {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  padding: 8px;
  min-width: 160px;
  background: white;
  border: 1px solid var(--cms-border);
  box-shadow: 0 7px 25px #25336a18;
  border-radius: 10px;
  z-index: 30;
}
.chat-agent .chat-account-menu a {
  display: block;
  color: #43528c;
  padding: 6px;
  margin: 0;
  font-size: 12px;
}
.chat-agent .chat-notifications-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffffa8;
  color: #26355f;
  margin: 0;
}
.chat-notifications-link span {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 6px;
  height: 6px;
  background: #df6578;
  border-radius: 50%;
}
.chat-agent-avatar {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: #dce2ff;
  color: #263db7;
  font-weight: 650;
}
.chat-workspace {
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 8px;
  padding: 0 8px 8px;
}
.chat-threads {
  border: 1px solid #e6e9f7;
  border-radius: 16px;
  box-shadow: 0 2px 6px #26316a04;
  background: #ffffffdd;
  overflow: hidden;
}
.chat-filters {
  position: relative;
  padding: 25px 11px 0;
  border-bottom: 1px solid #edf0fa;
}
.chat-search-toolbar {
  gap: 11px;
}
.chat-inbox .chat-search-field {
  background: #f8f9ff;
  border-color: #dde3f5;
  border-radius: 11px;
  height: 36px;
  padding-left: 11px;
}
.chat-inbox .chat-search-field input {
  font-size: 11px;
  padding: 8px;
}
.chat-search-field svg {
  color: #6877a7;
}
.chat-search-field kbd {
  color: #7e8cb9;
  font-size: 10px;
  border: 1px solid #dce3f8;
  border-radius: 5px;
  padding: 0 4px;
  margin-right: 7px;
  white-space: nowrap;
  font-family: inherit;
}
.chat-inbox .chat-new-button {
  height: 35px;
  padding: 0 13px !important;
  border-radius: 10px;
  background: var(--cms-primary);
  box-shadow: none;
}
.chat-filter-row {
  position: relative;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.chat-filter-row > label:first-child {
  width: 132px;
}
.chat-filter-row > label:nth-child(2) {
  width: 90px;
}
.chat-filter-row select {
  border-color: #dce2f5;
  box-shadow: 0 1px 2px #27356a08;
  font-size: 10px;
  border-radius: 10px;
  height: 32px;
  padding: 4px 6px;
}
.chat-filter-row > .chat-active-filters {
  width: auto;
  flex: 1;
  min-width: 0;
  padding: 0;
}
.chat-active-filters {
  gap: 4px;
}
.chat-inbox .chat-filter-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 31px;
  border: 1px solid #dcebe8;
  border-radius: 10px;
  padding: 4px 8px;
  background: #f1f8f6;
  color: #3e8879;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.chat-filter-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #25a780;
  border-radius: 50%;
  flex-shrink: 0;
}
.chat-inbox #chat-filter-toggle {
  width: 32px;
  height: 32px;
  border: 1px solid #dce2f5;
  border-radius: 10px;
  box-shadow: 0 1px 2px #27356a08;
  color: #34467b;
  margin-left: auto;
}
.chat-filter-toggle svg {
  width: 17px;
}
.chat-filter-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #e2e7f8;
  border-radius: 10px;
  background: #f8f9ff;
}
.chat-list-summary {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 52px;
  font-size: 11px;
  color: #465681;
}
.chat-list-summary button {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  background: transparent;
  border: 0;
  padding: 4px;
  font-size: 11px;
  color: #4e5d8c;
}
.chat-list-summary button svg {
  width: 14px;
  height: 14px;
}
.chat-unread-badge {
  padding: 0 5px;
  border-radius: 8px;
  color: #fff;
  background: #3449ba;
  font-size: 9px;
}
#chat-thread-list {
  padding: 8px 10px;
}
.chat-inbox .chat-thread-card {
  height: 84px;
  padding: 10px 12px;
  border-radius: 12px;
}
.chat-thread-card[aria-current="true"] {
  background: linear-gradient(110deg, #e7eaff, #e0e5fc) !important;
  border-color: #8e9bff !important;
  box-shadow:
    0 0 0 1px #a9b3ff22,
    inset 0 0 15px #e1e5ff !important;
}
.chat-card-avatar {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: #e4e9ff;
  color: #2941b9;
  font-size: 14px;
  box-shadow: 0 4px 9px #5165bd0a;
}
.chat-thread-card[aria-current="true"] .chat-card-avatar {
  color: #2941b9;
  background: #dce2ff;
}
.chat-card-heading strong {
  font-size: 13px;
  color: #263154;
}
.chat-card-time {
  color: #6d7caa;
  font-size: 9px;
}
.chat-card-preview {
  color: #53618b;
  font-size: 11px;
  margin: 2px 0 5px !important;
}
.chat-card-meta {
  color: #4e608b;
  font-size: 10px;
}
.chat-card-status {
  background: #ccece1;
  color: #358872;
  padding: 0 10px;
  border-radius: 10px;
}
.chat-card-status::before {
  display: none;
}
.chat-card-assignee {
  margin-left: auto;
}
.chat-card-assignee::before {
  content: "♙";
  font-size: 14px;
  margin-right: 4px;
}
.chat-conversation {
  background: transparent;
  overflow: visible;
}
.chat-inbox #chat-thread {
  grid-template-columns: minmax(0, 1fr) 282px;
  column-gap: 8px;
}
.chat-thread-header {
  min-height: 105px;
  padding: 16px 20px;
  border: 1px solid #dfe5f9;
  border-radius: 16px 16px 0 0;
  background: #ffffffba;
  gap: 12px;
}
.chat-customer-heading {
  flex: 1;
}
.chat-customer-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 3px 0 2px;
}
.chat-thread-header h2 {
  font-size: 19px;
  letter-spacing: -0.35px;
  color: #1f294a;
  max-width: 280px;
  margin: 0;
}
.chat-thread-header .chat-eyebrow {
  font-size: 9px;
  color: #7783b1;
  letter-spacing: 1.5px;
}
.chat-phone-line {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-thread-header .chat-phone-line p {
  color: #50618a;
  font-size: 12px;
}
#chat-verified-icon {
  color: #31a47f;
}
#chat-verified-icon svg {
  width: 15px;
  height: 15px;
}
.chat-state {
  font-size: 10px;
  padding: 1px 11px;
  border-radius: 12px;
  background: #d6eee4;
  color: #318a70;
  font-weight: 600;
}
.chat-thread-actions {
  gap: 9px;
  padding-left: 22px;
  border-left: 1px solid #d2daf2;
}
.chat-thread-actions label {
  font-size: 11px;
  color: #45557b;
}
.chat-thread-actions label > span {
  display: block;
  margin-bottom: 3px;
}
.chat-assignment-field {
  position: relative;
}
.chat-assignment-field > svg {
  position: absolute;
  left: 10px;
  top: 8px;
  width: 16px;
  height: 16px;
  color: #566491;
  pointer-events: none;
}
.chat-thread-actions select {
  background: #fcfcff;
  width: 138px;
  max-width: none;
  font-size: 11px;
  padding: 7px 8px 7px 30px;
  height: 34px;
  border-radius: 10px;
  border-color: #dce2f5;
  box-shadow: 0 1px 2px #27356a08;
}
.chat-thread-actions > button {
  align-self: flex-end;
}
.chat-thread-actions #chat-resolve {
  background: #f3f5ff;
  color: #293e9f;
  height: 34px;
  padding: 5px 10px;
  border: 1px solid #dfe4f7;
  box-shadow: 0 1px 2px #27356a08;
  border-radius: 10px;
}
#chat-resolve::before {
  content: "⊙";
  font-size: 15px;
  margin-right: 5px;
  vertical-align: -1px;
}
.chat-inbox #chat-details-toggle {
  height: 34px;
  width: 33px;
  border: 1px solid #dfe4f7;
  border-radius: 10px;
  background: #fcfcff;
  color: #293d7d;
  box-shadow: 0 1px 2px #27356a08;
}
.chat-history {
  border-left: 1px solid #dfe5f9;
  border-right: 1px solid #dfe5f9;
  padding: 20px 18px;
  background-color: #f1f4ff;
  background-image:
    linear-gradient(
      145deg,
      transparent 42%,
      #e8edff66 42%,
      #f5f7ff99 75%,
      transparent 75%
    ),
    radial-gradient(ellipse at 100% 0%, #dde5ff55, transparent 65%);
}
.chat-date-separator {
  margin: 0 0 25px;
  display: block;
  width: fit-content;
  border: 1px solid #dfe5fa;
  border-radius: 14px;
  background: #f3f5ff;
  padding: 2px 15px;
  margin-left: auto;
  margin-right: auto;
  font-size: 10px;
  color: #53638b;
}
.chat-date-separator::before,
.chat-date-separator::after {
  display: none;
}
.chat-message {
  position: relative;
  max-width: 85%;
  width: fit-content;
  padding-left: 48px;
  margin-bottom: 23px;
}
.chat-message.agent {
  padding-left: 0;
  padding-right: 48px;
}
.chat-message-avatar {
  position: absolute;
  left: 0;
  top: 18px;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: linear-gradient(#e1e6ff, #d6ddff);
  box-shadow: 0 2px 5px #5260b80a;
  color: #3046bb;
  font-size: 11px;
  font-weight: 650;
}
.chat-message.agent .chat-message-avatar {
  left: auto;
  right: 0;
}
.chat-message-author {
  color: #55648c;
  font-size: 10px;
  margin-bottom: 5px;
}
.chat-message.agent .chat-message-author {
  color: #53618c;
}
.chat-message-bubble {
  background: #ffffffd9;
  border-color: #e3e7f5;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.55;
  padding: 10px 13px;
  box-shadow: 0 7px 14px #35499c05;
}
.chat-message.agent .chat-message-bubble {
  background: linear-gradient(115deg, #2034be, #2032a5);
  border-color: #3345c9;
  border-radius: 13px;
  box-shadow: 0 5px 10px #2b3fb011;
}
.chat-message-time {
  font-size: 9px;
  color: #6c7da8;
  margin-top: 5px;
}
.chat-contact-details {
  border: 1px solid #e0e6f9;
  border-radius: 16px;
  padding: 0 16px;
  background: #ffffffdf;
  position: relative;
}
.chat-customer-dialog {
  width: min(400px, calc(100vw - 28px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 1px solid #e0e6f9;
  border-radius: 20px;
  background: #fcfdff;
  color: #27324d;
  box-shadow: 0 24px 80px #17204d33;
  overflow: auto;
}
.chat-customer-dialog::backdrop {
  background: #17204d66;
  backdrop-filter: blur(5px);
}
.chat-customer-dialog .chat-contact-details {
  display: block;
  position: relative;
  inset: auto;
  width: 100%;
  padding: 0 20px 22px;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.chat-summary-card {
  background: #f0f3ff;
  border-radius: 14px;
  padding: 16px;
}
.chat-summary-values {
  margin: 0;
  display: grid;
  gap: 11px;
}
.chat-summary-values > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.chat-summary-values dt {
  color: #67779c;
  font-size: 11px;
}
.chat-summary-values dd {
  margin: 0;
  color: #273d85;
  font-size: 12px;
  font-weight: 650;
  text-align: right;
}
.chat-summary-note {
  color: #8995b3;
  font-size: 10px;
  line-height: 1.5;
  margin-top: 13px !important;
}
.chat-patient-details-link {
  display: inline-block;
  margin-top: 10px;
  color: #344bb4;
  font-size: 11px;
  text-decoration: none;
}
.chat-patient-details-link:hover {
  text-decoration: underline;
}
/* Location picker: actual map and browser geolocation, with an explicit pin confirmation. */
.chat-location-dialog {
  width: min(640px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 20px;
  border: 1px solid #dce3fa;
  border-radius: 20px;
  background: #fcfdff;
  color: #27324d;
  overflow: auto;
  box-shadow: 0 25px 90px #17204d33;
}
.chat-location-dialog::backdrop {
  background: #17204d66;
  backdrop-filter: blur(5px);
}
.chat-location-dialog .chat-dialog-heading {
  margin-bottom: 15px;
}
.chat-map-search {
  position: relative;
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  z-index: 2;
}
.chat-map-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow: auto;
  padding: 5px;
  border: 1px solid #dce3f7;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 12px 30px #27386c20;
}
.chat-inbox .chat-map-suggestions button {
  display: block;
  width: 100%;
  text-align: start;
  padding: 10px 12px;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: #34466e;
}
.chat-inbox .chat-map-suggestions button:hover,
.chat-inbox .chat-map-suggestions button.is-active {
  background: #eef2ff;
}
.chat-map-suggestions strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.chat-map-suggestions span {
  display: block;
  color: #8996b2;
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.chat-map-search input {
  min-width: 0;
  border-radius: 11px;
  background: #f5f7ff;
}
.chat-map-search button {
  flex-shrink: 0;
  width: 40px;
  padding: 7px;
  color: #344bb4;
  background: #edf1ff;
  border-color: #dce3fa;
}
.chat-map-surface {
  position: relative;
  overflow: hidden;
  border: 1px solid #dfe5f6;
  border-radius: 14px;
  background: #edf1fa;
}
.chat-location-map {
  height: clamp(220px, 40dvh, 340px);
  width: 100%;
}
.chat-location-map button {
  padding: 0;
}
.chat-map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  width: 38px;
  height: 44px;
  pointer-events: none;
  color: #7181ad;
  filter: drop-shadow(0 4px 3px #192d6b33);
}
.chat-map-pin svg {
  width: 38px;
  height: 44px;
  fill: #f4f6ff;
  stroke-width: 1.8;
}
.chat-map-pin.is-selected {
  color: #344bc4;
}
.chat-map-pin.is-selected svg {
  fill: #e3e9ff;
}
.chat-map-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #edf1faee;
  color: #687aa3;
  font-size: 13px;
}
.chat-map-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  margin-top: 12px;
}
.chat-inbox #chat-map-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #3149b6;
  border-color: #d4defb;
  background: #eef2ff;
  font-size: 12px;
  white-space: nowrap;
}
#chat-map-coordinates {
  color: #7a88a8;
  font-size: 10px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.chat-map-status {
  min-height: 18px;
  margin: 9px 0 !important;
  color: #64749d;
  font-size: 11px;
  line-height: 1.5;
}
.chat-inbox .chat-map-label {
  color: #56688f;
  font-size: 11px;
}
.chat-map-label > span {
  color: #95a0b9;
}
.chat-map-label input {
  display: block;
  margin-top: 5px;
  border-radius: 11px;
}
.chat-map-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.chat-map-footer button {
  font-size: 12px;
  padding: 9px 15px;
}
.chat-location-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  margin: 6px 0 12px;
  border: 1px solid #dce4ff;
  border-radius: 13px;
  background: #f0f4ff;
}
.chat-location-preview-icon {
  color: #425bc3;
  flex-shrink: 0;
}
.chat-location-preview > div {
  min-width: 0;
  flex: 1;
}
.chat-location-preview strong {
  display: block;
  font-size: 12px;
  color: #334a91;
  overflow-wrap: anywhere;
}
.chat-location-preview span:not(.chat-location-preview-icon) {
  display: block;
  font-size: 10px;
  color: #7b8caf;
  margin-top: 2px;
}
.chat-inbox .chat-location-preview button {
  font-size: 11px;
  padding: 6px 10px;
  color: #4059b2;
}
@media (max-width: 500px) {
  .chat-location-dialog {
    padding: 15px;
  }
  .chat-map-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
  #chat-map-coordinates {
    text-align: left;
  }
  .chat-location-map {
    height: clamp(180px, 32dvh, 280px);
  }
}
.chat-contact-profile {
  padding: 31px 0 22px;
  border-bottom: 1px solid #edf0f8;
  margin-bottom: 16px;
}
.chat-contact-avatar {
  width: 59px;
  height: 59px;
  border-radius: 19px;
  margin-bottom: 18px;
  color: #233bb6;
  background: #e4e8ff;
  box-shadow:
    0 0 0 5px #f3f5ff,
    0 3px 4px #bfc9ef55;
  font-size: 21px;
}
.chat-contact-profile h3 {
  color: #1f2a4e;
  font-size: 18px;
  letter-spacing: -0.3px;
  font-weight: 650;
}
.chat-contact-kind {
  color: #7686b2;
  font-size: 12px;
  margin-top: 5px !important;
}
.chat-inbox .chat-details-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 25px;
  height: 25px;
  opacity: 0.55;
}
.chat-contact-section {
  border: 0;
  margin: 0 0 20px;
  padding: 14px;
  border-radius: 13px;
}
.chat-contact-card {
  background: linear-gradient(120deg, #f2f9f6, #eaf5f1);
}
.chat-contact-section h4,
.chat-private-note h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #253152;
  font-size: 13px;
  letter-spacing: -0.1px;
  font-weight: 650;
  margin: 0 0 20px;
}
.chat-contact-section h4 svg,
.chat-private-note h4 svg {
  width: 17px;
  height: 17px;
  color: #31447f;
}
.chat-contact-card h4 svg {
  color: #359780;
}
.chat-contact-phone-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.chat-contact-phone-row > svg {
  width: 16px;
  height: 16px;
  color: #5b6b97;
  margin: 4px 0 0 2px;
}
.chat-contact-phone-row label {
  color: #7e8bb1;
  font-size: 10px;
}
.chat-contact-section .chat-contact-phone-row p {
  color: #35466d;
  font-size: 12px;
  margin-top: 1px;
}
.chat-about-card {
  background: #f5f6fc;
}
.chat-about-card h4 {
  margin-bottom: 15px;
}
.chat-about-card p {
  color: #61709a;
  line-height: 1.7;
  font-size: 12px;
}
.chat-private-note {
  display: block;
  background: #eceeff;
  padding: 14px;
  border-radius: 12px;
  margin-top: 0;
}
.chat-private-note h4 {
  color: #2e40ac;
  margin-bottom: 6px;
}
.chat-private-note h4 svg {
  color: #344ad6;
}
.chat-private-note p {
  color: #7282b0;
  font-size: 12px;
  line-height: 1.5;
}
.chat-composer {
  border: 1px solid #dfe5f9;
  border-top: 1px solid #e1e6f5;
  border-radius: 0 0 16px 16px;
  background: #ffffffdf;
}
@media (max-width: 1450px) and (min-width: 1251px) {
  .chat-workspace {
    grid-template-columns: 340px minmax(0, 1fr);
  }
  .chat-inbox #chat-thread {
    grid-template-columns: minmax(0, 1fr) 254px;
  }
  .chat-thread-header {
    padding: 13px 17px;
  }
  .chat-thread-header h2 {
    font-size: 18px;
    max-width: 210px;
  }
  .chat-thread-actions {
    padding-left: 12px;
    gap: 7px;
  }
  .chat-thread-actions select {
    width: 118px;
  }
  .chat-inbox .chat-thread-actions #chat-resolve {
    padding: 5px 7px;
  }
}
@media (max-width: 1250px) {
  .chat-workspace {
    grid-template-columns: 325px minmax(0, 1fr);
  }
  .chat-inbox #chat-thread {
    grid-template-columns: minmax(0, 1fr);
  }
  .chat-thread-header h2 {
    font-size: 17px;
  }
  .chat-thread-actions {
    padding-left: 12px;
    gap: 6px;
  }
  .chat-thread-actions select {
    width: 115px;
  }
  .chat-thread-actions > button:not(.chat-icon-button) {
    font-size: 10px;
  }
}
@media (max-width: 850px) {
  .chat-inbox {
    --chat-rail-width: 60px;
  }
  .chat-workspace {
    grid-template-columns: 274px minmax(0, 1fr);
  }
  .chat-topbar {
    height: 76px;
    padding: 12px 16px;
  }
  .chat-agent-avatar,
  .chat-notifications-link,
  .chat-workspace-badge,
  .chat-search-field kbd {
    display: none !important;
  }
  .chat-account-menu summary {
    font-size: 10px;
    padding: 6px 8px;
  }
  .chat-thread-header {
    padding: 12px;
    min-height: 105px;
    flex-wrap: wrap;
  }
  .chat-thread-actions {
    border: 0;
    padding-left: 0;
    width: 100%;
  }
  .chat-thread-actions label > span {
    display: none;
  }
  .chat-customer-heading {
    flex: 1;
  }
  .chat-thread-header h2 {
    max-width: 230px;
    font-size: 16px;
  }
  .chat-inbox .chat-filter-row > label:first-child {
    width: 123px;
  }
  .chat-inbox .chat-filter-row > label:nth-child(2) {
    width: 82px;
  }
  .chat-filter-row > .chat-active-filters {
    order: 5;
    flex-basis: 100%;
  }
  .chat-inbox #chat-filter-toggle {
    margin-left: 0;
  }
  .chat-new-button {
    padding: 0 8px !important;
    font-size: 10px !important;
  }
  .chat-message {
    padding-left: 36px;
    max-width: 98%;
  }
  .chat-message.agent {
    padding-left: 0;
    padding-right: 36px;
  }
  .chat-message-avatar {
    width: 28px;
    height: 28px;
    font-size: 9px;
  }
  .chat-brand-rail #default-sidebar > div:first-child > div:first-child {
    margin-bottom: 25px;
  }
}
@media (max-width: 680px) {
  .chat-workspace {
    display: block;
    padding: 0 6px 6px;
  }
  .chat-thread-header .chat-state {
    display: inline-block;
  }
  .chat-thread-header .chat-thread-actions {
    padding-left: 34px;
  }
  .chat-filter-row > .chat-active-filters {
    order: 0;
    flex-basis: auto;
  }
  .chat-thread-header h2 {
    max-width: 190px;
  }
  .chat-search-field kbd {
    display: none;
  }
  .chat-topbar h1 {
    font-size: 21px;
  }
  .chat-contact-profile h3 {
    font-size: 18px;
  }
}
@media (max-height: 650px) {
  .chat-brand-rail #default-sidebar > div:first-child > div:first-child {
    margin-bottom: 25px;
  }
  .chat-brand-rail #default-sidebar > div:first-child > ul {
    gap: 4px;
  }
  .chat-brand-rail
    #default-sidebar
    > div:first-child
    > ul
    > li
    > :is(a, button) {
    height: 42px;
  }
}
.chat-delivery-status {
  display: inline-block;
  color: #91a0cd;
  font-size: 11px;
  letter-spacing: -4px;
  margin-left: 7px;
  padding-right: 4px;
}
.chat-delivery-status[data-read="true"] {
  color: #3b50cc;
}
.chat-card-assignee::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  vertical-align: -2px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'%3E%3Ccircle cx='12' cy='7' r='3.5'/%3E%3Cpath d='M5 20v-2a7 7 0 0 1 14 0v2c-4 2-10 2-14 0Z'/%3E%3C/svg%3E")
    center/contain no-repeat;
}
#chat-resolve::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 12px;
  height: 12px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 8px;
  line-height: 1;
  vertical-align: 0;
}
@media (max-width: 1450px) and (min-width: 1251px) {
  .chat-workspace {
    grid-template-columns: 360px minmax(0, 1fr);
  }
  .chat-inbox #chat-thread {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
  .chat-filter-row > label:first-child {
    width: 124px;
  }
  .chat-filter-row > label:nth-child(2) {
    width: 86px;
  }
}
/* Keep the composer in the viewport even with a long conversation. */
.chat-workspace {
  grid-template-rows: minmax(0, 1fr);
}
.chat-conversation {
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.chat-inbox #chat-thread {
  min-height: 0;
  max-height: 100%;
}
.chat-history {
  min-height: 0;
}
/* Explicit shell rows prevent message content from sizing the workspace. */
.chat-inbox #chat-inbox {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
}
.chat-topbar {
  grid-row: 1;
}
#chat-alert {
  grid-row: 2;
}
.chat-workspace {
  grid-row: 3;
  min-height: 0;
}
.chat-inbox #chat-thread {
  position: absolute;
  inset: 0;
  height: auto;
}
@media (min-width: 1251px) {
  .chat-inbox #chat-thread.chat-details-collapsed {
    grid-template-columns: minmax(0, 1fr);
  }
}
.chat-card-heading strong {
  font-size: 14px;
}
.chat-thread-header h2 {
  font-size: 20px;
}
.chat-thread-header .chat-phone-line p {
  font-size: 13px;
}
.chat-state {
  font-size: 11px;
}
.chat-thread-actions #chat-resolve {
  min-width: 88px;
  font-size: 12px;
}
.chat-message-author {
  font-size: 11px;
}
.chat-message-bubble {
  font-size: 14px;
}
.chat-message-time {
  font-size: 10px;
}
.chat-contact-profile h3 {
  font-size: 20px;
}
.chat-about-card p,
.chat-private-note p {
  font-size: 13px;
}
.chat-contact-section .chat-contact-phone-row p {
  font-size: 13px;
}
@media (min-width: 1451px) {
  .chat-workspace {
    padding-right: 28px;
  }
  .chat-topbar {
    padding-right: 45px;
  }
}
@media (max-width: 850px) {
  .chat-thread-header h2 {
    font-size: 16px;
  }
  .chat-message-bubble {
    font-size: 13px;
  }
  .chat-thread-actions #chat-resolve {
    min-width: 0;
    font-size: 11px;
  }
}
.chat-compose-context {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #8390b0;
  font-size: 10px;
}
.chat-inbox .chat-compose-context .chat-icon-button {
  width: 22px;
  height: 22px;
}
.chat-compose-context svg {
  width: 13px;
  height: 13px;
}
.chat-message-time {
  display: block;
}
.chat-inbox .chat-filter-chip {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-brand-rail #default-sidebar > div:last-child {
  display: none;
}
/* Composer actions remain distinct from the message input surface. */
.chat-inbox .chat-composer-bar #chat-attach,
.chat-inbox .chat-composer-bar #chat-mic {
  width: 36px;
  height: 36px;
  border: 1px solid #d8def6;
  border-radius: 11px;
  background: #e9edff;
  color: #3549b7;
  box-shadow: 0 1px 2px #263d8c08;
}
.chat-inbox .chat-composer-bar #chat-mic {
  background: #e2e8ff;
  border-color: #cdd7fc;
  color: #293eaf;
}
.chat-inbox .chat-composer-bar :is(#chat-attach, #chat-mic):hover {
  background: #d6dfff;
  border-color: #a9b9ef;
  color: #1f3197;
}
.chat-inbox .chat-composer-bar :is(#chat-attach, #chat-mic):active {
  background: #cbd6fc;
}
.chat-inbox .chat-composer-bar :is(#chat-attach, #chat-mic):disabled {
  background: #eef0f7;
  color: #929bb2;
  border-color: #e0e4ee;
  box-shadow: none;
}
.chat-agent .chat-account-menu .chat-logout {
  display: block;
  width: 100%;
  text-align: left;
  color: #a3435c;
  border: 0;
  background: transparent;
  padding: 7px 6px;
  font-size: 12px;
}
.chat-agent .chat-account-menu .chat-logout:hover {
  background: #fff0f3;
}
.chat-inbox #chat-file[hidden] {
  display: none !important;
}
.chat-inbox #chat-record-controls {
  padding: 12px;
  margin: 3px 0 7px;
  border: 1px solid #e4dff7;
  border-radius: 13px;
  background: #f8f5ff;
  gap: 9px;
}
.chat-inbox #chat-record {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: #edf0ff;
  color: #3349b7;
}
.chat-inbox #chat-recording-live {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 9px;
  color: #9c526a;
  font-size: 12px;
}
.chat-record-pulse {
  width: 8px;
  height: 8px;
  background: #db6c86;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #fce4eb;
  animation: chat-send-pulse 0.8s ease-in-out infinite alternate;
}
.chat-record-wave {
  color: #a3a9d6;
  letter-spacing: 3px;
  margin-left: auto;
  white-space: nowrap;
  overflow: hidden;
}
.chat-inbox #chat-stop-record {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #dacdf3;
  color: #6c5296;
  background: white;
  border-radius: 9px;
}
.chat-stop-symbol {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: currentColor;
}
.chat-inbox #chat-media-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f7f9ff;
  border-color: #e0e6f7;
  padding: 11px 12px;
  border-radius: 13px;
}
#chat-media-preview-content {
  flex: 1;
  min-width: 0;
}
.chat-file-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.chat-file-summary > svg {
  width: 32px;
  height: 36px;
  padding: 6px;
  border-radius: 9px;
  background: #e5ebff;
  color: #4456ba;
}
.chat-file-summary > div {
  min-width: 0;
}
.chat-file-summary strong {
  display: block;
  max-width: 300px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 550;
  color: #42517b;
}
.chat-file-summary span {
  display: block;
  margin-top: 2px;
  color: #8a97b6;
  font-size: 10px;
}
.chat-preview-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-inbox .chat-preview-actions button {
  font-size: 10px;
  border: 0;
  background: transparent;
  padding: 5px;
  color: #7080ab;
}
.chat-inbox #chat-discard-media {
  display: grid;
  place-items: center;
  margin: 0;
  width: 25px;
  height: 25px;
  border-radius: 8px;
  color: #9b6d83;
}
#chat-discard-media svg {
  width: 15px;
  height: 15px;
}
.chat-later-badge {
  margin-left: auto;
  font-size: 9px;
  border-radius: 5px;
  background: #eef0f6;
  color: #9098ad;
  padding: 1px 5px;
}
.chat-inbox .chat-attachment-menu button:disabled {
  opacity: 0.5;
  background: transparent;
}
.chat-notifications-dialog {
  width: min(560px, 94vw);
  max-height: 85dvh;
  padding: 22px;
  border: 1px solid #e0e6f7;
  border-radius: 18px;
  color: #2c395e;
  box-shadow: 0 20px 70px #24326a30;
}
.chat-notifications-dialog::backdrop {
  background: #1c285444;
  backdrop-filter: blur(3px);
}
.chat-notifications-dialog h2 {
  font-size: 20px;
  margin: 0;
}
.chat-notification-group {
  margin-top: 20px;
}
.chat-notification-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-notification-heading h3 {
  color: #7d8bad;
  font-size: 11px;
  font-weight: 500;
}
.chat-notification-heading button {
  border: 0;
  font-size: 10px;
}
.chat-notification-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid #edf0f8;
  padding: 12px 9px;
  border-radius: 8px;
  margin-top: 3px;
}
.chat-notification-item.unread {
  background: #f4f6ff;
}
.chat-notification-item > div {
  flex: 1;
  min-width: 0;
}
.chat-notification-item p {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.chat-notification-item time {
  font-size: 9px;
  color: #9aa6bd;
}
.chat-notification-item a {
  color: #445abb;
  font-size: 11px;
  text-decoration: none;
}
@media (max-width: 680px) {
  .chat-record-wave {
    display: none;
  }
  .chat-file-summary strong {
    max-width: 150px;
  }
  #chat-media-preview audio {
    width: 210px;
  }
}
.chat-brand-rail #default-sidebar > div:first-child > ul > li > a {
  position: relative;
}
.chat-brand-rail
  #default-sidebar
  > div:first-child
  > ul
  > li
  > a
  > [data-chat-unread-badge]:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 10px;
  border: 2px solid #293368;
  background: #e86682;
  color: white;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}
.chat-inbox .chat-agent .chat-notifications-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  line-height: 1;
}
.chat-notifications-link > svg {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0;
}
@media (max-width: 850px) {
  .chat-inbox .chat-agent #chat-notifications {
    display: inline-flex !important;
    width: 30px;
    height: 30px;
  }
  .chat-agent {
    gap: 6px;
  }
}
@media (max-width: 680px) {
  .chat-topbar {
    height: 64px;
    gap: 10px;
  }
  .chat-topbar h1 {
    font-size: 19px;
  }
  .chat-topbar .chat-breadcrumb {
    display: none;
  }
  .chat-account-name {
    max-width: 62px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
/* Message cards: shared geometry for the indigo and white variants. */
.chat-message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  margin-bottom: 0;
  max-width: min(88%, 620px);
}
.chat-message.agent {
  align-items: flex-end;
}
.chat-message + .chat-message {
  margin-top: 12px;
}
.chat-message + .chat-message--continuation {
  margin-top: 4px;
}
.chat-message--continuation :is(.chat-message-author, .chat-message-avatar) {
  display: none;
}
.chat-message-author {
  max-width: 100%;
  overflow-wrap: anywhere;
  margin: 0 3px 4px;
  color: #53608e;
  font-size: 11px;
  line-height: 1.5;
}
.chat-message-avatar {
  top: 21px;
}
.chat-message-bubble {
  --chat-tail-color: #fff;
  --chat-document-ink: #3448bd;
  position: relative;
  isolation: isolate;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  border-radius: 22px;
  padding: 9px 13px;
  background: #fff;
  border: 1px solid #e2e7f5;
  box-shadow: 0 7px 18px #34458d08;
  line-height: 1.65;
}
.chat-message.agent .chat-message-bubble {
  --chat-tail-color: #2031a4;
  border-radius: 22px;
  border-color: #354bc6;
  background: linear-gradient(115deg, #283dc3, #2031a4);
  box-shadow:
    inset 0 1px 0 #ffffff17,
    0 8px 20px #263ba719;
}
.chat-message-text,
.chat-message-caption {
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
  font-weight: 450;
  line-height: 1.65;
  letter-spacing: normal;
  color: #25314b;
  text-align: start;
}
.chat-message.agent :is(.chat-message-text, .chat-message-caption) {
  color: #fff;
  font-weight: 500;
}
.chat-link-title,
.chat-link-description {
  text-align: start;
  unicode-bidi: plaintext;
}
.chat-message-bubble::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: -9px;
  width: 18px;
  height: 18px;
  background: var(--chat-tail-color);
  transform: scaleX(-1);
  clip-path: path("M 0 0 C 7 3 2 12 18 17 C 9 19 1 18 0 14 Z");
  z-index: -1;
  pointer-events: none;
}
.chat-message.agent .chat-message-bubble::after {
  left: auto;
  right: -9px;
  transform: none;
}
.chat-message-time {
  margin: 3px 3px 0;
  color: #7e8fb9;
  font-size: 10px;
  line-height: 1.4;
}
.chat-delivery-status {
  margin-left: 7px;
  padding: 0;
  letter-spacing: 0;
  vertical-align: -2px;
}
.chat-delivery-status svg {
  width: 17px;
  height: 13px;
  overflow: visible;
  stroke-width: 2.4;
}
.chat-message-caption {
  margin: 10px 2px 0 !important;
}
/* Documents and locations are a single click target, with no auxiliary preview link. */
.chat-message--file .chat-message-bubble,
.chat-message--location .chat-message-bubble {
  padding: 0;
}
.chat-document-card,
.chat-location-card {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-width: 0;
  min-height: 57px;
  padding: 12px 15px;
  border-radius: 14px;
  background: #f0f3ff;
  border: 1px solid #e5eafa;
  color: #344572 !important;
  text-decoration: none;
  transition:
    background 0.16s,
    box-shadow 0.16s;
}
.chat-document-symbol {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 39px;
  padding-right: 12px;
  border-right: 1px solid #cad3f3;
  color: #6b7bd1;
}
.chat-document-symbol svg {
  display: block;
  width: 24px;
  height: 31px;
  stroke-width: 1;
}
.chat-document-copy {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.chat-document-name {
  font-weight: 500;
}
.chat-document-size {
  font-size: 13px;
  opacity: 0.85;
  white-space: nowrap;
}
.chat-message.agent :is(.chat-document-card, .chat-location-card) {
  color: #fff !important;
  border-color: #ffffff0e;
  background: linear-gradient(110deg, #7285ed70, #6376df48);
  box-shadow: inset 0 1px 1px #ffffff08;
}
.chat-message.agent .chat-document-symbol {
  color: #fff;
  border-color: #cbd5ff52;
}
.chat-message :is(.chat-document-card, .chat-location-card):hover {
  background: #e5ebff;
  box-shadow: 0 2px 7px #263d9b10;
}
.chat-message.agent :is(.chat-document-card, .chat-location-card):hover {
  background: #8495f36e;
  box-shadow: inset 0 0 0 1px #ffffff1a;
}
.chat-location-card strong {
  display: block;
  font-size: 13px;
  font-weight: 550;
}
.chat-location-coordinates {
  display: block;
  font-size: 12px;
  opacity: 0.8;
}
.chat-location-card .chat-document-symbol svg {
  fill: none;
  stroke-width: 1.6;
}
/* Image: only the actual image is clickable; the full-size viewer owns zoom/download. */
.chat-message--image .chat-message-bubble {
  max-width: min(100%, 360px);
}
.chat-message--image .chat-message-bubble {
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
}
.chat-message--image .chat-message-bubble::after {
  display: none;
}
.chat-inbox .chat-image-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: transparent;
  overflow: hidden;
  cursor: zoom-in;
}
.chat-inbox .chat-image-open:hover {
  background: transparent;
}
.chat-image-open .chat-attachment-image {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 340px;
  min-height: 64px;
  border-radius: 13px;
  object-fit: contain;
}
.chat-image-shell[data-image-state="ready"] {
  width: fit-content;
  max-width: 100%;
}
.chat-image-shell[data-image-state="ready"] .chat-image-open {
  width: fit-content;
  max-width: 100%;
}
.chat-image-shell[data-image-state="ready"] .chat-attachment-image {
  width: auto;
}
.chat-image-shell {
  position: relative;
  border-radius: 13px;
  overflow: hidden;
}
.chat-image-shell:not([data-image-state="ready"]) {
  width: 220px;
  max-width: 100%;
  min-height: 180px;
  background: #e9edfa;
}
.chat-image-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 180px;
  padding: 24px;
  color: #53618a;
  font:
    500 13px/1.5 system-ui,
    sans-serif;
  text-align: center;
}
.chat-image-status-symbol {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
}
[data-image-state="loading"] > .chat-image-status .chat-image-status-symbol {
  border: 2px solid #657bc32b;
  border-top-color: #526ad0;
  border-radius: 50%;
  animation: chat-image-spin 0.8s linear infinite;
}
.chat-image-status-symbol svg {
  width: 26px;
  height: 26px;
}
.chat-inbox .chat-image-retry {
  width: auto;
  height: auto;
  display: inline-flex;
  padding: 7px 14px;
  border: 1px solid #bcc8f1;
  background: #f8faff;
  border-radius: 9px;
  color: #3045b1;
  font-size: 12px;
}
.chat-image-retry:hover {
  background: #e1e8ff;
}
@keyframes chat-image-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-image-state="loading"] > .chat-image-status .chat-image-status-symbol {
    animation: none;
  }
}
.chat-message--image .chat-message-caption {
  margin: 7px 6px 3px !important;
}
.chat-image-viewer {
  width: calc(100vw - 36px);
  max-width: 1500px;
  height: calc(100dvh - 36px);
  max-height: 100dvh;
  padding: 0;
  border: 1px solid #ffffff26;
  border-radius: 18px;
  background: #111932f5;
  color: white;
  box-shadow: 0 25px 90px #0a102c88;
  overflow: hidden;
}
.chat-image-viewer::backdrop {
  background: #0b1125b8;
  backdrop-filter: blur(8px);
}
.chat-image-viewer > header {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  border-bottom: 1px solid #ffffff12;
}
.chat-image-viewer > header > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: #d7dff8;
}
.chat-image-viewer > header > div {
  display: flex;
  gap: 7px;
}
.chat-inbox .chat-image-viewer :is(button, a) {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #e0e7ff;
  background: #ffffff0e;
  border: 1px solid #ffffff17;
  border-radius: 9px;
  padding: 0;
  cursor: pointer;
}
.chat-inbox .chat-image-viewer :is(button, a):hover {
  background: #ffffff20;
}
.chat-viewer-canvas {
  height: calc(100% - 58px);
  overflow: auto;
  padding: 18px;
}
.chat-viewer-stage {
  width: max-content;
  min-width: 100%;
  min-height: 100%;
  display: grid;
  place-items: center;
}
.chat-viewer-canvas .chat-image-status {
  color: #dbe3ff;
}
.chat-viewer-canvas img {
  display: block;
  max-width: none;
  max-height: none;
  height: auto;
  object-fit: contain;
  border-radius: 5px;
  cursor: zoom-in;
}
.chat-inbox #chat-viewer-fit {
  width: 53px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 500px) {
  .chat-image-viewer > header {
    gap: 7px;
    padding: 8px;
  }
  .chat-image-viewer > header > div {
    gap: 3px;
  }
  .chat-inbox .chat-image-viewer :is(button, a) {
    width: 29px;
    height: 32px;
  }
}
.chat-viewer-canvas img.is-zoomed {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}
/* Voice player uses the retained native audio element for real playback. */
.chat-message--audio .chat-message-bubble {
  width: 320px;
  max-width: 100%;
  padding: 0;
}
.chat-voice-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 55px;
  padding: 8px 12px;
  border-radius: 40px;
  background: linear-gradient(100deg, #ffffff, #eef2ff);
  color: #263caa;
}
.chat-inbox .chat-voice-toggle {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  border: 1px solid #dce3ff;
  border-radius: 50%;
  padding: 0;
  background: linear-gradient(#e9edff, #d9e1ff);
  color: #243dcc;
  box-shadow: 0 2px 4px #5267bf12;
}
.chat-inbox .chat-voice-toggle:hover {
  background: #d1dcff;
}
.chat-voice-toggle svg {
  width: 21px;
  height: 21px;
  stroke-width: 0;
}
.chat-voice-toggle[aria-label^="Play"] svg {
  margin-left: 2px;
}
.chat-voice-track {
  position: relative;
  flex: 1;
  min-width: 45px;
  height: 34px;
  padding-left: 12px;
  border-left: 1px solid #cbd4f1;
}
.chat-voice-wave {
  display: block;
  width: 100%;
  height: 34px;
  color: #99aaf4;
}
.chat-voice-wave rect {
  fill: currentColor;
  transition: fill 0.1s;
}
.chat-voice-wave rect.played {
  fill: #536fdf;
}
.chat-inbox .chat-voice-seek {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.chat-voice-track:focus-within {
  outline: 2px solid #8195e8;
  outline-offset: 3px;
  border-radius: 4px;
}
.chat-voice-time {
  display: block;
  color: #30374d;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-left: 12px;
  border-left: 1px solid #cbd4f1;
}
.chat-voice-download {
  display: grid;
  place-items: center;
  width: 20px;
  height: 28px;
  opacity: 0.55;
  flex-shrink: 0;
}
.chat-voice-download:hover {
  opacity: 1;
}
.chat-voice-download svg {
  width: 15px;
  height: 15px;
}
.chat-inbox .chat-message .chat-voice-source {
  display: none;
}
/* Link metadata is optional: a failed preview leaves the original clickable text. */
.chat-message-bubble.has-link-card {
  padding: 10px;
}
.chat-message-bubble.has-link-card .chat-message-text {
  padding: 2px 5px 10px;
}
.chat-link-card {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 10px;
  border-radius: 16px;
  background: linear-gradient(115deg, #fff, #edf1ff);
  color: #34446d !important;
  text-decoration: none;
  box-shadow: 0 2px 6px #2f438b08;
  transition: background 0.16s;
}
.chat-link-card:hover {
  background: #e8edff;
}
.chat-link-thumbnail {
  display: block;
  width: 70px;
  height: 74px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
}
.chat-link-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.chat-link-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.35;
  color: #263154;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.chat-link-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.45;
  color: #7382a7;
}
.chat-link-domain {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  font-size: 11px;
  color: #6378ad;
  overflow-wrap: anywhere;
}
.chat-link-domain svg {
  width: 14px;
  height: 14px;
}
@media (max-width: 850px) {
  .chat-message {
    max-width: 98%;
    padding-left: 36px;
  }
  .chat-message.agent {
    padding-left: 0;
    padding-right: 36px;
  }
  .chat-message--audio .chat-message-bubble,
  .chat-message--file .chat-message-bubble,
  .chat-message--location .chat-message-bubble {
    padding: 0;
  }
  .chat-document-card,
  .chat-location-card {
    padding: 10px;
    gap: 9px;
  }
  .chat-document-copy {
    font-size: 13px;
  }
  .chat-document-size {
    font-size: 11px;
  }
  .chat-voice-card {
    gap: 7px;
    padding: 6px 8px;
  }
  .chat-voice-track,
  .chat-voice-time {
    padding-left: 7px;
  }
  .chat-voice-toggle {
    width: 31px !important;
    height: 31px !important;
  }
  .chat-voice-time {
    font-size: 12px;
  }
  .chat-voice-download {
    display: none;
  }
  .chat-link-card {
    gap: 9px;
    padding: 8px;
  }
  .chat-link-thumbnail {
    width: 51px;
    height: 59px;
  }
  .chat-link-title {
    font-size: 13px;
  }
  .chat-link-description {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .chat-message *,
  .chat-message *::after {
    transition: none !important;
  }
}

/* One attachment shape: flush media, matching corners, no inset bezel. */
.chat-inbox
  .chat-message:is(
    .chat-message--image,
    .chat-message--file,
    .chat-message--audio,
    .chat-message--location
  )
  .chat-message-bubble {
  --chat-attachment-radius: 20px;
  padding: 0;
  border: 0;
  border-radius: var(--chat-attachment-radius);
}
.chat-inbox .chat-message--audio .chat-message-bubble {
  --chat-attachment-radius: 40px;
}
.chat-inbox
  .chat-message.agent:is(
    .chat-message--image,
    .chat-message--file,
    .chat-message--audio,
    .chat-message--location
  )
  .chat-message-bubble {
  box-shadow: 0 8px 20px #263ba719;
}
.chat-inbox
  .chat-message:is(
    .chat-message--image,
    .chat-message--file,
    .chat-message--audio,
    .chat-message--location
  )
  .chat-message-bubble
  > :is(
    .chat-document-card,
    .chat-location-card,
    .chat-location-message,
    .chat-image-shell,
    .chat-voice-card
  ) {
  border: 0;
  border-radius: var(--chat-attachment-radius);
  box-shadow: none;
}
.chat-inbox
  .chat-message:is(
    .chat-message--image,
    .chat-message--file,
    .chat-message--audio,
    .chat-message--location
  )
  .chat-message-bubble:has(> .chat-message-caption)
  > :is(
    .chat-document-card,
    .chat-location-card,
    .chat-location-message,
    .chat-image-shell,
    .chat-voice-card
  ) {
  border-radius: var(--chat-attachment-radius) var(--chat-attachment-radius) 0 0;
}
.chat-inbox .chat-message--image .chat-image-shell .chat-image-open,
.chat-inbox .chat-message--image .chat-image-shell .chat-attachment-image {
  border-radius: inherit;
}
.chat-inbox
  .chat-message:is(
    .chat-message--image,
    .chat-message--file,
    .chat-message--audio,
    .chat-message--location
  )
  .chat-message-caption {
  margin: 0 !important;
  padding: 8px 12px 10px;
}

.chat-inbox .chat-message--image .chat-message-bubble {
  overflow: visible;
}
.chat-inbox .chat-message--image .chat-message-bubble::after {
  display: block;
}

/* Paint each surface once to avoid a colored antialiasing rim around media. */
.chat-inbox
  .chat-message:is(
    .chat-message--image,
    .chat-message--file,
    .chat-message--audio,
    .chat-message--location
  )
  .chat-message-bubble {
  --chat-attachment-surface: #fff;
  background: transparent;
}
.chat-inbox
  .chat-message.agent:is(
    .chat-message--image,
    .chat-message--file,
    .chat-message--audio,
    .chat-message--location
  )
  .chat-message-bubble {
  --chat-attachment-surface: linear-gradient(115deg, #283dc3, #2031a4);
}
.chat-inbox
  .chat-message:is(
    .chat-message--image,
    .chat-message--file,
    .chat-message--audio,
    .chat-message--location
  )
  .chat-message-caption {
  background: var(--chat-attachment-surface);
  border-radius: 0 0 var(--chat-attachment-radius) var(--chat-attachment-radius);
}
.chat-inbox .chat-message.agent.chat-message--file .chat-document-card {
  background:
    linear-gradient(110deg, #7285ed70, #6376df48),
    var(--chat-attachment-surface);
}
.chat-inbox
  .chat-message.agent:is(
    .chat-message--image,
    .chat-message--file,
    .chat-message--audio,
    .chat-message--location
  )
  .chat-reply-quote {
  background:
    linear-gradient(#ffffff24, #ffffff24), var(--chat-attachment-surface);
}
/* required styles */

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
	position: absolute;
	left: 0;
	top: 0;
	}
.leaflet-container {
	overflow: hidden;
	}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	  -webkit-user-drag: none;
	}
/* Prevents IE11 from highlighting tiles in blue */
.leaflet-tile::selection {
	background: transparent;
}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
	image-rendering: -webkit-optimize-contrast;
	}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.leaflet-marker-icon,
.leaflet-marker-shadow {
	display: block;
	}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg {
	max-width: none !important;
	max-height: none !important;
	}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	width: auto;
	padding: 0;
	}

.leaflet-container img.leaflet-tile {
	/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
	mix-blend-mode: plus-lighter;
}

.leaflet-container.leaflet-touch-zoom {
	-ms-touch-action: pan-x pan-y;
	touch-action: pan-x pan-y;
	}
.leaflet-container.leaflet-touch-drag {
	-ms-touch-action: pinch-zoom;
	/* Fallback for FF which doesn't support pinch-zoom */
	touch-action: none;
	touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
	-ms-touch-action: none;
	touch-action: none;
}
.leaflet-container {
	-webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
	-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
	filter: inherit;
	visibility: hidden;
	}
.leaflet-tile-loaded {
	visibility: inherit;
	}
.leaflet-zoom-box {
	width: 0;
	height: 0;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	z-index: 800;
	}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
	-moz-user-select: none;
	}

.leaflet-pane         { z-index: 400; }

.leaflet-tile-pane    { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane  { z-index: 500; }
.leaflet-marker-pane  { z-index: 600; }
.leaflet-tooltip-pane   { z-index: 650; }
.leaflet-popup-pane   { z-index: 700; }

.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg    { z-index: 200; }

.leaflet-vml-shape {
	width: 1px;
	height: 1px;
	}
.lvml {
	behavior: url(#default#VML);
	display: inline-block;
	position: absolute;
	}


/* control positioning */

.leaflet-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}
.leaflet-top,
.leaflet-bottom {
	position: absolute;
	z-index: 1000;
	pointer-events: none;
	}
.leaflet-top {
	top: 0;
	}
.leaflet-right {
	right: 0;
	}
.leaflet-bottom {
	bottom: 0;
	}
.leaflet-left {
	left: 0;
	}
.leaflet-control {
	float: left;
	clear: both;
	}
.leaflet-right .leaflet-control {
	float: right;
	}
.leaflet-top .leaflet-control {
	margin-top: 10px;
	}
.leaflet-bottom .leaflet-control {
	margin-bottom: 10px;
	}
.leaflet-left .leaflet-control {
	margin-left: 10px;
	}
.leaflet-right .leaflet-control {
	margin-right: 10px;
	}


/* zoom and fade animations */

.leaflet-fade-anim .leaflet-popup {
	opacity: 0;
	-webkit-transition: opacity 0.2s linear;
	   -moz-transition: opacity 0.2s linear;
	        transition: opacity 0.2s linear;
	}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	opacity: 1;
	}
.leaflet-zoom-animated {
	-webkit-transform-origin: 0 0;
	    -ms-transform-origin: 0 0;
	        transform-origin: 0 0;
	}
svg.leaflet-zoom-animated {
	will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
	}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
	-webkit-transition: none;
	   -moz-transition: none;
	        transition: none;
	}

.leaflet-zoom-anim .leaflet-zoom-hide {
	visibility: hidden;
	}


/* cursors */

.leaflet-interactive {
	cursor: pointer;
	}
.leaflet-grab {
	cursor: -webkit-grab;
	cursor:    -moz-grab;
	cursor:         grab;
	}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
	cursor: crosshair;
	}
.leaflet-popup-pane,
.leaflet-control {
	cursor: auto;
	}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
	cursor: move;
	cursor: -webkit-grabbing;
	cursor:    -moz-grabbing;
	cursor:         grabbing;
	}

/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
	pointer-events: none;
	}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}

/* visual tweaks */

.leaflet-container {
	background: #ddd;
	outline-offset: 1px;
	}
.leaflet-container a {
	color: #0078A8;
	}
.leaflet-zoom-box {
	border: 2px dotted #38f;
	background: rgba(255,255,255,0.5);
	}


/* general typography */
.leaflet-container {
	font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1.5;
	}


/* general toolbar styles */

.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: 4px;
	}
.leaflet-bar a {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
	}
.leaflet-bar a,
.leaflet-control-layers-toggle {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
	background-color: #f4f4f4;
	}
.leaflet-bar a:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
.leaflet-bar a:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	}
.leaflet-bar a.leaflet-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
	}

.leaflet-touch .leaflet-bar a {
	width: 30px;
	height: 30px;
	line-height: 30px;
	}
.leaflet-touch .leaflet-bar a:first-child {
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	}
.leaflet-touch .leaflet-bar a:last-child {
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
	}

/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
	font-size: 22px;
	}


/* layers control */

.leaflet-control-layers {
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff;
	border-radius: 5px;
	}
.leaflet-control-layers-toggle {
	background-image: url(/assets/chat_leaflet/layers-0e356f4d554162eb71f127f50460dbc55d405027189ebe90b20729ef18d13d36.png);
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(/assets/chat_leaflet/layers-2x-ba8fa601e413b14db27db07285ade3951721e02244c31523284ab2d1ed53c3dc.png);
	background-size: 26px 26px;
	}
.leaflet-touch .leaflet-control-layers-toggle {
	width: 44px;
	height: 44px;
	}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
	display: none;
	}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
	display: block;
	position: relative;
	}
.leaflet-control-layers-expanded {
	padding: 6px 10px 6px 6px;
	color: #333;
	background: #fff;
	}
.leaflet-control-layers-scrollbar {
	overflow-y: scroll;
	overflow-x: hidden;
	padding-right: 5px;
	}
.leaflet-control-layers-selector {
	margin-top: 2px;
	position: relative;
	top: 1px;
	}
.leaflet-control-layers label {
	display: block;
	font-size: 13px;
	font-size: 1.08333em;
	}
.leaflet-control-layers-separator {
	height: 0;
	border-top: 1px solid #ddd;
	margin: 5px -10px 5px -6px;
	}

/* Default icon URLs */
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
	background-image: url(/assets/chat_leaflet/marker-icon-3d253116ec4ba0e1f22a01cdf1ff7f120fa4d89a6cd0933d68f12951d19809b4.png);
	}


/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.8);
	margin: 0;
	}
.leaflet-control-attribution,
.leaflet-control-scale-line {
	padding: 0 5px;
	color: #333;
	line-height: 1.4;
	}
.leaflet-control-attribution a {
	text-decoration: none;
	}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
	text-decoration: underline;
	}
.leaflet-attribution-flag {
	display: inline !important;
	vertical-align: baseline !important;
	width: 1em;
	height: 0.6669em;
	}
.leaflet-left .leaflet-control-scale {
	margin-left: 5px;
	}
.leaflet-bottom .leaflet-control-scale {
	margin-bottom: 5px;
	}
.leaflet-control-scale-line {
	border: 2px solid #777;
	border-top: none;
	line-height: 1.1;
	padding: 2px 5px 1px;
	white-space: nowrap;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	background: rgba(255, 255, 255, 0.8);
	text-shadow: 1px 1px #fff;
	}
.leaflet-control-scale-line:not(:first-child) {
	border-top: 2px solid #777;
	border-bottom: none;
	margin-top: -2px;
	}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
	border-bottom: 2px solid #777;
	}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	box-shadow: none;
	}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: 2px solid rgba(0,0,0,0.2);
	background-clip: padding-box;
	}


/* popup */

.leaflet-popup {
	position: absolute;
	text-align: center;
	margin-bottom: 20px;
	}
.leaflet-popup-content-wrapper {
	padding: 1px;
	text-align: left;
	border-radius: 12px;
	}
.leaflet-popup-content {
	margin: 13px 24px 13px 20px;
	line-height: 1.3;
	font-size: 13px;
	font-size: 1.08333em;
	min-height: 1px;
	}
.leaflet-popup-content p {
	margin: 17px 0;
	margin: 1.3em 0;
	}
.leaflet-popup-tip-container {
	width: 40px;
	height: 20px;
	position: absolute;
	left: 50%;
	margin-top: -1px;
	margin-left: -20px;
	overflow: hidden;
	pointer-events: none;
	}
.leaflet-popup-tip {
	width: 17px;
	height: 17px;
	padding: 1px;

	margin: -10px auto 0;
	pointer-events: auto;

	-webkit-transform: rotate(45deg);
	   -moz-transform: rotate(45deg);
	    -ms-transform: rotate(45deg);
	        transform: rotate(45deg);
	}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: white;
	color: #333;
	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
	}
.leaflet-container a.leaflet-popup-close-button {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	text-align: center;
	width: 24px;
	height: 24px;
	font: 16px/24px Tahoma, Verdana, sans-serif;
	color: #757575;
	text-decoration: none;
	background: transparent;
	}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
	color: #585858;
	}
.leaflet-popup-scrolled {
	overflow: auto;
	}

.leaflet-oldie .leaflet-popup-content-wrapper {
	-ms-zoom: 1;
	}
.leaflet-oldie .leaflet-popup-tip {
	width: 24px;
	margin: 0 auto;

	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
	}

.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
	border: 1px solid #999;
	}


/* div icon */

.leaflet-div-icon {
	background: #fff;
	border: 1px solid #666;
	}


/* Tooltip */
/* Base styles for the element that has a tooltip */
.leaflet-tooltip {
	position: absolute;
	padding: 6px;
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	color: #222;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
	}
.leaflet-tooltip.leaflet-interactive {
	cursor: pointer;
	pointer-events: auto;
	}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	position: absolute;
	pointer-events: none;
	border: 6px solid transparent;
	background: transparent;
	content: "";
	}

/* Directions */

.leaflet-tooltip-bottom {
	margin-top: 6px;
}
.leaflet-tooltip-top {
	margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
	left: 50%;
	margin-left: -6px;
	}
.leaflet-tooltip-top:before {
	bottom: 0;
	margin-bottom: -12px;
	border-top-color: #fff;
	}
.leaflet-tooltip-bottom:before {
	top: 0;
	margin-top: -12px;
	margin-left: -6px;
	border-bottom-color: #fff;
	}
.leaflet-tooltip-left {
	margin-left: -6px;
}
.leaflet-tooltip-right {
	margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	top: 50%;
	margin-top: -6px;
	}
.leaflet-tooltip-left:before {
	right: 0;
	margin-right: -12px;
	border-left-color: #fff;
	}
.leaflet-tooltip-right:before {
	left: 0;
	margin-left: -12px;
	border-right-color: #fff;
	}

/* Printing */

@media print {
	/* Prevent printers from removing background-images of controls. */
	.leaflet-control {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		}
	}
.chat-location-message {
  width: 244px;
  max-width: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #f0f3ff;
  color: #344572;
}
.chat-location-message [hidden] {
  display: none !important;
}
.chat-location-preview-frame {
  position: relative;
  height: 104px;
  overflow: hidden;
  background: #e7ecf3;
}
.chat-location-preview-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  isolation: isolate;
}
.chat-location-preview-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: #e7ecf3;
}
.chat-location-preview-map * {
  pointer-events: none !important;
}
.chat-location-preview-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 34px;
  transform: translate(-50%, -100%);
  z-index: 400;
  filter: drop-shadow(0 2px 3px #27324d50);
  pointer-events: none;
}
.chat-location-preview-pin path {
  fill: #4459cc;
  stroke: white;
  stroke-width: 2;
}
.chat-location-preview-pin circle {
  fill: white;
}
.chat-location-message .chat-location-preview-attribution {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 500;
  padding: 2px 4px;
  background: #ffffffed;
  color: #344572 !important;
  font:
    10px/1.3 system-ui,
    sans-serif;
  text-decoration: none;
  white-space: nowrap;
}
.chat-location-preview-attribution:hover {
  text-decoration: underline !important;
}
.chat-location-message.is-loading .chat-location-preview-map {
  opacity: 0.5;
}
.chat-location-message > .chat-location-card {
  width: 100%;
  min-height: 0;
  padding: 8px 10px;
  gap: 8px;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
}
.chat-location-message .chat-document-symbol {
  width: 23px;
  padding: 0;
  border: 0;
}
.chat-location-message .chat-document-symbol svg {
  width: 19px;
  height: 23px;
}
.chat-location-message .chat-document-copy {
  min-width: 0;
  line-height: 1.35;
}
.chat-location-message .chat-location-card strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.chat-location-message .chat-location-coordinates {
  font-size: 10px;
  margin-top: 2px;
  overflow-wrap: anywhere;
}
.chat-inbox .chat-message.agent .chat-location-message,
.patient-tester .message.patient .chat-location-message {
  background: linear-gradient(115deg, #283dc3, #2031a4);
  border-color: #ffffff24;
  color: white;
}
.chat-location-preview-link:focus-visible,
.chat-location-preview-attribution:focus-visible {
  outline: 3px solid #899aff;
  outline-offset: -3px;
}
@media (max-width: 680px) {
  .chat-location-message {
    width: 220px;
  }
}
.cms-toast-region { position: fixed; z-index: 100; inset-block-start: 20px; inset-inline-end: 20px; display: flex; flex-direction: column; gap: 10px; width: min(390px, calc(100vw - 32px)); pointer-events: none; font-family: inherit; }
.cms-toast-region, .cms-toast-region * { box-sizing: border-box; }
.cms-toast { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 16px; overflow: hidden; border: 1px solid #e2e6f5; border-radius: 16px; background: #fff; color: #202b52; box-shadow: 0 12px 40px #19245120, 0 2px 6px #19245108; pointer-events: auto; animation: cms-toast-in 180ms ease-out; }
.cms-toast-icon { display: grid; flex: 0 0 38px; place-items: center; width: 38px; height: 38px; border: 1px solid #dde3ff; border-radius: 12px; background: #edf0ff; color: #3445bb; }
.cms-toast-icon svg { width: 20px; height: 20px; }
.cms-toast-content { display: block; flex: 1; min-width: 0; padding: 1px 0; color: inherit; text-decoration: none; border: 0; background: transparent; text-align: start; }
a.cms-toast-content:hover .cms-toast-title { color: #3445bb; }
.cms-toast-title { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 650; line-height: 1.4; }
.cms-toast-body { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; overflow-wrap: anywhere; font-size: 13px; line-height: 1.5; color: #687598; }
.cms-toast-region .cms-toast-close { display: inline-flex; flex: 0 0 26px; align-items: center; justify-content: center; gap: 0; width: 26px; height: 26px; min-width: 26px; min-height: 26px; margin-block: -4px 0; margin-inline: 0 -4px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #8994af; line-height: 1; cursor: pointer; transition: background 140ms, color 140ms; }
.cms-toast-region .cms-toast-close:hover { background: #eef1ff; color: #3445bb; }
.cms-toast-region .cms-toast-close svg { display: block; flex: 0 0 15px; width: 15px; height: 15px; margin: 0; padding: 0; }
.cms-toast :is(a, button):focus-visible { outline: 2px solid #6678e7; outline-offset: 3px; }
.cms-toast-progress { position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: #dfe5ff; }
.cms-toast-progress::after { content: ''; display: block; width: 100%; height: 100%; background: #6d7bd8; transform-origin: left; animation: cms-toast-progress 5s linear forwards; }
.cms-toast-paused .cms-toast-progress::after { animation-play-state: paused; }
.cms-toast-leaving { opacity: 0; translate: 0 -5px; transition: opacity 150ms, translate 150ms; }
@keyframes cms-toast-in { from { opacity: 0; translate: 0 -8px; } to { opacity: 1; translate: 0 0; } }
@keyframes cms-toast-progress { to { transform: scaleX(0); } }
@media (max-width: 639px) { .cms-toast-region { inset-block-start: 12px; inset-inline-end: 12px; width: calc(100vw - 24px); } }
@media (prefers-reduced-motion: reduce) { .cms-toast { animation: none; } .cms-toast-leaving { transition: none; } }

.cms-header-feed{position:fixed;z-index:90;width:min(380px,calc(100vw - 24px));display:flex;flex-direction:column;background:#fff;border:1px solid #e8eaf0;border-radius:20px;box-shadow:0 24px 70px #17243b26,0 4px 16px #17243b0d;overflow:hidden;color:#1c2940;animation:cms-feed-enter .16s ease-out}
.cms-header-feed[hidden]{display:none}
.cms-header-feed header{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid #eef0f5;background:linear-gradient(120deg,#f7f9ff,#fff)}
.cms-header-feed h2{font-size:17px;font-weight:750;margin:0}
.cms-header-feed header button{border:0;background:#eaf0f7;color:#53617a;border-radius:50%;width:30px;height:30px;font-size:22px;line-height:1}
.cms-feed-list{overflow-y:auto;overscroll-behavior:contain;max-height:390px;min-height:0;scrollbar-width:thin}
.cms-feed-row{display:flex;align-items:center;gap:10px;padding:10px 14px;text-decoration:none;color:inherit;border-bottom:1px solid #f0f2f6;transition:background .15s}
.cms-feed-row:hover,.cms-feed-row:focus-visible{background:#f0f5ff}
.cms-feed-row.is-unread{background:#f7f9ff}
.cms-feed-avatar{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:34px;height:34px;border-radius:10px;background:linear-gradient(135deg,#e5eaff,#edf8f7);color:#4e5ab4;font-weight:700;font-size:12px}
.cms-feed-content{min-width:0;flex:1;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px 8px}
.cms-feed-content strong{font-size:13px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cms-feed-preview{font-size:12px;line-height:1.6;color:#647089;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.cms-feed-content time{font-size:10px;color:#8a94a8;grid-column:2;grid-row:1;white-space:nowrap}
.cms-feed-dot{width:7px;height:7px;border-radius:50%;background:#6574d9;flex-shrink:0}
.cms-feed-status{padding:10px;text-align:center;font-size:12px;color:#65718a;background:#fff;border:0;width:100%;flex-shrink:0}
.cms-feed-status:not(:disabled){cursor:pointer;color:#4e5ab4}
.cms-feed-footer{padding:10px;text-align:center;border-top:1px solid #eef0f5;font-size:12px;font-weight:650;color:#4e5ab4;background:#fafbfe;text-decoration:none;flex-shrink:0}
.cms-feed-footer[hidden]{display:none}
.cms-header-feed :focus-visible{outline:2px solid #6574d9;outline-offset:-3px}
@keyframes cms-feed-enter{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.cms-header-feed{animation:none}.cms-feed-row{transition:none}}

.cms-feed-avatar svg{width:18px;height:18px;stroke-width:1.8}
.cms-feed-preview{grid-column:1 / -1}
.cms-feed-avatar[data-icon="circle-check"]{background:#e8f7ef;color:#27815a}
.cms-feed-avatar[data-icon="triangle-alert"]{background:#fff3df;color:#b77818}
.cms-feed-avatar[data-icon="calendar-x"]{background:#fdeef0;color:#bd5265}
.cms-feed-avatar[data-icon="tag"],.cms-feed-avatar[data-icon="megaphone"]{background:#f1ebfc;color:#8755b2}
.cms-feed-header-actions{display:flex;align-items:center;gap:10px}
.cms-header-feed header .cms-feed-mark-read{width:auto;height:auto;border-radius:6px;padding:4px 0;background:transparent;color:#5262b0;font-size:11px;font-weight:600;line-height:1.4;cursor:pointer}
.cms-header-feed header .cms-feed-mark-read:disabled{opacity:.6;cursor:wait}
.cms-header-feed header .cms-feed-mark-read[hidden]{display:none}
.cms-header-feed header .cms-feed-close{display:inline-flex;align-items:center;justify-content:center;flex:0 0 30px;width:30px;height:30px;padding:0;line-height:1}
.cms-header-feed header .cms-feed-close svg{display:block;width:16px;height:16px;margin:0;flex-shrink:0}
@font-face {
    font-family: 'Inter';
    src: url(/assets/fonts/Inter-Regular) format('tff');
    font-weight: normal;
    font-style: normal;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

.simple-calendar table {
    -webkit-border-horizontal-spacing: 0px;
    -webkit-border-vertical-spacing: 0px;
    background-color: rgba(0, 0, 0, 0);
    border-top: 1px solid rgba(221, 221, 221, 0.4);
    border-collapse: collapse;
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
}

.simple-calendar tr {
    border-collapse: collapse;
}

.simple-calendar th {
    padding: 6px;
    border-bottom: 0px solid rgb(221, 221, 221);
    border-collapse: collapse;
    border-left: 0px solid rgb(221, 221, 221);
    border-right: 0px solid rgb(221, 221, 221);
    border-top: 0px none rgb(51, 51, 51);
    box-sizing: border-box;
    text-align: left;
}

.simple-calendar td {
    padding: 0px;
    vertical-align: top;
    width: 14%;
    border: 0px solid #ddd;
    border-top-color: rgba(221, 221, 221, 0.4);
    border-top-style: solid;
    border-top-width: 1px;
    border-right-color: rgba(221, 221, 221, 0.4);
    border-right-style: solid;
    border-right-width: 1px;
    border-bottom-color: rgba(221, 221, 221, 0.4);
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-left-color: rgba(221, 221, 221, 0.4);
    border-left-style: solid;
    border-left-width: 1px;
}

.simple-calendar .day {
    height: 135px;
}

.simple-calendar .today {
    /*background: #FF4081;*/
    /*color: #FFFFFF;*/
}

.simple-calendar .prev-month {
    background: #f8f8f8;
}

.simple-calendar .next-month {
    background: #f8f8f8;
}

.calendar-heading {
    display: flex;
    justify-content: space-between;
    align-items: center; /* optional, if you want to align items vertically as well */
    padding: 2px;
    margin: 22px;
}

.calendar-heading .calendar-title {
    font-weight: bold;
}

.ts-control {
    border: 0 solid #d0d0d0 !important;
    padding: 3px 4px !important;
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    box-shadow: none;
    border-radius: 3px;
    display: flex;
    flex-wrap: wrap;
}
