#ag-contact { position: fixed; z-index: 8; right: max(17px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); color: var(--ink, #23382c); }
#ag-contact [hidden] { display: none !important; }
#ag-contact button, #ag-contact a, #ag-contact input, #ag-contact textarea { touch-action: manipulation; }
#ag-contact button:focus-visible, #ag-contact a:focus-visible, #ag-contact input:focus-visible, #ag-contact textarea:focus-visible { outline: 3px solid #b48c3e; outline-offset: 3px; }
.ag-contact-trigger, .ag-contact-send, .ag-contact-done { border: 1px solid #254335; border-radius: 8px; background: #284b39; color: #fffdf5; font: 650 .91rem/1.3 var(--sans, system-ui); padding: 11px 16px; }
.ag-contact-trigger { display: flex; align-items: center; justify-content: center; gap: 9px; border-radius: 28px; min-height: 44px; box-shadow: 0 3px 14px #213d342c; }
.ag-contact-trigger:hover, .ag-contact-send:not(:disabled):hover, .ag-contact-done:hover { background: #1a392b; }
.ag-contact-panel { width: min(365px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; border: 1px solid #9eaf9e; border-radius: 14px; background: #fffef9; box-shadow: 0 12px 42px #20382c32, 0 2px 6px #20382c12; }
.ag-contact-header { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 17px 16px 14px 20px; border-bottom: 1px solid #d6dfcf; background: #edf2e6; }
.ag-contact-header h2 { color: #243e2f; margin: 0 0 5px; font: 500 1.5rem/1.14 var(--serif, Georgia); letter-spacing: -.035em; }
.ag-contact-header p { margin: 0; color: #425746; font-size: .86rem; }
.ag-contact-close { display: grid; place-items: center; min-width: 36px; height: 36px; border: 1px solid #c0cbb8; border-radius: 50%; background: transparent; color: #304a37; font: 400 1.45rem/1 var(--sans, system-ui); }
.ag-contact-close:hover { background: #dae4d2; }
.ag-contact-content { padding: 15px 20px 19px; }
.ag-contact-email { display: flex; align-items: center; gap: 7px; margin: 0 0 10px; color: #385e43; font-size: .95rem; }
.ag-contact-email a { font-weight: 650; }
.ag-contact-form { display: grid; gap: 5px; }
.ag-contact-form > p:first-child { margin: 0 0 4px; color: #4f6254; font-size: .85rem; line-height: 1.45; }
.ag-contact-form label { margin-top: 4px; font-size: .86rem; font-weight: 620; }
.ag-contact-form label small { font-weight: 400; font-size: .79rem; }
.ag-contact-form input, .ag-contact-form textarea { display: block; width: 100%; min-width: 0; border: 1px solid #b7c4b2; border-radius: 6px; color: #223a2b; background: #fff; font: inherit; padding: 7px 10px; }
.ag-contact-form textarea { resize: vertical; min-height: 63px; max-height: 200px; }
.ag-contact-form .ag-contact-privacy { margin: 5px 0; color: #566657; font-size: .77rem; line-height: 1.4; }
.ag-contact-status:empty { display: none; }
.ag-contact-form .ag-contact-status { margin: 1px 0 6px; background: #f7edd7; border-inline-start: 3px solid #ad853e; color: #61481c; padding: 8px 10px; font-size: .83rem; line-height: 1.45; }
.ag-contact-send:disabled { cursor: default; opacity: .66; }
.ag-contact-compose { background: transparent; color: #31563d; text-align: center; font: 600 .87rem var(--sans, system-ui); text-decoration: underline; text-underline-offset: 3px; border: 0; padding: 9px 4px; }
.ag-contact-receipt h3 { margin: 0 0 8px; }
.ag-contact-receipt p { font-size: .91rem; }
.ag-contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 650px) {
  #ag-contact { right: max(9px, env(safe-area-inset-right)); bottom: max(9px, env(safe-area-inset-bottom)); }
  .ag-contact-panel { width: min(360px, calc(100vw - 18px)); max-height: calc(100dvh - 18px); }
  .ag-contact-header { padding: 12px 13px 10px 15px; }
  .ag-contact-content { padding: 12px 15px 15px; }
  .ag-contact-form input, .ag-contact-form textarea { font-size: 16px; }
  .ag-contact-trigger { font-size: .83rem; min-height: 42px; padding: 9px 13px; }
}
