/* ===== 5 Floating Contact Buttons (cw-fab v2) ===== */
:root {
  --cw-wx:    #07c160;
  --cw-wa:    #25d366;
  --cw-tel:   #ff8c00;
  --cw-mail:  #ea4335;
  --cw-zh:    #0a2540;
  --cw-bg:    #ffffff;
  --cw-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
}

.cw-fab-stack {
  position: fixed;
  right: 18px;
  bottom: 100px;
  z-index: 1090;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple Color Emoji", "Segoe UI Emoji", Roboto, sans-serif;
}

.cw-fab {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cw-bg);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: var(--cw-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  overflow: hidden;
  font-weight: 700;
}

.cw-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.32);
}

.cw-fab .cw-icon { font-size: 26px; line-height: 1; pointer-events: none; }
.cw-fab .cw-icon.cw-emoji { font-size: 28px; }
.cw-fab .cw-icon.cw-text { font-size: 22px; font-weight: 800; }

.cw-fab.cw-wechat  { background: var(--cw-wx); }
.cw-fab.cw-whatsapp { background: var(--cw-wa); }
.cw-fab.cw-tel     { background: var(--cw-tel); }
.cw-fab.cw-mail    { background: var(--cw-mail); }
.cw-fab.cw-zh      { background: var(--cw-zh); }

.cw-fab .cw-tag {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.cw-fab .cw-tag::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  border: 4px solid transparent;
  border-left-color: rgba(15, 23, 42, 0.92);
}
.cw-fab:hover .cw-tag {
  opacity: 1;
  transform: translateY(-50%) translateX(-4px);
}

.cw-popover {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
  padding: 12px;
  width: 180px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.cw-popover img { width: 100%; height: auto; display: block; border-radius: 4px; }
.cw-popover p { margin: 6px 0 0; font-size: 12px; color: #6b7280; }
.cw-fab:hover .cw-popover {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 640px) {
  .cw-fab .cw-tag { display: none; }
  .cw-fab-stack { right: 12px; bottom: 80px; gap: 10px; }
  .cw-fab { width: 48px; height: 48px; font-size: 22px; }
  .cw-fab .cw-icon.cw-emoji { font-size: 24px; }
}
