/* ===== Vocus live chat widget ===== */
.vc-launch {
    position: fixed;
    bottom: 24px;
    inset-inline-end: 24px;
    z-index: 900;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 58px;
    padding: 0 22px 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--grad, linear-gradient(120deg, #00a9ce, #753bbd 52%, #c724b1));
    color: #fff;
    font: inherit;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 16px 36px -10px rgba(117, 59, 189, .65);
    transition: transform .3s cubic-bezier(.22, .61, .36, 1), box-shadow .3s;
}
.vc-launch i { font-size: 22px; }
.vc-launch:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -10px rgba(117, 59, 189, .75); }
.vc-launch:focus-visible { outline: 3px solid rgba(0, 169, 206, .6); outline-offset: 3px; }
.vc-launch::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid rgba(117, 59, 189, .5); animation: vcPulse 2.8s infinite; pointer-events: none; }
.vc-open .vc-launch::before { display: none; }

.vc-badge {
    position: absolute;
    top: -6px;
    inset-inline-end: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ff3b6b;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
}
.vc-badge[hidden] { display: none; }

.vc-panel {
    position: fixed;
    bottom: 96px;
    inset-inline-end: 24px;
    z-index: 1000;
    width: 380px;
    height: min(620px, calc(100vh - 130px));
    display: flex;
    flex-direction: column;
    background: #fff;
    color: #0e0b2b;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 30px 80px -20px rgba(14, 11, 43, .45), 0 0 0 1px rgba(14, 11, 43, .06);
    opacity: 0;
    transform: translateY(16px) scale(.98);
    transform-origin: bottom right;
    transition: opacity .25s, transform .25s cubic-bezier(.22, .61, .36, 1);
}
[dir="rtl"] .vc-panel { transform-origin: bottom left; }
.vc-panel.in { opacity: 1; transform: none; }
.vc-panel[hidden] { display: none; }

.vc-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 14px 16px 18px;
    background: #0a0827;
    color: #fff;
}
.vc-head::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--grad, linear-gradient(120deg, #00a9ce, #753bbd 52%, #c724b1)); }
.vc-head img { width: 40px; height: 40px; border-radius: 12px; background: #fff; padding: 4px; object-fit: contain; flex-shrink: 0; }
.vc-head-text { flex: 1; min-width: 0; display: grid; }
.vc-head-text strong { font-size: 16px; }
.vc-head-text small { display: flex; align-items: center; gap: 7px; font-size: 12px; color: rgba(255, 255, 255, .72); }
.vc-dot { width: 8px; height: 8px; border-radius: 50%; background: #f5b83d; flex-shrink: 0; }
.is-online .vc-dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .25); }
.vc-min, .vc-end { border: 0; background: rgba(255, 255, 255, .1); color: #fff; font: inherit; cursor: pointer; flex-shrink: 0; transition: background .2s; }
.vc-min { width: 38px; height: 38px; border-radius: 50%; }
.vc-end { height: 32px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.vc-min:hover, .vc-end:hover { background: rgba(255, 255, 255, .2); }
.vc-end[hidden] { display: none; }

.vc-start { flex: 1; overflow-y: auto; padding: 20px 18px; display: flex; flex-direction: column; gap: 14px; }
.vc-start[hidden], .vc-convo[hidden] { display: none; }
.vc-intro { margin: 0; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(0, 169, 206, .08), rgba(117, 59, 189, .08) 55%, rgba(199, 36, 177, .08)); font-weight: 600; line-height: 1.5; }
.vc-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.vc-field { display: grid; gap: 6px; font-size: 13.5px; font-weight: 700; color: #2a2650; }
.vc-field input, .vc-field textarea, .vc-compose textarea {
    width: 100%;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    color: #0e0b2b;
    padding: 12px 14px;
    border: 1.5px solid #e7e4f2;
    border-radius: 14px;
    background: #f7f6fc;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.vc-field textarea { resize: vertical; min-height: 76px; }
.vc-field input:focus, .vc-field textarea:focus, .vc-compose textarea:focus { border-color: #753bbd; background: #fff; box-shadow: 0 0 0 4px rgba(117, 59, 189, .12); }
.vc-field.invalid input { border-color: #e5484d; }
.vc-error { margin: 0; padding: 10px 12px; border-radius: 12px; background: #fdecee; color: #b4232a; font-size: 13.5px; font-weight: 600; }
.vc-error[hidden] { display: none; }
.vc-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    border: 0;
    border-radius: 999px;
    background: var(--grad, linear-gradient(120deg, #00a9ce, #753bbd 52%, #c724b1));
    color: #fff;
    font: inherit;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
}
.vc-btn:disabled { opacity: .7; cursor: wait; }
.vc-note { margin: 0; display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 12px; color: #5d5a7a; }

.vc-convo { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.vc-msgs { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; background: #f7f6fc; }
.vc-sys { align-self: center; max-width: 90%; text-align: center; font-size: 12px; color: #5d5a7a; background: #fff; border: 1px solid #e7e4f2; padding: 4px 12px; border-radius: 999px; }
.vc-msg { display: flex; }
.vc-msg.out { justify-content: flex-end; }
.vc-bubble { max-width: 82%; padding: 9px 13px; border-radius: 18px; border-end-start-radius: 5px; background: #fff; border: 1px solid #e7e4f2; }
.vc-msg.out .vc-bubble { background: #753bbd; color: #fff; border-color: transparent; border-end-start-radius: 18px; border-end-end-radius: 5px; }
.vc-from { display: block; font-size: 12px; color: #753bbd; margin-bottom: 2px; }
.vc-bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.vc-bubble small { display: block; margin-top: 3px; font-size: 11px; opacity: .6; text-align: end; }
.vc-closed { padding: 12px 16px; background: #fff7e6; border-top: 1px solid #f5e1b5; font-size: 13px; text-align: center; }
.vc-closed p { margin: 0 0 6px; }
.vc-closed[hidden] { display: none; }
.vc-link { border: 0; background: none; color: #753bbd; font: inherit; font-weight: 800; cursor: pointer; text-decoration: underline; }
.vc-send-error { margin: 8px 12px 0; }
.vc-compose { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid #e7e4f2; background: #fff; }
.vc-compose textarea { resize: none; min-height: 46px; max-height: 120px; padding: 11px 14px; }
.vc-send { flex-shrink: 0; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--grad, linear-gradient(120deg, #00a9ce, #753bbd 52%, #c724b1)); color: #fff; font-size: 17px; cursor: pointer; }
[dir="rtl"] .vc-send i, [dir="rtl"] .vc-btn i { transform: scaleX(-1); }

/* Mobile: the bottom bar has a Chat button, and the chat opens full screen */
@media (max-width: 720px) {
    .vc-launch { display: none; }
    .vc-panel {
        inset: 0;
        bottom: auto;
        width: 100%;
        height: var(--vc-vh, 100vh);
        border-radius: 0;
        transform: translateY(24px);
    }
    .vc-head { padding: calc(12px + env(safe-area-inset-top)) 12px 12px 16px; }
    .vc-field input, .vc-field textarea, .vc-compose textarea { font-size: 16px; }
    .vc-compose { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
    .vc-start { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
    html.vc-open, html.vc-open body { overflow: hidden; }
    .mobile-bar .vc-badge { top: -7px; inset-inline-end: -5px; }
}
@media (max-width: 380px) {
    .vc-end { padding: 0 10px; font-size: 12px; }
}

@keyframes vcPulse {
    0% { transform: scale(1); opacity: .9; }
    70% { transform: scale(1.18, 1.35); opacity: 0; }
    100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .vc-launch::before { animation: none; }
    .vc-panel { transition: none; }
}
