/* SPEC_FLOATING_CONTACT_BUTTON.md -- floating Phone/Zalo/LINE contact button.
   Injected site-wide via inject_before_head_close in Consulting/subdomain_urls.py,
   same mechanism as mobile-lang-switch.js. Uses <details>/<summary> for the
   expand/collapse toggle so no JS is needed -- native keyboard + screen-reader
   support comes from the browser. */

#cst-float-contact {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 999;
}

#cst-float-contact .cst-fc-details {
  display: block;
}

#cst-float-contact summary.cst-fc-toggle {
  list-style: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #B45309;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  font-size: 22px;
  user-select: none;
}

#cst-float-contact summary.cst-fc-toggle::-webkit-details-marker,
#cst-float-contact summary.cst-fc-toggle::marker {
  display: none;
  content: '';
}

#cst-float-contact summary.cst-fc-toggle:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

#cst-float-contact .cst-fc-menu {
  position: absolute;
  right: 0;
  bottom: 62px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

#cst-float-contact .cst-fc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

#cst-float-contact .cst-fc-btn:focus-visible {
  outline: 3px solid #212529;
  outline-offset: 2px;
}

#cst-float-contact .cst-fc-call { background: #2FBF71; }
#cst-float-contact .cst-fc-zalo { background: #0068FF; }
#cst-float-contact .cst-fc-line { background: #06C755; }

@media (max-width: 640px) {
  #cst-float-contact {
    right: 12px;
    bottom: 12px;
  }
  #cst-float-contact summary.cst-fc-toggle {
    width: 46px;
    height: 46px;
    font-size: 20px;
  }
  #cst-float-contact .cst-fc-btn {
    width: 44px;
    height: 44px;
  }
}
