/* Replace the two legacy floating widgets on this site. */
.chld-lien-he-nhanh-active .hotline-phone-ring-wrap,
.chld-lien-he-nhanh-active .zalo-container > #zalo-btn { display: none !important; }
.chld-lien-he-nhanh-active .zalo-container:has(> #zalo-btn) { display: none !important; }

.chld-quick-contact {
  position: fixed;
  z-index: 1000;
  left: max(18px, env(safe-area-inset-left));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: grid;
  gap: 8px;
  width: 186px;
  margin: 0;
  font-family: system-ui, sans-serif;
  color-scheme: light;
}
.chld-quick-contact *, .chld-quick-contact *::before { box-sizing: border-box; }
.chld-quick-contact .chld-contact-action {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 7px 10px;
  border: 1px solid #e7af00;
  border-radius: 10px;
  background: #fff7d1;
  color: #262116;
  text-decoration: none;
  box-shadow: 0 2px 12px #0002;
}
.chld-quick-contact .chld-contact-primary { background: #ffd44a; }
.chld-quick-contact .chld-contact-zalo { background: #075ccf; border-color: #075ccf; color: #fff; }
.chld-quick-contact .chld-contact-action:hover { filter: brightness(.94); }
.chld-quick-contact .chld-contact-action:focus-visible { outline: 3px solid #171717; outline-offset: 2px; }
.chld-contact-icon {
  display: grid;
  place-items: center;
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #fff;
  color: #292316;
  font: 700 17px/1 system-ui, sans-serif;
}
.chld-contact-zalo .chld-contact-icon { color: #075ccf; }
.chld-contact-text { display: grid; min-width: 0; line-height: 1.2; }
.chld-contact-label { font-size: 11px; font-weight: 650; }
.chld-contact-number { font-size: 15px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chld-contact-spacer { display: none; }

@media (max-width: 680px) {
  .chld-quick-contact {
    inset: auto 0 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: auto;
    gap: 4px;
    padding: 5px max(5px, env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(5px, env(safe-area-inset-left));
    background: #242019;
  }
  .chld-quick-contact .chld-contact-action { flex-direction: column; justify-content: center; gap: 2px; padding: 4px 1px; min-height: 61px; box-shadow: none; text-align: center; border-radius: 7px; }
  .chld-contact-icon { width: 20px; height: 20px; flex-basis: 20px; font-size: 13px; }
  .chld-contact-label { font-size: 10px; }
  .chld-contact-number { font-size: clamp(10px, 3.1vw, 14px); }
  .chld-contact-spacer { display: block; height: calc(71px + env(safe-area-inset-bottom)); }
  body.chld-lien-he-nhanh-active .back-to-top { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

@media print {
  .chld-quick-contact, .chld-contact-spacer { display: none !important; }
}
