/* ========================================================================
   Halo Floating Contact — Frontend Styles v1.1
   ======================================================================== */

/* Container */
.hfc-container {
  position: fixed;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 99999;
  pointer-events: none;
}
.hfc-container > * {
  pointer-events: auto;
}
.hfc-pos-bottom-right {
  right: 16px;
  align-items: flex-end;
}
.hfc-pos-bottom-left {
  left: 16px;
  align-items: flex-start;
}

/* ——— Base Button ——— */
.hfc-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  border-radius: 50px;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: visible;
}
.hfc-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ——— Icon ——— */
.hfc-icon {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--hfc-color);
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}
.hfc-icon-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 50%;
}
/* Zalo icon is already circular, no border-radius needed for the img */
.hfc-type-zalo .hfc-icon-img {
  width: 48px;
  height: 48px;
  border-radius: 0;
}
.hfc-type-zalo .hfc-icon {
  background: transparent;
}

/* ——— Label (Pill styles) ——— */
.hfc-label {
  position: relative;
  z-index: 2;
  padding: 0 16px 0 6px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  background: var(--hfc-color);
  line-height: 48px;
  border-radius: 0 24px 24px 0;
}

/* ——— Pulse Animation Ring ——— */
@keyframes hfc-ring-pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0;   }
}

.hfc-pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid var(--hfc-color);
  animation: hfc-ring-pulse 1.4s ease-out infinite;
  z-index: 1;
  pointer-events: none;
}

/* ——— Style: Simple ——— */
.hfc-style-simple .hfc-icon {
  /* just the circle */
}

/* ——— Style: Pulse ——— */
.hfc-style-pulse .hfc-icon {
  /* circle with pulse ring behind */
}

/* ——— Style: Pill ——— */
.hfc-style-pill {
  background: var(--hfc-color);
}

/* ——— Style: Pill + Pulse ——— */
.hfc-style-pill-pulse {
  background: var(--hfc-color);
}

/* ——— Visibility ——— */
@media (min-width: 768px) {
  .hfc-hide-desktop { display: none !important; }
}
@media (max-width: 767px) {
  .hfc-hide-mobile { display: none !important; }
  /* Smaller buttons on mobile */
  .hfc-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
  .hfc-pulse-ring {
    width: 44px;
    height: 44px;
  }
  .hfc-label {
    font-size: 14px;
    line-height: 44px;
  }
  .hfc-icon-img {
    width: 26px;
    height: 26px;
  }
  .hfc-type-zalo .hfc-icon-img {
    width: 44px;
    height: 44px;
  }
}
