.fh-chat{--fh-green:#0d7773;position:fixed;right:24px;bottom:22px;z-index:1040;font:14px/1.5 Montserrat,Arial,sans-serif;color:#173b39;max-width:calc(100vw - 32px)}
.fh-chat [hidden]{display:none!important}.fh-chat button,.fh-chat textarea{font:inherit}.fh-chat button{cursor:pointer}.fh-chat button:focus-visible,.fh-chat textarea:focus-visible,.fh-chat a:focus-visible{outline:3px solid #dba739;outline-offset:3px}
.fh-launcher{display:flex;align-items:center;gap:10px;border:0;border-radius:40px;background:var(--fh-green);color:#fff;padding:13px 20px;font-weight:700!important;box-shadow:0 6px 25px #123f3b30;margin-left:auto}.fh-launcher>span:first-child{font-size:24px;line-height:1}.fh-launcher b{background:#fff;color:#0b5e5a;border-radius:20px;padding:2px 8px;font-size:10px}
.fh-panel{position:absolute;right:0;bottom:62px;width:360px;max-width:calc(100vw - 32px);max-height:min(650px,calc(100dvh - 110px));display:flex;flex-direction:column;background:#fff;border:1px solid #dce9e7;border-radius:18px;overflow:hidden;box-shadow:0 14px 60px #153d3830}.fh-panel header{display:flex;justify-content:space-between;align-items:center;background:var(--fh-green);color:#fff;padding:17px}.fh-panel header h2{color:inherit;font-size:16px;line-height:1.4;margin:0;font-weight:700}.fh-panel header p{margin:4px 0 0;font-size:11px}.fh-panel header button{border:0;color:#fff;background:transparent;font-size:26px;padding:0 6px;line-height:1.2}
.fh-intro{font-size:12px;padding:13px 17px;margin:0;border-bottom:1px solid #edf3f2}.fh-messages{min-height:150px;max-height:300px;overflow-y:auto;overscroll-behavior:contain;padding:15px;background:#f6faf9;flex:1}.fh-message{padding:9px 12px;margin:0 25px 12px 0;background:#fff;border:1px solid #e0eae8;border-radius:12px 12px 12px 2px;overflow-wrap:anywhere}.fh-message strong{font-size:11px;color:#0b5e5a}.fh-message p{white-space:pre-wrap;margin:4px 0;font-size:13px}.fh-message time{display:block;font-size:10px;color:#647773;text-align:right}.fh-visitor{margin-left:25px;margin-right:0;background:#e4f3ee;border-color:#cde6df;border-radius:12px 12px 2px 12px}.fh-status{font-size:11px;margin:0;padding:0 16px;color:#6b5140}.fh-status:not(:empty){padding-top:9px;padding-bottom:9px}
.fh-panel form{display:grid;grid-template-columns:1fr auto;gap:7px;padding:12px 15px}.fh-panel label{grid-column:1/-1;font-size:11px;font-weight:700}.fh-panel textarea{resize:vertical;max-height:120px;min-height:48px;width:100%;box-sizing:border-box;border:1px solid #b8d2cc;border-radius:9px;padding:9px;color:#173b39;background:#fff}.fh-panel form button{border:0;border-radius:9px;padding:8px 12px;background:var(--fh-green);color:white;font-weight:700}.fh-panel form button:disabled{opacity:.5}.fh-panel footer{padding:0 15px 12px;font-size:10px;line-height:1.5;color:#61766f}.fh-panel footer a{color:#0b5e5a;text-decoration:underline}.fh-invitation{display:block;width:285px;margin-bottom:12px;padding:15px 18px;border:1px solid #cfe2dd;border-radius:14px;background:#fff;color:#173b39;box-shadow:0 7px 30px #143e3820;text-align:left}.fh-invitation strong,.fh-invitation span,.fh-invitation small{display:block}.fh-invitation span{margin:6px 0;overflow-wrap:anywhere}.fh-invitation small{font-size:11px;color:#0d7773;font-weight:700}
@media(max-width:480px){.fh-chat{right:12px;bottom:12px;max-width:calc(100vw - 24px)}.fh-panel{width:350px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 95px)}.fh-launcher{padding:11px 16px}.fh-messages{min-height:100px;max-height:40dvh}}
@media(prefers-reduced-motion:reduce){.fh-chat *{scroll-behavior:auto!important}}
.fh-contact{grid-column:1/-1;display:grid;gap:5px}.fh-contact input{font:inherit;width:100%;box-sizing:border-box;border:1px solid #b8d2cc;border-radius:9px;padding:9px;color:#173b39;background:#fff}.fh-contact small{font-size:10px;color:#61766f}.fh-contact input:focus-visible{outline:3px solid #dba739;outline-offset:3px}.fh-contact input:invalid:not(:placeholder-shown){border-color:#b8795d}
.fh-contact-note{margin:15px 17px 0;padding:12px 13px;border:1px solid #dce9e7;border-radius:10px;background:#f4f8f8;color:#355654;font-size:12px;line-height:1.6}
.fh-chat[data-mode="contact"] .fh-panel{overflow-y:auto;overscroll-behavior:contain}
.fh-chat[data-mode="contact"] .fh-panel header,.fh-chat[data-mode="contact"] .fh-panel footer{flex-shrink:0}
.fh-chat[data-mode="contact"] .fh-panel form{grid-template-columns:minmax(0,1fr);gap:9px;padding:16px 17px}
.fh-chat[data-mode="contact"] .fh-panel textarea{min-height:112px;max-height:200px}
.fh-chat[data-mode="contact"] .fh-panel form button{min-height:44px;margin-top:3px}
.fh-chat[data-mode="contact"] .fh-panel label{font-size:12px}
.fh-chat[data-mode="contact"] .fh-status:empty{display:none}
.fh-chat .fh-status[data-tone="success"]{margin:13px 17px 0;padding:11px 12px;border:1px solid #bfe3d8;border-radius:9px;background:#effaf6;color:#176b58;font-size:12px}
