/* =========================================================
   ES CHATBOT — FULL PAGE CSS
   Clean single-panel chat window. No sidebar.
   ========================================================= */

:root {
    --es-fp-dark:   #1a1a1a;
    --es-fp-border: #e0e0e0;
    --es-fp-light:  #f4f4f2;
    --es-fp-grey:   #5a5a5a;
    --es-fp-font:   'Urbanist', -apple-system, sans-serif;
    --es-fp-head:   'Syne', -apple-system, sans-serif;
}

.es-chatbot-fullpage {
    width: 100%;
    min-height: 680px;
    font-family: var(--es-fp-font);
    -webkit-font-smoothing: antialiased;
    background: #fff;
    border: 1px solid var(--es-fp-border);
    display: flex;
    flex-direction: column;
}

/* ── CHAT PANEL ──────────────────────────────────────────── */
.es-fp-chat {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 680px;
}

/* ── MESSAGES ────────────────────────────────────────────── */
.es-fp-messages {
    flex: 1;
    overflow-y: auto;
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
}

.es-fp-messages::-webkit-scrollbar       { width: 4px; }
.es-fp-messages::-webkit-scrollbar-track { background: transparent; }
.es-fp-messages::-webkit-scrollbar-thumb { background: #ddd; }

/* Message bubbles — size is controlled by widget.css; only layout overrides here */
.es-fp-messages .es-chat-msg         { max-width: 72%; }
.es-fp-messages .es-chat-bubble      { padding: 12px 18px; }

/* ── LEAD FORM (reuses widget styles) ────────────────────── */
.es-fp-chat .es-chat-lead-form {
    padding: 16px 36px;
    border-top: 1px solid var(--es-fp-border);
    background: #fafafa;
}

/* ── INPUT AREA ──────────────────────────────────────────── */
.es-fp-input-area {
    padding: 20px 36px 20px;
    border-top: 1px solid var(--es-fp-border);
    background: #fff;
    flex-shrink: 0;
}

.es-fp-input-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.es-fp-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--es-fp-border);
    background: var(--es-fp-light);
    font-family: var(--es-fp-font);
    font-size: 15px !important;
    color: var(--es-fp-dark);
    resize: none;
    outline: none;
    max-height: 120px;
    overflow-y: auto;
    line-height: 1.5;
    transition: border-color 0.15s;
    border-radius: 0;
}

.es-fp-input:focus        { border-color: var(--es-fp-dark); background: #fff; }
.es-fp-input::placeholder { color: #aaa; }

.es-fp-send {
    width: 46px;
    height: 46px;
    background: var(--es-fp-dark);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 0.15s;
    border-radius: 0;
}

.es-fp-send:disabled             { opacity: 0.3; cursor: not-allowed; }
.es-fp-send:not(:disabled):hover { opacity: 0.85; }

.es-fp-disclaimer {
    font-size: 11px;
    color: #bbb;
    margin: 8px 0 0 0;
    font-family: var(--es-fp-font);
}

.es-fp-disclaimer a { color: inherit; text-decoration: underline; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .es-fp-messages    { padding: 20px 16px; }
    .es-fp-input-area  { padding: 14px 16px 16px; }
    .es-fp-chat .es-chat-lead-form { padding: 14px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .es-chat-msg { animation: none !important; }
}