/* Hocdii Sky Chat — iOS Apple Emoji, Hocdii Stickers, Reply Quotes, Pin Bar & Messenger Lightbox */

/* iOS Apple Emoji Images */
.hcm-ios-emoji {
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.22em;
  display: inline-block;
  margin: 0 0.04em;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
.hcm-ios-emoji.is-jumbo {
  width: 44px;
  height: 44px;
  vertical-align: middle;
  margin: 0 2px;
}
.hcm-ios-emoji.is-trigger { width: 21px; height: 21px; vertical-align: middle; }
.hcm-ios-emoji.is-tab { width: 16px; height: 16px; vertical-align: -3px; }
.hcm-ios-emoji.is-cat { width: 19px; height: 19px; vertical-align: middle; }
.hcm-ios-emoji.is-grid { width: 24px; height: 24px; vertical-align: middle; }

/* Borderless Hocdii Mascot Sticker & Jumbo Emoji Bubbles */
.hcm-sky-bubble.hcm-bubble-sticker,
.hcm-chat-bubble.hcm-bubble-sticker {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 2px 0 !important;
}
.hcm-sticker-img {
  width: 132px;
  height: 132px;
  object-fit: contain;
  display: block;
  transition: transform .15s ease;
  user-select: none;
  filter: drop-shadow(0 4px 10px rgba(15, 37, 68, .10));
}
.hcm-sticker-img:hover { transform: scale(1.05); }
.hcm-sky-bubble.hcm-bubble-sticker small,
.hcm-chat-bubble.hcm-bubble-sticker small,
.hcm-sky-bubble.hcm-bubble-jumbo small,
.hcm-chat-bubble.hcm-bubble-jumbo small {
  color: #64748b !important;
  opacity: .9;
}

.hcm-sky-bubble.hcm-bubble-jumbo,
.hcm-chat-bubble.hcm-bubble-jumbo {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 2px 4px !important;
}

/* Clickable Chat Images cursor hint */
#hcm-chat-log img:not(.hcm-sticker-img):not(.hcm-conv-av-img):not(.hcm-ios-emoji),
#hcm-sky-messages img:not(.hcm-sticker-img):not(.hcm-conv-av-img):not(.hcm-ios-emoji) {
  cursor: zoom-in;
  transition: opacity .15s ease;
}
#hcm-chat-log img:not(.hcm-sticker-img):not(.hcm-conv-av-img):not(.hcm-ios-emoji):hover,
#hcm-sky-messages img:not(.hcm-sticker-img):not(.hcm-conv-av-img):not(.hcm-ios-emoji):hover {
  opacity: .92;
}

/* =========================================================================
   Message Hover/Tap Actions (Reply & Pin), Reply Bar, Quote Box & Pin Bar
   ========================================================================= */
.hcm-chat-bubble-row,
.hcm-sky-bubble-row {
  position: relative;
}
.hcm-msg-actions {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  align-self: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
  flex: none;
  margin: 0 4px;
}
.hcm-chat-bubble-row:hover .hcm-msg-actions,
.hcm-sky-bubble-row:hover .hcm-msg-actions,
.hcm-msg-actions:has(:focus-visible) {
  opacity: 1;
  pointer-events: auto;
}
@media (hover: none), (max-width: 960px) {
  .hcm-msg-actions { opacity: .78; }
}
.hcm-msg-act-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #e2eaf5;
  background: #fff;
  color: #475569;
  font-size: 13px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 1px 3px rgba(15, 37, 68, .08);
  transition: background .15s, color .15s, border-color .15s;
}
.hcm-msg-act-btn:hover {
  background: #eff6ff;
  color: #1677ff;
  border-color: #bfdbfe;
}

/* Quoted Reply Block inside Bubble */
.hcm-quote-box {
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 100%;
  text-align: left;
  border: 0;
  border-left: 3px solid rgba(22, 119, 255, .65);
  background: rgba(15, 37, 68, .06);
  color: inherit;
  border-radius: 8px;
  padding: 5px 8px;
  margin-bottom: 6px;
  cursor: pointer;
  font-family: inherit;
  box-sizing: border-box;
}
.is-agent .hcm-chat-bubble .hcm-quote-box,
.is-customer .hcm-sky-bubble .hcm-quote-box {
  border-left-color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .18);
  color: #fff;
}
.hcm-quote-box strong {
  font-size: 11px;
  font-weight: 700;
  opacity: .92;
  display: block;
}
.hcm-quote-box span {
  font-size: 11.5px;
  opacity: .85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 240px;
}

/* Jump-to-Message Pulse Flash */
.hcm-msg-flash .hcm-chat-bubble,
.hcm-msg-flash .hcm-sky-bubble {
  animation: hcmMsgPulse 1.5s ease-out;
}
@keyframes hcmMsgPulse {
  0% { box-shadow: 0 0 0 4px rgba(22, 119, 255, .45); }
  100% { box-shadow: 0 0 0 0 rgba(22, 119, 255, 0); }
}

/* Replying Preview Bar above Composer */
.hcm-reply-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 12px;
  background: #f0f6ff;
  border-top: 1px solid #dbeafe;
  border-left: 3px solid #1677ff;
  font-size: 12px;
  color: #0f2544;
  flex: none;
}
.hcm-reply-bar[hidden] { display: none !important; }
.hcm-reply-bar-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.hcm-reply-bar-info strong { font-size: 11.5px; color: #1677ff; }
.hcm-reply-bar-info span {
  font-size: 12px;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hcm-reply-bar-cancel {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 37, 68, .08);
  color: #475569;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  flex: none;
}
.hcm-reply-bar-cancel:hover { background: #dbeafe; color: #0f2544; }

/* Sticky Pinned Message Bar beneath Header */
.hcm-pin-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 12px;
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
  flex: none;
  z-index: 3;
}
.hcm-pin-bar[hidden] { display: none !important; }
.hcm-pin-main {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 2px 0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.hcm-pin-ico { font-size: 14px; flex: none; }
.hcm-pin-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.hcm-pin-copy strong { font-size: 11px; color: #b45309; font-weight: 800; }
.hcm-pin-copy small {
  font-size: 12px;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hcm-pin-unpin {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(180, 83, 9, .10);
  color: #b45309;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  flex: none;
}
.hcm-pin-unpin:hover { background: rgba(180, 83, 9, .22); }

/* Emoji Trigger Button */
.hcm-emoji-trigger {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 19px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
  padding: 0;
  transition: background .15s, transform .12s;
}
.hcm-emoji-trigger:hover,
.hcm-emoji-trigger.is-active {
  background: #e8f1ff;
  transform: scale(1.06);
}

/* Emoji + Sticker Popover */
.hcm-rich-pop {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  width: 326px;
  max-width: calc(100vw - 24px);
  height: 360px;
  max-height: 52vh;
  background: #fff;
  border: 1px solid #dbe6f4;
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(15, 37, 68, .18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 99999;
  font-family: "Be Vietnam Pro", "Segoe UI", Roboto, -apple-system, sans-serif;
}
.hcm-rich-pop[hidden] { display: none !important; }

.hcm-rp-head {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px 6px;
  border-bottom: 1px solid #eef2f7;
  background: #f8fbff;
  flex: none;
}
.hcm-rp-tab {
  flex: 1;
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 8px;
  border-radius: 9px;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.hcm-rp-tab.is-active {
  background: #fff;
  color: #1677ff;
  box-shadow: 0 1px 4px rgba(15, 37, 68, .10);
}
.hcm-rp-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  flex: none;
}
.hcm-rp-close:hover { background: #e2e8f0; color: #0f2544; }

.hcm-rp-search-wrap { padding: 7px 10px 4px; flex: none; }
.hcm-rp-search-wrap[hidden] { display: none !important; }
.hcm-rp-search {
  width: 100%;
  height: 34px;
  border: 1px solid #d5e2f2;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 13px;
  color: #0f2544;
  background: #f8fbff;
  box-sizing: border-box;
  outline: none;
  font-family: inherit;
}
.hcm-rp-search:focus { border-color: #1677ff; background: #fff; }

.hcm-rp-cats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  padding: 4px 8px 6px;
  border-bottom: 1px solid #f1f5f9;
  flex: none;
}
.hcm-rp-cats[hidden] { display: none !important; }
.hcm-rp-cat {
  flex: 1;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.hcm-rp-cat.is-active { background: #e8f1ff; }

.hcm-rp-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 10px 12px;
}
.hcm-rp-sec-title {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin: 4px 0 6px;
}
.hcm-rp-em-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 2px;
  margin-bottom: 10px;
}
.hcm-rp-em-btn {
  border: 0;
  background: transparent;
  border-radius: 8px;
  height: 36px;
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
  transition: transform .12s, background .12s;
}
.hcm-rp-em-btn:hover { background: #eff6ff; transform: scale(1.14); }

.hcm-rp-st-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.hcm-rp-st-btn {
  border: 1px solid transparent;
  background: #f8fbff;
  border-radius: 12px;
  padding: 5px;
  cursor: pointer;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  transition: transform .12s, border-color .15s, background .15s;
}
.hcm-rp-st-btn:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  transform: scale(1.06);
}
.hcm-rp-st-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.hcm-rp-empty { text-align: center; color: #64748b; font-size: 12.5px; margin: 24px 0; }

@media (max-width: 960px) {
  .hcm-rich-pop {
    left: 6px;
    right: 6px;
    width: auto;
    max-width: none;
    height: 310px;
    max-height: 46dvh;
  }
  .hcm-rp-search { font-size: 16px; }
  .hcm-rp-em-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .hcm-rp-em-btn { height: 40px; }
  .hcm-ios-emoji.is-grid { width: 27px; height: 27px; }
}

/* =========================================================================
   Messenger-Style Fullscreen Image Lightbox
   ========================================================================= */
.hcm-lb {
  position: fixed;
  inset: 0;
  z-index: 2147483500;
  background: rgba(8, 12, 22, .95);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  color: #fff;
  font-family: "Be Vietnam Pro", "Segoe UI", Roboto, -apple-system, sans-serif;
  user-select: none;
  animation: hcmLbFade .14s ease-out;
}
@keyframes hcmLbFade { from { opacity: 0; } to { opacity: 1; } }
.hcm-lb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0));
  flex: none;
  z-index: 2;
}
.hcm-lb-count { font-size: 13.5px; font-weight: 700; color: rgba(255, 255, 255, .92); }
.hcm-lb-tools { display: flex; align-items: center; gap: 6px; }
.hcm-lb-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .12);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.hcm-lb-btn:hover { background: rgba(255, 255, 255, .24); }
.hcm-lb-stage {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px 56px;
}
.hcm-lb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
  transition: transform .12s ease-out;
  touch-action: none;
}
.hcm-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  font-size: 26px !important;
  padding: 0 !important;
  z-index: 3;
}
.hcm-lb-nav.is-prev { left: 12px; }
.hcm-lb-nav.is-next { right: 12px; }
.hcm-lb-nav[hidden] { display: none !important; }
.hcm-lb-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  overflow-x: auto;
  flex: none;
  background: linear-gradient(0deg, rgba(0, 0, 0, .66), rgba(0, 0, 0, 0));
}
.hcm-lb-strip[hidden] { display: none !important; }
.hcm-lb-thumb {
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: 8px;
  border: 2px solid transparent;
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, .1);
  cursor: pointer;
  opacity: .58;
  transition: opacity .15s, border-color .15s, transform .15s;
}
.hcm-lb-thumb.is-active { opacity: 1; border-color: #38bdf8; transform: scale(1.06); }
.hcm-lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) {
  .hcm-lb-stage { padding: 8px 10px; }
  .hcm-lb-nav { width: 38px; height: 38px; font-size: 22px !important; }
  .hcm-lb-top { padding: 10px 10px; }
  .hcm-lb-btn { min-width: 34px; height: 34px; padding: 0 7px; font-size: 13px; }
}

/* Custom Sticker Manager inside Admin Settings */
.hcm-st-mgr { margin-top: 16px; padding-top: 14px; border-top: 1px solid #e2eaf5; }
.hcm-st-mgr h3 { margin: 0 0 6px; font-size: 14px; color: #0f2544; }
.hcm-st-mgr-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.hcm-st-mgr-row input[type="text"] { height: 36px; border: 1px solid #cbd5e1; border-radius: 8px; padding: 0 10px; font-size: 13px; }
.hcm-st-mgr-list { display: flex; flex-wrap: wrap; gap: 8px; }
.hcm-st-mgr-item { position: relative; width: 64px; height: 64px; border: 1px solid #dbe6f4; border-radius: 10px; background: #f8fbff; padding: 5px; display: grid; place-items: center; }
.hcm-st-mgr-item img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hcm-st-mgr-del { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: #dc2626; color: #fff; font-size: 13px; line-height: 1; cursor: pointer; display: grid; place-items: center; }

.hcm-rp-packs { display: flex; gap: 5px; margin-bottom: 8px; flex-wrap: wrap; }
.hcm-rp-pack { border: 1px solid #dbe6f4; background: #f8fbff; color: #475569; border-radius: 999px; padding: 4px 10px; font-size: 11.5px; font-weight: 700; cursor: pointer; font-family: inherit; }
.hcm-rp-pack.is-active { background: #1677ff; border-color: #1677ff; color: #fff; }

/* v2.2.8: Bigger Reply/Pin/Recall buttons, taller Pin/Reply bars, Admin recalled dimmed style */
.hcm-msg-act-btn {
  width: 34px !important;
  height: 34px !important;
  font-size: 16px !important;
}
.hcm-msg-act-btn img.emoji {
  width: 16px !important;
  height: 16px !important;
  pointer-events: none !important;
}
.hcm-msg-act-btn.is-recall:hover {
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border-color: #fecaca !important;
}
.hcm-pin-bar {
  padding: 9px 14px !important;
}
.hcm-pin-copy strong { font-size: 12px !important; }
.hcm-pin-copy small { font-size: 13px !important; }
.hcm-reply-bar {
  padding: 9px 14px !important;
}
.hcm-reply-bar-info strong { font-size: 12.5px !important; }
.hcm-reply-bar-info span { font-size: 13px !important; }
.hcm-chat-bubble-row.is-recalled .hcm-chat-bubble {
  opacity: .42 !important;
  filter: grayscale(.45);
}
.hcm-recalled-badge {
  display: inline-block;
  font-size: 11px;
  font-style: italic;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
}
.hcm-chat-bubble-row.is-agent.is-recalled .hcm-recalled-badge {
  color: rgba(255, 255, 255, .92);
}
@media (max-width: 960px) {
  .hcm-msg-act-btn {
    width: 36px !important;
    height: 36px !important;
    font-size: 17px !important;
  }
}

/* v2.3.0: Sleek Desktop SVG Action Pill + Messenger/Zalo Mobile Bottom Action Sheet */
.hcm-svg-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.hcm-msg-actions {
  background: #fff;
  border: 1px solid #e2eaf5;
  border-radius: 999px;
  padding: 2px 3px;
  gap: 2px !important;
  box-shadow: 0 2px 8px rgba(15, 37, 68, .10);
}
.hcm-msg-act-btn {
  width: 30px !important;
  height: 30px !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #475569;
  font-size: 14px !important;
}
.hcm-msg-act-btn:hover {
  background: #eff6ff !important;
  color: #1677ff !important;
}
.hcm-msg-act-btn.is-recall:hover {
  background: #fef2f2 !important;
  color: #dc2626 !important;
}

@media (max-width: 960px), (hover: none) {
  .hcm-msg-actions {
    display: none !important;
  }
}

.hcm-sheet-back {
  position: fixed;
  inset: 0;
  z-index: 2147483400;
  background: rgba(15, 23, 42, .46);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  font-family: "Be Vietnam Pro", "Segoe UI", Roboto, -apple-system, sans-serif;
  animation: hcmLbFade .14s ease-out;
}
.hcm-sheet-card {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: hcmSheetUp .18s cubic-bezier(.22, 1, .36, 1);
}
@keyframes hcmSheetUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hcm-sheet-preview {
  background: rgba(255, 255, 255, .96);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 13px;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 6px 20px rgba(15, 23, 42, .14);
}
.hcm-sheet-list {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .18);
  display: flex;
  flex-direction: column;
}
.hcm-sheet-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  color: #0f2544;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.hcm-sheet-btn:last-child { border-bottom: 0; }
.hcm-sheet-btn:active { background: #f1f5f9; }
.hcm-sheet-btn.is-danger { color: #dc2626; }
.hcm-sheet-cancel {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: #475569;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 6px 20px rgba(15, 23, 42, .14);
}
.hcm-sheet-cancel:active { background: #f1f5f9; }

/* v2.4.0: PWA Push Bell Buttons & iOS Guide Modal */
.hcm-sky-push-btn {
  position: relative;
  margin-right: 4px;
  font-size: 16px !important;
  transition: background .15s, transform .12s, opacity .15s;
}
.hcm-sky-push-btn.is-on {
  background: rgba(16, 185, 129, .34) !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .55);
  opacity: 1;
}
.hcm-sky-push-btn.is-on::after {
  content: '';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  border: 1.5px solid #1677ff;
}
.hcm-push-btn.is-on {
  background: #ecfdf5 !important;
  border-color: #6ee7b7 !important;
  color: #047857 !important;
}
.hcm-sky-push-btn.is-off {
  background: rgba(255, 255, 255, .10) !important;
  opacity: .72;
}
.hcm-sky-push-btn.is-busy {
  opacity: .5;
  pointer-events: none;
}
.hcm-push-btn.is-off {
  color: #64748b;
}
.hcm-sky-ios-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: #eff6ff;
  border-bottom: 1px solid #dbeafe;
  color: #1e3a8a;
  font-size: 11.5px;
  line-height: 1.35;
  flex: none;
}
.hcm-sky-ios-bar[hidden] { display: none !important; }
.hcm-ios-bar-txt {
  flex: 1;
  min-width: 0;
  font-weight: 600;
}
.hcm-ios-bar-btn {
  flex: none;
  border: 0;
  border-radius: 999px;
  background: #1677ff;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  cursor: pointer;
  font-family: inherit;
}
.hcm-ios-bar-x {
  flex: none;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 17px;
  line-height: 1;
  padding: 0 3px;
  cursor: pointer;
}
.hcm-modal-backdrop.hcm-ios-guide-back {
  position: fixed;
  inset: 0;
  z-index: 2147483550;
  background: rgba(15, 23, 42, .52);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: "Be Vietnam Pro", "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}
.hcm-ios-guide-back .hcm-modal-card {
  width: 100%;
  max-width: 420px;
  max-height: 88dvh;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #dbe6f4;
  box-shadow: 0 22px 54px rgba(15, 23, 42, .28);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hcm-ios-guide-back .hcm-modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #e6edf7;
}
.hcm-ios-guide-back .hcm-modal-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex: none;
}
.hcm-ios-guide-back .hcm-modal-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #0f2544;
}
.hcm-ios-guide-back .hcm-modal-body {
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #334155;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hcm-ios-guide-back .hcm-ig-intro {
  margin: 0;
}
.hcm-ig-group {
  background: #f8fbff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 10px 12px;
}
.hcm-ig-tag {
  font-size: 12.5px;
  font-weight: 800;
  color: #1d4ed8;
  margin-bottom: 6px;
}
.hcm-ig-steps {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #0f2544;
  font-size: 12.5px;
  font-weight: 500;
}
.hcm-ios-guide-back .hcm-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 16px 14px;
  border-top: 1px solid #e6edf7;
  background: #fbfdff;
}
.hcm-ios-guide-back .hcm-modal-btn {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f2544;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.hcm-ios-guide-back .hcm-modal-btn.hcm-adm-btn-primary {
  background: #1677ff;
  border-color: #1677ff;
  color: #fff;
}


/* v2.5.0: Messenger-style Message Reactions (Desktop Popover + Mobile Sheet Row + Bubble Badge) */
.hcm-sky-bubble,
.hcm-chat-bubble {
  position: relative !important;
  overflow: visible !important;
}
.hcm-sky-bubble-row.has-reactions,
.hcm-chat-bubble-row.has-reactions {
  margin-bottom: 14px !important;
}
.hcm-react-pop {
  position: fixed;
  z-index: 2147483560;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 5px 7px;
  background: #fff;
  border: 1px solid #dbe6f4;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .2);
  animation: hcmReactPop .14s cubic-bezier(.22, 1, .36, 1);
}
@keyframes hcmReactPop {
  from { opacity: 0; transform: translateY(6px) scale(.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.hcm-react-btn {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: transform .13s cubic-bezier(.22, 1, .36, 1), background .12s;
}
.hcm-react-btn:hover {
  transform: scale(1.28) translateY(-3px);
  background: #f0f6ff;
}
.hcm-react-btn.is-active {
  background: #dbeafe;
  box-shadow: inset 0 0 0 1.5px #3b82f6;
}
.hcm-react-btn .hcm-ios-emoji.is-react {
  width: 22px;
  height: 22px;
}
.hcm-sheet-reacts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 10px 10px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, .12);
  margin-bottom: 8px;
}
.hcm-sheet-react-btn {
  width: 40px;
  height: 40px;
  flex: 1;
  max-width: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: transform .12s, background .12s;
}
.hcm-sheet-react-btn:active {
  transform: scale(1.18);
  background: #eff6ff;
}
.hcm-sheet-react-btn.is-active {
  background: #dbeafe;
  box-shadow: inset 0 0 0 2px #2563eb;
}
.hcm-sheet-react-btn .hcm-ios-emoji.is-react {
  width: 26px;
  height: 26px;
}
.hcm-react-badge {
  position: absolute !important;
  bottom: -12px !important;
  right: 10px;
  z-index: 3;
  display: inline-flex !important;
  align-items: center;
  gap: 3px;
  width: auto !important;
  min-width: 24px !important;
  min-height: 22px !important;
  height: 22px !important;
  padding: 2px 7px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  background: #fff !important;
  border: 1.5px solid #e2eaf5 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .14) !important;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px !important;
  font-weight: 700;
  color: #334155 !important;
  line-height: 1 !important;
  animation: hcmReactPop .15s cubic-bezier(.22, 1, .36, 1);
}
.hcm-sky-bubble.is-customer .hcm-react-badge,
.hcm-chat-bubble-row.is-agent .hcm-react-badge {
  right: auto;
  left: 10px;
}
.hcm-react-badge.has-mine {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}
.hcm-react-badge .hcm-ios-emoji.is-react-badge {
  width: 14px;
  height: 14px;
  margin: 0;
}
.hcm-react-cnt {
  font-size: 10.5px;
  font-weight: 800;
  margin-left: 1px;
}
