.contact-launcher { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid #cbd3c1; border-radius: 4px; padding: 10px 14px; background: transparent; color: var(--ink,#193b32); font: inherit; font-size: 11px; font-weight: 600; line-height: 1.5; cursor: pointer; white-space: nowrap; }
.contact-launcher:hover { border-color: #667e5b; background: #eef1e7; }
.contact-launcher svg { width: 18px; height: 18px; flex: 0 0 auto; }
.contact-launcher-header { flex: 0 0 auto; }
.header-inner .search-box { min-width: 0; }
.contact-launcher-footer { padding: 0; border: 0; min-height: 44px; font-size: 11px; color: var(--ink-soft,#486057); }
.contact-launcher-footer:hover { background: transparent; color: var(--orange,#c06039); }
.contact-launcher:focus-visible, .contact-close:focus-visible, .contact-dialog-footer a:focus-visible { outline: 3px solid #d68e66; outline-offset: 4px; }
.contact-dialog { width: min(860px,calc(100vw - 44px)); max-width: none; height: min(820px,calc(100dvh - 44px)); max-height: none; margin: auto; padding: 0; border: 1px solid #d5dccd; border-radius: 8px; background: #fbfaf7; color: #193b32; box-shadow: 0 24px 100px rgba(19,36,28,.22); overflow: hidden; }
.contact-dialog::backdrop { background: rgba(19,36,28,.48); backdrop-filter: blur(3px); }
.contact-dialog:not([open]) { display: none; }
.contact-dialog-shell { display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; }
.contact-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; border-bottom: 1px solid #dce1d3; background: #f5f5ee; }
.contact-dialog-header h2 { margin: 0; font-family: var(--display,'Segoe UI',sans-serif); font-size: 20px; font-weight: 650; letter-spacing: -.035em; line-height: 1.4; }
.contact-chat-status { min-height: 17px; margin: 4px 0 0; color: #78826e; font-size: 11px; line-height: 1.6; }
.contact-close { display: inline-flex; justify-content: center; align-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid #d2dac6; border-radius: 50%; color: #435b3c; background: transparent; cursor: pointer; }
.contact-close:hover { background: #e7ecde; }
.contact-close svg { width: 18px; height: 18px; }
.contact-frame-container { flex: 1 1 auto; min-height: 0; background: #fbfaf7; }
.contact-chat-frame { display: block; width: 100%; height: 100%; min-height: 0; margin: 0; border: 0; background: #fbfaf7; }
.contact-dialog-footer { display: flex; align-items: center; justify-content: flex-end; padding: 4px 18px calc(4px + env(safe-area-inset-bottom,0px)); border-top: 1px solid #dce1d3; background: #f5f5ee; }
.contact-dialog-footer a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: #526847; font-size: 11px; line-height: 1.5; white-space: nowrap; }
.contact-dialog-footer a:hover { color: #a94c2b; }
.contact-dialog-footer a svg { width: 14px; height: 14px; }
.contact-prefill-warning { margin: 0; padding: 11px 18px; border-bottom: 1px solid #e2d5b5; background: #f8f0dd; color: #89713d; font-size: 12px; line-height: 1.7; }
html:has(.contact-dialog[open]) { overflow: hidden; }
@media (max-width: 1100px) {
  .contact-launcher-header { padding-inline: 11px; }
  .header-inner { gap: 17px; }
}
@media (max-width: 900px) {
  .contact-launcher-header { flex-basis: 44px; width: 44px; padding: 0; }
  .contact-launcher-header > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 640px) {
  .header-inner { gap: 10px; }
  .header-inner .search-box { flex: 1 1 calc(100% - 57px); max-width: calc(100% - 54px); }
  .contact-launcher-header { order: 6; flex: 0 0 44px; width: 44px; height: 44px; margin-top: 7px; padding: 0; }
  .contact-launcher-header > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .contact-launcher-header svg { width: 21px; height: 21px; }
  .contact-dialog { width: 100%; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
  .contact-dialog-header { padding: calc(8px + env(safe-area-inset-top,0px)) 14px 8px; gap: 10px; }
  .contact-dialog-header h2 { font-size: 19px; }
  .contact-chat-status { font-size: 11px; }
  .contact-dialog-footer { padding: 0 14px env(safe-area-inset-bottom,0px); }
  .contact-dialog-footer a { gap: 5px; font-size: 11px; }
  .contact-prefill-warning { padding-inline: 15px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .contact-dialog::backdrop { backdrop-filter: none; } }
