/* Tidio-inspired live chat widget — public portal + staff desk */

.vmhs-live-widget {
  --vmhs-live-accent: var(--vmhs-brand, #B7670F);
  --vmhs-live-accent-dark: var(--vmhs-primary-hover, #92400e);
  --vmhs-live-surface: #f8fafc;
  --vmhs-live-border: #e2e8f0;
  border: 1px solid var(--vmhs-live-border);
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  min-height: 28rem;
  display: flex;
  flex-direction: column;
}

.vmhs-live-widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, var(--vmhs-live-accent) 0%, var(--vmhs-live-accent-dark) 100%);
  color: #fff;
}

.vmhs-live-widget__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.vmhs-live-widget__avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.vmhs-live-widget__avatar--lg {
  width: 2.75rem;
  height: 2.75rem;
  background: rgba(183, 103, 15, 0.12);
  color: var(--vmhs-live-accent);
}

.vmhs-live-widget__title {
  display: block;
  font-size: 1rem;
  line-height: 1.2;
}

.vmhs-live-widget__status {
  display: block;
  font-size: 0.78rem;
  opacity: 0.9;
  margin-top: 0.1rem;
}

.vmhs-live-widget__header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.vmhs-live-widget__new-chat {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition: background 0.15s ease;
}

.vmhs-live-widget__new-chat:hover,
.vmhs-live-widget__new-chat:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
  outline: none;
}

.vmhs-live-widget__online {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.vmhs-live-widget__online span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
}

.vmhs-live-widget__banner {
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--vmhs-live-border);
  background: #ecfeff;
  color: var(--vmhs-primary-hover, #92400e);
}

.vmhs-live-widget__banner[data-status="waiting_staff"] {
  background: #fffbeb;
  color: #92400e;
}

.vmhs-live-widget__banner[data-status="closed"] {
  background: #f1f5f9;
  color: #475569;
}

.vmhs-live-widget__banner:empty {
  display: none;
}

.vmhs-live-widget__log {
  flex: 1 1 auto;
  min-height: 20rem;
  max-height: 52vh;
  overflow-y: auto;
  padding: 1rem;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(183, 103, 15, 0.07), transparent 55%),
    linear-gradient(180deg, #f7f4ef 0%, #f1f5f9 100%);
  scroll-behavior: smooth;
}

.vmhs-live-desk-panel__log {
  max-height: 28rem;
  margin: 0 0.75rem 0.5rem;
  border: 1px solid var(--vmhs-live-border);
  border-radius: 0.65rem;
  background: linear-gradient(180deg, #eef7f6 0%, var(--vmhs-live-surface) 100%);
}

.vmhs-live-desk-panel .vmhs-live-desk-panel__footer,
.vmhs-live-desk-panel > .card-footer {
  margin: 0 0.75rem 0.75rem;
  border: 1px solid var(--vmhs-live-border);
  border-radius: 0.65rem;
  background: #fff;
}

.vmhs-live-desk-panel > .alert {
  margin: 0 0.75rem;
  border-radius: 0.65rem;
}

.vmhs-live-guest > .card-body {
  padding-bottom: 0.85rem;
}

.vmhs-live-guest > .card-footer {
  margin: 0 0.75rem 0.75rem;
  border: 1px solid var(--vmhs-live-border);
  border-radius: 0.65rem;
  background: #fff;
}

.vmhs-live-msg {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  max-width: 92%;
}

.vmhs-live-msg--user {
  margin-left: auto;
  flex-direction: row-reverse;
}

.vmhs-live-msg--staff {
  margin-left: auto;
  flex-direction: row-reverse;
}

.vmhs-live-desk-panel .vmhs-live-msg--staff {
  margin-left: auto;
  flex-direction: row-reverse;
}

.vmhs-live-desk-panel .vmhs-live-msg--user {
  margin-left: 0;
  flex-direction: row;
}

.vmhs-live-msg__avatar {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--vmhs-live-border);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  color: #64748b;
  flex-shrink: 0;
}

.vmhs-live-msg--user .vmhs-live-msg__avatar {
  background: var(--vmhs-live-accent);
  border-color: var(--vmhs-live-accent);
  color: #fff;
}

.vmhs-live-msg--staff .vmhs-live-msg__avatar {
  background: var(--vmhs-live-accent);
  border-color: var(--vmhs-live-accent);
  color: #fff;
}

.vmhs-live-msg__content {
  min-width: 0;
}

.vmhs-live-msg__meta {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.15rem;
}

.vmhs-live-msg__body {
  display: inline-block;
  padding: 0.65rem 0.85rem;
  border-radius: 1rem;
  font-size: 0.92rem;
  line-height: 1.45;
  word-break: break-word;
}

.vmhs-live-msg--assistant .vmhs-live-msg__body {
  background: #fff;
  border: 1px solid var(--vmhs-live-border);
  border-bottom-left-radius: 0.25rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.vmhs-live-msg--user .vmhs-live-msg__body {
  background: var(--vmhs-live-accent);
  color: #fff;
  border-bottom-right-radius: 0.25rem;
  box-shadow: 0 1px 2px rgba(183, 103, 15, 0.25);
}

.vmhs-live-msg--staff .vmhs-live-msg__body {
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  color: #14532d;
  border-bottom-right-radius: 0.25rem;
}

.vmhs-live-desk-panel .vmhs-live-msg--staff .vmhs-live-msg__body {
  background: var(--vmhs-live-accent);
  color: #fff;
  border-color: var(--vmhs-live-accent-dark);
}

.vmhs-live-widget__compose {
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid var(--vmhs-live-border);
  background: #fff;
}

.vmhs-live-widget__input-wrap {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}

.vmhs-live-widget__input-wrap .form-control {
  border-radius: 999px;
  padding-left: 1rem;
  resize: none;
}

.vmhs-live-widget__send {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  padding: 0;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.vmhs-live-widget__footnote {
  margin: 0.55rem 0 0;
  font-size: 0.72rem;
  color: #64748b;
}

/* Guest intake gate */
.vmhs-live-intake {
  padding: 1.25rem 1.15rem 1.15rem;
  background: #fff;
}

.vmhs-live-intake__intro {
  margin-bottom: 1rem;
}

.vmhs-live-intake__note {
  margin-top: 0.85rem;
}

/* Staff desk layout */
.vmhs-live-desk-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.vmhs-live-inbox > .list-group-flush {
  max-height: min(70vh, 36rem);
  overflow-y: auto;
}

.vmhs-live-inbox__item {
  padding: 0.85rem 1rem;
  border-left: 3px solid transparent;
}

.vmhs-live-inbox__item.active,
.vmhs-live-inbox__item:hover {
  border-left-color: var(--vmhs-live-accent);
}

.vmhs-live-inbox__item--waiting {
  background: #fffbeb;
}

.vmhs-live-inbox__item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.vmhs-live-inbox__meta {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
}

.vmhs-live-inbox__badge {
  font-size: 0.65rem;
}

.vmhs-live-guest__dl dt {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.1rem;
}

.vmhs-live-guest__dl dd {
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
}

.vmhs-live-guest__dl dd:last-child {
  margin-bottom: 0;
}

.vmhs-live-whatsapp-alt .btn-success {
  background: #25d366;
  border-color: #25d366;
}

.vmhs-live-inbox__wa {
  font-size: 0.72rem;
  padding: 0.2rem 0.35rem;
}

.vmhs-chat-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.45rem 0 0.95rem 2.4rem;
  clear: both;
  animation: vmhsChoiceIn 0.28s ease;
}

@keyframes vmhsChoiceIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vmhs-chat-choice {
  border: 1px solid rgba(183, 103, 15, 0.28);
  background: #fff;
  color: #14202b;
  border-radius: 0.85rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.25;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(20, 32, 43, 0.05);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.vmhs-chat-choice:hover,
.vmhs-chat-choice:focus-visible {
  background: rgba(183, 103, 15, 0.08);
  border-color: var(--vmhs-brand, #B7670F);
  color: var(--vmhs-primary-hover, #92400e);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(183, 103, 15, 0.12);
  outline: none;
}

.vmhs-chat-choices--widget {
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

.vmhs-chat-choices--widget .vmhs-chat-choice {
  flex: 1 1 calc(50% - 0.5rem);
  min-width: 7.5rem;
  text-align: left;
}

@media (max-width: 991.98px) {
  .vmhs-live-widget__log {
    max-height: 45vh;
  }
}

/* ─── Floating public widget (bottom-right) ─── */
.vmhs-live-chat-widget {
  --vmhs-widget-offset: 1.25rem;
  position: fixed;
  right: var(--vmhs-widget-offset);
  bottom: calc(var(--vmhs-widget-offset) + env(safe-area-inset-bottom, 0px));
  z-index: 1080;
  font-family: "Public Sans", system-ui, sans-serif;
}

.vmhs-app-shell .vmhs-live-chat-widget {
  bottom: calc(var(--vmhs-widget-offset) + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 1199.98px) {
  .vmhs-app-shell .vmhs-live-chat-widget {
    bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  }
}

.vmhs-live-chat-widget__launcher {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.15rem;
  background: linear-gradient(135deg, var(--vmhs-brand, #B7670F) 0%, var(--vmhs-primary-hover, #92400e) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 12px 32px rgba(183, 103, 15, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.vmhs-live-chat-widget__launcher:hover,
.vmhs-live-chat-widget__launcher:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(183, 103, 15, 0.42);
  outline: none;
}

.vmhs-live-chat-widget.is-open .vmhs-live-chat-widget__launcher {
  transform: scale(0.92);
  opacity: 0;
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}

.vmhs-live-chat-widget__launcher-icon {
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
}

.vmhs-live-chat-widget__panel {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(22rem, calc(100vw - 2rem));
  max-height: min(34rem, calc(100vh - 6rem));
  display: flex;
  flex-direction: column;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.22);
  border-radius: 1rem;
  overflow: hidden;
  animation: vmhsWidgetSlideUp 0.22s ease;
}

@keyframes vmhsWidgetSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.vmhs-live-chat-widget__header {
  flex-shrink: 0;
}

.vmhs-live-chat-widget__header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.vmhs-live-chat-widget__close,
.vmhs-live-chat-widget__expand {
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  cursor: pointer;
}

.vmhs-live-chat-widget__close:hover,
.vmhs-live-chat-widget__expand:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.vmhs-live-chat-widget__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.vmhs-live-chat-widget__intake {
  overflow-y: auto;
  max-height: min(28rem, calc(100vh - 10rem));
}

.vmhs-live-chat-widget__chat {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.vmhs-live-chat-widget__log {
  flex: 1 1 auto;
  min-height: 14rem;
  max-height: 20rem;
}

.vmhs-live-chat-widget__compose {
  flex-shrink: 0;
}

.vmhs-canned-replies__chip {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vmhs-attachments__item:last-child {
  border-bottom: none !important;
}

@media (max-width: 575.98px) {
  .vmhs-live-chat-widget {
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    left: auto;
    bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    z-index: 1100;
  }

  .vmhs-live-chat-widget__panel {
    width: min(22rem, calc(100vw - 1.5rem));
    left: auto;
    right: 0;
    max-height: min(70vh, calc(100dvh - 7rem));
  }

  .vmhs-live-chat-widget__launcher-text {
    display: none;
  }

  .vmhs-live-chat-widget__launcher {
    width: 3.35rem;
    height: 3.35rem;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
}

/* Keep floating chat available in installed PWA / standalone */
@media (display-mode: standalone), (display-mode: fullscreen) {
  .vmhs-public .vmhs-live-chat-widget {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 1100;
  }
}

/* ─── Gmail-style staff live chat desk ─── */
.vmhs-gmail-desk {
  --gmail-bg: #f6f8fc;
  --gmail-border: #dadce0;
  --gmail-accent: var(--vmhs-brand, #B7670F);
  --gmail-accent-soft: #e6f4f1;
  --gmail-active: #d3e3fd;
  --gmail-wait: #fef3c7;
  background: #fff;
  border: 1px solid var(--gmail-border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.12), 0 4px 8px rgba(60, 64, 67, 0.08);
  min-height: min(78vh, 44rem);
  display: flex;
  flex-direction: column;
}

.vmhs-gmail-desk__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--gmail-border);
  background: linear-gradient(180deg, #fff 0%, var(--gmail-bg) 100%);
}

.vmhs-gmail-desk__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.vmhs-gmail-desk__brand-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, var(--gmail-accent) 0%, var(--vmhs-primary-hover, #92400e) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
}

.vmhs-gmail-desk__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #202124;
}

.vmhs-gmail-desk__subtitle {
  font-size: 0.78rem;
  color: #5f6368;
}

.vmhs-gmail-desk__topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.vmhs-gmail-desk__waiting {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
}

.vmhs-gmail-desk__workspace {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(17rem, 22rem) minmax(0, 1fr) minmax(0, 18rem);
  min-height: 0;
}

.vmhs-gmail-desk__inbox {
  border-right: 1px solid var(--gmail-border);
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.vmhs-gmail-desk__inbox-toolbar {
  padding: 0.75rem;
  border-bottom: 1px solid var(--gmail-border);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.vmhs-gmail-desk__search {
  position: relative;
}

.vmhs-gmail-desk__search i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #5f6368;
  font-size: 0.9rem;
  pointer-events: none;
}

.vmhs-gmail-desk__search .form-control {
  padding-left: 2.15rem;
  border-radius: 999px;
  background: var(--gmail-bg);
  border-color: transparent;
}

.vmhs-gmail-desk__search .form-control:focus {
  background: #fff;
  border-color: var(--gmail-accent);
  box-shadow: 0 0 0 0.15rem rgba(183, 103, 15, 0.15);
}

.vmhs-gmail-desk__filters .btn.active {
  background: var(--gmail-accent-soft);
  border-color: var(--gmail-accent);
  color: var(--vmhs-primary-hover, #92400e);
}

.vmhs-gmail-desk__list {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
}

.vmhs-gmail-desk__row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  border: none;
  border-bottom: 1px solid #f1f3f4;
  background: #fff;
  padding: 0.85rem 0.9rem;
  cursor: pointer;
  transition: background 0.12s ease;
}

.vmhs-gmail-desk__row:hover {
  background: #f8f9fa;
  box-shadow: inset 3px 0 0 var(--gmail-accent);
}

.vmhs-gmail-desk__row.is-active {
  background: var(--gmail-active);
  box-shadow: inset 3px 0 0 #1a73e8;
}

.vmhs-gmail-desk__row.is-waiting {
  background: linear-gradient(90deg, var(--gmail-wait) 0%, #fff 100%);
}

.vmhs-gmail-desk__row.is-active.is-waiting {
  background: linear-gradient(90deg, var(--gmail-wait) 0%, var(--gmail-active) 100%);
}

.vmhs-gmail-desk__avatar {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: var(--gmail-accent-soft);
  color: var(--gmail-accent);
  font-weight: 700;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.vmhs-gmail-desk__row-main {
  min-width: 0;
  flex: 1 1 auto;
}

.vmhs-gmail-desk__row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}

.vmhs-gmail-desk__row-name {
  font-size: 0.88rem;
  color: #202124;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vmhs-gmail-desk__row-time {
  font-size: 0.68rem;
  color: #5f6368;
  white-space: nowrap;
  flex-shrink: 0;
}

.vmhs-gmail-desk__row-preview {
  display: block;
  font-size: 0.78rem;
  color: #5f6368;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vmhs-gmail-desk__row-badges {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.vmhs-gmail-desk__chip {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.vmhs-gmail-desk__chip--wa {
  background: #dcfce7;
  color: #15803d;
}

.vmhs-gmail-desk__chip--wait {
  background: #fef3c7;
  color: #92400e;
}

.vmhs-gmail-desk__empty,
.vmhs-gmail-desk__empty-thread {
  padding: 2rem 1rem;
  text-align: center;
  color: #5f6368;
  font-size: 0.88rem;
}

.vmhs-gmail-desk__thread {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
  min-width: 0;
}

.vmhs-gmail-desk__empty-thread {
  flex: 1 1 auto;
  display: grid;
  place-items: center;
}

.vmhs-gmail-desk__empty-thread-inner i {
  font-size: 3rem;
  color: #c4c7c5;
  margin-bottom: 0.75rem;
}

.vmhs-gmail-desk__thread-panel {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.vmhs-gmail-desk__thread-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--gmail-border);
  background: #fff;
}

.vmhs-gmail-desk__thread-subject {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.vmhs-gmail-desk__thread-subject h5 {
  font-size: 1rem;
  font-weight: 700;
  color: #202124;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vmhs-gmail-desk__thread-meta {
  font-size: 0.75rem;
  color: #5f6368;
}

.vmhs-gmail-desk__thread-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.vmhs-gmail-desk__messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1rem 1.15rem 0.5rem;
  background: var(--gmail-bg);
  scroll-behavior: smooth;
}

.vmhs-gmail-msg {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 0;
  border-bottom: 1px solid #e8eaed;
}

.vmhs-gmail-msg:last-child {
  border-bottom: none;
}

.vmhs-gmail-msg__avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--gmail-border);
  color: #5f6368;
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.vmhs-gmail-msg--user .vmhs-gmail-msg__avatar {
  background: var(--gmail-accent-soft);
  border-color: #99f6e4;
  color: var(--gmail-accent);
}

.vmhs-gmail-msg--staff .vmhs-gmail-msg__avatar {
  background: var(--gmail-accent);
  border-color: var(--gmail-accent);
  color: #fff;
}

.vmhs-gmail-msg--assistant .vmhs-gmail-msg__avatar {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4338ca;
}

.vmhs-gmail-msg__main {
  min-width: 0;
  flex: 1 1 auto;
}

.vmhs-gmail-msg__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.vmhs-gmail-msg__head strong {
  font-size: 0.88rem;
  color: #202124;
}

.vmhs-gmail-msg__head time {
  font-size: 0.72rem;
  color: #5f6368;
  white-space: nowrap;
}

.vmhs-gmail-msg__body {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #3c4043;
  word-break: break-word;
}

.vmhs-gmail-msg--staff .vmhs-gmail-msg__body {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 0.5rem;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid var(--gmail-accent);
}

.vmhs-gmail-desk__compose {
  border-top: 1px solid var(--gmail-border);
  background: #fff;
  padding: 0.75rem 1rem 1rem;
}

.vmhs-gmail-desk__compose-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
  align-items: end;
}

.vmhs-gmail-desk__compose-bar textarea {
  border-radius: 0.65rem;
  resize: vertical;
  min-height: 4.5rem;
  border-color: var(--gmail-border);
}

.vmhs-gmail-desk__compose-bar textarea:focus {
  border-color: var(--gmail-accent);
  box-shadow: 0 0 0 0.15rem rgba(183, 103, 15, 0.12);
}

.vmhs-gmail-desk__compose-actions .btn-primary {
  border-radius: 999px;
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}

.vmhs-gmail-desk__details {
  border-left: 1px solid var(--gmail-border);
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 0;
  transition: width 0.2s ease, opacity 0.2s ease;
}

.vmhs-gmail-desk__details.is-collapsed {
  display: none;
}

.vmhs-gmail-desk__details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--gmail-border);
}

.vmhs-gmail-desk__details-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1rem;
}

.vmhs-gmail-desk__details-footer {
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid var(--gmail-border);
  display: grid;
  gap: 0.45rem;
}

.vmhs-gmail-desk__dl dt {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5f6368;
  margin-bottom: 0.1rem;
}

.vmhs-gmail-desk__dl dd {
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
  color: #202124;
}

.vmhs-gmail-desk__dl dd:last-child {
  margin-bottom: 0;
}

.vmhs-gmail-desk.has-thread .vmhs-gmail-desk__thread {
  background: #fff;
}

@media (max-width: 1199.98px) {
  .vmhs-gmail-desk__workspace {
    grid-template-columns: minmax(16rem, 20rem) minmax(0, 1fr);
  }

  .vmhs-gmail-desk__details {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(20rem, 92vw);
    z-index: 1090;
    box-shadow: -8px 0 24px rgba(60, 64, 67, 0.18);
  }

  .vmhs-gmail-desk__details.is-collapsed {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .vmhs-gmail-desk__workspace {
    grid-template-columns: 1fr;
    position: relative;
  }

  .vmhs-gmail-desk__inbox {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: #fff;
  }

  .vmhs-gmail-desk__inbox.is-mobile-hidden {
    display: none;
  }

  .vmhs-gmail-desk.has-thread .vmhs-gmail-desk__inbox.is-mobile-hidden + .vmhs-gmail-desk__thread {
    display: flex;
  }
}

/* ─── Public live chat page ─── */
.vmhs-live-public__aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vmhs-live-public__card {
  background: #fff;
  border: 1px solid var(--vmhs-live-border);
  border-radius: 0.85rem;
  padding: 1.1rem 1.15rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.vmhs-live-public__card--muted {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.vmhs-live-public__steps {
  margin: 0;
  padding-left: 1.15rem;
  color: #475569;
  font-size: 0.88rem;
}

.vmhs-live-public__steps li {
  margin-bottom: 0.55rem;
}

.vmhs-live-public__steps li:last-child {
  margin-bottom: 0;
}

.vmhs-live-public__topics {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.vmhs-live-public__topic {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 0.65rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--vmhs-primary-hover, #92400e);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.vmhs-live-public__topic:hover,
.vmhs-live-public__topic:focus-visible {
  background: #f0fdfa;
  border-color: #99f6e4;
  outline: none;
}

.vmhs-live-public__topic--sm {
  width: auto;
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
}

.vmhs-live-public__quick-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.vmhs-live-widget--page {
  min-height: 22rem;
  max-height: calc(100dvh - var(--app-header-h, 4rem) - var(--app-bottom-nav-h, 3.5rem) - 8rem);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.vmhs-live-widget__log--page {
  min-height: 16rem;
  max-height: min(28rem, calc(100dvh - var(--app-header-h, 4rem) - var(--app-bottom-nav-h, 3.5rem) - 14rem));
}

.vmhs-live-widget__online--pulse span {
  animation: vmhsOnlinePulse 2s ease-in-out infinite;
}

@keyframes vmhsOnlinePulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.12); }
}

.vmhs-live-typing {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0 0.85rem;
  color: #64748b;
  font-size: 0.82rem;
}

.vmhs-live-typing__dots {
  display: inline-flex;
  gap: 0.25rem;
}

.vmhs-live-typing__dots span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #94a3b8;
  animation: vmhsTypingDot 1.2s infinite ease-in-out;
}

.vmhs-live-typing__dots span:nth-child(2) { animation-delay: 0.15s; }
.vmhs-live-typing__dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes vmhsTypingDot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.vmhs-live-widget__compose textarea.form-control {
  border-radius: 0.75rem;
  resize: vertical;
  min-height: 3rem;
}

/* ─── Staff dashboard live chat panel (styles in vmhs-dashboard.css) ─── */

.vmhs-live-chat-widget__launcher.has-unread::after {
  content: "";
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid #fff;
}

.vmhs-live-chat-widget__launcher {
  position: relative;
}

.vmhs-live-chat-widget__compose textarea.form-control {
  border-radius: 0.65rem;
  resize: none;
  min-height: 2.5rem;
  max-height: 5rem;
}

.vmhs-live-chat-widget__intake .vmhs-live-public__quick-topics,
.vmhs-live-chat-widget__compose .vmhs-live-public__quick-topics {
  padding: 0 0.15rem;
}

.vmhs-live-typing--widget {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

/* ─── Executive correspondence Gmail desk ─── */
.vmhs-gmail-desk--correspondence .vmhs-gmail-desk__brand-icon--exec {
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
  color: #6d28d9;
}

.vmhs-gmail-desk--correspondence .vmhs-gmail-desk__topbar {
  background: linear-gradient(90deg, #faf5ff 0%, #ffffff 60%);
  border-bottom-color: #e9d5ff;
}

.vmhs-gmail-desk--public {
  min-height: 28rem;
}

.vmhs-gmail-desk--public .vmhs-gmail-desk__messages {
  min-height: 18rem;
}

.vmhs-gmail-desk__compose--closed {
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.vmhs-gmail-desk--correspondence .vmhs-gmail-msg--staff .vmhs-gmail-msg__avatar {
  background: #ede9fe;
  color: #6d28d9;
}

/* ─── Staff live chat full page (dashboard desk parity) ─── */
.vmhs-staff-livechat-desk.vmhs-gmail-desk {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

body[data-page="live-chat"] .vmhs-staff-livechat-desk.layout-section {
  margin-bottom: 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body[data-page="live-chat"] .vmhs-workspace__body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

body[data-page="live-chat"] {
  --vmhs-livechat-desk-h: calc(100dvh - 6.25rem - env(safe-area-inset-top, 0px));
}

@media (max-width: 1024.98px) {
  body[data-page="live-chat"] {
    --vmhs-livechat-desk-h: calc(
      100dvh - 4.25rem - 3.25rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)
    );
  }
}

.vmhs-staff-livechat-desk__card {
  border: 1px solid rgba(183, 103, 15, 0.14);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  height: var(--vmhs-livechat-desk-h);
  max-height: var(--vmhs-livechat-desk-h);
  min-height: 0;
  overflow: hidden;
}

.vmhs-staff-livechat-desk__hero {
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  flex-shrink: 0;
}

.vmhs-staff-livechat-desk__hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.vmhs-staff-livechat-desk__hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  width: 100%;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(183, 103, 15, 0.1);
}

.vmhs-staff-livechat-desk__hero-stat,
.vmhs-staff-livechat-desk__hero-queue {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.2;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(183, 103, 15, 0.12);
  color: #64748b;
  white-space: nowrap;
}

.vmhs-staff-livechat-desk__hero-stat strong {
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--vmhs-brand, #B7670F);
}

.vmhs-staff-livechat-desk__hero-queue {
  background: rgba(254, 243, 199, 0.55);
  border-color: rgba(183, 103, 15, 0.2);
  color: var(--vmhs-primary-hover, #92400e);
}

.vmhs-staff-livechat-desk__hero-queue strong {
  color: var(--vmhs-primary-hover, #92400e);
}

.vmhs-staff-livechat-desk__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

.vmhs-staff-livechat-desk .vmhs-gmail-desk__workspace {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.vmhs-staff-livechat-desk .vmhs-gmail-desk__inbox {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid var(--gmail-border, #dadce0);
  background: #fff;
}

.vmhs-staff-livechat-desk__inbox-head {
  padding: 0.45rem 0.9rem 0.3rem;
  background: #fff;
  flex-shrink: 0;
}

.vmhs-staff-livechat-desk .vmhs-gmail-desk__inbox-toolbar {
  flex-shrink: 0;
}

.vmhs-staff-livechat-desk__list {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
  overscroll-behavior: contain;
  background: #fff;
  border-radius: 0;
}

.vmhs-staff-livechat-desk .vmhs-gmail-desk__thread {
  min-height: 0;
  overflow: hidden;
  height: 100%;
}

.vmhs-staff-livechat-desk .vmhs-gmail-desk__empty-thread {
  min-height: 0;
  overflow: hidden;
}

.vmhs-staff-livechat-desk .vmhs-gmail-desk__thread-panel {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.vmhs-staff-livechat-desk .vmhs-gmail-desk__thread-header,
.vmhs-staff-livechat-desk .vmhs-gmail-desk__compose,
.vmhs-staff-livechat-desk #staffChatQueueBanner {
  flex-shrink: 0;
}

.vmhs-staff-livechat-desk .vmhs-gmail-desk__messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.vmhs-staff-livechat-desk .vmhs-gmail-msg {
  padding: 0.55rem 0;
}

.vmhs-staff-livechat-desk .vmhs-gmail-msg__avatar {
  width: 2rem;
  height: 2rem;
  font-size: 0.78rem;
}

.vmhs-staff-livechat-desk .vmhs-gmail-msg__body {
  font-size: 0.875rem;
  line-height: 1.45;
}

.vmhs-staff-livechat-desk .vmhs-gmail-desk__compose-bar textarea {
  min-height: 2.75rem;
  max-height: 6rem;
}

.vmhs-staff-livechat-desk .staff-chat-list-item.vmhs-dashboard-livechat__row {
  width: 100%;
  text-align: left;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.vmhs-staff-livechat-desk .staff-chat-list-item.vmhs-dashboard-livechat__row.is-active {
  background: linear-gradient(90deg, rgba(211, 227, 253, 0.65) 0%, #fff 100%);
  box-shadow: inset 3px 0 0 #1a73e8;
}

.vmhs-staff-livechat-desk .staff-chat-list-item.vmhs-dashboard-livechat__row.is-active.is-waiting {
  background: linear-gradient(90deg, #fef3c7 0%, rgba(211, 227, 253, 0.55) 100%);
}

.vmhs-staff-livechat-desk .vmhs-gmail-desk__details {
  min-height: 0;
  overflow: hidden;
}

.vmhs-staff-livechat-desk .vmhs-gmail-desk__details-body {
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (max-width: 991.98px) {
  .vmhs-staff-livechat-desk .vmhs-gmail-desk__workspace {
    position: relative;
  }

  .vmhs-staff-livechat-desk .vmhs-gmail-desk__inbox {
    position: absolute;
    inset: 0;
    z-index: 2;
  }

  .vmhs-staff-livechat-desk .vmhs-gmail-desk__inbox.is-mobile-hidden {
    display: none;
  }

  .vmhs-staff-livechat-desk.has-thread .vmhs-gmail-desk__inbox.is-mobile-hidden + .vmhs-gmail-desk__thread {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
  }

  .vmhs-staff-livechat-desk .vmhs-dashboard-livechat__row-chevron {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .vmhs-staff-livechat-desk .vmhs-dashboard-livechat__hero {
    padding: 0.85rem 1rem;
  }

  .vmhs-staff-livechat-desk__hero-actions {
    width: 100%;
  }

  .vmhs-staff-livechat-desk__hero-stats {
    gap: 0.35rem;
  }
}

/* ─── Dashboard executive inbox panel (styles in vmhs-dashboard.css) ─── */

/* ─── Public leadership contact ─── */
.vmhs-leadership-public .vmhs-leadership-aside {
  position: sticky;
  top: 1rem;
}

.vmhs-leadership-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.15rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.vmhs-leadership-card:hover {
  border-color: #c4b5fd;
  box-shadow: 0 12px 32px rgba(109, 40, 217, 0.1);
}

.vmhs-leadership-card__header {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.vmhs-leadership-card__avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  color: #6d28d9;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.vmhs-leadership-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.vmhs-leadership-card__meta {
  font-size: 0.82rem;
  color: #64748b;
}

.vmhs-leadership-card__bio {
  color: #475569;
  margin-bottom: 1rem;
}

.vmhs-leadership-card__foot {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
}

.vmhs-leadership-compose {
  border: 1px solid #e9d5ff;
  overflow: hidden;
}

.vmhs-leadership-compose__header {
  background: linear-gradient(90deg, #faf5ff 0%, #ffffff 100%);
}

.vmhs-leadership-compose__avatar {
  background: #ede9fe !important;
  color: #6d28d9 !important;
}

.vmhs-leadership-compose__body {
  padding: 1.25rem;
}

.vmhs-leadership-compose__bio {
  padding: 0.65rem 0.85rem;
  background: #f8fafc;
  border-radius: 0.65rem;
  border: 1px solid #e2e8f0;
}

.vmhs-live-public__topic--static {
  cursor: default;
  opacity: 0.92;
}

.vmhs-live-public__topic--static:hover {
  transform: none;
}

/* ─── Bonga na Governor ─── */
.vmhs-bonga-public .vmhs-bonga-aside__profile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.vmhs-bonga-aside__avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--vmhs-primary-hover, #92400e) 0%, var(--vmhs-brand, #B7670F) 100%);
  color: #fff;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.vmhs-bonga-widget {
  border: 1px solid #bbf7d0;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 28%);
  box-shadow: 0 18px 40px rgba(6, 95, 70, 0.08);
}

.vmhs-bonga-widget__header {
  background: linear-gradient(135deg, #064e3b 0%, var(--vmhs-primary-hover, #92400e) 100%);
  color: #fff;
}

.vmhs-bonga-widget__header .vmhs-live-widget__status,
.vmhs-bonga-widget__header .vmhs-live-widget__title {
  color: #fff;
}

.vmhs-bonga-widget__avatar {
  background: rgba(255, 255, 255, 0.18);
  color: #fef08a;
}

.vmhs-bonga-widget__online {
  color: #bbf7d0;
}

.vmhs-bonga-threads {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #dcfce7;
  background: #f8fffb;
}

.vmhs-bonga-threads__label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.45rem;
}

.vmhs-bonga-threads__list {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
}

.vmhs-bonga-threads__item {
  border: 1px solid #bbf7d0;
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  white-space: nowrap;
  color: #14532d;
}

.vmhs-bonga-threads__item.is-active,
.vmhs-bonga-threads__item:hover {
  background: var(--vmhs-brand, #B7670F);
  border-color: var(--vmhs-brand, #B7670F);
  color: #fff;
}

.vmhs-bonga-threads__item strong {
  font-weight: 600;
  margin-right: 0.35rem;
}

.vmhs-bonga-log {
  min-height: 18rem;
  max-height: 28rem;
}

.vmhs-bonga-banner {
  margin: 1rem 1.25rem 0;
  padding: 1rem 1.15rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 1px solid #86efac;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.vmhs-bonga-banner__copy h2 {
  color: #14532d;
}

.vmhs-bonga-banner__copy p {
  color: #166534;
}

.vmhs-bonga-widget-float {
  position: fixed;
  left: 1rem;
  bottom: 5.5rem;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.vmhs-app-shell .vmhs-bonga-widget-float {
  bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 992px) {
  .vmhs-app-shell .vmhs-bonga-widget-float {
    bottom: 1.25rem;
  }
}

.vmhs-bonga-widget-float__launcher {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, var(--vmhs-primary-hover, #92400e) 0%, var(--vmhs-brand, #B7670F) 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(6, 95, 70, 0.28);
  font-weight: 600;
  font-size: 0.88rem;
}

.vmhs-bonga-widget-float__launcher:hover,
.vmhs-bonga-widget-float__launcher:focus-visible {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(6, 95, 70, 0.32);
}

.vmhs-bonga-widget-float__launcher.is-open {
  background: #14532d;
}

.vmhs-bonga-widget-float__launcher-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  color: #fef08a;
}

.vmhs-bonga-widget-float__panel {
  width: min(20rem, calc(100vw - 2rem));
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid #bbf7d0;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.vmhs-bonga-widget-float__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, #064e3b 0%, var(--vmhs-primary-hover, #92400e) 100%);
  color: #fff;
}

.vmhs-bonga-widget-float__brand {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.vmhs-bonga-widget-float__brand strong {
  display: block;
  font-size: 0.92rem;
}

.vmhs-bonga-widget-float__brand span {
  display: block;
  font-size: 0.72rem;
  color: #bbf7d0;
}

.vmhs-bonga-widget-float__icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  color: #fef08a;
}

.vmhs-bonga-widget-float__close {
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
}

.vmhs-bonga-widget-float__body {
  padding: 1rem;
}

@media (max-width: 575px) {
  .vmhs-bonga-widget-float__launcher-text {
    display: none;
  }

  .vmhs-bonga-widget-float__launcher {
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    justify-content: center;
    border-radius: 999px;
  }
}
