/* Floating contact buttons (home by default; can be enabled sitewide).
   Extracted from templates/cms/home.html to avoid inline CSS.
*/

.floating-contact {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.floating-btn-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
  transition: transform .15s ease-out, box-shadow .15s ease-out;
  font-size: 20px;
  position: relative;
  overflow: visible;
}

.floating-btn-circle.zalo {
  background: #008ff5;
}

.floating-btn-circle.chat {
  background: #e91e63;
}

.floating-btn-circle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
  color: #fff;
}

.floating-btn-hotline {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: #ff1744;
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px 6px 16px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  transition: transform .15s ease-out, box-shadow .15s ease-out;
  white-space: nowrap;
}

.floating-btn-hotline:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .4);
  color: #fff;
}

.floating-hotline-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: #ff1744;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  font-size: 20px;
  position: relative;
  overflow: visible;
}

/* Ripple waves */
.floating-btn-circle .wave,
.floating-hotline-icon .wave {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  animation: ripple 2s linear infinite;
}

.floating-hotline-icon .wave {
  width: 36px;
  height: 36px;
  border-color: rgba(255, 23, 68, 0.6);
}

.floating-btn-circle .wave:nth-of-type(1),
.floating-hotline-icon .wave:nth-of-type(1) {
  animation-delay: 0s;
}

.floating-btn-circle .wave:nth-of-type(2),
.floating-hotline-icon .wave:nth-of-type(2) {
  animation-delay: 0.6s;
}

.floating-btn-circle .wave:nth-of-type(3),
.floating-hotline-icon .wave:nth-of-type(3) {
  animation-delay: 1.2s;
}

@keyframes ripple {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.4);
    opacity: 0;
  }
}

@media (max-width: 575.98px) {
  .floating-contact {
    right: 8px;
    bottom: 8px;
    gap: 6px;
  }
  .floating-btn-circle {
    width: 42px;
    height: 42px;
  }
  .floating-btn-hotline {
    font-size: 13px;
    padding: 6px 10px 6px 14px;
  }
  .floating-hotline-icon {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
}
