#yx-floating-contact {
  --yx-fc-safe-bottom: env(safe-area-inset-bottom, 0px);
  position: fixed; z-index: 850;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(28px, env(safe-area-inset-bottom));
  width: 52px; margin: 0; padding: 0; border: 0;
  color: #fff; font-family: inherit; font-size: 14px; line-height: 1.4;
}
#yx-floating-contact, #yx-floating-contact * { box-sizing: border-box; letter-spacing: 0; }
#yx-floating-contact .yx-fc-toggle, #yx-floating-contact .yx-fc-link {
  display: flex; position: relative; align-items: center; justify-content: center;
  flex: none; padding: 0; border: 0; border-radius: 50%; color: #fff;
  text-decoration: none; cursor: pointer; list-style: none;
  box-shadow: 0 4px 12px rgb(0 0 0 / .16); -webkit-tap-highlight-color: transparent;
}
#yx-floating-contact .yx-fc-toggle { width: 52px; height: 52px; background: #000; }
#yx-floating-contact .yx-fc-toggle::-webkit-details-marker { display: none; }
#yx-floating-contact .yx-fc-toggle::marker { content: ''; }
#yx-floating-contact svg { display: block; width: 24px; height: 24px; flex: none; pointer-events: none; }
#yx-floating-contact .yx-fc-zalo svg { width: 30px; height: 30px; }
#yx-floating-contact-links {
  position: absolute; bottom: 64px; right: 2px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  margin: 0; padding: 0; width: 48px; list-style: none;
}
#yx-floating-contact:not([open]) > ul { display: none; }
#yx-floating-contact-links li { margin: 0; padding: 0; list-style: none; }
#yx-floating-contact .yx-fc-link { width: 48px; height: 48px; }
#yx-floating-contact .yx-fc-whatsapp { background: #087c45; }
#yx-floating-contact .yx-fc-zalo { background: #0068ff; }
#yx-floating-contact .yx-fc-email { background: #176b4d; }
#yx-floating-contact .yx-fc-phone { background: #303633; }
#yx-floating-contact :is(summary, a):focus-visible { outline: 3px solid #176b4d; outline-offset: 4px; box-shadow: 0 0 0 3px #fff; }
#yx-floating-contact .yx-fc-label {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  padding: 6px 10px; border-radius: 4px; background: #161918; color: #fff;
  font-size: 13px; font-weight: 500; line-height: 1.5; white-space: nowrap;
  opacity: 0; visibility: hidden; pointer-events: none;
}
#yx-floating-contact :is(summary, a):is(:hover, :focus-visible) .yx-fc-label { opacity: 1; visibility: visible; }
#yx-floating-contact[open] > ul { animation: yx-fc-in 180ms ease-out; }
#yx-floating-contact[data-compact] > ul { right: -6px; width: 72px; padding: 8px 16px 8px 8px; max-height: var(--yx-fc-list-height); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; }
#yx-floating-contact[data-compact] > ul > li { flex: 0 0 48px; }
#yx-floating-contact[data-compact] .yx-fc-link .yx-fc-label { display: none; }
#yx-floating-contact[data-modal] { visibility: hidden; }
@keyframes yx-fc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) {
  #yx-floating-contact { right: max(18px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); }
  #yx-floating-contact[open] .yx-fc-link .yx-fc-label { opacity: 1; visibility: visible; }
  #yx-floating-contact .yx-fc-toggle .yx-fc-label { display: none; }
}
@media (prefers-reduced-motion: reduce) { #yx-floating-contact[open] > ul { animation: none; } }

#yx-floating-zalo-dialog {
  width: min(400px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  margin: auto; padding: 24px; border: 1px solid #dce2df; border-radius: 8px;
  background: #fff; color: #172c24; font: inherit; line-height: 1.5;
  overflow: auto; overscroll-behavior: contain;
}
#yx-floating-zalo-dialog, #yx-floating-zalo-dialog * { box-sizing: border-box; letter-spacing: 0; }
#yx-floating-zalo-dialog:not([open]) { display: none; }
#yx-floating-zalo-dialog::backdrop { background: rgb(0 0 0 / .55); }
#yx-floating-zalo-dialog .yx-fc-zalo-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#yx-fc-zalo-title { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 600; }
#yx-floating-zalo-dialog [data-yx-fc-zalo-close] { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid #dce2df; border-radius: 4px; background: #fff; cursor: pointer; }
#yx-floating-zalo-dialog .yx-fc-zalo-identity { margin: 16px 0 12px; text-align: center; font-size: 16px; }
#yx-fc-zalo-hint { margin: 0; text-align: center; font-size: 14px; }
#yx-floating-zalo-dialog .yx-zalo-qr { display: block; width: 224px; max-width: 100%; height: auto; aspect-ratio: 1; margin: 0 auto 16px; object-fit: contain; background: #fff; }
#yx-floating-zalo-dialog .yx-fc-zalo-launch { display: flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 4px; background: #075dcc; color: #fff; font-size: 16px; text-decoration: none; }
#yx-floating-zalo-dialog .yx-fc-zalo-launch:hover { background: #064da9; }
#yx-floating-zalo-dialog :focus-visible { outline: 3px solid #187cc1; outline-offset: 3px; }
@media (max-width: 600px) { #yx-floating-zalo-dialog { padding: 16px; } }
