/* BURENIE reference: separate round Zalo and phone actions, lower right. */
.floating-contact {
  position: fixed;
  z-index: 40;
  right: max(24px, env(safe-area-inset-right, 0px));
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.floating-contact__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(13,27,42,.08), 0 12px 32px rgba(13,27,42,.06);
  transition: transform .2s;
}
.floating-contact__link--zalo { background: #0068ff; }
.floating-contact__link--phone { background: #0f8a5f; }
.floating-contact__phone-icon { display: block; }
.floating-contact__zalo-mark {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.04em;
  color: #fff;
  line-height: 1;
}
.floating-contact__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.floating-contact__link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255,255,255,.45);
  opacity: 0;
  animation: contact-ring 2.5s ease-out infinite;
  pointer-events: none;
}
.floating-contact__link--phone::after { animation-delay: .5s; }
.floating-contact__link:focus-visible { outline: 3px solid #926621; outline-offset: 4px; }
@media (hover: hover) { .floating-contact__link:hover { transform: scale(1.08); } }
@keyframes contact-ring {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,.35); opacity: .9; }
  100% { box-shadow: 0 0 0 14px rgba(255,255,255,0); opacity: 0; }
}
/* Leave enough scrolling room to reach the last links above the fixed buttons. */
html { scroll-padding-bottom: calc(160px + env(safe-area-inset-bottom, 0px)); }
.footer-bottom { padding-bottom: calc(160px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 768px) {
  .floating-contact {
    right: max(18px, env(safe-area-inset-right, 0px));
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    gap: 9px;
  }
  .floating-contact__link { width: 52px; height: 52px; }
  body:has(input:focus, textarea:focus, select:focus, [contenteditable="true"]:focus) .floating-contact {
    visibility: hidden;
    pointer-events: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .floating-contact__link { transition: none; }
  .floating-contact__link::after { animation: none; }
}
@media print { .floating-contact { display: none; } }
