.live-chat-widget {
    position: fixed;
    z-index: 1045;
    right: 24px;
    bottom: 20px;
    font-family: Arial, Helvetica, sans-serif;
    color: #143b3b;
}

/* Keep the widget's geometry isolated from page-specific Bootstrap/theme resets. */
.live-chat-widget,
.live-chat-widget *,
.live-chat-widget *::before,
.live-chat-widget *::after {
    box-sizing: border-box !important;
}

.live-chat-widget button,
.live-chat-widget input,
.live-chat-widget textarea {
    margin-top: 0;
    margin-right: 0;
    margin-bottom: 0;
    font-family: Arial, Helvetica, sans-serif;
    line-height: normal;
    letter-spacing: normal;
    text-transform: none;
}

.live-chat-widget[hidden], .live-chat-panel[hidden],
.live-chat-conversation[hidden], .live-chat-email-form[hidden] { display: none !important; }

.live-chat-launcher {
    position: relative;
    display: flex;
    width: 62px;
    height: 62px;
    padding: 5px;
    border: 3px solid #fff;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #008080;
    box-shadow: 0 3px 12px rgba(0,0,0,.25);
    cursor: grab;
    touch-action: none;
    user-select: none;
}
.live-chat-launcher:active { cursor: grabbing; }

.live-chat-launcher strong { font-size: 12px; line-height: 11px; text-align: center; }
.live-chat-launcher-icon { position: absolute; top: -10px; right: -8px; width: 26px; height: 26px; border-radius: 50%; color: #008080; background: #fff; font-size: 16px; line-height: 26px; }
.live-chat-unread-badge { position: absolute; z-index: 2; top: -9px; left: -9px; min-width: 23px; height: 23px; padding: 0 6px; border: 2px solid #fff; border-radius: 12px; color: #fff; background: #c62828; box-shadow: 0 2px 5px rgba(0,0,0,.25); font-size: 12px; font-style: normal; font-weight: 700; line-height: 19px; text-align: center; }
.live-chat-unread-badge[hidden] { display: none !important; }
.live-chat-launcher-status { position: absolute; right: -2px; bottom: -2px; width: 13px; height: 13px; border: 2px solid #fff; border-radius: 50%; background: #8a9494; }
.live-chat-widget.is-online .live-chat-launcher-status { background: #19ba65; }
.live-chat-widget.has-new-message .live-chat-launcher,
.live-chat-widget.has-new-message .live-chat-panel { animation: live-chat-alert-pulse .65s ease-in-out 6 alternate; }
@keyframes live-chat-alert-pulse {
    from { box-shadow: 0 3px 12px rgba(0,0,0,.25); }
    to { box-shadow: 0 0 0 6px rgba(0,128,128,.35), 0 6px 22px rgba(0,0,0,.32); }
}

.live-chat-panel {
    position: absolute;
    right: 0;
    bottom: 72px;
    width: 305px;
    overflow: visible;
    border: 2px solid #008080;
    border-radius: 12px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 12px 30px rgba(0,0,0,.24);
}
.live-chat-widget.is-left-side .live-chat-panel { right: auto; left: 0; }
.live-chat-widget.is-top-side .live-chat-panel { top: 72px; bottom: auto; }

.live-chat-panel > * { position: relative; z-index: 1; }
.live-chat-end-confirm { position: absolute; z-index: 20; inset: 0; display: flex; padding: 18px; align-items: center; justify-content: center; border-radius: 11px; background: rgba(16,35,34,.58); }
.live-chat-end-confirm[hidden] { display: none !important; }
.live-chat-end-confirm-card { width: 100%; padding: 20px 16px 16px; border-radius: 9px; color: #243635; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.28); text-align: center; }
.live-chat-end-confirm-card strong { display: block; color: #006f6f; font-size: 17px; }
.live-chat-end-confirm-card p { margin: 9px 0 17px; font-size: 12px; line-height: 1.4; }
.live-chat-end-confirm-card > div { display: flex; justify-content: center; gap: 8px; }
.live-chat-end-confirm-card button { min-width: 92px; padding: 9px 12px; border: 1px solid #008080; border-radius: 5px; font-size: 12px; font-weight: 700; cursor: pointer; }
.live-chat-end-cancel { color: #006f6f; background: #fff; }
.live-chat-end-confirm-button { color: #fff; background: #008080; }
.live-chat-end-confirm-button:disabled { cursor: wait; opacity: .65; }
.live-chat-minimize, .live-chat-close { position: absolute; z-index: 2; top: 8px; width: 24px; height: 24px; padding: 0; border: 1px solid #008080; border-radius: 3px; color: #008080; background: #fff; font-size: 19px; line-height: 20px; cursor: pointer; }
.live-chat-minimize { right: 37px; }
.live-chat-close { right: 8px; }
.live-chat-minimize { display: none; }
.live-chat-panel.is-expanded .live-chat-minimize { display: block; }

.live-chat-summary { display: flex; min-height: 116px; padding: 63px 45px 12px; align-items: flex-end; justify-content: center; border-bottom: 1px solid #adb9b6; text-align: center; }
.live-chat-agent-avatar { position: absolute; top: -43px; left: 50%; display: flex; width: 108px; height: 105px; margin-left: -54px; overflow: visible; align-items: center; justify-content: center; color: transparent; background: transparent; }
.live-chat-agent-avatar img { width: 100%; height: 100%; object-fit: contain; }
.live-chat-heading strong { display: block; white-space: nowrap; color: #008080; font-size: 16px; letter-spacing: .1px; }
.live-chat-presence { display: flex; margin-top: 4px; align-items: center; justify-content: center; color: #303737; font-size: 12px; }
.live-chat-presence i { width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: #d62d2d; }
.live-chat-widget.is-online .live-chat-presence i { background: #20b868; }

.live-chat-mini-view { padding: 14px 11px 15px; }
.live-chat-agent-copy { display: none; }
.live-chat-mini-status { min-height: 0; margin-top: 5px; color: #a11; font-size: 11px; text-align: center; }
.live-chat-primary { display: block; width: 100% !important; max-width: 100% !important; min-height: 38px; margin-left: 0 !important; margin-right: 0 !important; padding: 8px 12px !important; border: 0; border-radius: 5px; color: #fff; background: #008080; font-size: 13px; font-weight: 700; cursor: pointer; }
.live-chat-primary:hover, .live-chat-primary:focus { background: #006f60; }
.live-chat-email-open { display: none; }
.live-chat-widget:not(.is-online) .live-chat-start { display: none; }
.live-chat-widget:not(.is-online) .live-chat-email-open { display: block; }

.live-chat-messages { height: 250px; padding: 14px; overflow-y: auto; background: rgba(245,250,249,.75); }
.live-chat-conversation { position: relative; }
.live-chat-conversation.is-file-dragover::after { content: 'Drop file or screenshot here'; position: absolute; z-index: 8; inset: 8px; display: flex; align-items: center; justify-content: center; border: 2px dashed #008080; border-radius: 9px; color: #006f6f; background: rgba(232,247,244,.96); font-size: 14px; font-weight: 700; pointer-events: none; }
.live-chat-message { display: block !important; width: -moz-fit-content !important; width: fit-content !important; min-width: 0 !important; max-width: 82% !important; margin: 0 0 10px !important; padding: 8px 10px !important; border-radius: 10px; color: #1f3333; background: #e0e5e5; font-size: 12px; line-height: 1.35; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.live-chat-message.user { margin-left: auto !important; margin-right: 0 !important; color: #fff; background: #008080; }
.live-chat-message.agent { margin-left: 0 !important; margin-right: auto !important; }
.live-chat-message.system { width: fit-content !important; max-width: 92% !important; margin-left: 0 !important; margin-right: auto !important; color: #3b4a4a; background: #fff; border: 1px solid #d7e3e1; }
.live-chat-conversation-actions { display: flex; justify-content: flex-end; padding: 6px 9px; border-top: 1px solid #c9ded9; background: #fff; }
.live-chat-conversation-actions .live-chat-end-chat { min-width: 86px; padding: 7px 12px; border: 1px solid #687573; border-radius: 5px; color: #fff; background: #5f6968; font-size: 11px; font-weight: 700; cursor: pointer; }
.live-chat-conversation-actions .live-chat-end-chat:hover, .live-chat-conversation-actions .live-chat-end-chat:focus { background: #485150; }
.live-chat-pending-attachment { position: relative; margin: 8px 9px 0; padding: 8px 32px 8px 8px; border: 1px solid #9bcac3; border-radius: 7px; background: #eef8f6; }
.live-chat-pending-attachment[hidden] { display: none !important; }
.live-chat-pending-preview { display: block; max-width: 100%; max-height: 130px; margin: 0 auto 6px; border-radius: 5px; object-fit: contain; }
.live-chat-pending-preview[hidden] { display: none !important; }
.live-chat-pending-name { display: block; overflow: hidden; color: #244; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.live-chat-pending-cancel { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; padding: 0; border: 1px solid #607b77; border-radius: 50%; color: #405a56; background: #fff; font-size: 16px; line-height: 18px; cursor: pointer; }
.live-chat-message-form { display: flex; padding: 9px; border-top: 1px solid #c9ded9; background: #fff; }
.live-chat-file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.live-chat-message-form .live-chat-file-button { display: flex; flex: 0 0 36px; height: 44px; margin-right: 7px; align-items: center; justify-content: center; border: 1px solid #008080; border-radius: 5px; color: #006c6c; background: #fff; font-size: 19px; cursor: pointer; }
.live-chat-message-form .live-chat-file-button:hover, .live-chat-message-form .live-chat-file-button:focus { background: #e8f5f3; outline: 2px solid transparent; }
.live-chat-message-form textarea { flex: 1; min-height: 44px; padding: 9px; resize: none; border: 1px solid #008080; border-radius: 5px; color: #111; }
.live-chat-message-form button { width: 42px; margin-left: 7px; border: 0; border-radius: 5px; color: #fff; background: #008080; font-size: 22px; }
.live-chat-upload-status { min-height: 0; padding: 0 10px 6px; color: #345; background: #fff; font-size: 11px; }
.live-chat-upload-status:empty { display: none; }
.live-chat-widget.is-uploading .live-chat-file-button { cursor: wait; opacity: .6; pointer-events: none; }
.live-chat-attachment { display: block; color: inherit; font-weight: 700; text-decoration: underline; }
.live-chat-attachment-preview { display: block; max-width: 180px; max-height: 140px; margin-top: 5px; border-radius: 6px; object-fit: contain; }
.live-chat-message.attachment-only { padding: 4px !important; background: transparent; }
.live-chat-message.attachment-only .live-chat-attachment-preview { margin-top: 0; }
.live-chat-message.attachment-only .live-chat-attachment { color: #006f6f; }

.live-chat-email-form { padding: 14px 11px 15px; }
.live-chat-email-form p { position: relative; min-height: 43px; margin: 0 0 11px; padding: 7px 8px 6px 50px; border-radius: 5px; color: #263b3b; background: rgba(224,229,229,.9); font-size: 9px !important; font-weight: 400 !important; line-height: 1.2 !important; text-align: left; }
.live-chat-email-form p::before { content: ''; position: absolute; top: 4px; left: 5px; width: 35px; height: 35px; border: 0; border-radius: 50%; background: transparent url('/assets/images/live-chat-agent-avatar.png?v=3') center / contain no-repeat; }
.live-chat-email-form input, .live-chat-email-form textarea { display: block; width: 100% !important; max-width: 100% !important; margin: 0 0 7px !important; padding: 8px !important; border: 1px solid #008080; border-radius: 10px !important; color: #111; background: #fff; }
.live-chat-email-form textarea { min-height: 102px; resize: vertical; }
.live-chat-form-status { min-height: 17px; margin-top: 7px; color: #a11; font-size: 11px; text-align: center; }

@media (max-width: 480px) {
    .live-chat-widget { right: 12px; bottom: 12px; }
    .live-chat-panel { position: fixed; right: 8px; bottom: 82px; left: auto; width: min(305px, calc(100vw - 16px)); max-height: calc(100vh - 100px); }
    .live-chat-widget.has-custom-position .live-chat-panel { position: absolute; top: auto; right: 0; bottom: 72px; left: auto; }
    .live-chat-widget.has-custom-position.is-left-side .live-chat-panel { right: auto; left: 0; }
    .live-chat-widget.has-custom-position.is-top-side .live-chat-panel { top: 72px; bottom: auto; }
    .live-chat-messages { height: 38vh; min-height: 190px; }
}

@media (prefers-reduced-motion: reduce) {
    .live-chat-widget.has-new-message .live-chat-launcher,
    .live-chat-widget.has-new-message .live-chat-panel { animation: none; outline: 4px solid rgba(0,128,128,.45); }
}
