.tawk-support {
    position: fixed;
    right: calc(12px + env(safe-area-inset-right, 0px));
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 60; /* Above navigation (50), below login (100) and consent (200). */
    max-width: calc(100vw - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    direction: ltr;
}

.tawk-support, .tawk-support * { box-sizing: border-box; }
.tawk-support[hidden], .tawk-support [hidden] { display: none !important; }

.tawk-support__launcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    width: max-content;
    max-width: 100%;
    margin-left: auto;
    padding: 12px 17px;
    border: 1px solid #65fff6;
    border-radius: 999px;
    background: #00e1da;
    color: #071c25;
    box-shadow: 0 4px 20px #0006;
    font-size: 14px;
    font-weight: 700;
    line-height: 22px;
    text-decoration: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.tawk-support__launcher:hover { background: #65fff6; color: #071c25; text-decoration: none; }
.tawk-support__launcher:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.tawk-support__launcher[aria-busy="true"] { cursor: progress; }
.tawk-support__launcher svg { flex: 0 0 22px; }
.tawk-support__unread { width: 9px; height: 9px; border-radius: 50%; background: #f2004b; }

.tawk-support__status:empty { display: none; }
.tawk-support__status {
    max-width: 270px;
    margin: 0 0 8px auto;
    padding: 10px 12px;
    border: 1px solid #374151;
    border-radius: 12px;
    background: #111827;
    color: #f9fafb;
    font-size: 13px;
    line-height: 1.45;
    box-shadow: 0 4px 16px #0004;
}

@media (min-width: 768px) {
    .tawk-support {
        right: calc(24px + env(safe-area-inset-right, 0px));
        bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    }
}

/* Keep support out of full-screen content, including full-screen on the body. */
:fullscreen .tawk-support { display: none !important; }
:-webkit-full-screen .tawk-support { display: none !important; }
