/*
 * Chatbot AI Agent — frontend widget styles (theme-isolated)
 * All rules scoped under #docubot-ai-secureweb-wrapper.
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

#docubot-ai-secureweb-wrapper {
    --docubot-primary: var(--docubot-ai-secureweb-primary, #1e3a8a);
    --docubot-primary-hover: color-mix(in srgb, var(--docubot-primary) 82%, #000);
    --docubot-primary-soft: color-mix(in srgb, var(--docubot-primary) 12%, #fff);
    --docubot-primary-ring: color-mix(in srgb, var(--docubot-primary) 22%, transparent);
    --docubot-fs-body: 14px;
    --docubot-fs-small: 12px;
    --docubot-fs-chip: 13px;
    --docubot-lh: 1.55;
    --docubot-radius: 16px;
    --docubot-radius-sm: 10px;
    --docubot-space-xs: 4px;
    --docubot-space-sm: 8px;
    --docubot-space-md: 12px;
    --docubot-space-lg: 16px;
    --docubot-space-xl: 20px;
    --docubot-surface: #f1f5f9;
    --docubot-bubble-agent: #ffffff;
    --docubot-text: #0f172a;
    --docubot-text-muted: #64748b;
    --docubot-border: #e2e8f0;

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    position: fixed;
    z-index: 99999;
    box-sizing: border-box;
    color: var(--docubot-text);
    line-height: var(--docubot-lh);
    font-size: var(--docubot-fs-body);
    letter-spacing: normal;
    text-transform: none;
}

@supports not (color: color-mix(in srgb, red 50%, blue)) {
    #docubot-ai-secureweb-wrapper {
        --docubot-primary-hover: #152a66;
        --docubot-primary-soft: #eef2ff;
        --docubot-primary-ring: rgba(30, 58, 138, 0.18);
    }
}

#docubot-ai-secureweb-wrapper *,
#docubot-ai-secureweb-wrapper *::before,
#docubot-ai-secureweb-wrapper *::after {
    box-sizing: border-box;
}

/* Scoped reset — neutralize theme global button/input/a/list styles */
#docubot-ai-secureweb-wrapper button,
#docubot-ai-secureweb-wrapper input,
#docubot-ai-secureweb-wrapper textarea,
#docubot-ai-secureweb-wrapper a,
#docubot-ai-secureweb-wrapper ul,
#docubot-ai-secureweb-wrapper ol,
#docubot-ai-secureweb-wrapper li,
#docubot-ai-secureweb-wrapper p,
#docubot-ai-secureweb-wrapper h3 {
    font: inherit;
    font-family: inherit;
    color: inherit;
    letter-spacing: normal;
    text-transform: none;
    text-shadow: none;
    box-shadow: none;
    background: transparent;
    border: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
    line-height: inherit;
    appearance: none;
    -webkit-appearance: none;
}

#docubot-ai-secureweb-wrapper.docubot-ai-secureweb-bottom-right { bottom: 24px; right: 24px; }
#docubot-ai-secureweb-wrapper.docubot-ai-secureweb-bottom-left { bottom: 24px; left: 24px; }
#docubot-ai-secureweb-wrapper.docubot-ai-secureweb-top-right { top: 24px; right: 24px; }
#docubot-ai-secureweb-wrapper.docubot-ai-secureweb-top-left { top: 24px; left: 24px; }

/* Launcher */
#docubot-ai-secureweb-wrapper #docubot-ai-secureweb-trigger {
    appearance: none;
    -webkit-appearance: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--docubot-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.2s ease;
    position: relative;
    padding: 0;
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    font-weight: 500;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    text-shadow: none;
    outline: none;
}

#docubot-ai-secureweb-wrapper #docubot-ai-secureweb-trigger:hover {
    background: var(--docubot-primary-hover);
    transform: scale(1.06) translateY(-1px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
}

#docubot-ai-secureweb-wrapper #docubot-ai-secureweb-trigger:focus-visible {
    outline: 2px solid var(--docubot-primary);
    outline-offset: 3px;
}

#docubot-ai-secureweb-wrapper #docubot-ai-secureweb-trigger:active {
    transform: scale(0.96);
}

#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-chat-icon {
    width: 26px;
    height: 26px;
    stroke: currentColor;
}

#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-pulse {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background-color: #10b981;
    border-radius: 50%;
    border: 2px solid #fff;
}

#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-pulse::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #10b981;
    animation: docubot-ai-secureweb-pulse-animation 1.8s infinite ease-in-out;
    opacity: 0;
}

@keyframes docubot-ai-secureweb-pulse-animation {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.4); opacity: 0; }
}

/* Panel */
#docubot-ai-secureweb-wrapper #docubot-ai-secureweb-chat-box {
    position: absolute;
    width: min(400px, calc(100vw - 32px));
    height: min(580px, calc(100vh - 100px));
    background: #fff;
    border: 1px solid var(--docubot-border);
    border-radius: 18px;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.16);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 100000;
}

#docubot-ai-secureweb-wrapper.docubot-ai-secureweb-bottom-right #docubot-ai-secureweb-chat-box { bottom: 72px; right: 0; transform-origin: bottom right; }
#docubot-ai-secureweb-wrapper.docubot-ai-secureweb-bottom-left #docubot-ai-secureweb-chat-box { bottom: 72px; left: 0; transform-origin: bottom left; }
#docubot-ai-secureweb-wrapper.docubot-ai-secureweb-top-right #docubot-ai-secureweb-chat-box { top: 72px; right: 0; transform-origin: top right; }
#docubot-ai-secureweb-wrapper.docubot-ai-secureweb-top-left #docubot-ai-secureweb-chat-box { top: 72px; left: 0; transform-origin: top left; }

/* Header */
#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-header {
    background: var(--docubot-primary);
    padding: 14px var(--docubot-space-lg);
    color: #fff;
    display: flex;
    align-items: center;
    gap: var(--docubot-space-md);
    min-height: 64px;
}

#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-avatar svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-header-info {
    flex-grow: 1;
    min-width: 0;
}

#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-header-info h3 {
    margin: 0;
    padding: 0;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-transform: none;
    background: transparent;
    border: none;
}

#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-header-subtitle {
    margin: 2px 0 0;
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.3;
}

#docubot-ai-secureweb-wrapper #docubot-ai-secureweb-close {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 400;
    font-family: inherit;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    text-shadow: none;
    box-shadow: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
    outline: none;
    transition: background 0.15s ease;
}

#docubot-ai-secureweb-wrapper #docubot-ai-secureweb-close:hover {
    background: rgba(255, 255, 255, 0.22);
}

#docubot-ai-secureweb-wrapper #docubot-ai-secureweb-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Body */
#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-body {
    flex-grow: 1;
    padding: var(--docubot-space-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--docubot-surface);
    min-height: 0;
}

#docubot-ai-secureweb-wrapper #chat-window {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--docubot-space-md);
    padding-right: 2px;
    min-height: 0;
}

#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-body::-webkit-scrollbar,
#docubot-ai-secureweb-wrapper #chat-window::-webkit-scrollbar {
    width: 5px;
}
#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-body::-webkit-scrollbar-track,
#docubot-ai-secureweb-wrapper #chat-window::-webkit-scrollbar-track {
    background: transparent;
}
#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-body::-webkit-scrollbar-thumb,
#docubot-ai-secureweb-wrapper #chat-window::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* Messages */
#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-msg-row {
    display: flex;
    width: 100%;
}

#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-msg-row.docubot-ai-secureweb-user {
    justify-content: flex-end;
}

#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-bubble {
    max-width: min(86%, 320px);
    padding: 10px 14px;
    border-radius: var(--docubot-radius);
    font-size: var(--docubot-fs-body);
    line-height: var(--docubot-lh);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    overflow-wrap: anywhere;
    word-break: break-word;
}

#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-user .docubot-ai-secureweb-bubble {
    background: var(--docubot-primary);
    color: #fff;
    border-bottom-right-radius: 6px;
}

#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-agent .docubot-ai-secureweb-bubble {
    background: var(--docubot-bubble-agent);
    color: var(--docubot-text);
    border: 1px solid var(--docubot-border);
    border-bottom-left-radius: 6px;
    max-width: min(92%, 340px);
}

/* Rich text */
#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-agent .docubot-ai-secureweb-bubble p.docubot-ai-paragraph {
    margin: 0 0 0.65em;
    padding: 0;
    line-height: var(--docubot-lh);
    color: inherit;
    background: transparent;
    border: none;
}
#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-agent .docubot-ai-secureweb-bubble p.docubot-ai-paragraph:last-child {
    margin-bottom: 0;
}

#docubot-ai-secureweb-wrapper .docubot-ai-paragraph-spacer {
    height: var(--docubot-space-sm);
}

#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-agent .docubot-ai-secureweb-bubble strong {
    color: inherit;
    font-weight: 650;
}

#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-user .docubot-ai-secureweb-bubble strong {
    color: #fff;
    font-weight: 650;
}

#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-agent .docubot-ai-secureweb-bubble em {
    font-style: italic;
    color: #334155;
}

#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-agent .docubot-ai-secureweb-bubble a {
    color: var(--docubot-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-all;
    background: transparent;
    border: none;
    box-shadow: none;
    font-weight: inherit;
}

#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-agent .docubot-ai-secureweb-bubble a:hover {
    color: var(--docubot-primary-hover);
}

#docubot-ai-secureweb-wrapper .docubot-ai-bullet-list,
#docubot-ai-secureweb-wrapper .docubot-ai-numbered-list {
    margin: 0.4em 0 0.65em;
    padding: 0 0 0 1.15em;
    list-style-position: outside;
    background: transparent;
    border: none;
    box-shadow: none;
}

#docubot-ai-secureweb-wrapper .docubot-ai-bullet-list {
    list-style: disc;
}

#docubot-ai-secureweb-wrapper .docubot-ai-numbered-list {
    list-style: decimal;
}

#docubot-ai-secureweb-wrapper .docubot-ai-bullet-list li,
#docubot-ai-secureweb-wrapper .docubot-ai-numbered-list li {
    margin: 0.2em 0;
    padding: 0 0 0 0.2em;
    font-size: var(--docubot-fs-body);
    line-height: var(--docubot-lh);
    color: var(--docubot-text);
    background: transparent;
    border: none;
    box-shadow: none;
}

#docubot-ai-secureweb-wrapper .docubot-ai-bullet-list .docubot-ai-bullet-list,
#docubot-ai-secureweb-wrapper .docubot-ai-bullet-list .docubot-ai-numbered-list,
#docubot-ai-secureweb-wrapper .docubot-ai-numbered-list .docubot-ai-bullet-list,
#docubot-ai-secureweb-wrapper .docubot-ai-numbered-list .docubot-ai-numbered-list {
    margin: 0.25em 0 0.35em;
    padding-left: 1.1em;
}

#docubot-ai-secureweb-wrapper .docubot-ai-bullet-list .docubot-ai-bullet-list {
    list-style: circle;
}

#docubot-ai-secureweb-wrapper .docubot-ai-code-block {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: var(--docubot-radius-sm);
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.5;
    overflow-x: auto;
    margin: 0.5em 0;
    font-family: ui-monospace, Consolas, monospace;
}

#docubot-ai-secureweb-wrapper .docubot-ai-inline-code {
    background: #f1f5f9;
    color: #b91c1c;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: ui-monospace, Consolas, monospace;
    border: 1px solid var(--docubot-border);
}

#docubot-ai-secureweb-wrapper .docubot-ai-heading {
    margin: 0.75em 0 0.35em;
    font-weight: 650;
    color: var(--docubot-text);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

#docubot-ai-secureweb-wrapper .docubot-ai-heading:first-child {
    margin-top: 0;
}

#docubot-ai-secureweb-wrapper .docubot-ai-heading.h1 { font-size: 1.15em; }
#docubot-ai-secureweb-wrapper .docubot-ai-heading.h2 { font-size: 1.08em; }
#docubot-ai-secureweb-wrapper .docubot-ai-heading.h3 { font-size: 1.02em; }

/* Fallback support card */
#docubot-ai-secureweb-wrapper .docubot-ai-fallback-intro {
    margin-bottom: var(--docubot-space-md);
}

#docubot-ai-secureweb-wrapper .docubot-ai-support-card {
    margin-top: var(--docubot-space-sm);
    padding: var(--docubot-space-md);
    background: var(--docubot-surface);
    border: 1px solid var(--docubot-border);
    border-radius: var(--docubot-radius-sm);
    display: flex;
    flex-direction: column;
    gap: var(--docubot-space-md);
}

#docubot-ai-secureweb-wrapper .docubot-ai-support-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

#docubot-ai-secureweb-wrapper .docubot-ai-support-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--docubot-text-muted);
}

#docubot-ai-secureweb-wrapper .docubot-ai-support-value {
    font-size: var(--docubot-fs-body);
    line-height: 1.4;
    color: var(--docubot-text);
    word-break: break-word;
}

#docubot-ai-secureweb-wrapper .docubot-ai-support-value a {
    color: var(--docubot-primary);
    text-decoration: none;
    font-weight: 500;
    background: transparent;
    border: none;
    box-shadow: none;
}

#docubot-ai-secureweb-wrapper .docubot-ai-support-value a:hover {
    text-decoration: underline;
}

/* Suggestions / pills */
#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-suggestions {
    margin: var(--docubot-space-md) 0 var(--docubot-space-sm);
    display: flex;
    flex-wrap: wrap;
    gap: var(--docubot-space-sm);
    padding: var(--docubot-space-md) 0 var(--docubot-space-sm);
    border-top: 1px solid var(--docubot-border);
    max-width: 100%;
}

#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-followup-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--docubot-space-sm);
    width: 100%;
}

#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-followup-label {
    margin: 0;
    font-size: var(--docubot-fs-small);
    font-weight: 600;
    color: var(--docubot-text-muted);
}

#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-chip,
#docubot-ai-secureweb-wrapper button.docubot-ai-secureweb-chip {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 36px;
    background: #fff;
    border: 1.5px solid color-mix(in srgb, var(--docubot-primary) 35%, #cbd5e1);
    border-radius: 999px;
    color: var(--docubot-primary);
    padding: 8px 14px;
    margin: 0;
    font-size: var(--docubot-fs-chip);
    font-weight: 500;
    font-family: inherit;
    line-height: 1.35;
    letter-spacing: normal;
    text-transform: none;
    text-shadow: none;
    text-decoration: none;
    box-shadow: none;
    outline: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
    white-space: normal;
    text-align: left;
    max-width: 100%;
    overflow-wrap: anywhere;
    vertical-align: middle;
}

#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-chip:hover,
#docubot-ai-secureweb-wrapper button.docubot-ai-secureweb-chip:hover {
    border-color: var(--docubot-primary);
    color: #fff;
    background: var(--docubot-primary);
    box-shadow: none;
    transform: translateY(-1px);
    text-decoration: none;
}

#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-chip:active,
#docubot-ai-secureweb-wrapper button.docubot-ai-secureweb-chip:active {
    transform: translateY(0);
    background: var(--docubot-primary-hover);
    color: #fff;
    border-color: var(--docubot-primary-hover);
    box-shadow: none;
}

#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-chip:focus-visible,
#docubot-ai-secureweb-wrapper button.docubot-ai-secureweb-chip:focus-visible {
    outline: 2px solid var(--docubot-primary);
    outline-offset: 2px;
}

#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-suggestions button:disabled,
#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-chip:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

/* Footer / input */
#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-footer {
    padding: var(--docubot-space-md) var(--docubot-space-lg) var(--docubot-space-md);
    background: #fff;
    border-top: 1px solid var(--docubot-border);
    display: flex;
    flex-direction: column;
    gap: var(--docubot-space-sm);
}

#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-footer-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

#docubot-ai-secureweb-wrapper #user-question {
    appearance: none;
    -webkit-appearance: none;
    flex-grow: 1;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 11px 16px;
    margin: 0;
    font-size: var(--docubot-fs-body);
    font-weight: 400;
    font-family: inherit;
    line-height: 1.35;
    letter-spacing: normal;
    text-transform: none;
    text-shadow: none;
    color: var(--docubot-text);
    background: #fff;
    box-shadow: none;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    min-height: 42px;
}

#docubot-ai-secureweb-wrapper #user-question:focus {
    border-color: var(--docubot-primary);
    box-shadow: 0 0 0 3px var(--docubot-primary-ring);
    outline: none;
}

#docubot-ai-secureweb-wrapper #user-question:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

#docubot-ai-secureweb-wrapper #ask-btn {
    appearance: none;
    -webkit-appearance: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--docubot-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.15s ease;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    font-family: inherit;
    font-size: inherit;
    font-weight: 500;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    text-shadow: none;
    box-shadow: none;
    outline: none;
}

#docubot-ai-secureweb-wrapper #ask-btn svg {
    width: 16px;
    height: 16px;
    transform: translate(1px, -1px);
}

#docubot-ai-secureweb-wrapper #ask-btn:hover:not(:disabled) {
    background: var(--docubot-primary-hover);
    transform: scale(1.04);
    box-shadow: none;
}

#docubot-ai-secureweb-wrapper #ask-btn:focus-visible {
    outline: 2px solid var(--docubot-primary);
    outline-offset: 2px;
}

#docubot-ai-secureweb-wrapper #ask-btn:active:not(:disabled) {
    transform: scale(0.96);
}

#docubot-ai-secureweb-wrapper #ask-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-lock-hint {
    margin: 0;
    font-size: var(--docubot-fs-small);
    color: var(--docubot-text-muted);
    line-height: 1.35;
    text-align: center;
}

#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-brand-footer {
    margin: 0;
    padding: 0 0 2px;
    font-size: 11px;
    line-height: 1.4;
    color: #94a3b8;
    text-align: center;
}

#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-footer.is-locked .docubot-ai-secureweb-lock-hint {
    color: #475569;
}

/* Typing */
#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-typing-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 2px;
}

#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-typing-dots span {
    width: 7px;
    height: 7px;
    background: var(--docubot-primary);
    opacity: 0.55;
    border-radius: 50%;
    animation: docubot-ai-secureweb-typing 1.4s infinite ease-in-out both;
}

#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-typing-dots span:nth-child(1) { animation-delay: -0.32s; }
#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes docubot-ai-secureweb-typing {
    0%, 80%, 100% { transform: scale(0.55); opacity: 0.35; }
    40% { transform: scale(1); opacity: 0.9; }
}

/* Visitor capture */
#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-visitor-capture {
    margin: 8px 0 12px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid var(--docubot-border);
    border-radius: var(--docubot-radius-sm);
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 100%;
}

#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-visitor-capture-title {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--docubot-text);
}

#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-visitor-label {
    font-size: var(--docubot-fs-small);
    color: var(--docubot-text-muted);
}

#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-visitor-input {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 10px;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    font-family: inherit;
    line-height: 1.35;
    letter-spacing: normal;
    text-transform: none;
    text-shadow: none;
    background: #fff;
    color: var(--docubot-text);
    box-shadow: none;
    outline: none;
}

#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-visitor-input:focus {
    outline: none;
    border-color: var(--docubot-primary);
    box-shadow: 0 0 0 3px var(--docubot-primary-ring);
}

#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-visitor-error {
    margin: 0;
    font-size: var(--docubot-fs-small);
    color: #b91c1c;
}

#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-visitor-submit,
#docubot-ai-secureweb-wrapper button.docubot-ai-secureweb-visitor-submit {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.35;
    letter-spacing: normal;
    text-transform: none;
    text-shadow: none;
    text-decoration: none;
    cursor: pointer;
    color: #fff;
    background: var(--docubot-primary);
    box-shadow: none;
    outline: none;
    transition: background 0.15s ease;
}

#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-visitor-submit:hover,
#docubot-ai-secureweb-wrapper button.docubot-ai-secureweb-visitor-submit:hover {
    background: var(--docubot-primary-hover);
    color: #fff;
    box-shadow: none;
}

#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-visitor-submit:focus-visible,
#docubot-ai-secureweb-wrapper button.docubot-ai-secureweb-visitor-submit:focus-visible {
    outline: 2px solid var(--docubot-primary);
    outline-offset: 2px;
}

#docubot-ai-secureweb-wrapper .docubot-ai-secureweb-visitor-submit:disabled,
#docubot-ai-secureweb-wrapper button.docubot-ai-secureweb-visitor-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

@media screen and (max-width: 480px) {
    #docubot-ai-secureweb-wrapper #docubot-ai-secureweb-chat-box {
        position: fixed;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-height: none;
        border-radius: 0 !important;
    }

    #docubot-ai-secureweb-wrapper #docubot-ai-secureweb-trigger {
        display: none !important;
    }

    #docubot-ai-secureweb-wrapper .docubot-ai-secureweb-bubble {
        max-width: 92%;
    }

    #docubot-ai-secureweb-wrapper .docubot-ai-secureweb-footer {
        padding: 10px 12px 14px;
    }

    #docubot-ai-secureweb-wrapper .docubot-ai-secureweb-chip,
    #docubot-ai-secureweb-wrapper button.docubot-ai-secureweb-chip {
        min-height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #docubot-ai-secureweb-wrapper #docubot-ai-secureweb-trigger,
    #docubot-ai-secureweb-wrapper .docubot-ai-secureweb-chip,
    #docubot-ai-secureweb-wrapper button.docubot-ai-secureweb-chip,
    #docubot-ai-secureweb-wrapper #ask-btn,
    #docubot-ai-secureweb-wrapper .docubot-ai-secureweb-pulse::after,
    #docubot-ai-secureweb-wrapper .docubot-ai-secureweb-typing-dots span {
        animation: none !important;
        transition: none !important;
    }
}
