.krongpa-floating-contact {
  position: fixed;
  z-index: 9999;
  bottom: 50%;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateY(50%);
}

.krongpa-floating-contact__action {
  display: flex;
  width: 50px;
  height: 50px;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  padding: 0 15px;
  border-radius: 15px;
  box-shadow: 0 12px 28px rgb(9 45 37 / 24%);
  color: #fff;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: width 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.krongpa-floating-contact__action:hover,
.krongpa-floating-contact__action:focus-visible {
  width: 142px;
  transform: translateX(3px);
  box-shadow: 0 16px 34px rgb(9 45 37 / 30%);
  outline: 3px solid #d8f36b;
  outline-offset: 3px;
}

.krongpa-floating-contact__action--zalo { background: #0068ff; }
.krongpa-floating-contact__action--call { background: #167452; }

.krongpa-floating-contact__icon {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 900;
}

@media (max-width: 640px) {
  .krongpa-floating-contact {
    bottom: max(14px, env(safe-area-inset-bottom));
    right: 14px;
    flex-direction: row;
    transform: none;
  }

  .krongpa-floating-contact__action,
  .krongpa-floating-contact__action:hover,
  .krongpa-floating-contact__action:focus-visible {
    width: auto;
    height: 46px;
    border-radius: 999px;
    transform: translateY(0);
  }

  .krongpa-floating-contact__action:hover,
  .krongpa-floating-contact__action:focus-visible {
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .krongpa-floating-contact__action { transition: none; }
}
