.support-chat { --chat-bottom: max(84px, calc(64px + env(safe-area-inset-bottom))); position: fixed; right: 20px; bottom: var(--chat-bottom); z-index: 999; font-family: inherit; }
.support-chat[open] { display: flex; flex-direction: column-reverse; align-items: flex-end; }
@media (max-width: 767px) { .support-chat { --chat-bottom: max(120px, calc(100px + env(safe-area-inset-bottom))); } }
@media (min-width: 768px) and (max-width: 991px) { .support-chat { --chat-bottom: max(134px, calc(114px + env(safe-area-inset-bottom))); } }
.support-chat summary { display: flex; align-items: center; gap: 9px; padding: 12px 18px; border-radius: 30px; background: #08733c; color: #fff; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.2); list-style: none; font-weight: 600; }
.support-chat summary::-webkit-details-marker { display: none; }
.support-chat-unread { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #d52929; color: #fff; font-size: 12px; line-height: 1; }
.support-chat :focus-visible { outline: 3px solid #185abc; outline-offset: 2px; }
.support-chat-panel { width: min(360px, calc(100vw - 40px)); max-height: max(0px, min(680px, calc(100vh - var(--chat-bottom) - 80px))); margin-bottom: 12px; overflow-y: auto; border-radius: 16px; background: #fff; color: #202c29; box-shadow: 0 8px 32px rgba(0,0,0,.24); }
.support-chat-heading { padding: 17px 20px; background: #08733c; color: #fff; }
.support-chat-heading strong, .support-chat-heading span { display: block; color: #fff; }
.support-chat-heading strong { font-size: 18px; }
.support-chat-heading span { font-size: 13px; margin-top: 3px; }
.support-chat-body { padding: 16px 18px; }
.support-chat-body p { margin: 0 0 12px; line-height: 1.4; font-size: 13px; }
.support-chat-body label:not(.support-chat-consent):not(.support-chat-visually-hidden) { display: block; margin: 8px 0 3px; font-size: 13px; font-weight: 600; }
.support-chat-body input:not([type=checkbox]), .support-chat-body select, .support-chat-body textarea { display: block; width: 100%; padding: 8px 10px; border: 1px solid #aebbb5; border-radius: 7px; background: #fff; color: #202c29; font: inherit; font-size: 14px; }
.support-chat-body textarea { resize: vertical; }
.support-chat-consent { display: flex; align-items: flex-start; gap: 7px; margin: 10px 0; font-size: 12px; line-height: 1.4; }
.support-chat-consent input { margin-top: 3px; }
.support-chat-note { color: #53635b; }
.support-chat-primary { padding: 9px 16px; border: 0; border-radius: 7px; background: #08733c; color: #fff; font-weight: 600; cursor: pointer; }
.support-chat-primary:disabled { opacity: .6; cursor: wait; }
.support-chat-messages { height: 220px; overflow-y: auto; padding: 10px; background: #f1f6f3; border-radius: 8px; }
.support-chat-message { max-width: 90%; width: fit-content; margin: 0 0 8px; padding: 8px 10px; border-radius: 10px; background: #fff; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 13px; }
.support-chat-message.visitor { margin-left: auto; background: #d7f0df; }
.support-chat-message small { display: block; color: #52635a; font-size: 11px; }
.support-chat-message img { display: block; max-width: 100%; max-height: 180px; margin-top: 6px; border-radius: 6px; object-fit: contain; }
.support-chat-send { display: flex; align-items: flex-end; gap: 8px; margin-top: 10px; }
.support-chat-send textarea { flex: 1; min-width: 0; }
.support-chat-forget { display: inline-block; margin: 10px 0 0; padding: 0; border: 0; background: none; color: #4c6056; text-decoration: underline; font-size: 12px; cursor: pointer; }
.support-chat-body input[type=file] { font-size: 12px; margin: 3px 0 6px; max-width: 100%; }
.support-chat-error { margin-top: 10px !important; color: #a02222; }
.support-chat-whatsapp { display: block; margin-top: 14px; color: #08733c; font-weight: 600; font-size: 13px; }
.support-chat-whatsapp:hover { color: #05542b; }
.support-chat-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.support-chat [hidden] { display: none !important; }
