/* Business Chat "Update available" notice (update-check.js). Shared by every Business Chat page and chat template. */
.business-update-bar {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #c7d6f5;
  border-radius: 10px;
  background: #eef3fd;
  color: #15274a;
  font: 500 13px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
}
.business-update-bar[hidden] { display: none !important; }
.business-update-bar__text { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.business-update-bar__text strong { font-weight: 700; }
.business-update-bar__steps { display: block; margin-top: 2px; font-weight: 400; }
.business-update-bar__button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 5px 14px;
  border: 0;
  border-radius: 8px;
  background: #2453c7;
  color: #fff;
  font: 600 13px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  cursor: pointer;
}
.business-update-bar__button:hover { background: #1c43a6; }
.business-update-bar__button:focus-visible { outline: 3px solid #8fb0ff; outline-offset: 2px; }
.business-update-bar__button:disabled { opacity: .65; cursor: default; }
.business-update-bar--manual { border-color: #e7c76d; background: #fff8e2; color: #3d2f05; }

/* Page-level placement (dashboard, hosted page, sign-in): a slim strip above the page. Full-height layouts subtract its height. */
.business-update-bar--page {
  position: relative;
  z-index: 60;
  border-width: 0 0 1px;
  border-radius: 0;
  padding-left: max(12px, env(safe-area-inset-left));
  padding-right: max(12px, env(safe-area-inset-right));
}

/* Chat placement: the last full-width row of the chat header, so the conversation layout of every template is unchanged. */
:root .chat-shell > .chat-header:has(> .business-update-bar) { flex-wrap: wrap; row-gap: 8px; }
.chat-header > .business-update-bar--in-header { flex: 1 0 100%; order: 99; grid-column: 1 / -1; grid-row: auto; align-self: stretch; }

@media (max-width: 480px) {
  .business-update-bar { padding: 7px 10px; font-size: 12.5px; }
  .business-update-bar__text { flex-basis: 160px; }
}
