.cfw {
  position: fixed;
  left: 14px;
  bottom: 18px;
  z-index: 9999;

  display: flex;
  flex-direction: column;
  gap: 12px;

}

/* Button base */
.cfw-btn {
  width: 52px;
  height: 52px;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;

  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  font-weight: 600;

  box-shadow: 0 10px 25px rgba(0,0,0,.25);
  overflow: hidden;
  white-space: nowrap;

  transition: all .25s ease;
}

/* Icon-only */
.cfw-btn span { display: none; }

/* Icon font */
.cfw-btn i {
  font-size: 20px;
  line-height: 1;
}

/* ===== CMYTK COLORS ===== */
.cfw-btn.call {
  background: #00BCD4; /* Cyan */
}

.cfw-btn.zalo {
  background: #E91E63; /* Magenta */
}

.cfw-btn.mess {
  background: #F4C20D; /* Yellow */
  color: #111;
}

/* Toggle button (K – Black) */
.cfw-toggle {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: none;

  background: radial-gradient(120% 120% at 30% 20%, #2a2a2a 0%, #0b0b0b 55%, #000 100%);
  color: transparent; /* hide fallback glyph */
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  position: relative;
  border: 1px solid rgba(255,255,255,.10);

  box-shadow: 0 10px 25px rgba(0,0,0,.3);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.cfw-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,.35);
  border-color: rgba(255,255,255,.16);
}

.cfw-toggle:active {
  transform: translateY(0);
}

.cfw-toggle:focus-visible {
  outline: 3px solid rgba(0, 188, 212, .45);
  outline-offset: 3px;
}

/* Hamburger / close icon */
.cfw-toggle::before,
.cfw-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.cfw-toggle::before {
  box-shadow: 0 -7px 0 #fff, 0 7px 0 #fff;
}

.cfw-toggle::after {
  opacity: 0;
}

/* When buttons are visible, show an "X" */
.cfw:not(.is-hidden) .cfw-toggle::before {
  box-shadow: none;
  transform: translate(-50%, -50%) rotate(45deg);
}

.cfw:not(.is-hidden) .cfw-toggle::after {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Hidden state */
.cfw.is-hidden .cfw-btn {
  display: none;
}

/* Mobile */
@media (max-width: 480px) {
  .cfw { display: none; }
}

/* iPad / tablet */
@media (max-width: 1024px) {
  .cfw { display: none; }
}
