/*
 * Floating contact buttons (Messenger, hotline, Zalo) – the Khèn theme stack in the G.Master colours:
 * one brand-red pill with white icons, a dark ring like the header.
 */
.gmaster-float-actions {
  position: fixed;
  right: 20px;
  bottom: 90px;
  z-index: 1100;
}

.gmaster-float-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 46px;
  padding: 12px 0;
  border-radius: 9999px;
  background: #e30000;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.35),
    0 0 0 2px var(--gmaster-black, #0a0a0a),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  isolation: isolate;
}

.gmaster-float-stack::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.gmaster-float-btn {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: transform 180ms ease, background-color 180ms ease;
}

.gmaster-float-btn img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
  transition: transform 180ms ease, filter 180ms ease;
}

.gmaster-float-btn--hotline img {
  width: 22px;
  height: 22px;
}

.gmaster-float-btn:hover,
.gmaster-float-btn:focus-visible {
  background: rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

.gmaster-float-btn:hover img,
.gmaster-float-btn:focus-visible img {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.gmaster-float-btn:active {
  transform: scale(0.96);
}

.gmaster-float-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .gmaster-float-actions {
    right: 10px;
    bottom: 24px;
  }

  .gmaster-float-stack {
    width: 42px;
    gap: 8px;
    padding: 10px 0;
  }

  .gmaster-float-btn {
    width: 34px;
    height: 34px;
  }

  .gmaster-float-btn img {
    width: 24px;
    height: 24px;
  }
}
