/* =========================================================
   TA CHATBOT — FULL PAGE CSS
   Clean single-panel chat window. No sidebar.
   ========================================================= */

:root {
    --ta-fp-dark:   #2F1B37;
    --ta-fp-border: #e5dde7;
    --ta-fp-light:  #f6f3f7;
    --ta-fp-grey:   #5a5a5a;
    --ta-fp-font:   'Roboto', -apple-system, sans-serif;
    --ta-fp-head:   'Rambla', -apple-system, sans-serif;
    --ta-fp-radius: 10px;
}

.ta-chatbot-fullpage {
    width: 100%;
    min-height: 680px;
    font-family: var(--ta-fp-font);
    -webkit-font-smoothing: antialiased;
    background: #fff;
    border: 1px solid var(--ta-fp-border);
    border-radius: calc(var(--ta-fp-radius) + 4px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ── CHAT PANEL ──────────────────────────────────────────── */
.ta-fp-chat {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 680px;
}

/* ── MESSAGES ────────────────────────────────────────────── */
.ta-fp-messages {
    flex: 1;
    overflow-y: auto;
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
}

.ta-fp-messages::-webkit-scrollbar       { width: 4px; }
.ta-fp-messages::-webkit-scrollbar-track { background: transparent; }
.ta-fp-messages::-webkit-scrollbar-thumb { background: #ddd; }

/* Message bubbles — size is controlled by widget.css; only layout overrides here */
.ta-fp-messages .ta-chat-msg         { max-width: 72%; }
.ta-fp-messages .ta-chat-bubble      { padding: 12px 18px; }

/* ── ON-DEMAND CONTACT FORM (reuses widget styles) ───────── */
.ta-fp-chat .ta-chat-contact-form {
    padding: 16px 36px;
    border-top: 1px solid var(--ta-fp-border);
    background: #fafafa;
}

/* ── INPUT AREA ──────────────────────────────────────────── */
.ta-fp-input-area {
    padding: 20px 36px 20px;
    border-top: 1px solid var(--ta-fp-border);
    background: #fff;
    flex-shrink: 0;
}

.ta-fp-input-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.ta-fp-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--ta-fp-border);
    background: var(--ta-fp-light);
    font-family: var(--ta-fp-font);
    font-size: 15px !important;
    color: var(--ta-fp-dark);
    resize: none;
    outline: none;
    max-height: 120px;
    overflow-y: auto;
    line-height: 1.5;
    transition: border-color 0.15s;
    border-radius: var(--ta-fp-radius);
}

.ta-fp-input:focus        { border-color: var(--ta-fp-dark); background: #fff; }
.ta-fp-input::placeholder { color: #aaa; }

.ta-fp-send {
    width: 46px;
    height: 46px;
    background: var(--ta-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: 50%;
}

.ta-fp-send:disabled             { opacity: 0.3; cursor: not-allowed; }
.ta-fp-send:not(:disabled):hover { opacity: 0.85; }

.ta-fp-disclaimer {
    font-size: 11px;
    color: #bbb;
    margin: 8px 0 0 0;
    font-family: var(--ta-fp-font);
}

.ta-fp-disclaimer a { color: inherit; text-decoration: underline; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .ta-fp-messages    { padding: 20px 16px; }
    .ta-fp-input-area  { padding: 14px 16px 16px; }
    .ta-fp-chat .ta-chat-contact-form { padding: 14px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .ta-chat-msg { animation: none !important; }
}
