/* Hallmark · component: floating-contact-hub · genre: modern-minimal · theme: Cobalt
 * states: default · hover · focus · active · disabled · loading · error · success
 * contrast: pass (40–41) · responsive: 320 / 375 / 414 / 768
 * pre-emit critique: P5 H5 E5 S5 R5 V4
 */

:root {
    --locdev-paper: oklch(99% 0.004 250);
    --locdev-paper-soft: oklch(96.5% 0.012 250);
    --locdev-paper-tint: oklch(94% 0.025 252);
    --locdev-ink: oklch(22% 0.035 255);
    --locdev-ink-soft: oklch(47% 0.028 255);
    --locdev-rule: oklch(88% 0.02 250);
    --locdev-white: oklch(98.5% 0.005 250);
    --locdev-accent-ink: oklch(98.5% 0.005 250);
    --locdev-primary: oklch(55% 0.22 264);
    --locdev-primary-soft: oklch(94% 0.04 264);
    --locdev-phone: oklch(53% 0.22 27);
    --locdev-zalo: oklch(57% 0.22 256);
    --locdev-fanpage: oklch(57% 0.2 258);
    --locdev-tiktok: oklch(19% 0.02 255);
    --locdev-instagram: oklch(58% 0.23 348);
    --locdev-youtube: oklch(55% 0.24 28);
    --locdev-telegram: oklch(65% 0.15 235);
    --locdev-top: oklch(56% 0.18 242);
    --locdev-hover: oklch(48% 0.22 264);
    --locdev-chat: #67d5d8;
    --locdev-focus: oklch(22% 0.04 260);
    --locdev-success: oklch(57% 0.15 155);
    --locdev-error: oklch(53% 0.22 27);
    --locdev-overlay: oklch(15% 0.035 255 / 0.62);
    --locdev-shadow: oklch(20% 0.04 255 / 0.16);
    --locdev-shadow-strong: oklch(18% 0.04 255 / 0.24);
    --locdev-font-body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --locdev-font-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
    --locdev-space-3xs: 2px;
    --locdev-space-2xs: 4px;
    --locdev-space-xs: 8px;
    --locdev-space-sm: 12px;
    --locdev-space-md: 16px;
    --locdev-space-lg: 24px;
    --locdev-space-xl: 32px;
    --locdev-space-2xl: 48px;
    --locdev-radius-sm: 10px;
    --locdev-radius-md: 16px;
    --locdev-radius-lg: 24px;
    --locdev-radius-pill: 999px;
    --locdev-dur-short: 180ms;
    --locdev-dur-medium: 260ms;
    --locdev-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --locdev-ease-in: cubic-bezier(0.32, 0, 0.67, 0);
    --locdev-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --locdev-z-raised: 1;
    --locdev-z-hub: 300;
    --locdev-z-live-chat: 99998;
    --locdev-z-drawer: 99999;
    --locdev-bottom: 76px;
    --locdev-right: 20px;
    --locdev-button-size: 46px;
    --locdev-pill-width: 42px;
    --locdev-pill-height: 76px;
    --locdev-button-gap: 12px;
}

html,
body.locdev-has-contact-hub {
    overflow-x: clip;
}

.locdev-desktop-hub,
.locdev-mobile-bar,
.locdev-social-drawer,
.locdev-admin {
    font-family: var(--locdev-font-body);
    box-sizing: border-box;
}

.locdev-desktop-hub *,
.locdev-mobile-bar *,
.locdev-social-drawer *,
.locdev-admin * {
    box-sizing: border-box;
}

.locdev-desktop-hub svg,
.locdev-mobile-bar svg,
.locdev-social-drawer svg,
.locdev-admin svg {
    display: block;
    width: 1em;
    height: 1em;
}

/* The plugin owns the back-to-top control while active. */
body.locdev-has-contact-hub #top-link,
body.locdev-has-contact-hub #back-to-top,
body.locdev-has-contact-hub #backTop,
body.locdev-has-contact-hub #scrollUp,
body.locdev-has-contact-hub #scroll-to-top,
body.locdev-has-contact-hub #ast-scroll-top,
body.locdev-has-contact-hub .back-to-top:not(.locdev-back-top),
body.locdev-has-contact-hub .backtotop:not(.locdev-back-top),
body.locdev-has-contact-hub .scroll-to-top:not(.locdev-back-top),
body.locdev-has-contact-hub .scroll-top:not(.locdev-back-top),
body.locdev-has-contact-hub .scrolltop:not(.locdev-back-top),
body.locdev-has-contact-hub .scrollup:not(.locdev-back-top),
body.locdev-has-contact-hub .go-top:not(.locdev-back-top),
body.locdev-has-contact-hub .to-top:not(.locdev-back-top),
body.locdev-has-contact-hub .flatsome-back-to-top,
body.locdev-has-contact-hub .generate-back-to-top,
body.locdev-has-contact-hub .ct-back-to-top,
body.locdev-has-contact-hub .et_pb_scroll_top,
body.locdev-has-contact-hub .wpfront-scroll-top-container,
body.locdev-has-contact-hub .kadence-scroll-to-top,
body.locdev-has-contact-hub .page-scroll-up {
    display: none !important;
}

/* Desktop contact hub */
.locdev-desktop-hub {
    position: fixed;
    right: var(--locdev-right);
    bottom: var(--locdev-bottom);
    z-index: var(--locdev-z-hub);
    display: flex;
    width: max(var(--locdev-button-size), var(--locdev-pill-width));
    flex-direction: column;
    align-items: center;
    gap: var(--locdev-button-gap);
    transition:
        opacity var(--locdev-dur-short) var(--locdev-ease-out),
        visibility var(--locdev-dur-short) var(--locdev-ease-out);
}

.locdev-desktop-hub--right {
    right: var(--locdev-right);
    left: auto;
}

.locdev-desktop-hub--left {
    right: auto;
    left: var(--locdev-right);
}

.locdev-contact-pill,
.locdev-hub-button {
    border: 0;
    color: var(--locdev-white);
    text-decoration: none !important;
    box-shadow: 0 4px 8px rgb(0 0 0 / 20%);
    touch-action: manipulation;
    transition:
        transform var(--locdev-dur-short) var(--locdev-ease-out),
        background-color var(--locdev-dur-short) var(--locdev-ease-out);
}

.locdev-contact-pill {
    display: inline-flex;
    width: var(--locdev-pill-width);
    min-width: var(--locdev-pill-width);
    height: var(--locdev-pill-height);
    min-height: var(--locdev-pill-height);
    flex: 0 0 var(--locdev-pill-height);
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border-radius: 20px;
    background: var(--locdev-primary);
    color: var(--locdev-accent-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    writing-mode: vertical-rl;
    white-space: nowrap;
}

.locdev-hub-button {
    position: relative;
    display: inline-flex;
    width: var(--locdev-button-size);
    min-width: var(--locdev-button-size);
    max-width: var(--locdev-button-size);
    height: var(--locdev-button-size);
    min-height: var(--locdev-button-size);
    max-height: var(--locdev-button-size);
    flex: 0 0 var(--locdev-button-size);
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    appearance: none;
    cursor: pointer;
    font-family: var(--locdev-font-body);
    font-size: clamp(24px, calc(var(--locdev-button-size) * 0.6), 32px);
    line-height: 1;
    isolation: isolate;
}

.locdev-hub-button svg {
    position: relative;
    z-index: var(--locdev-z-raised);
    width: 1em;
    height: 1em;
    pointer-events: none;
}

.locdev-zalo-logo {
    width: 1em !important;
    height: 1em !important;
}

.locdev-zalo-bubble {
    fill: var(--locdev-white);
}

.locdev-zalo-word {
    fill: var(--locdev-zalo);
    font-family: var(--locdev-font-body);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.locdev-hub-button::before,
.locdev-hub-button::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid rgb(255 255 255 / 55%);
    border-radius: 50%;
    background: transparent;
    content: "";
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(1);
}

.locdev-desktop-hub > :nth-child(1) { --locdev-order: 0; }
.locdev-desktop-hub > :nth-child(2) { --locdev-order: 1; }
.locdev-desktop-hub > :nth-child(3) { --locdev-order: 2; }
.locdev-desktop-hub > :nth-child(4) { --locdev-order: 3; }
.locdev-desktop-hub > :nth-child(5) { --locdev-order: 4; }
.locdev-desktop-hub > :nth-child(6) { --locdev-order: 5; }

.locdev-effect--soft > .locdev-contact-pill,
.locdev-effect--soft > .locdev-hub-button,
.locdev-effect--attention > .locdev-contact-pill,
.locdev-effect--attention > .locdev-hub-button {
    animation: locdev-hub-bounce 1.4s ease-in-out infinite;
}

.locdev-effect--soft > .locdev-hub-button::before,
.locdev-effect--soft > .locdev-hub-button::after {
    animation: locdev-hub-wave 1.6s infinite;
}

.locdev-effect--soft > .locdev-hub-button::before {
    animation-delay: 0.8s;
}

.locdev-effect--attention > .locdev-hub-button::before,
.locdev-effect--attention > .locdev-hub-button::after {
    animation: locdev-hub-wave 1.3s infinite;
}

.locdev-effect--attention > .locdev-hub-button::before {
    animation-delay: 0.65s;
}

@keyframes locdev-hub-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes locdev-hub-wave {
    0% { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
    70%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.85); }
}

.locdev-contact-pill:active,
.locdev-contact-pill.is-active,
.locdev-hub-button:active,
.locdev-hub-button.is-active {
    box-shadow: 0 5px 16px var(--locdev-shadow);
    transform: translateY(1px);
}

.locdev-contact-pill:focus-visible,
.locdev-hub-button:focus-visible,
.locdev-footer-action:focus-visible,
.locdev-social-card:focus-visible,
.locdev-drawer-close:focus-visible,
.locdev-admin .locdev-color-input:focus-visible,
.locdev-admin .locdev-save-button:focus-visible,
.locdev-admin .locdev-media-button:focus-visible,
.locdev-admin .locdev-media-remove:focus-visible,
.locdev-hub-button.is-focus {
    outline: 3px solid var(--locdev-focus);
    outline-offset: 3px;
    box-shadow: none;
}

.locdev-hub-button--phone {
    --locdev-button-bg: var(--locdev-phone);
    background: var(--locdev-button-bg);
}

.locdev-hub-button--zalo {
    --locdev-button-bg: var(--locdev-zalo);
    background: var(--locdev-button-bg);
}

.locdev-hub-button--fanpage {
    --locdev-button-bg: var(--locdev-fanpage);
    background: var(--locdev-button-bg);
}

.locdev-hub-button--social {
    --locdev-button-bg: var(--locdev-primary);
    background: var(--locdev-button-bg);
    color: var(--locdev-accent-ink);
}

.locdev-hub-button--top {
    --locdev-button-bg: var(--locdev-top);
    background: var(--locdev-button-bg);
}

.locdev-hub-button--top {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    visibility: hidden;
}

.locdev-hub-button--top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
}

.locdev-hub-button[aria-disabled="true"],
.locdev-contact-pill[aria-disabled="true"],
.locdev-hub-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

.locdev-hub-button[aria-busy="true"] > svg {
    opacity: 0.25;
}

.locdev-hub-button[aria-busy="true"]::before {
    inset: 30%;
    z-index: var(--locdev-z-raised);
    width: auto;
    height: auto;
    border: 2px solid var(--locdev-white);
    border-top-color: transparent;
    background: transparent;
    opacity: 1;
    transform: none;
    animation: locdev-hub-spin 720ms linear infinite;
}

.locdev-hub-button[data-state="error"] {
    outline: 3px solid var(--locdev-error);
    outline-offset: 3px;
}

.locdev-hub-button[data-state="success"] {
    outline: 3px solid var(--locdev-success);
    outline-offset: 3px;
}

@keyframes locdev-hub-spin {
    to { transform: rotate(360deg); }
}

/* Mobile contact bar */
.locdev-mobile-bar {
    position: fixed !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: var(--locdev-z-hub);
    display: none;
    grid-template-columns: repeat(5, 20%) !important;
    width: 100vw !important;
    max-width: none !important;
    min-height: calc(65px + env(safe-area-inset-bottom));
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 5px 0 calc(15px + env(safe-area-inset-bottom));
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: none !important;
    transition:
        opacity var(--locdev-dur-short) var(--locdev-ease-out),
        visibility var(--locdev-dur-short) var(--locdev-ease-out);
}

.locdev-mobile-bar::before {
    content: none;
}

/* Self-hosted live chat */
.locdev-live-chat,
.locdev-live-chat *,
.locdev-chat-admin,
.locdev-chat-admin * {
    box-sizing: border-box;
}

.locdev-live-chat .screen-reader-text,
.locdev-chat-admin .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    clip-path: inset(50%) !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    white-space: nowrap !important;
}

.locdev-live-chat {
    position: fixed;
    right: var(--locdev-chat-x, 20px);
    bottom: var(--locdev-chat-desktop-y, 20px);
    z-index: var(--locdev-z-live-chat);
    font-family: var(--locdev-font-body);
    color: var(--locdev-ink);
    isolation: isolate;
    pointer-events: none;
}

.locdev-live-chat--left {
    right: auto;
    left: var(--locdev-chat-x, 20px);
}

.locdev-live-chat button,
.locdev-live-chat input,
.locdev-live-chat textarea,
.locdev-chat-admin button,
.locdev-chat-admin textarea {
    font: inherit;
}

.locdev-live-chat button,
.locdev-chat-admin button,
.locdev-chat-settings-link {
    touch-action: manipulation;
}

.locdev-live-chat-launcher {
    position: relative;
    display: flex;
    width: min(240px, calc(100vw - 32px));
    min-width: 220px;
    max-width: 240px;
    min-height: 56px;
    align-items: center;
    gap: 10px;
    padding: 8px 15px 8px 8px;
    border: 1px solid rgb(255 255 255 / 55%);
    border-radius: 18px;
    appearance: none;
    background: var(--locdev-chat);
    background-image: linear-gradient(135deg, color-mix(in srgb, var(--locdev-chat) 86%, #fff), var(--locdev-chat));
    box-shadow: 0 16px 42px rgb(15 23 42 / 24%), inset 0 1px 0 rgb(255 255 255 / 55%);
    color: #102a32;
    cursor: pointer;
    pointer-events: auto;
    text-align: left;
    transition: transform 180ms var(--locdev-ease-out), box-shadow 180ms var(--locdev-ease-out);
}

.locdev-live-chat-launcher-icon {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border-radius: 13px;
    background: rgb(255 255 255 / 86%);
    color: #12626c;
}

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

.locdev-live-chat-launcher-icon img,
.locdev-live-chat-avatar img,
.locdev-live-chat-intro-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: contain;
}

.locdev-live-chat-launcher-icon img {
    padding: 2px;
}

.locdev-live-chat-launcher-copy {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.locdev-live-chat-launcher-copy strong {
    overflow: hidden;
    font-size: 13px;
    letter-spacing: 0.025em;
    line-height: 1.3;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.locdev-live-chat-launcher-copy small {
    font-size: 11px;
    line-height: 1.3;
    opacity: 0.76;
}

.locdev-live-chat-badge,
.locdev-chat-unread-total {
    display: grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    padding: 0 6px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.locdev-live-chat-badge {
    position: absolute;
    top: -7px;
    right: -7px;
}

.locdev-live-chat-badge[hidden],
.locdev-chat-unread-total[hidden] {
    display: none;
}

.locdev-live-chat-panel {
    position: absolute;
    right: 0;
    bottom: 70px;
    display: grid;
    width: min(390px, calc(100vw - 32px));
    height: min(620px, calc(100vh - 118px));
    min-height: 420px;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    overflow: hidden;
    border: 1px solid rgb(15 23 42 / 10%);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 30px 80px rgb(15 23 42 / 28%);
    transform-origin: right bottom;
    animation: locdev-chat-in 220ms var(--locdev-ease-out) both;
    pointer-events: auto;
}

.locdev-live-chat--left .locdev-live-chat-panel {
    right: auto;
    left: 0;
    transform-origin: left bottom;
}

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

.locdev-live-chat.is-collecting-details .locdev-live-chat-panel {
    height: auto;
    min-height: 0;
    max-height: min(620px, calc(100dvh - 32px));
}

.locdev-live-chat.is-collecting-details .locdev-live-chat-body {
    max-height: min(520px, calc(100dvh - 108px));
}

@keyframes locdev-chat-in {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.locdev-live-chat-head {
    display: grid;
    min-height: 76px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 13px 14px;
    background: var(--locdev-chat);
    background-image: linear-gradient(135deg, color-mix(in srgb, var(--locdev-chat) 88%, #fff), var(--locdev-chat));
    color: #102a32;
}

.locdev-live-chat-avatar {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 2px solid rgb(255 255 255 / 72%);
    border-radius: 14px;
    background: #fff;
    color: #12626c;
    font-size: 18px;
    font-weight: 850;
}

.locdev-live-chat-head h2,
.locdev-live-chat-head p {
    margin: 0;
}

.locdev-live-chat-head h2 {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
}

.locdev-live-chat-head p {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.3;
    opacity: 0.78;
}

.locdev-live-chat-head p span {
    width: 7px;
    height: 7px;
    border: 1px solid rgb(255 255 255 / 80%);
    border-radius: 50%;
    background: #059669;
}

.locdev-live-chat-head button,
.locdev-live-chat-form button,
.locdev-chat-refresh,
.locdev-chat-reply button {
    display: grid;
    width: 44px;
    height: 44px;
    min-width: 44px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 13px;
    cursor: pointer;
}

.locdev-live-chat-head button {
    background: rgb(255 255 255 / 34%);
    color: #102a32;
}

.locdev-live-chat-head button svg,
.locdev-live-chat-form button svg,
.locdev-chat-refresh svg,
.locdev-chat-reply button svg {
    width: 21px;
    height: 21px;
}

.locdev-live-chat-body {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
    padding: 16px 14px 10px;
    background-color: #f8fafc;
    background-image:
        radial-gradient(circle at 92% 5%, color-mix(in srgb, var(--locdev-chat) 16%, transparent), transparent 34%),
        linear-gradient(#f8fafc, #f8fafc);
}

.locdev-live-chat-lead {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    padding: 1px 2px 6px;
    scrollbar-width: thin;
}

.locdev-live-chat-lead[hidden],
.locdev-live-chat-conversation[hidden],
.locdev-live-chat-form[hidden] {
    display: none !important;
}

.locdev-live-chat-lead-intro {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    padding: 13px;
    border: 1px solid color-mix(in srgb, var(--locdev-chat) 30%, #e2e8f0);
    border-radius: 16px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--locdev-chat) 15%, #fff), #fff 62%);
}

.locdev-live-chat-lead-intro > span {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 13px;
    background: color-mix(in srgb, var(--locdev-chat) 35%, #fff);
    color: #12626c;
}

.locdev-live-chat-lead-intro svg {
    width: 21px;
    height: 21px;
}

.locdev-live-chat-lead-intro h3,
.locdev-live-chat-lead-intro p {
    margin: 0;
}

.locdev-live-chat-lead-intro h3 {
    color: #0f172a;
    font-size: 14px;
    line-height: 1.35;
}

.locdev-live-chat-lead-intro p {
    margin-top: 3px;
    color: #475569;
    font-size: 12px;
    line-height: 1.45;
}

.locdev-live-chat-lead-fields {
    display: grid;
    gap: 11px;
}

.locdev-live-chat-lead-fields label {
    display: grid;
    gap: 6px;
    color: #0f172a;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.35;
}

.locdev-live-chat-lead-fields label > span {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.locdev-live-chat-lead-fields b {
    color: #b91c1c;
}

.locdev-live-chat-lead-fields small {
    color: #64748b;
    font-size: 10px;
    font-weight: 500;
}

.locdev-live-chat-lead-fields input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    outline: 2px solid transparent;
    outline-offset: 1px;
    background: #fff;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.4;
    transition: border-color 180ms var(--locdev-ease-out), box-shadow 180ms var(--locdev-ease-out);
}

.locdev-live-chat-lead-fields input::placeholder {
    color: #94a3b8;
}

.locdev-live-chat-lead-fields input:focus {
    border-color: #12626c;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--locdev-chat) 25%, transparent);
}

.locdev-live-chat-lead-fields input:user-invalid {
    border-color: #dc2626;
}

.locdev-live-chat-lead-submit {
    display: inline-flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    border: 0;
    border-radius: 13px;
    background: #12626c;
    box-shadow: 0 8px 22px rgb(18 98 108 / 22%);
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    transition: opacity 180ms var(--locdev-ease-out), transform 180ms var(--locdev-ease-out), box-shadow 180ms var(--locdev-ease-out);
}

.locdev-live-chat-lead-submit svg {
    width: 18px;
    height: 18px;
}

.locdev-live-chat-lead-submit:disabled {
    cursor: wait;
    opacity: 0.62;
}

.locdev-live-chat-privacy {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: -2px 2px 0;
    color: #64748b;
    font-size: 10px;
    line-height: 1.45;
}

.locdev-live-chat-privacy svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    margin-top: 1px;
}

.locdev-live-chat-lead-status {
    min-height: 16px;
    margin: -6px 2px 0;
    color: #64748b;
    font-size: 11px;
    line-height: 1.4;
}

.locdev-live-chat-lead-status[data-state="error"] {
    color: #b91c1c;
}

.locdev-live-chat-conversation {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    gap: 12px;
}

.locdev-live-chat-messages {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.locdev-live-chat-message {
    display: flex;
    max-width: 84%;
    flex-direction: column;
    gap: 3px;
}

.locdev-live-chat-message p,
.locdev-live-chat-message time {
    margin: 0;
}

.locdev-live-chat-message p {
    padding: 10px 12px;
    border-radius: 15px 15px 15px 4px;
    background: #fff;
    box-shadow: 0 3px 12px rgb(15 23 42 / 7%);
    color: #1e293b;
    font-size: 14px;
    line-height: 1.48;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.locdev-live-chat-message time {
    padding-left: 4px;
    color: #64748b;
    font-size: 10px;
}

.locdev-live-chat-message.is-visitor {
    align-self: flex-end;
    align-items: flex-end;
}

.locdev-live-chat-message.is-visitor p {
    border-radius: 15px 15px 4px;
    background: var(--locdev-chat);
    color: #102a32;
}

.locdev-live-chat-message.is-visitor time {
    padding-right: 4px;
    padding-left: 0;
}

.locdev-live-chat-auto-label,
.locdev-chat-admin-auto-label {
    align-self: flex-start;
    margin: 0 0 1px 4px;
    color: #0f6b76;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.3;
    text-transform: uppercase;
}

.locdev-live-chat-message.is-auto-reply p {
    border: 1px solid color-mix(in srgb, var(--locdev-chat) 34%, #e2e8f0);
    background: color-mix(in srgb, var(--locdev-chat) 10%, #fff);
}

.locdev-live-chat-attachment,
.locdev-chat-admin-attachment {
    display: flex;
    max-width: 100%;
    color: inherit;
    text-decoration: none;
}

.locdev-live-chat-attachment.is-image,
.locdev-chat-admin-attachment.is-image {
    overflow: hidden;
    border: 1px solid rgb(15 23 42 / 10%);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 4px 16px rgb(15 23 42 / 10%);
}

.locdev-live-chat-attachment.is-image {
    width: min(260px, 100%);
}

.locdev-chat-admin-attachment.is-image {
    width: min(360px, 100%);
}

.locdev-live-chat-attachment.is-image img,
.locdev-chat-admin-attachment.is-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
}

.locdev-live-chat-attachment.is-file,
.locdev-chat-admin-attachment.is-file {
    min-width: 210px;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid color-mix(in srgb, var(--locdev-chat) 38%, #dbe3ee);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 12px rgb(15 23 42 / 7%);
}

.locdev-live-chat-file-icon,
.locdev-chat-admin-file-icon {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border-radius: 11px;
    background: color-mix(in srgb, var(--locdev-chat) 24%, #fff);
    color: #12626c;
}

.locdev-live-chat-file-icon svg,
.locdev-chat-admin-file-icon svg {
    width: 20px;
    height: 20px;
}

.locdev-live-chat-attachment.is-file > span:last-child,
.locdev-chat-admin-attachment.is-file > span:last-child {
    display: grid;
    min-width: 0;
}

.locdev-live-chat-attachment strong,
.locdev-chat-admin-attachment strong {
    overflow: hidden;
    color: #0f172a;
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.locdev-live-chat-attachment small,
.locdev-chat-admin-attachment small {
    color: #64748b;
    font-size: 10px;
    line-height: 1.4;
}

.locdev-live-chat-message.is-intro {
    display: grid;
    width: 100%;
    max-width: 100%;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    margin-top: 2px;
    padding: 12px;
    border: 1px solid color-mix(in srgb, var(--locdev-chat) 30%, #e2e8f0);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgb(15 23 42 / 8%);
}

.locdev-live-chat-intro-avatar {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: color-mix(in srgb, var(--locdev-chat) 28%, #fff);
    color: #12626c;
    font-size: 14px;
    font-weight: 850;
}

.locdev-live-chat-message.is-intro > div {
    min-width: 0;
}

.locdev-live-chat-message.is-intro strong {
    display: block;
    margin: 1px 0 3px;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.3;
}

.locdev-live-chat-message.is-intro p {
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 13px;
}

.locdev-live-chat-message.is-intro small {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 10px;
    line-height: 1.4;
}

.locdev-live-chat-quick {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.locdev-live-chat-quick button {
    min-height: 44px;
    padding: 7px 11px;
    border: 1px solid color-mix(in srgb, var(--locdev-chat) 68%, #0f172a);
    border-radius: 12px;
    background: #fff;
    color: #164e63;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    transition: background-color 180ms var(--locdev-ease-out), transform 180ms var(--locdev-ease-out);
}

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

.locdev-live-chat-form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 10px 23px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.locdev-live-chat-composer-row,
.locdev-chat-reply-row {
    display: grid;
    grid-template-areas:
        "tools tools"
        "field send";
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 7px;
}

.locdev-live-chat-composer-row textarea,
.locdev-chat-reply-row textarea {
    grid-area: field;
}

.locdev-live-chat-composer-row .locdev-live-chat-send,
.locdev-chat-reply-row .locdev-chat-send {
    grid-area: send;
}

.locdev-live-chat-tools,
.locdev-chat-composer-tools {
    display: flex;
    grid-area: tools;
    align-items: center;
    gap: 3px;
}

.locdev-live-chat-tools button,
.locdev-chat-composer-tools button {
    border: 1px solid #dbe3ee;
    background: #f8fafc;
    color: #365268;
}

.locdev-live-chat-tools [data-live-chat-rating-toggle].has-rating {
    border-color: #fbbf24;
    background: #fffbeb;
    color: #b45309;
}

.locdev-live-chat-tools [data-live-chat-rating-toggle].has-rating path {
    fill: currentColor;
}

.locdev-live-chat-send,
.locdev-chat-send {
    background: #12626c !important;
    color: #fff !important;
}

.locdev-live-chat-attachment-preview,
.locdev-chat-attachment-preview {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 6px 7px 6px 10px;
    border: 1px solid color-mix(in srgb, var(--locdev-chat) 34%, #dbe3ee);
    border-radius: 13px;
    background: color-mix(in srgb, var(--locdev-chat) 8%, #fff);
}

.locdev-live-chat-attachment-preview[hidden],
.locdev-chat-attachment-preview[hidden],
.locdev-live-chat-emoji-menu[hidden],
.locdev-chat-emoji-menu[hidden],
.locdev-live-chat-rating[hidden] {
    display: none !important;
}

.locdev-live-chat-attachment-preview > span:first-child,
.locdev-chat-attachment-preview > span:first-child {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 10px;
    background: #fff;
    color: #12626c;
}

.locdev-live-chat-attachment-preview > span:nth-child(2),
.locdev-chat-attachment-preview > span:nth-child(2) {
    display: grid;
    min-width: 0;
}

.locdev-live-chat-attachment-preview svg,
.locdev-chat-attachment-preview svg {
    width: 18px;
    height: 18px;
}

.locdev-live-chat-attachment-preview strong,
.locdev-chat-attachment-preview strong {
    overflow: hidden;
    color: #0f172a;
    font-size: 11px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.locdev-live-chat-attachment-preview small,
.locdev-chat-attachment-preview small {
    color: #64748b;
    font-size: 9px;
}

.locdev-live-chat-attachment-preview button,
.locdev-chat-attachment-preview button {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border: 0 !important;
    background: transparent !important;
    color: #64748b !important;
}

.locdev-live-chat-emoji-menu,
.locdev-chat-emoji-menu {
    display: grid;
    grid-template-columns: repeat(8, minmax(32px, 1fr));
    gap: 3px;
    padding: 6px;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 10px 28px rgb(15 23 42 / 12%);
}

.locdev-live-chat-emoji-menu button,
.locdev-chat-emoji-menu button {
    width: 100%;
    height: 44px;
    min-width: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #0f172a;
    font-size: 20px;
    line-height: 1;
}

.locdev-live-chat-rating {
    display: grid;
    gap: 10px;
    padding: 12px 14px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 -12px 32px rgb(15 23 42 / 8%);
}

.locdev-live-chat-rating-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.locdev-live-chat-rating-head > div {
    display: grid;
    margin-right: auto;
}

.locdev-live-chat-rating-head strong {
    color: #0f172a;
    font-size: 13px;
}

.locdev-live-chat-rating-head span {
    color: #64748b;
    font-size: 10px;
}

.locdev-live-chat-rating-head button {
    display: grid;
    width: 44px;
    height: 44px;
    min-width: 44px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #f1f5f9;
    color: #475569;
    cursor: pointer;
}

.locdev-live-chat-rating-head svg {
    width: 18px;
    height: 18px;
}

.locdev-live-chat-stars {
    display: flex;
    gap: 5px;
}

.locdev-live-chat-stars button {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    color: #94a3b8;
    cursor: pointer;
}

.locdev-live-chat-stars button svg {
    width: 22px;
    height: 22px;
}

.locdev-live-chat-stars button.is-active {
    border-color: #f59e0b;
    background: #fffbeb;
    color: #f59e0b;
}

.locdev-live-chat-stars button.is-active path {
    fill: currentColor;
}

.locdev-live-chat-rating textarea {
    width: 100%;
    min-height: 58px;
    resize: vertical;
    padding: 9px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    outline: 0;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.4;
}

.locdev-live-chat-rating-foot {
    display: flex;
    min-height: 38px;
    align-items: center;
    gap: 10px;
}

.locdev-live-chat-rating-foot button {
    min-height: 38px;
    padding: 8px 13px;
    border: 0;
    border-radius: 10px;
    background: #12626c;
    color: #fff;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
}

.locdev-live-chat-rating-foot span {
    color: #475569;
    font-size: 10px;
}

.locdev-live-chat-form textarea,
.locdev-chat-reply textarea {
    width: 100%;
    min-height: 44px;
    max-height: 112px;
    resize: none;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 13px;
    outline: 0;
    background: #fff;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.4;
}

.locdev-live-chat-send,
.locdev-chat-send {
    background: #12626c;
    color: #fff;
}

.locdev-live-chat-form button:disabled,
.locdev-chat-reply button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.locdev-live-chat-status,
.locdev-chat-form-status {
    position: absolute;
    right: 12px;
    bottom: 4px;
    left: 12px;
    min-height: 14px;
    margin: 0;
    color: #64748b;
    font-size: 10px;
    line-height: 1.3;
}

.locdev-live-chat-status[data-state="error"],
.locdev-live-chat-status[data-state="closed"] {
    color: #b91c1c;
}

.locdev-live-chat-launcher:focus-visible,
.locdev-live-chat button:focus-visible,
.locdev-live-chat a:focus-visible,
.locdev-live-chat input:focus-visible,
.locdev-live-chat textarea:focus-visible,
.locdev-chat-admin button:focus-visible,
.locdev-chat-admin a:focus-visible,
.locdev-chat-admin textarea:focus-visible,
.locdev-chat-settings-link:focus-visible,
.locdev-chat-customer > a:focus-visible,
.locdev-chat-config-footer a:focus-visible {
    outline: 2px solid #12626c;
    outline-offset: 2px;
}

/* Live chat inbox */
.locdev-chat-admin-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.locdev-chat-settings-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    align-self: center;
    padding: 10px 14px;
    border: 1px solid var(--locdev-rule);
    border-radius: 11px;
    background: #fff;
    color: var(--locdev-ink);
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.locdev-chat-inbox {
    display: grid;
    min-height: max(660px, calc(100vh - 250px));
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--locdev-rule);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 54px var(--locdev-shadow);
}

.locdev-chat-list-panel {
    display: grid;
    min-width: 0;
    grid-template-rows: auto auto minmax(0, 1fr);
    border-right: 1px solid var(--locdev-rule);
    background: #f8fafc;
}

.locdev-chat-list-head,
.locdev-chat-thread-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px;
}

.locdev-chat-list-head h2,
.locdev-chat-list-head p,
.locdev-chat-thread-head h2,
.locdev-chat-thread-head p {
    margin: 0;
}

.locdev-chat-list-head h2,
.locdev-chat-thread-head h2 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 3px;
    color: var(--locdev-ink);
    font-size: 17px;
    line-height: 1.25;
}

.locdev-chat-kicker,
.locdev-chat-thread-head p {
    color: var(--locdev-ink-soft);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.locdev-chat-refresh {
    border: 1px solid var(--locdev-rule);
    background: #fff;
    color: var(--locdev-ink-soft);
}

.locdev-chat-refresh.is-loading svg {
    animation: locdev-hub-spin 700ms linear infinite;
}

.locdev-chat-filters {
    display: flex;
    gap: 6px;
    padding: 0 18px 14px;
}

.locdev-chat-filters button {
    min-height: 44px;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--locdev-ink-soft);
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
}

.locdev-chat-filters button.is-active {
    border-color: var(--locdev-rule);
    background: #fff;
    color: var(--locdev-ink);
    box-shadow: 0 3px 10px rgb(15 23 42 / 6%);
}

.locdev-chat-conversations {
    min-height: 0;
    overflow-y: auto;
    border-top: 1px solid var(--locdev-rule);
}

.locdev-chat-conversation {
    position: relative;
    display: grid;
    width: 100%;
    gap: 6px;
    padding: 14px 16px;
    border: 0;
    border-bottom: 1px solid var(--locdev-rule);
    background: transparent;
    color: var(--locdev-ink);
    cursor: pointer;
    text-align: left;
}

.locdev-chat-conversation.is-active {
    background: #fff;
    box-shadow: inset 3px 0 0 var(--locdev-chat);
}

.locdev-chat-conversation.has-unread::after {
    position: absolute;
    top: 18px;
    right: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2563eb;
    content: "";
}

.locdev-chat-conversation-row,
.locdev-chat-conversation-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.locdev-chat-conversation-row strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.locdev-chat-conversation-row time,
.locdev-chat-conversation-preview {
    color: var(--locdev-ink-soft);
    font-size: 10px;
}

.locdev-chat-conversation-preview {
    overflow: hidden;
    font-size: 12px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.locdev-chat-conversation-contact {
    overflow: hidden;
    color: #0f6b76;
    font-size: 10px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.locdev-chat-conversation-meta {
    justify-content: flex-start;
}

.locdev-chat-conversation-meta small {
    padding: 3px 6px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 9px;
    font-weight: 750;
}

.locdev-chat-conversation-meta small.is-closed {
    background: #e2e8f0;
    color: #475569;
}

.locdev-chat-list-rating {
    padding: 3px 6px;
    border-radius: 999px;
    background: #fffbeb;
    color: #92400e;
    font-size: 9px;
    font-weight: 800;
}

.locdev-chat-conversation-meta b {
    display: grid;
    min-width: 20px;
    height: 20px;
    place-items: center;
    padding: 0 5px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-size: 9px;
}

.locdev-chat-empty {
    margin: 0;
    padding: 24px 18px;
    color: var(--locdev-ink-soft);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.locdev-chat-thread-panel,
.locdev-chat-thread,
.locdev-chat-thread-empty {
    min-width: 0;
    min-height: 0;
}

.locdev-chat-thread-panel {
    position: relative;
}

.locdev-chat-thread-empty {
    display: grid;
    height: 100%;
    place-content: center;
    justify-items: center;
    padding: 32px;
    color: var(--locdev-ink-soft);
    text-align: center;
}

.locdev-chat-thread-empty span {
    display: grid;
    width: 60px;
    height: 60px;
    place-items: center;
    border-radius: 18px;
    background: var(--locdev-paper-tint);
    color: var(--locdev-primary);
}

.locdev-chat-thread-empty svg {
    width: 28px;
    height: 28px;
}

.locdev-chat-thread-empty h2 {
    margin: 14px 0 4px;
    color: var(--locdev-ink);
    font-size: 18px;
}

.locdev-chat-thread-empty p {
    margin: 0;
    font-size: 12px;
}

.locdev-chat-thread {
    display: grid;
    height: 100%;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.locdev-chat-thread[hidden],
.locdev-chat-thread-empty[hidden] {
    display: none;
}

.locdev-chat-thread.is-loading {
    opacity: 0.64;
}

.locdev-chat-thread-head {
    min-height: 77px;
    border-bottom: 1px solid var(--locdev-rule);
}

.locdev-chat-customer {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-bottom: 1px solid var(--locdev-rule);
    background: color-mix(in srgb, var(--locdev-chat) 8%, #fff);
}

.locdev-chat-customer[hidden] {
    display: none;
}

.locdev-chat-customer-avatar {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 12px;
    background: #fff;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--locdev-chat) 42%, #dbe3ee);
    color: #12626c;
    font-size: 14px;
    font-weight: 850;
}

.locdev-chat-customer-main {
    display: grid;
    min-width: 140px;
    margin-right: auto;
}

.locdev-chat-customer-main strong {
    overflow: hidden;
    color: var(--locdev-ink);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.locdev-chat-customer-main span {
    color: var(--locdev-ink-soft);
    font-size: 10px;
}

.locdev-chat-customer > a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 7px 10px;
    border: 1px solid var(--locdev-rule);
    border-radius: 10px;
    background: #fff;
    color: #0f5e6a;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.locdev-chat-customer-rating {
    display: inline-flex;
    min-height: 36px;
    max-width: 260px;
    align-items: center;
    padding: 7px 10px;
    border: 1px solid #fde68a;
    border-radius: 10px;
    background: #fffbeb;
    color: #92400e;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.35;
}

.locdev-chat-customer-rating[hidden] {
    display: none;
}

.locdev-chat-status-button {
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fff;
    color: #b91c1c;
    cursor: pointer;
    font-size: 11px;
    font-weight: 750;
}

.locdev-chat-status-button.is-closed {
    border-color: #bbf7d0;
    color: #166534;
}

.locdev-chat-messages {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding: 20px;
    background: #f8fafc;
}

.locdev-chat-admin-message {
    display: flex;
    max-width: min(76%, 560px);
    flex-direction: column;
    gap: 4px;
}

.locdev-chat-admin-message p,
.locdev-chat-admin-message time {
    margin: 0;
}

.locdev-chat-admin-message p {
    padding: 10px 13px;
    border: 1px solid #e2e8f0;
    border-radius: 14px 14px 14px 4px;
    background: #fff;
    color: #1e293b;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.locdev-chat-admin-message time {
    padding-left: 4px;
    color: #64748b;
    font-size: 9px;
}

.locdev-chat-admin-message.is-admin {
    align-self: flex-end;
    align-items: flex-end;
}

.locdev-chat-admin-message.is-admin p {
    border-color: color-mix(in srgb, var(--locdev-chat) 58%, #fff);
    border-radius: 14px 14px 4px;
    background: color-mix(in srgb, var(--locdev-chat) 30%, #fff);
}

.locdev-chat-admin-message.is-system {
    align-self: center;
    align-items: center;
    max-width: min(86%, 620px);
}

.locdev-chat-admin-message.is-system p {
    border-color: color-mix(in srgb, var(--locdev-chat) 30%, #e2e8f0);
    border-radius: 14px;
    background: color-mix(in srgb, var(--locdev-chat) 9%, #fff);
    color: #334155;
    font-size: 12px;
    text-align: center;
}

.locdev-chat-admin-message.is-system time {
    padding-left: 0;
}

.locdev-chat-admin-auto-label {
    align-self: center;
    margin-left: 0;
}

.locdev-chat-reply {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 14px 25px;
    border-top: 1px solid var(--locdev-rule);
    background: #fff;
}

.locdev-chat-privacy-note {
    margin: 12px 0 0;
    color: var(--locdev-ink-soft);
    font-size: 11px;
    line-height: 1.5;
}

@media (hover: hover) and (pointer: fine) {
    .locdev-live-chat-launcher:hover {
        box-shadow: 0 18px 44px rgb(15 23 42 / 28%);
        transform: translateY(-2px);
    }

    .locdev-live-chat-quick button:hover {
        background: color-mix(in srgb, var(--locdev-chat) 18%, #fff);
        transform: translateY(-1px);
    }

    .locdev-live-chat-tools button:hover,
    .locdev-chat-composer-tools button:hover,
    .locdev-live-chat-emoji-menu button:hover,
    .locdev-chat-emoji-menu button:hover {
        border-color: color-mix(in srgb, var(--locdev-chat) 52%, #dbe3ee);
        background: color-mix(in srgb, var(--locdev-chat) 12%, #fff);
        color: #0f5e6a;
    }

    .locdev-live-chat-attachment:hover,
    .locdev-chat-admin-attachment:hover {
        border-color: color-mix(in srgb, var(--locdev-chat) 64%, #dbe3ee);
    }

    .locdev-live-chat-stars button:hover {
        border-color: #fbbf24;
        background: #fffbeb;
        color: #f59e0b;
    }

    .locdev-live-chat-lead-submit:hover {
        box-shadow: 0 11px 26px rgb(18 98 108 / 28%);
        transform: translateY(-1px);
    }

    .locdev-chat-customer > a:hover {
        border-color: #12626c;
        color: #0f5e6a;
    }

    .locdev-chat-conversation:hover,
    .locdev-chat-filters button:hover {
        background: #fff;
    }
}

.locdev-live-chat-launcher:active,
.locdev-live-chat-lead-submit:active,
.locdev-live-chat-quick button:active,
.locdev-live-chat-form button:active,
.locdev-chat-refresh:active,
.locdev-chat-status-button:active,
.locdev-chat-reply button:active,
.locdev-preview-chat-launcher:active {
    transform: scale(0.98);
}

@media (max-width: 850px) {
    html.locdev-live-chat-open .locdev-mobile-bar {
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
    }

    .locdev-live-chat,
    .locdev-live-chat--left {
        right: max(12px, env(safe-area-inset-right));
        bottom: var(--locdev-chat-mobile-y, 92px);
        left: auto;
    }

    .locdev-live-chat-launcher {
        width: 56px;
        min-width: 56px;
        height: 56px;
        min-height: 56px;
        padding: 8px;
        border-radius: 18px;
    }

    .locdev-live-chat-launcher-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

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

    .locdev-live-chat-panel,
    .locdev-live-chat--left .locdev-live-chat-panel {
        position: fixed;
        right: max(8px, env(safe-area-inset-right));
        bottom: calc(var(--locdev-chat-mobile-y, 92px) + 64px);
        left: max(8px, env(safe-area-inset-left));
        width: auto;
        height: min(620px, calc(100dvh - var(--locdev-chat-mobile-y, 92px) - 80px));
        min-height: 360px;
        transform-origin: right bottom;
    }

    html.locdev-live-chat-open .locdev-live-chat-panel {
        bottom: max(8px, env(safe-area-inset-bottom));
        height: min(620px, calc(100dvh - 16px - env(safe-area-inset-bottom)));
    }
}

@media (max-width: 782px) {
    .locdev-chat-admin-header {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .locdev-chat-settings-link {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .locdev-chat-inbox {
        min-height: 720px;
        grid-template-columns: minmax(220px, 38%) minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    .locdev-chat-inbox {
        min-height: 840px;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 310px 530px;
    }

    .locdev-chat-list-panel {
        border-right: 0;
        border-bottom: 1px solid var(--locdev-rule);
    }

    .locdev-chat-admin-message {
        max-width: 88%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .locdev-live-chat-panel,
    .locdev-chat-refresh,
    .locdev-live-chat-launcher,
    .locdev-live-chat-quick button,
    .locdev-preview-chat-panel,
    .locdev-preview-chat-launcher {
        animation-duration: 1ms !important;
        transition-duration: 1ms !important;
    }
}

.locdev-mobile-bar::after {
    position: absolute;
    bottom: env(safe-area-inset-bottom);
    left: 0;
    z-index: -1;
    width: 100%;
    height: 65px;
    background-color: transparent;
    background-image: url("mb-footer-bg.svg");
    background-position: left top;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    content: "";
    pointer-events: none;
}

.locdev-footer-action {
    position: relative;
    display: flex;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    min-height: 56px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    justify-self: stretch;
    align-self: stretch;
    margin: 0 !important;
    padding: 11px 0 0;
    border: 0;
    appearance: none;
    background: transparent;
    color: #313131;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    text-decoration: none !important;
    touch-action: manipulation;
}

.locdev-footer-action > img {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.locdev-footer-label {
    display: block;
    width: 100%;
    overflow: hidden;
    padding: 0 2px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.locdev-footer-action--primary {
    z-index: var(--locdev-z-raised);
    background: transparent !important;
}

.locdev-footer-action--primary > .locdev-footer-label {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
}

.locdev-footer-action--primary > .locdev-footer-label > span {
    display: inline-block;
    padding: 0 8px;
    border-radius: 30px;
    background-image: linear-gradient(92.83deg, #0e68c8 0, #02a4a5 100%);
    color: #fff;
}

.locdev-footer-primary-icon {
    position: absolute;
    top: -28px;
    left: 50%;
    width: 50px;
    height: 50px;
    border: 2px solid #fff;
    border-radius: 50%;
    background-image: linear-gradient(92.83deg, #f90000 0, #950099 100%);
    box-shadow: rgb(0 0 0 / 15%) 0 -3px 10px 0;
    text-align: center;
    transform: translateX(-50%);
}

.locdev-footer-primary-icon > img {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 20px;
    height: 20px;
    max-width: 20px;
    object-fit: cover;
    transform: translate(-50%, -50%);
}

.locdev-footer-phone-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    border: 2px solid transparent;
    border-radius: 50%;
    box-shadow: 0 0 0 0 #0e68c8;
    transform: translate(-50%, -50%);
    animation: locdev-footer-phone-zoom 1.3s infinite;
}

@keyframes locdev-footer-phone-zoom {
    70% { box-shadow: 0 0 0 15px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

/* Social drawer */
.locdev-social-drawer[hidden] {
    display: none !important;
}

.locdev-social-drawer {
    position: fixed;
    inset: 0;
    z-index: var(--locdev-z-drawer);
}

.locdev-drawer-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    appearance: none;
    background: var(--locdev-overlay);
    cursor: pointer;
    opacity: 0;
    transition: opacity var(--locdev-dur-medium) var(--locdev-ease-out);
}

.locdev-drawer-panel {
    position: absolute;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    width: min(440px, calc(100vw - 40px));
    max-height: min(680px, calc(100vh - 40px));
    overflow: auto;
    padding: var(--locdev-space-lg);
    border: 1px solid var(--locdev-rule);
    border-radius: var(--locdev-radius-lg);
    background: var(--locdev-paper);
    box-shadow: 0 28px 80px var(--locdev-shadow-strong);
    color: var(--locdev-ink);
    opacity: 0;
    outline: 0;
    transform: translateY(18px) scale(0.98);
    transition:
        opacity var(--locdev-dur-medium) var(--locdev-ease-out),
        transform var(--locdev-dur-medium) var(--locdev-ease-out);
}

.locdev-social-drawer--left .locdev-drawer-panel {
    right: auto;
    left: max(20px, env(safe-area-inset-left));
}

.locdev-social-drawer.is-open .locdev-drawer-backdrop,
.locdev-social-drawer.is-open .locdev-drawer-panel {
    opacity: 1;
}

.locdev-social-drawer.is-open .locdev-drawer-panel {
    transform: translateY(0) scale(1);
}

.locdev-drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--locdev-space-md);
    margin-bottom: var(--locdev-space-lg);
}

.locdev-drawer-header p,
.locdev-drawer-header h2,
.locdev-drawer-note {
    margin: 0;
}

.locdev-card-note {
    margin: var(--locdev-space-md) 0 0;
    padding: var(--locdev-space-sm) var(--locdev-space-md);
    border: 1px solid var(--locdev-rule);
    border-radius: var(--locdev-radius-sm);
    background: var(--locdev-paper-soft);
    color: var(--locdev-ink-soft);
    font-size: 12px;
    line-height: 1.55;
}

.locdev-drawer-header p {
    margin-bottom: var(--locdev-space-xs);
    color: var(--locdev-primary);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.locdev-drawer-header h2 {
    color: var(--locdev-ink);
    font-size: clamp(24px, 5vw, 32px);
    font-style: normal;
    line-height: 1.1;
}

.locdev-social-drawer .locdev-drawer-close {
    position: relative !important;
    display: inline-flex !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    aspect-ratio: 1;
    flex: 0 0 40px;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid var(--locdev-rule) !important;
    border-radius: 50% !important;
    appearance: none;
    background: var(--locdev-paper-soft) !important;
    color: var(--locdev-ink) !important;
    cursor: pointer;
    font-size: 21px;
    line-height: 1 !important;
    text-indent: 0;
    box-shadow: none !important;
    float: none !important;
    touch-action: manipulation;
    transition:
        background-color var(--locdev-dur-short) var(--locdev-ease-out),
        transform var(--locdev-dur-short) var(--locdev-ease-out);
}

.locdev-social-drawer .locdev-drawer-close svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.locdev-drawer-close:active {
    transform: scale(0.96);
}

.locdev-social-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--locdev-space-sm);
}

.locdev-social-card {
    display: flex;
    min-width: 0;
    min-height: 76px;
    align-items: center;
    gap: var(--locdev-space-sm);
    padding: var(--locdev-space-sm);
    border: 1px solid var(--locdev-rule);
    border-radius: var(--locdev-radius-md);
    background: var(--locdev-paper);
    color: var(--locdev-ink);
    text-decoration: none !important;
    touch-action: manipulation;
    transition:
        border-color var(--locdev-dur-short) var(--locdev-ease-out),
        box-shadow var(--locdev-dur-short) var(--locdev-ease-out),
        transform var(--locdev-dur-short) var(--locdev-ease-out);
}

.locdev-social-card:active {
    transform: translateY(0);
}

.locdev-channel-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--locdev-channel-color, var(--locdev-primary));
    color: var(--locdev-white);
    font-size: 23px;
}

.locdev-channel-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: var(--locdev-space-2xs);
}

.locdev-channel-copy strong,
.locdev-channel-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.locdev-channel-copy strong {
    color: var(--locdev-ink);
    font-size: 14px;
}

.locdev-channel-copy small {
    color: var(--locdev-ink-soft);
    font-size: 11px;
}

.locdev-channel--zalo { --locdev-channel-color: var(--locdev-zalo); }
.locdev-channel--fanpage { --locdev-channel-color: var(--locdev-fanpage); }
.locdev-channel--tiktok { --locdev-channel-color: var(--locdev-tiktok); }
.locdev-channel--instagram { --locdev-channel-color: var(--locdev-instagram); }
.locdev-channel--youtube { --locdev-channel-color: var(--locdev-youtube); }
.locdev-channel--telegram { --locdev-channel-color: var(--locdev-telegram); }

.locdev-drawer-note {
    margin-top: var(--locdev-space-md);
    padding-top: var(--locdev-space-md);
    border-top: 1px solid var(--locdev-rule);
    color: var(--locdev-ink-soft);
    font-size: 12px;
    line-height: 1.5;
}

body.locdev-drawer-open {
    overflow: hidden;
}

/* WordPress admin */
.locdev-admin {
    width: auto;
    max-width: none;
    margin-top: var(--locdev-space-lg);
    margin-right: 20px;
    color: var(--locdev-ink);
}

.locdev-admin-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--locdev-space-md);
    margin-bottom: var(--locdev-space-lg);
    padding: var(--locdev-space-lg);
    border: 1px solid var(--locdev-rule);
    border-radius: var(--locdev-radius-lg);
    background: var(--locdev-paper);
    box-shadow: 0 12px 36px var(--locdev-shadow);
}

.locdev-brand-mark {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: var(--locdev-radius-md);
    background: var(--locdev-primary);
    color: var(--locdev-accent-ink);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.locdev-admin-header h1,
.locdev-eyebrow,
.locdev-admin-intro {
    margin: 0;
}

.locdev-admin-header h1 {
    padding: 0;
    color: var(--locdev-ink);
    font-size: clamp(24px, 3vw, 34px);
    font-style: normal;
    font-weight: 750;
    line-height: 1.15;
    min-width: 0;
    overflow-wrap: anywhere;
}

.locdev-eyebrow {
    margin-bottom: var(--locdev-space-2xs);
    color: var(--locdev-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.locdev-admin-intro {
    margin-top: var(--locdev-space-xs);
    color: var(--locdev-ink-soft);
    font-size: 14px;
    line-height: 1.5;
}

.locdev-version {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 var(--locdev-space-sm);
    border: 1px solid var(--locdev-rule);
    border-radius: var(--locdev-radius-pill);
    background: var(--locdev-paper-soft);
    color: var(--locdev-ink-soft);
    font-size: 12px;
    font-weight: 700;
}

.locdev-admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.8fr);
    align-items: start;
    gap: var(--locdev-space-lg);
}

.locdev-admin-main,
.locdev-admin-aside {
    display: grid;
    min-width: 0;
    gap: var(--locdev-space-lg);
}

.locdev-admin-aside {
    position: sticky;
    top: 48px;
}

.locdev-card {
    min-width: 0;
    padding: var(--locdev-space-lg);
    border: 1px solid var(--locdev-rule);
    border-radius: var(--locdev-radius-lg);
    background: var(--locdev-paper);
    box-shadow: 0 8px 28px var(--locdev-shadow);
}

.locdev-card-heading {
    display: flex;
    align-items: flex-start;
    gap: var(--locdev-space-sm);
    margin-bottom: var(--locdev-space-lg);
}

.locdev-card-heading h2,
.locdev-card-heading p {
    margin: 0;
}

.locdev-card-heading h2 {
    color: var(--locdev-ink);
    font-size: 17px;
    font-style: normal;
    font-weight: 750;
    line-height: 1.3;
}

.locdev-card-heading p {
    margin-top: var(--locdev-space-2xs);
    color: var(--locdev-ink-soft);
    font-size: 13px;
    line-height: 1.5;
}

.locdev-card-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: var(--locdev-primary-soft);
    color: var(--locdev-primary);
    font-size: 21px;
}

.locdev-chat-config {
    display: grid;
    gap: 14px;
}

.locdev-chat-config-section {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--locdev-rule);
    border-radius: 18px;
    background: linear-gradient(145deg, #fff, color-mix(in srgb, var(--locdev-paper-soft) 68%, #fff));
}

.locdev-chat-config-section--status {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.55fr);
    align-items: center;
    gap: 20px;
    border-color: color-mix(in srgb, var(--locdev-chat) 34%, var(--locdev-rule));
    background: linear-gradient(120deg, color-mix(in srgb, var(--locdev-chat) 10%, #fff), #fff 58%);
}

.locdev-chat-config-title {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 16px;
}

.locdev-chat-config-section--status .locdev-chat-config-title {
    margin-bottom: 0;
}

.locdev-chat-config-title > span {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border-radius: 10px;
    background: var(--locdev-primary-soft);
    color: var(--locdev-primary);
    font-family: var(--locdev-font-mono);
    font-size: 10px;
    font-weight: 800;
}

.locdev-chat-config-title h3,
.locdev-chat-config-title p {
    margin: 0;
}

.locdev-chat-config-title h3 {
    color: var(--locdev-ink);
    font-size: 14px;
    line-height: 1.35;
}

.locdev-chat-config-title p {
    margin-top: 3px;
    color: var(--locdev-ink-soft);
    font-size: 11px;
    line-height: 1.45;
}

.locdev-chat-config-section .locdev-field:has(.locdev-select) {
    grid-column: auto;
}

.locdev-chat-config-section--lead {
    border-color: color-mix(in srgb, var(--locdev-chat) 22%, var(--locdev-rule));
}

.locdev-chat-config-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 15px;
    border: 1px solid color-mix(in srgb, var(--locdev-chat) 24%, var(--locdev-rule));
    border-radius: 14px;
    background: color-mix(in srgb, var(--locdev-chat) 7%, #fff);
    color: var(--locdev-ink-soft);
    font-size: 11px;
    line-height: 1.45;
}

.locdev-chat-config-footer a {
    display: inline-flex;
    min-height: 44px;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 10px;
    background: var(--locdev-ink);
    color: #fff;
    font-weight: 750;
    text-decoration: none;
}

.locdev-fields {
    display: grid;
    gap: var(--locdev-space-md);
}

.locdev-fields--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.locdev-field {
    min-width: 0;
}

.locdev-field > label {
    display: block;
    margin-bottom: var(--locdev-space-xs);
    color: var(--locdev-ink);
    font-size: 13px;
    font-weight: 700;
}

.locdev-field > p {
    margin: var(--locdev-space-xs) 0 0;
    color: var(--locdev-ink-soft);
    font-size: 11px;
    line-height: 1.45;
    min-height: 1lh;
}

.locdev-media-control {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--locdev-rule);
    border-radius: 14px;
    background: var(--locdev-paper-soft);
}

.locdev-media-preview {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    overflow: hidden;
    border: 1px dashed color-mix(in srgb, var(--locdev-primary) 42%, var(--locdev-rule));
    border-radius: 18px;
    background: #fff;
    color: var(--locdev-primary);
    font-size: 24px;
    font-weight: 850;
}

.locdev-media-preview img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 6px;
    object-fit: contain;
}

.locdev-media-preview img[hidden],
.locdev-media-preview span[hidden],
.locdev-media-remove[hidden] {
    display: none;
}

.locdev-media-actions {
    display: grid;
    min-width: 0;
    gap: 8px;
}

.locdev-media-actions > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.locdev-media-button,
.locdev-media-remove {
    min-height: 44px;
    padding: 8px 13px;
    border: 1px solid var(--locdev-rule);
    border-radius: 10px;
    background: #fff;
    color: var(--locdev-ink);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    transition: border-color var(--locdev-dur-short) var(--locdev-ease-out), background-color var(--locdev-dur-short) var(--locdev-ease-out), transform var(--locdev-dur-short) var(--locdev-ease-out);
}

.locdev-media-remove {
    color: #b91c1c;
}

.locdev-admin .locdev-input {
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 0 var(--locdev-space-sm);
    border: 1px solid var(--locdev-rule);
    border-radius: var(--locdev-radius-sm);
    outline: 2px solid transparent;
    outline-offset: 1px;
    background: var(--locdev-paper);
    color: var(--locdev-ink);
    box-shadow: none;
    font-size: 14px;
    line-height: 1.3;
    transition:
        border-color var(--locdev-dur-short) var(--locdev-ease-out),
        background-color var(--locdev-dur-short) var(--locdev-ease-out);
}

.locdev-admin .locdev-textarea {
    min-height: 82px;
    padding: 10px var(--locdev-space-sm);
    resize: vertical;
    line-height: 1.5;
}

.locdev-admin .locdev-input:focus {
    border-color: var(--locdev-primary);
    outline: 2px solid var(--locdev-focus);
    outline-offset: 1px;
}

.locdev-admin .locdev-input::placeholder {
    color: var(--locdev-ink-soft);
    opacity: 0.7;
}

.locdev-field:has(.locdev-select) {
    grid-column: 1 / -1;
}

.locdev-admin .locdev-input:disabled,
.locdev-admin .locdev-save-button:disabled,
.locdev-contact-pill[aria-disabled="true"],
.locdev-hub-button[aria-disabled="true"],
.locdev-hub-button:disabled,
.locdev-footer-action[aria-disabled="true"],
.locdev-footer-action:disabled,
.locdev-social-card[aria-disabled="true"],
.locdev-drawer-close:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    pointer-events: none;
}

.locdev-footer-action[aria-busy="true"],
.locdev-social-card[aria-busy="true"],
.locdev-drawer-close[aria-busy="true"] {
    cursor: progress;
    opacity: 0.65;
    pointer-events: none;
}

.locdev-footer-action[data-state="error"],
.locdev-social-card[data-state="error"],
.locdev-drawer-close[data-state="error"] {
    outline: 3px solid var(--locdev-error);
    outline-offset: 2px;
}

.locdev-footer-action[data-state="success"],
.locdev-social-card[data-state="success"],
.locdev-drawer-close[data-state="success"] {
    outline: 3px solid var(--locdev-success);
    outline-offset: 2px;
}

.locdev-admin .locdev-input:user-invalid {
    border-color: var(--locdev-phone);
}

.locdev-color-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--locdev-space-sm);
}

.locdev-color-grid .locdev-field {
    padding: var(--locdev-space-sm);
    border: 1px solid var(--locdev-rule);
    border-radius: var(--locdev-radius-md);
    background: var(--locdev-paper-soft);
}

.locdev-control--color {
    display: flex;
    align-items: center;
    gap: var(--locdev-space-xs);
}

.locdev-admin .locdev-color-input {
    width: 44px;
    height: 36px;
    flex: 0 0 44px;
    padding: var(--locdev-space-2xs);
    border: 1px solid var(--locdev-rule);
    border-radius: var(--locdev-radius-sm);
    appearance: none;
    background: var(--locdev-paper);
    cursor: pointer;
}

.locdev-color-value {
    min-width: 0;
    overflow: hidden;
    color: var(--locdev-ink-soft);
    font-family: var(--locdev-font-mono);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.locdev-preview {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    border: 1px solid var(--locdev-rule);
    border-radius: var(--locdev-radius-md);
    background:
        linear-gradient(var(--locdev-rule) 1px, transparent 1px),
        linear-gradient(90deg, var(--locdev-rule) 1px, transparent 1px),
        var(--locdev-paper-soft);
    background-size: 24px 24px;
}

.locdev-preview::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, transparent, var(--locdev-primary-soft));
    content: "";
}

.locdev-preview-label {
    position: absolute;
    top: var(--locdev-space-sm);
    left: var(--locdev-space-sm);
    z-index: var(--locdev-z-raised);
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 0 var(--locdev-space-xs);
    border: 1px solid var(--locdev-rule);
    border-radius: var(--locdev-radius-pill);
    background: var(--locdev-paper);
    color: var(--locdev-ink-soft);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.locdev-preview-stack {
    position: absolute;
    right: var(--locdev-space-lg);
    bottom: 92px;
    z-index: var(--locdev-z-raised);
    display: flex;
    width: max(var(--locdev-button-size), var(--locdev-pill-width));
    flex-direction: column;
    align-items: center;
    gap: var(--locdev-button-gap);
    transform: scale(0.72);
    transform-origin: right bottom;
}

.locdev-preview[data-side="left"] .locdev-preview-stack {
    right: auto;
    left: var(--locdev-space-lg);
    transform-origin: left bottom;
}

.locdev-preview-pill {
    display: inline-flex;
    width: var(--locdev-pill-width);
    min-width: var(--locdev-pill-width);
    height: var(--locdev-pill-height);
    min-height: var(--locdev-pill-height);
    flex: 0 0 var(--locdev-pill-height);
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: var(--locdev-radius-pill);
    background: var(--locdev-primary);
    color: var(--locdev-accent-ink);
    font-size: 11px;
    font-weight: 750;
    writing-mode: vertical-rl;
}

.locdev-preview-button {
    position: relative;
    display: inline-flex;
    width: var(--locdev-button-size);
    min-width: var(--locdev-button-size);
    height: var(--locdev-button-size);
    min-height: var(--locdev-button-size);
    flex: 0 0 var(--locdev-button-size);
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--locdev-white);
    box-shadow: 0 8px 20px var(--locdev-shadow);
    font-size: clamp(22px, calc(var(--locdev-button-size) - 28px), 34px);
    isolation: isolate;
}

.locdev-preview-button::before,
.locdev-preview-button::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid rgb(255 255 255 / 55%);
    border-radius: inherit;
    background: transparent;
    content: "";
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(1);
}

.locdev-preview[data-effect="soft"] .locdev-preview-pill,
.locdev-preview[data-effect="soft"] .locdev-preview-button,
.locdev-preview[data-effect="attention"] .locdev-preview-pill,
.locdev-preview[data-effect="attention"] .locdev-preview-button {
    animation: locdev-hub-bounce 1.4s ease-in-out infinite;
}

.locdev-preview[data-effect="soft"] .locdev-preview-button::before,
.locdev-preview[data-effect="soft"] .locdev-preview-button::after {
    animation: locdev-hub-wave 1.6s infinite;
}

.locdev-preview[data-effect="soft"] .locdev-preview-button::before {
    animation-delay: 0.8s;
}

.locdev-preview[data-effect="attention"] .locdev-preview-button::before,
.locdev-preview[data-effect="attention"] .locdev-preview-button::after {
    animation: locdev-hub-wave 1.3s infinite;
}

.locdev-preview[data-effect="attention"] .locdev-preview-button::before {
    animation-delay: 0.65s;
}

.locdev-preview-button--phone { background: var(--locdev-phone); }
.locdev-preview-button--zalo { background: var(--locdev-zalo); }
.locdev-preview-button--fanpage { background: var(--locdev-fanpage); }
.locdev-preview-button--social { background: var(--locdev-primary); }
.locdev-preview-button--top { background: var(--locdev-top); }

.locdev-preview-chat-launcher {
    position: absolute;
    bottom: var(--locdev-space-lg);
    left: var(--locdev-space-lg);
    z-index: 3;
    display: flex;
    width: min(214px, calc(100% - 48px));
    min-width: 178px;
    max-width: 214px;
    min-height: 52px;
    align-items: center;
    gap: 9px;
    padding: 7px 13px 7px 7px;
    border: 1px solid rgb(255 255 255 / 70%);
    border-radius: 16px;
    appearance: none;
    background: var(--locdev-chat);
    background-image: linear-gradient(135deg, color-mix(in srgb, var(--locdev-chat) 86%, #fff), var(--locdev-chat));
    box-shadow: 0 12px 30px var(--locdev-shadow);
    color: #102a32;
    cursor: pointer;
    text-align: left;
    transition: transform var(--locdev-dur-short) var(--locdev-ease-out), opacity var(--locdev-dur-short) var(--locdev-ease-out);
}

.locdev-preview[data-chat-side="right"] .locdev-preview-chat-launcher {
    right: var(--locdev-space-lg);
    left: auto;
}

.locdev-preview[data-chat-enabled="0"] .locdev-preview-chat-launcher {
    opacity: 0.55;
}

.locdev-preview-chat-launcher > span:first-child {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 12px;
    background: rgb(255 255 255 / 88%);
    color: #12626c;
}

.locdev-preview-chat-logo img,
.locdev-preview-chat-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: contain;
}

.locdev-preview-chat-logo img {
    padding: 2px;
}

.locdev-preview-chat-logo img[hidden],
.locdev-preview-chat-logo span[hidden],
.locdev-preview-chat-avatar img[hidden],
.locdev-preview-chat-avatar span[hidden] {
    display: none;
}

.locdev-preview-chat-launcher svg {
    width: 20px;
    height: 20px;
}

.locdev-preview-chat-launcher > span:last-child {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.locdev-preview-chat-launcher strong,
.locdev-preview-chat-launcher small {
    display: block;
}

.locdev-preview-chat-launcher strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 10px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    letter-spacing: 0.035em;
    line-height: 1.25;
    text-transform: uppercase;
}

.locdev-preview-chat-launcher small {
    font-size: 9px;
    line-height: 1.25;
    opacity: 0.7;
}

.locdev-preview-chat-panel {
    position: absolute;
    bottom: 88px;
    left: var(--locdev-space-lg);
    z-index: 5;
    display: grid;
    width: min(280px, calc(100% - 48px));
    height: 358px;
    min-height: 358px;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid rgb(15 23 42 / 12%);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 52px rgb(15 23 42 / 24%);
    animation: locdev-chat-in 220ms var(--locdev-ease-out) both;
}

.locdev-preview[data-chat-side="right"] .locdev-preview-chat-panel {
    right: var(--locdev-space-lg);
    left: auto;
}

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

.locdev-preview-chat-panel header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: var(--locdev-chat);
    color: #102a32;
}

.locdev-preview-chat-avatar {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: #fff;
    color: #12626c;
    font-size: 13px;
    font-weight: 850;
}

.locdev-preview-chat-panel header > span:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.locdev-preview-chat-panel header strong,
.locdev-preview-chat-panel header small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.locdev-preview-chat-panel header strong {
    font-size: 11px;
}

.locdev-preview-chat-panel header small {
    font-size: 8px;
    opacity: 0.7;
}

.locdev-preview-chat-panel header button {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: rgb(255 255 255 / 35%);
    color: #102a32;
    cursor: pointer;
}

.locdev-preview-chat-body {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 7px;
    overflow: hidden;
    padding: 12px;
    background: #f8fafc;
}

.locdev-preview-lead-view,
.locdev-preview-conversation {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    gap: 8px;
}

.locdev-preview-chat-body strong {
    color: var(--locdev-ink);
    font-size: 10px;
    line-height: 1.4;
}

.locdev-preview-lead-fields {
    display: grid;
    gap: 6px;
}

.locdev-preview-lead-fields span {
    display: flex;
    min-height: 31px;
    align-items: center;
    padding: 6px 8px;
    border: 1px solid var(--locdev-rule);
    border-radius: 8px;
    background: #fff;
    color: var(--locdev-ink-soft);
    font-size: 8px;
}

.locdev-preview-lead-fields b {
    display: grid;
    min-height: 34px;
    place-items: center;
    border-radius: 9px;
    background: #12626c;
    color: #fff;
    font-size: 8px;
    letter-spacing: 0.02em;
}

.locdev-preview-conversation p {
    max-width: 88%;
    margin: 0;
    padding: 9px 10px;
    border-radius: 12px 12px 12px 4px;
    background: #fff;
    box-shadow: 0 4px 14px rgb(15 23 42 / 8%);
    color: #1e293b;
    font-size: 10px;
    line-height: 1.4;
}

.locdev-preview-conversation > span {
    align-self: flex-end;
    padding: 7px 9px;
    border: 1px solid color-mix(in srgb, var(--locdev-chat) 58%, #0f172a);
    border-radius: 9px;
    background: #fff;
    color: #164e63;
    font-size: 8px;
    font-weight: 700;
}

.locdev-preview-chat-body > small {
    color: var(--locdev-ink-soft);
    font-size: 8px;
}

.locdev-preview[data-chat-capture="1"] .locdev-preview-conversation,
.locdev-preview[data-chat-capture="1"] .locdev-preview-chat-panel footer,
.locdev-preview[data-chat-capture="0"] .locdev-preview-lead-view {
    display: none;
}

.locdev-preview[data-chat-capture="1"] .locdev-preview-chat-panel {
    height: auto;
    min-height: 0;
}

.locdev-preview-chat-panel footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    padding: 8px;
    border-top: 1px solid var(--locdev-rule);
    background: #fff;
}

.locdev-preview-chat-panel footer > span {
    padding: 8px 9px;
    border: 1px solid var(--locdev-rule);
    border-radius: 10px;
    color: var(--locdev-ink-soft);
    font-size: 9px;
}

.locdev-preview-chat-panel footer i {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: #12626c;
    color: #fff;
    font-style: normal;
}

.locdev-preview-chat-launcher:focus-visible,
.locdev-preview-chat-panel button:focus-visible {
    outline: 3px solid var(--locdev-focus);
    outline-offset: 2px;
}

.locdev-save-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--locdev-space-md);
    padding: var(--locdev-space-md);
    border: 1px solid var(--locdev-rule);
    border-radius: var(--locdev-radius-md);
    background: var(--locdev-ink);
    color: var(--locdev-white);
    box-shadow: 0 12px 36px var(--locdev-shadow);
}

.locdev-save-bar strong,
.locdev-save-bar span {
    display: block;
}

.locdev-save-bar strong {
    font-size: 13px;
}

.locdev-save-bar span {
    margin-top: var(--locdev-space-2xs);
    color: var(--locdev-rule);
    font-size: 11px;
}

.locdev-admin .locdev-save-button.button-primary {
    min-height: 40px;
    margin: 0;
    padding: 0 var(--locdev-space-md);
    border: 0;
    border-radius: var(--locdev-radius-sm);
    background: var(--locdev-primary);
    box-shadow: none;
    color: var(--locdev-accent-ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 40px;
    text-shadow: none;
    transition:
        background-color var(--locdev-dur-short) var(--locdev-ease-out),
        transform var(--locdev-dur-short) var(--locdev-ease-out);
}

.locdev-admin .locdev-save-button.button-primary:active {
    transform: translateY(1px);
}

.locdev-media-button:active,
.locdev-media-remove:active {
    transform: scale(0.98);
}

.locdev-admin .notice {
    margin: 0 0 var(--locdev-space-md);
    border-radius: var(--locdev-radius-sm);
}

/* Hide only theme plugin recommendation notices on the locdev settings screen. */
.settings_page_locdev-contact-hub #setting-error-tgmpa,
.settings_page_locdev-contact-hub .tgmpa-notice,
.settings_page_locdev-live-chat #setting-error-tgmpa,
.settings_page_locdev-live-chat .tgmpa-notice,
.toplevel_page_locdev-live-chat #setting-error-tgmpa,
.toplevel_page_locdev-live-chat .tgmpa-notice {
    display: none !important;
}

@media (hover: hover) and (pointer: fine) {
    .locdev-contact-pill:hover,
    .locdev-contact-pill.is-hover,
    .locdev-hub-button--social:hover,
    .locdev-hub-button--social.is-hover,
    .locdev-hub-button--top:hover {
        background: var(--locdev-hover);
        color: var(--locdev-accent-ink);
    }

    .locdev-social-drawer .locdev-drawer-close:hover {
        background: var(--locdev-paper-tint) !important;
    }

    .locdev-social-card:hover {
        border-color: var(--locdev-channel-color, var(--locdev-primary));
        color: var(--locdev-ink);
    }

    .locdev-admin .locdev-input:hover {
        background: var(--locdev-paper-soft);
    }

    .locdev-admin .locdev-save-button.button-primary:hover {
        background: var(--locdev-hover);
        color: var(--locdev-accent-ink);
    }

    .locdev-media-button:hover {
        border-color: var(--locdev-primary);
        background: var(--locdev-primary-soft);
    }

    .locdev-media-remove:hover {
        border-color: #fca5a5;
        background: #fef2f2;
    }

    .locdev-chat-config-footer a:hover {
        background: var(--locdev-primary);
        color: #fff;
    }
}

@media (max-width: 1080px) {
    .locdev-admin-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .locdev-admin-aside {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .locdev-save-bar {
        grid-column: 1 / -1;
    }
}

@media (max-width: 850px) {
    body.locdev-has-contact-hub {
        padding-bottom: calc(80px + env(safe-area-inset-bottom)) !important;
    }

    .locdev-desktop-hub {
        display: none;
    }

    .locdev-mobile-bar {
        display: grid;
    }

    .locdev-drawer-panel {
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: min(72vh, 640px);
        padding: var(--locdev-space-lg) var(--locdev-space-md) calc(var(--locdev-space-lg) + env(safe-area-inset-bottom));
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: var(--locdev-radius-lg) var(--locdev-radius-lg) 0 0;
        transform: translateY(28px);
    }

    .locdev-social-drawer--left .locdev-drawer-panel,
    .locdev-social-drawer--right .locdev-drawer-panel {
        right: 0;
        left: 0;
    }

    .locdev-social-drawer.is-open .locdev-drawer-panel {
        transform: translateY(0);
    }
}

@media (max-width: 782px) {
    .locdev-admin {
        margin-right: var(--locdev-space-sm);
    }

    .locdev-admin-header {
        grid-template-columns: auto minmax(0, 1fr);
        padding: var(--locdev-space-md);
    }

    .locdev-version {
        display: none;
    }

    .locdev-fields--two,
    .locdev-admin-aside {
        grid-template-columns: minmax(0, 1fr);
    }

    .locdev-color-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .locdev-card {
        padding: var(--locdev-space-md);
    }

    .locdev-chat-config-section--status {
        grid-template-columns: minmax(0, 1fr);
    }

    .locdev-chat-config-section--status .locdev-chat-config-title {
        margin-bottom: 2px;
    }

    .locdev-chat-customer {
        flex-wrap: wrap;
    }

    .locdev-chat-customer-main {
        min-width: calc(100% - 52px);
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .locdev-social-grid,
    .locdev-color-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .locdev-admin-header {
        grid-template-columns: minmax(0, 1fr);
    }

    .locdev-brand-mark {
        width: 44px;
        height: 44px;
    }

    .locdev-save-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .locdev-admin .locdev-save-button.button-primary {
        width: 100%;
    }

    .locdev-chat-config-section {
        padding: 14px;
        border-radius: 15px;
    }

    .locdev-chat-config-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .locdev-chat-config-footer a {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .locdev-effect--soft > .locdev-contact-pill,
    .locdev-effect--soft > .locdev-hub-button,
    .locdev-effect--attention > .locdev-contact-pill,
    .locdev-effect--attention > .locdev-hub-button,
    .locdev-effect--soft > .locdev-hub-button::before,
    .locdev-effect--soft > .locdev-hub-button::after,
    .locdev-effect--attention > .locdev-hub-button::before,
    .locdev-effect--attention > .locdev-hub-button::after,
    .locdev-preview-pill,
    .locdev-preview-button,
    .locdev-preview-button::before,
    .locdev-preview-button::after,
    .locdev-preview-chat-panel,
    .locdev-preview-chat-launcher,
    .locdev-hub-button[aria-busy="true"]::before,
    .locdev-footer-phone-ring {
        animation-delay: 0ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
    }

    .locdev-contact-pill,
    .locdev-hub-button,
    .locdev-footer-action,
    .locdev-drawer-backdrop,
    .locdev-drawer-panel,
    .locdev-drawer-close,
    .locdev-social-card,
    .locdev-preview-chat-panel,
    .locdev-preview-chat-launcher,
    .locdev-live-chat-lead-submit,
    .locdev-media-button,
    .locdev-media-remove,
    .locdev-admin .locdev-input,
    .locdev-admin .locdev-save-button.button-primary {
        scroll-behavior: auto;
        transition-duration: 1ms !important;
    }

    .locdev-contact-pill,
    .locdev-hub-button,
    .locdev-hub-button--top,
    .locdev-drawer-panel,
    .locdev-drawer-close,
    .locdev-social-card {
        transform: none !important;
    }
}
