/* 固定聯絡入口：保留原有手機預約列及安全區。 */
.contact-float { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: 24px; z-index: 25; display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.contact-btn { display: flex; align-items: center; justify-content: center; gap: 9px; width: 164px; min-height: 48px; padding: 9px 14px; border: 1px solid #dedede; border-radius: 28px; background: #fff; color: #333; box-shadow: 0 3px 14px #00000014; font: 700 14px/1.3 var(--sans); text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.contact-btn svg { width: 22px; height: 22px; color: #174d3b; }
.contact-wa svg { color: #25d366; }
.contact-btn:hover { border-color: #174d3b; box-shadow: 0 3px 14px #00000024; }
.contact-btn:active { transform: translateY(1px); }
.contact-btn:focus-visible, .contact-close:focus-visible, .contact-save:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.contact-modal-open .contact-float, .contact-editing .contact-float { visibility: hidden; pointer-events: none; }
.contact-dialog { width: min(400px, calc(100% - 28px)); max-height: calc(100dvh - 32px); margin: auto; padding: 28px 24px 24px; border: 0; border-radius: 20px; background: var(--card); color: var(--ink); text-align: center; overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 16px 64px #0005; }
.contact-dialog::backdrop { background: #0009; }
.contact-dialog h2 { padding: 14px 14px 0; font-size: 21px; line-height: 1.4; }
.contact-dialog p { margin: 12px 0; font-size: 15px; line-height: 1.6; }
.contact-close { position: absolute; top: 5px; right: 5px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); font: 400 30px/1 var(--sans); cursor: pointer; }
.contact-qr { width: min(100%, 300px); height: auto; margin: 16px auto; background: #fff; border-radius: 8px; }
.contact-dialog .contact-hint { color: var(--ink-2); font-size: 14px; }
.contact-save { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; padding: 10px 14px; border: 0; border-radius: 10px; background: #1d5c3a; color: #fff; font: 700 15px/1.5 var(--sans); text-decoration: none; cursor: pointer; }
.contact-app-icon { margin: 8px auto 16px; border-radius: 14px; }
.contact-install h2 { padding-top: 0; }
@media (max-width: 960px) {
  .contact-float { right: max(10px, env(safe-area-inset-right)); bottom: calc(92px + env(safe-area-inset-bottom)); gap: 7px; }
  .contact-btn { width: 128px; min-height: 44px; padding: 8px 11px; gap: 7px; font-size: 13px; }
  .contact-btn svg { width: 20px; height: 20px; }
}
@media (max-height: 600px) and (max-width: 960px) and (orientation: landscape) {
  .contact-float { flex-direction: row; bottom: calc(86px + env(safe-area-inset-bottom)); gap: 6px; }
  .contact-btn { width: 72px; height: 52px; padding: 6px; flex-direction: column; gap: 2px; border-radius: 12px; }
  .contact-btn svg { width: 16px; height: 16px; }
  .contact-btn span { font-size: 10px; line-height: 1.1; }
}
@media (min-width: 961px) and (max-width: 1540px) {
  .contact-float { right: 10px; }
  .contact-btn { width: 144px; }
}
