/* Contact rail reserves its own space; contact values come from Liudao settings. */
body { padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }
.contact-rail { position: fixed; z-index: 150; bottom: max(12px, env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); display: flex; align-items: stretch; justify-content: center; width: min(440px, calc(100% - 32px)); padding: 6px; background: #fff; border: 1px solid #dce3ec; border-radius: 18px; box-shadow: 0 8px 35px #10253f24; }
.contact-rail-caption { display: none; }
.contact-rail > a, .contact-popover { flex: 1; min-width: 0; }
.contact-rail-action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 62px; padding: 7px 4px; border-radius: 12px; background: transparent; color: #29425c; font-size: 14px; line-height: 1.25; font-weight: 650; text-decoration: none; cursor: pointer; text-align: center; list-style: none; }
.contact-rail-action::-webkit-details-marker { display: none; }
.contact-rail-action:hover, .contact-popover[open] > summary { color: var(--contact-accent, #2563eb); background: var(--contact-hover, #eff4ff); }
.contact-rail-action:focus-visible, .contact-panel-close:focus-visible { outline: 3px solid #245bdb; outline-offset: 3px; }
.contact-rail-icon { display: grid; place-items: center; width: 26px; height: 26px; color: var(--contact-accent, #2563eb); }
.contact-rail-icon svg { width: 25px; height: 25px; stroke-width: 2; }
.contact-contact { --contact-accent: #0891b2; --contact-hover: #ecfeff; }
.contact-whatsapp { --contact-accent: #16a34a; --contact-hover: #f0fdf4; }
.contact-phone { --contact-accent: #2563eb; --contact-hover: #eff6ff; }
.contact-email { --contact-accent: #d97706; --contact-hover: #fffbeb; }
.contact-rail-quote { --contact-accent: #7c3aed; --contact-hover: #f5f3ff; }
.contact-back-top { --contact-accent: #475569; --contact-hover: #f1f5f9; }
.contact-back-top { position: absolute; right: 0; bottom: calc(100% + 12px); width: 44px; height: 44px; min-height: 44px; padding: 0; background: #fff; border: 1px solid #dce3ec; border-radius: 12px; box-shadow: 0 4px 16px #26364814; }
.contact-back-top .contact-rail-icon, .contact-back-top .contact-rail-icon svg { width: 20px; height: 20px; }
.contact-back-top-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.contact-overview-secondary { display: none; }
.contact-panel { position: absolute; bottom: calc(100% + 12px); left: 0; width: 100%; max-height: calc(100svh - 160px); overflow: auto; padding: 28px; border: 1px solid #dce3ec; border-radius: 18px; box-shadow: 0 12px 45px #10253f26; background: white; color: #10253f; }
.contact-panel .contact-panel-brand { color: #245bdb; font-size: 14px; font-weight: 700; margin: 0 32px 8px 0; }
.contact-panel h2 { font-size: 24px; line-height: 1.25; margin: 0 0 14px; letter-spacing: -.025em; }
.contact-panel p { font-size: 16px; line-height: 1.6; margin: 0 0 22px; }
.contact-panel-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; font-size: 26px; color: #526477; border: 0; border-radius: 50%; background: #f3f6fa; cursor: pointer; }
.contact-panel-close[hidden] { display: none; }
.contact-details { margin: 0 0 24px; }
.contact-details > div { padding: 13px 0; border-top: 1px solid #e5ebf1; }
.contact-details dt { color: #586b7d; font-size: 14px; font-weight: 600; }
.contact-details dd { margin: 4px 0 0; font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
.contact-details a { color: #245bdb; text-decoration: underline; text-underline-offset: 3px; }
body .contact-panel-cta { width: 100%; min-height: 48px; font-size: 16px; }
.contact-panel .contact-demo-note { font-size: 14px; color: #637181; margin: 16px 0 0; line-height: 1.5; }
.contact-qr { width: 220px; max-width: 100%; margin: 16px auto; background: #fff; border: 1px solid #e5ebf1; border-radius: 12px; padding: 10px; }
.contact-qr svg { display: block; width: 100%; height: auto; }
.contact-panel .contact-qr-fallback { font-size: 14px; margin: 0; }
.contact-panel .contact-channel-hint { font-size: 15px; margin-bottom: 16px; }
.contact-panel .contact-value-label { font-size: 14px; color: #586b7d; margin: 12px 0 4px; }
.contact-panel .contact-value { font-size: 21px; font-weight: 700; line-height: 1.5; margin: 0 0 18px; overflow-wrap: anywhere; user-select: all; }
.contact-channel-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-channel-actions > * { flex: 1 1 120px; }
.contact-copy { min-height: 44px; padding: 9px 12px; border: 1px solid #ccd8e6; border-radius: 8px; background: #f3f7fc; font-size: 14px; font-weight: 650; color: #245bdb; cursor: pointer; }
.contact-copy[hidden] { display: none; }
.contact-copy:focus-visible { outline: 3px solid #245bdb; outline-offset: 3px; }
.contact-details .contact-copy { margin-top: 8px; }
.contact-panel .contact-app-hint { font-size: 14px; line-height: 1.6; color: #637181; margin: 18px 0 0; }
.contact-panel .contact-copy-status { margin: 12px 0 0; min-height: 1.5em; font-size: 14px; color: #087644; }
.contact-copy-buffer { position: absolute; width: 1px; height: 1px; opacity: 0; }
.nav-is-open .contact-rail { display: none; }
@media (min-width: 1100px) {
  body { padding-left: 0; padding-right: 104px; padding-bottom: 0; }
  .contact-rail { left: auto; right: 12px; top: 50%; bottom: auto; transform: translateY(-50%); width: 70px; flex-direction: column; padding: 6px 4px; border-radius: 16px; }
  .contact-overview-secondary { display: block; }
  .contact-rail .contact-rail-caption { display: block; text-align: center; color: #748296; font-size: 9px; font-weight: 700; letter-spacing: .015em; margin: 5px 0 6px; }
  .contact-rail-action { min-height: 58px; padding: 6px 1px; margin: 1px 0; gap: 4px; font-size: 12px; border-radius: 10px; }
  .contact-rail-icon, .contact-rail-icon svg { width: 20px; height: 20px; }
  .contact-back-top { position: static; width: auto; height: auto; border: 0; box-shadow: none; }
  .contact-back-top-label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
  .contact-panel { top: 50%; bottom: auto; left: auto; right: calc(100% + 12px); transform: translateY(-50%); width: 350px; max-height: calc(100svh - 100px); }
}
@media (max-width: 1399px) {
  .js .primary-navigation { max-height: var(--navigation-height, calc(100svh - 190px)); }
}
@media (max-width: 400px) {
  .contact-panel { padding: 24px 20px; }
}
@media (max-width: 650px) {
  /* Remain available while the mobile contact overview collapses other actions. */
  .contact-rail.has-contact-overview > a.contact-rail-action.contact-back-top { display: flex; }
}
@media print {
  body { padding: 0; }
  .contact-rail { display: none !important; }
}
