/* =========================================================
   SEYSECURE REAL-TIME VISITOR CHAT
   ========================================================= */

.live-chat-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1700;
    font-family: inherit;
}

.live-chat-launcher {
    position: relative;
    min-width: 250px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 17px 11px 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 14% 12%,
            rgba(105, 212, 170, 0.18),
            transparent 42%
        ),
        #081b2c;
    box-shadow:
        0 20px 48px rgba(6, 23, 39, 0.26),
        0 5px 14px rgba(6, 23, 39, 0.14);
    cursor: pointer;
    text-align: left;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.live-chat-launcher:hover {
    transform: translateY(-3px);
    border-color: rgba(105, 212, 170, 0.32);
    box-shadow:
        0 24px 56px rgba(6, 23, 39, 0.3),
        0 6px 16px rgba(6, 23, 39, 0.16);
}

.live-chat-launcher-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(105, 212, 170, 0.3);
    border-radius: 14px;
    color: #69d4aa;
    background: rgba(105, 212, 170, 0.08);
}

.live-chat-launcher-icon svg {
    width: 24px;
    height: 24px;
}

.live-chat-launcher-copy {
    display: grid;
    gap: 2px;
}

.live-chat-launcher-copy strong {
    font-size: 13px;
    line-height: 1.25;
}

.live-chat-launcher-copy small {
    color: #b9c7d2;
    font-size: 10px;
    line-height: 1.35;
}

.live-chat-unread-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    padding: 0 6px;
    border: 3px solid #ffffff;
    border-radius: 999px;
    color: #ffffff;
    background: #159667;
    font-size: 10px;
    font-weight: 900;
}

.live-chat-panel {
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(390px, calc(100vw - 32px));
    height: min(610px, calc(100vh - 42px));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto auto;
    overflow: hidden;
    border: 1px solid rgba(10, 39, 61, 0.16);
    border-radius: 22px;
    background: #ffffff;
    box-shadow:
        0 32px 80px rgba(5, 22, 38, 0.31),
        0 8px 24px rgba(5, 22, 38, 0.14);
}

.live-chat-panel[hidden] {
    display: none;
}

.live-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 18px 17px;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 88% 12%,
            rgba(105, 212, 170, 0.18),
            transparent 42%
        ),
        #081b2c;
}

.live-chat-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.live-chat-brand-mark {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(105, 212, 170, 0.3);
    border-radius: 13px;
    color: #69d4aa;
    background: rgba(105, 212, 170, 0.09);
    font-size: 15px;
    font-weight: 900;
}

.live-chat-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.25;
}

.live-chat-presence {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 4px;
    color: #b9c7d2;
    font-size: 9px;
    line-height: 1.3;
}

.live-chat-presence i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #98a6b1;
}

.live-chat-presence.is-online i {
    background: #69d4aa;
    box-shadow: 0 0 0 4px rgba(105, 212, 170, 0.09);
}

.live-chat-header-actions {
    display: flex;
    align-items: center;
}

.live-chat-minimise {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 10px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    font-size: 20px;
}

.live-chat-transcript {
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    padding: 18px;
    background:
        linear-gradient(
            180deg,
            #f7faf9 0%,
            #ffffff 100%
        );
    scroll-behavior: smooth;
}

.live-chat-day-label {
    align-self: center;
    padding: 5px 9px;
    border-radius: 999px;
    color: #70808c;
    background: #eaf0ed;
    font-size: 9px;
    font-weight: 750;
}

.live-chat-message {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    max-width: 88%;
}

.live-chat-message-staff {
    align-self: flex-start;
}

.live-chat-message-visitor {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.live-chat-avatar {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #0f7d58;
    background: rgba(28, 155, 107, 0.11);
    font-size: 10px;
    font-weight: 900;
}

.live-chat-message-content {
    display: grid;
    gap: 4px;
}

.live-chat-bubble {
    padding: 11px 13px;
    border: 1px solid #dde6e2;
    border-radius: 15px 15px 15px 5px;
    color: #12283a;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(8, 28, 44, 0.045);
}

.live-chat-message-visitor .live-chat-bubble {
    color: #ffffff;
    border-color: #168d64;
    border-radius: 15px 15px 5px 15px;
    background: #168d64;
}

.live-chat-bubble p {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.live-chat-message-content time {
    color: #87949d;
    font-size: 8px;
}

.live-chat-message-visitor time {
    text-align: right;
}

.live-chat-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 7px 18px;
    color: #71808a;
    background: #ffffff;
    font-size: 9px;
}

.live-chat-typing > span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #159667;
    animation: live-chat-typing 1.1s infinite ease-in-out;
}

.live-chat-typing > span:nth-child(2) {
    animation-delay: 0.14s;
}

.live-chat-typing > span:nth-child(3) {
    animation-delay: 0.28s;
}

.live-chat-typing small {
    margin-left: 4px;
}

@keyframes live-chat-typing {
    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.45;
    }

    30% {
        transform: translateY(-3px);
        opacity: 1;
    }
}

.live-chat-notice {
    margin: 0 14px 10px;
    padding: 9px 11px;
    border: 1px solid rgba(28, 155, 107, 0.18);
    border-radius: 10px;
    color: #48605a;
    background: rgba(28, 155, 107, 0.055);
    font-size: 9px;
    line-height: 1.45;
}

.live-chat-notice.is-error {
    color: #8e2020;
    border-color: rgba(180, 45, 45, 0.2);
    background: rgba(180, 45, 45, 0.055);
}

.live-chat-composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: end;
    gap: 9px;
    padding: 12px 14px;
    border-top: 1px solid #e2e9e6;
    background: #ffffff;
}

.live-chat-composer textarea {
    width: 100%;
    max-height: 110px;
    min-height: 42px;
    padding: 11px 12px;
    resize: none;
    overflow-y: auto;
    border: 1px solid #dbe4e0;
    border-radius: 13px;
    color: #12283a;
    background: #f8faf9;
    font: inherit;
    font-size: 12px;
    line-height: 1.5;
}

.live-chat-composer textarea:focus {
    outline: none;
    border-color: rgba(28, 155, 107, 0.6);
    box-shadow: 0 0 0 3px rgba(28, 155, 107, 0.08);
    background: #ffffff;
}

.live-chat-send {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 13px;
    color: #ffffff;
    background: #159667;
    cursor: pointer;
    transition:
        transform 150ms ease,
        background 150ms ease;
}

.live-chat-send:hover {
    transform: translateY(-1px);
    background: #117b56;
}

.live-chat-send:disabled {
    cursor: wait;
    opacity: 0.6;
}

.live-chat-send svg {
    width: 19px;
    height: 19px;
}

.live-chat-footer {
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 14px;
    color: #839098;
    background: #f4f7f5;
    font-size: 8px;
}

.live-chat-reference {
    color: #168d64;
    font-weight: 800;
}

body.live-chat-mobile-open {
    overflow: hidden;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 680px) {
    .live-chat-widget {
        right: 14px;
        bottom: 14px;
    }

    .live-chat-launcher {
        min-width: 0;
        padding: 10px;
    }

    .live-chat-launcher-copy {
        display: none;
    }

    .live-chat-panel {
        position: fixed;
        top: 10px;
        right: 10px;
        bottom: 10px;
        left: 10px;
        width: auto;
        height: auto;
        border-radius: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .live-chat-launcher,
    .live-chat-send,
    .live-chat-transcript {
        transition: none;
        scroll-behavior: auto;
    }

    .live-chat-typing > span {
        animation: none;
    }
}

/* SEYSECURE REAL-TIME VISITOR CHAT END */

/* Hide inactive live-chat interface states correctly. */
.live-chat-typing[hidden],
.live-chat-notice[hidden],
.live-chat-unread-badge[hidden],
.live-chat-reference[hidden],
.live-chat-launcher[hidden] {
    display: none !important;
}


/* =========================================================
   SEYSECURE PRE-CHAT IDENTIFICATION
   ========================================================= */

.live-chat-prechat {
    overflow-y: auto;
    padding: 22px 20px;
    background:
        linear-gradient(
            180deg,
            #f6faf8 0%,
            #ffffff 100%
        );
}

.live-chat-prechat[hidden],
.live-chat-transcript[hidden],
.live-chat-composer[hidden],
.live-chat-footer[hidden],
.live-chat-prechat-error[hidden] {
    display: none !important;
}

.live-chat-prechat-introduction {
    margin-bottom: 20px;
    text-align: center;
}

.live-chat-prechat-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
    border: 1px solid rgba(22, 141, 100, 0.18);
    border-radius: 16px;
    color: #168d64;
    background: rgba(22, 141, 100, 0.09);
    font-size: 18px;
    font-weight: 900;
}

.live-chat-prechat-introduction h3 {
    margin: 0 0 7px;
    color: #12283a;
    font-size: 18px;
}

.live-chat-prechat-introduction p {
    margin: 0;
    color: #667781;
    font-size: 12px;
    line-height: 1.55;
}

.live-chat-prechat-form {
    display: grid;
    gap: 14px;
}

.live-chat-field {
    display: grid;
    gap: 6px;
}

.live-chat-field label {
    color: #273f50;
    font-size: 11px;
    font-weight: 800;
}

.live-chat-field label span {
    color: #a83939;
}

.live-chat-field input,
.live-chat-field textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d8e2de;
    border-radius: 11px;
    color: #12283a;
    background: #ffffff;
    font: inherit;
    font-size: 12px;
    line-height: 1.5;
}

.live-chat-field textarea {
    min-height: 90px;
    resize: vertical;
}

.live-chat-field input:focus,
.live-chat-field textarea:focus {
    outline: none;
    border-color: #168d64;
    box-shadow: 0 0 0 3px rgba(22, 141, 100, 0.09);
}

.live-chat-field input[aria-invalid="true"],
.live-chat-field textarea[aria-invalid="true"] {
    border-color: #b23c3c;
    box-shadow: 0 0 0 3px rgba(178, 60, 60, 0.07);
}

.live-chat-prechat-error {
    padding: 9px 11px;
    border: 1px solid rgba(178, 60, 60, 0.18);
    border-radius: 9px;
    color: #8d2e2e;
    background: #fff2f2;
    font-size: 11px;
    line-height: 1.45;
}

.live-chat-start-button {
    min-height: 45px;
    border: 0;
    border-radius: 11px;
    color: #ffffff;
    background: #168d64;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
}

.live-chat-start-button:hover {
    background: #117a56;
}

.live-chat-start-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.live-chat-privacy-copy {
    margin: 0;
    color: #77858d;
    font-size: 9px;
    line-height: 1.5;
    text-align: center;
}

.live-chat-privacy-copy a {
    color: #168d64;
    font-weight: 800;
}

/* SEYSECURE PRE-CHAT IDENTIFICATION END */

