/* Jobs United support chat — compact Render-style panel */

.ju-support {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100070;
    font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
}

body.vc-call-docked .ju-support,
body.vc-call-expanded .ju-support,
body.vc-call-minimized .ju-support,
body.vc-lobby-open .ju-support,
#vc-overlay.active ~ .ju-support,
body.site-drawer-open .ju-support {
    display: none !important;
}

.ju-support-launch {
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    background: #111;
    color: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ju-support.is-open .ju-support-launch {
    display: none;
}

.ju-support-panel {
    width: min(380px, calc(100vw - 24px));
    height: min(640px, calc(100vh - 32px));
    background: #fff;
    color: #111;
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ju-support-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 10px 12px 6px;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.ju-support-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.ju-support-brand strong {
    display: block;
    font-size: 15px;
    font-weight: 750;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.ju-support-brand em {
    display: block;
    font-style: normal;
    font-size: 12px;
    color: #737373;
    margin-top: 1px;
}

.ju-support-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: contain;
    background: #f4f4f5;
}

.ju-support-logo--mark {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
}

.ju-support-iconbtn {
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #111;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ju-support-iconbtn:hover {
    background: #f4f4f5;
}

.ju-support-stream {
    flex: 1;
    overflow: auto;
    padding: 16px 14px 10px;
    background: #fff;
}

.ju-support-bubble {
    max-width: 86%;
    margin: 0 0 10px;
    padding: 11px 13px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.45;
    word-wrap: break-word;
}

.ju-support-bubble p {
    margin: 0;
}

.ju-support-bubble--in {
    background: #f3f4f6;
    color: #111;
    border-bottom-left-radius: 6px;
}

.ju-support-bubble--out {
    margin-left: auto;
    background: #111;
    color: #fff;
    border-bottom-right-radius: 6px;
}

.ju-support-composer {
    padding: 8px 12px 14px;
    background: #fff;
}

.ju-support-gate {
    display: grid;
    gap: 8px;
    margin-bottom: 10px;
}

.ju-support-gate[hidden] {
    display: none;
}

.ju-support-gate label span {
    display: block;
    font-size: 11px;
    font-weight: 650;
    color: #737373;
    margin-bottom: 3px;
}

.ju-support-gate input {
    width: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 8px 10px;
    font: inherit;
    font-size: 14px;
}

.ju-support-box {
    position: relative;
    border: 1.5px solid #111;
    border-radius: 16px;
    padding: 8px 44px 8px 12px;
    background: #fff;
}

.ju-support-box textarea {
    width: 100%;
    border: 0;
    resize: none;
    outline: none;
    font: inherit;
    font-size: 14.5px;
    line-height: 1.4;
    min-height: 44px;
    max-height: 120px;
    background: transparent;
    color: #111;
}

.ju-support-box textarea::placeholder {
    color: #a3a3a3;
}

.ju-support-send {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #d4d4d4;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ju-support-send:not(:disabled) {
    background: #111;
}

.ju-support-send:disabled {
    cursor: default;
}

.ju-support-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.ju-support .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 640px) {
    .ju-support {
        right: 12px;
        bottom: 12px;
    }
    .ju-support.is-open {
        right: 0;
        bottom: 0;
        left: 0;
    }
    .ju-support-panel {
        width: 100vw;
        height: 100dvh;
        border-radius: 0;
    }
}
