/* Shared by every public LINE contact entry. No chat widget or tracking SDK. */
.floating-line {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 18;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 66px;
  padding: 10px 17px 10px 11px;
  border: 1px solid #d6ded5;
  border-radius: 999px;
  background: #fffefa;
  color: #203d31;
  box-shadow: 0 5px 24px #1e392515;
  font-family: var(--font-sans-tc, TC, sans-serif);
  text-decoration: none;
  line-height: 1.5;
  animation: line-contact-enter 800ms ease-out both;
  transition: background-color 180ms, box-shadow 180ms;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.floating-line:hover { background: #f4f8f2; box-shadow: 0 6px 26px #1e392525; }
.floating-line:focus-visible { outline: 3px solid #087d46; outline-offset: 4px; }
.floating-line-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; background: #087d46; color: white; }
.floating-line-icon svg { display: block; }
.floating-line-copy { display: grid; gap: 2px; }
.floating-line-copy strong { font-size: 14px; font-weight: 500; letter-spacing: .04em; }
.floating-line-copy small { font-size: 11px; color: #4a6356; letter-spacing: .02em; }
.floating-line-arrow { font-size: 18px; margin-left: 3px; }
body:has(dialog[open]) .floating-line,
body:has(.mobile-nav:not([hidden])) .floating-line { display: none; }
.mobile-actions > .direct-line { background: #245644; color: white; border-color: #245644; }
.community-notes .notes-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.line-desktop-help {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: calc(104px + env(safe-area-inset-bottom));
  z-index: 19;
  width: min(332px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 24px;
  border: 1px solid #d6ded5;
  border-radius: 16px;
  background: #fffefa;
  color: #203d31;
  box-shadow: 0 8px 32px #1e39251f;
  font-family: var(--font-sans-tc, TC, sans-serif);
  line-height: 1.7;
}
.line-desktop-help[hidden] { display: none; }
.line-desktop-help strong { display: block; padding-right: 24px; font-size: 16px; font-weight: 500; }
.line-desktop-help p { margin: 10px 0 16px; color: #43564b; font-size: 13px; }
.line-desktop-help a { display: inline-block; color: #087d46; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.line-desktop-help-close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #43564b; font: inherit; font-size: 23px; cursor: pointer; }
.line-desktop-help-close:hover { background: #eef3ec; }
.line-desktop-help :focus-visible { outline: 2px solid #087d46; outline-offset: 3px; }
.buyer-submit-row { flex-wrap: wrap; }
.property-dialog .dialog-actions { flex-wrap: wrap; }
.calculator-result .budget-prepare { display: block; min-height: 44px; padding: 12px 0; margin-top: 8px; background: transparent; color: #edf2f5; font: inherit; font-size: 14px; text-align: left; text-decoration: underline; text-underline-offset: 5px; cursor: pointer; }
.calculator-result .budget-prepare:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@keyframes line-contact-enter { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 600px) {
  .floating-line { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); min-height: 56px; padding: 8px 14px 8px 8px; gap: 9px; }
  .floating-line-icon { width: 38px; height: 38px; flex-basis: 38px; }
  .floating-line-copy strong { font-size: 13px; }
  .floating-line-copy small { font-size: 10px; }
  .floating-line-arrow { display: none; }
  /* The homepage already has a fixed LINE entry in its bottom action bar. */
  body:has(.mobile-actions) .floating-line { display: none; }
  body:has(input:focus, textarea:focus, select:focus) .floating-line { display: none; }
}
@media (prefers-reduced-motion: reduce) { .floating-line { animation: none; transition: none; } }
@media print { .floating-line, .line-desktop-help { display: none; } }
