/* ================================================================
   GoChatterBot — Frontend Chat Widget
   Premium SaaS-quality floating chatbot UI
   ================================================================ */

:root {
    --gochatterbot-accent: #6366f1;
    --gochatterbot-accent-dark: #4f46e5;
    --gochatterbot-accent-light: #e0e7ff;
    --gochatterbot-bg: #ffffff;
    --gochatterbot-bg-secondary: #f9fafb;
    --gochatterbot-text: #111827;
    --gochatterbot-text-secondary: #6b7280;
    --gochatterbot-text-light: #9ca3af;
    --gochatterbot-border: #e5e7eb;
    --gochatterbot-border-light: #f3f4f6;
    --gochatterbot-radius: 16px;
    --gochatterbot-radius-sm: 12px;
    --gochatterbot-radius-msg: 18px;
    --gochatterbot-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
    --gochatterbot-shadow-launcher: 0 8px 30px rgba(99,102,241,0.35);
    --gochatterbot-panel-width: 400px;
    --gochatterbot-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    --gochatterbot-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode */
.gochatterbot-dark {
    --gochatterbot-bg: #1f2937;
    --gochatterbot-bg-secondary: #111827;
    --gochatterbot-text: #f9fafb;
    --gochatterbot-text-secondary: #d1d5db;
    --gochatterbot-text-light: #9ca3af;
    --gochatterbot-border: #374151;
    --gochatterbot-border-light: #1f2937;
}

/* ── Reset for widget scope ───────────────────────────── */
.gochatterbot-widget,
.gochatterbot-widget * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--gochatterbot-font);
    -webkit-font-smoothing: antialiased;
}

/* ── Launcher Button ──────────────────────────────────── */
.gochatterbot-launcher {
    position: fixed;
    z-index: 2147483646;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gochatterbot-accent);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--gochatterbot-shadow-launcher);
    transition: transform var(--gochatterbot-transition), box-shadow var(--gochatterbot-transition);
}

.gochatterbot-launcher:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 40px rgba(99,102,241,0.45);
}

.gochatterbot-launcher:active {
    transform: scale(0.95);
}

.gochatterbot-launcher:focus {
    outline: none;
}

.gochatterbot-launcher.bottom-left {
    right: auto;
    left: 24px;
}

.gochatterbot-launcher svg {
    width: 28px;
    height: 28px;
    transition: transform var(--gochatterbot-transition), opacity var(--gochatterbot-transition);
}

.gochatterbot-launcher .gochatterbot-icon-chat,
.gochatterbot-launcher .gochatterbot-icon-close {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--gochatterbot-transition), transform var(--gochatterbot-transition);
}

.gochatterbot-launcher .gochatterbot-icon-chat {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.gochatterbot-launcher .gochatterbot-icon-close {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.gochatterbot-launcher.open .gochatterbot-icon-chat {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

.gochatterbot-launcher.open .gochatterbot-icon-close {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* ── Chat Panel ───────────────────────────────────────── */
.gochatterbot-panel {
    position: fixed;
    z-index: 2147483647;
    bottom: 100px;
    right: 24px;
    width: var(--gochatterbot-panel-width);
    max-width: calc(100vw - 32px);
    height: 580px;
    max-height: calc(100vh - 140px);
    background: var(--gochatterbot-bg);
    border-radius: var(--gochatterbot-radius);
    box-shadow: var(--gochatterbot-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: opacity var(--gochatterbot-transition), transform var(--gochatterbot-transition);
    border: 1px solid var(--gochatterbot-border);
}

.gochatterbot-panel.bottom-left {
    right: auto;
    left: 24px;
}

.gochatterbot-panel.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* ── Panel Header ─────────────────────────────────────── */
.gochatterbot-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: var(--gochatterbot-accent);
    color: #fff;
    flex-shrink: 0;
}

.gochatterbot-header-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gochatterbot-header-avatar svg {
    width: 22px;
    height: 22px;
}

.gochatterbot-header-info {
    flex: 1;
    min-width: 0;
}

.gochatterbot-header-name {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.gochatterbot-header-status {
    font-size: 12px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 5px;
}

.gochatterbot-header-status::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    display: inline-block;
}

.gochatterbot-header-actions {
    display: flex;
    gap: 4px;
}

.gochatterbot-header-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--gochatterbot-transition);
}

.gochatterbot-close-btn {
    display: none;
}

.gochatterbot-header-btn:hover {
    background: rgba(255,255,255,0.25);
}

.gochatterbot-header-btn svg {
    width: 16px;
    height: 16px;
}

/* ── Messages Area ────────────────────────────────────── */
.gochatterbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* Force instant scroll — never inherit smooth scrolling from the
       host site's theme or global CSS resets. */
    scroll-behavior: auto !important;
}

.gochatterbot-messages::-webkit-scrollbar {
    width: 5px;
}

.gochatterbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.gochatterbot-messages::-webkit-scrollbar-thumb {
    background: var(--gochatterbot-border);
    border-radius: 10px;
}

/* ── Welcome message ──────────────────────────────────── */
.gochatterbot-welcome {
    text-align: center;
    padding: 20px 10px;
}

.gochatterbot-welcome-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: var(--gochatterbot-accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gochatterbot-welcome-icon svg {
    width: 28px;
    height: 28px;
    color: var(--gochatterbot-accent);
}

.gochatterbot-welcome-text {
    font-size: 15px;
    color: var(--gochatterbot-text);
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 6px;
}

.gochatterbot-welcome-sub {
    font-size: 13px;
    color: var(--gochatterbot-text-light);
    line-height: 1.4;
}

/* ── Suggestion Chips ─────────────────────────────────── */
.gochatterbot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 4px 0 8px;
}

.gochatterbot-chip {
    padding: 8px 16px;
    font-size: 13px;
    background: var(--gochatterbot-bg);
    border: 1px solid var(--gochatterbot-border);
    border-radius: 99px;
    color: var(--gochatterbot-text-secondary);
    cursor: pointer;
    transition: all var(--gochatterbot-transition);
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gochatterbot-chip:hover {
    background: var(--gochatterbot-accent-light);
    border-color: var(--gochatterbot-accent);
    color: var(--gochatterbot-accent);
}

/* ── Message Bubbles ──────────────────────────────────── */
.gochatterbot-message {
    display: flex;
    gap: 10px;
    max-width: 88%;
    animation: gochatterbot-msg-in 0.3s ease;
}

/* Suppress all animations/transitions during session restore so
   messages appear instantly with zero flicker. */
.gochatterbot-restoring .gochatterbot-message {
    animation: none !important;
}
.gochatterbot-restoring,
.gochatterbot-restoring * {
    transition: none !important;
}

@keyframes gochatterbot-msg-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.gochatterbot-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.gochatterbot-message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

.gochatterbot-message.bot .gochatterbot-message-avatar {
    background: var(--gochatterbot-accent-light);
    color: var(--gochatterbot-accent);
}

.gochatterbot-message.user .gochatterbot-message-avatar {
    background: #e0e7eb;
    color: #4b5563;
}

.gochatterbot-bubble {
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.6;
    border-radius: var(--gochatterbot-radius-msg);
    word-break: break-word;
}

.gochatterbot-message.bot .gochatterbot-bubble {
    background: var(--gochatterbot-bg-secondary);
    color: var(--gochatterbot-text);
    border-bottom-left-radius: 6px;
}

.gochatterbot-message.bot .gochatterbot-bubble a {
    text-decoration: underline;
}

.gochatterbot-message.user .gochatterbot-bubble {
    background: var(--gochatterbot-accent);
    color: #fff;
    border-bottom-right-radius: 6px;
}

/* ── Source Cards ──────────────────────────────────────── */
.gochatterbot-sources {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
    padding-left: 40px;
}

.gochatterbot-sources-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gochatterbot-text-light);
    margin-bottom: 2px;
}

.gochatterbot-source-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: var(--gochatterbot-bg);
    border: 1px solid var(--gochatterbot-border);
    border-radius: var(--gochatterbot-radius-sm);
    text-decoration: none;
    transition: all var(--gochatterbot-transition);
    overflow: hidden;
}

.gochatterbot-source-card:hover {
    border-color: var(--gochatterbot-accent);
    background: var(--gochatterbot-accent-light);
}

.gochatterbot-source-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--gochatterbot-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gochatterbot-source-icon svg {
    width: 14px;
    height: 14px;
    color: var(--gochatterbot-accent);
}

.gochatterbot-source-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--gochatterbot-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gochatterbot-source-type {
    font-size: 11px;
    color: var(--gochatterbot-text-light);
    margin-left: auto;
    flex-shrink: 0;
}

/* ── Structured Data Cards ────────────────────────────── */
.gochatterbot-structured-data {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    padding-left: 40px;
}

.gochatterbot-sd-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 14px;
    background: var(--gochatterbot-accent-light);
    border: 1px solid var(--gochatterbot-accent);
    border-radius: var(--gochatterbot-radius-sm);
    min-width: 0;
    flex: 1 1 auto;
    max-width: 100%;
}

.gochatterbot-sd-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gochatterbot-text-light);
}

.gochatterbot-sd-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--gochatterbot-text);
    word-break: break-word;
}

.gochatterbot-sd-value a {
    color: var(--gochatterbot-accent);
    text-decoration: none;
}

.gochatterbot-sd-value a:hover {
    text-decoration: underline;
}

/* ── Typing Indicator & Step Labels ───────────────────── */
.gochatterbot-typing {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 0;
}

.gochatterbot-typing-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gochatterbot-typing .gochatterbot-bubble {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 14px 20px;
    background: var(--gochatterbot-bg-secondary);
    border-radius: var(--gochatterbot-radius-msg);
    border-bottom-left-radius: 6px;
}

.gochatterbot-typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gochatterbot-text-light);
    animation: gochatterbot-bounce 1.4s ease-in-out infinite;
}

.gochatterbot-typing-dot:nth-child(2) { animation-delay: 0.16s; }
.gochatterbot-typing-dot:nth-child(3) { animation-delay: 0.32s; }

@keyframes gochatterbot-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30%           { transform: translateY(-6px); opacity: 1; }
}

/* Step label below the typing dots */
.gochatterbot-step-label {
    font-size: 11px;
    color: var(--gochatterbot-text-light);
    padding: 0 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
    max-height: 0;
    overflow: hidden;
}

.gochatterbot-step-label.visible {
    opacity: 1;
    max-height: 20px;
}

/* ── Streaming word fade-in (ChatGPT-style) ─────────── */
.gcb-word {
    opacity: 0;
    animation: gcb-fade-in 0.25s ease forwards;
}

@keyframes gcb-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Skeleton shimmer (ChatGPT-style loading cards) ── */
.gcb-skeleton-card {
    overflow: hidden;
}

.gcb-skeleton-line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--gochatterbot-border-light) 25%, var(--gochatterbot-border) 50%, var(--gochatterbot-border-light) 75%);
    background-size: 200% 100%;
    animation: gcb-shimmer 1.5s ease infinite;
    width: 80%;
    margin: 4px 0;
}

.gcb-skeleton-line.gcb-skeleton-short {
    width: 45%;
}

.gcb-skeleton-circle {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    flex-shrink: 0;
    background: linear-gradient(90deg, var(--gochatterbot-border-light) 25%, var(--gochatterbot-border) 50%, var(--gochatterbot-border-light) 75%);
    background-size: 200% 100%;
    animation: gcb-shimmer 1.5s ease infinite;
}

@keyframes gcb-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Card reveal animation (replaces skeleton with real content) ── */
.gcb-card-reveal {
    animation: gcb-card-in 0.35s ease forwards;
}

@keyframes gcb-card-in {
    from { opacity: 0.4; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Input Footer ─────────────────────────────────────── */
.gochatterbot-input-area {
    padding: 16px 20px;
    border-top: 1px solid var(--gochatterbot-border-light);
    background: var(--gochatterbot-bg);
    flex-shrink: 0;
}

.gochatterbot-input-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    background: var(--gochatterbot-bg-secondary);
    border: 1px solid var(--gochatterbot-border);
    border-radius: var(--gochatterbot-radius-sm);
    padding: 4px 4px 4px 16px;
    transition: border-color var(--gochatterbot-transition), box-shadow var(--gochatterbot-transition);
}

.gochatterbot-input-row:focus-within {
    border-color: var(--gochatterbot-accent);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.gochatterbot-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--gochatterbot-text);
    outline: none;
    resize: none;
    height: 36px;
    min-height: 36px;
    max-height: 100px;
    line-height: 1.5;
    padding: 8px 0;
    font-family: var(--gochatterbot-font);
    overflow-y: hidden;
}

.gochatterbot-input::placeholder {
    color: var(--gochatterbot-text-light);
    opacity: 1;
}

.gochatterbot-input:focus::placeholder {
    color: var(--gochatterbot-text-light);
    opacity: 1;
}

.gochatterbot-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: none;
    background: var(--gochatterbot-accent);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--gochatterbot-transition), transform var(--gochatterbot-transition);
}

.gochatterbot-send-btn:hover {
    background: var(--gochatterbot-accent-dark);
}

.gochatterbot-send-btn:active {
    transform: scale(0.92);
}

.gochatterbot-send-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.gochatterbot-send-btn svg {
    width: 18px;
    height: 18px;
    display: block;
    pointer-events: none;
}

/* ── Disclaimer ───────────────────────────────────────── */
.gochatterbot-disclaimer {
    text-align: center;
    font-size: 11px;
    color: var(--gochatterbot-text-light);
    padding: 0 20px 12px;
    line-height: 1.4;
}

/* ── Error state ──────────────────────────────────────── */
.gochatterbot-error {
    text-align: center;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--gochatterbot-radius-sm);
    color: #991b1b;
    font-size: 13px;
}

/* ── Embed container ──────────────────────────────────── */
.gochatterbot-embed-container .gochatterbot-panel {
    position: relative;
    bottom: auto;
    right: auto;
    left: auto;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    width: 100%;
    max-width: 100%;
    height: 500px;
    border-radius: var(--gochatterbot-radius);
}

/* ── Mobile ───────────────────────────────────────────── */
@media (max-width: 480px) {
    .gochatterbot-panel {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
    }

    .gochatterbot-panel.bottom-left {
        left: 0;
        right: 0;
    }

    /* Prevent iOS auto-zoom on input focus (requires >= 16px). */
    .gochatterbot-input {
        font-size: 16px;
    }

    .gochatterbot-launcher {
        bottom: 16px;
        right: 16px;
        width: 54px;
        height: 54px;
    }

    .gochatterbot-launcher.bottom-left {
        left: 16px;
        right: auto;
    }

    .gochatterbot-close-btn {
        display: flex;
    }
}

/* ── User text selection ─────────────────────────────── */
.gochatterbot-message.user .gochatterbot-bubble {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    cursor: text;
}

.gochatterbot-message.user .gochatterbot-bubble::selection {
    background: rgba(255,255,255,0.35);
    color: #fff;
}

.gochatterbot-message.user .gochatterbot-bubble::-moz-selection {
    background: rgba(255,255,255,0.35);
    color: #fff;
}

/* ── Response action buttons ─────────────────────────── */
.gochatterbot-actions {
    display: flex;
    gap: 2px;
    padding: 4px 0 2px 42px;
}

.gochatterbot-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--gochatterbot-text-light);
    cursor: pointer;
    padding: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

.gochatterbot-action-btn svg {
    width: 15px;
    height: 15px;
    pointer-events: none;
}

.gochatterbot-action-btn:hover {
    background: var(--gochatterbot-border-light);
    color: var(--gochatterbot-text-secondary);
}

.gochatterbot-action-btn.active {
    color: var(--gochatterbot-accent);
}

/* ── Stop button mode ────────────────────────────────── */
.gochatterbot-send-btn.gochatterbot-stop-mode {
    background: var(--gochatterbot-accent);
    color: #fff;
    border-radius: 50%;
}

.gochatterbot-send-btn.gochatterbot-stop-mode:hover {
    background: var(--gochatterbot-accent-dark);
}

/* ── Feedback modal ──────────────────────────────────── */
.gochatterbot-feedback-modal {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: var(--gochatterbot-radius);
}

.gochatterbot-feedback-card {
    background: var(--gochatterbot-bg);
    border-radius: 12px;
    padding: 20px;
    width: 300px;
    max-width: 90%;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.gochatterbot-feedback-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--gochatterbot-text);
    margin-bottom: 12px;
}

.gochatterbot-feedback-select {
    width: 100%;
    padding: 9px 32px 9px 12px;
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid var(--gochatterbot-border);
    border-radius: 8px;
    background-color: var(--gochatterbot-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    color: var(--gochatterbot-text);
    margin-bottom: 10px;
    outline: none;
    font-family: var(--gochatterbot-font);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gochatterbot-feedback-select:hover {
    border-color: var(--gochatterbot-text-light);
}

.gochatterbot-feedback-select:focus {
    border-color: var(--gochatterbot-accent);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.gochatterbot-feedback-details {
    width: 100%;
    padding: 9px 12px;
    font-size: 13px;
    border: 1px solid var(--gochatterbot-border);
    border-radius: 8px;
    background: var(--gochatterbot-bg);
    color: var(--gochatterbot-text);
    resize: vertical;
    min-height: 60px;
    max-height: 120px;
    margin-bottom: 12px;
    outline: none;
    font-family: var(--gochatterbot-font);
    line-height: 1.5;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gochatterbot-feedback-details::placeholder {
    color: var(--gochatterbot-text-light);
}

.gochatterbot-feedback-details:hover {
    border-color: var(--gochatterbot-text-light);
}

.gochatterbot-feedback-details:focus {
    border-color: var(--gochatterbot-accent);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.gochatterbot-feedback-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.gochatterbot-feedback-cancel,
.gochatterbot-feedback-submit {
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--gochatterbot-font);
    transition: background 0.15s ease, transform 0.1s ease;
}

.gochatterbot-feedback-cancel:active,
.gochatterbot-feedback-submit:active {
    transform: scale(0.96);
}

.gochatterbot-feedback-cancel {
    background: var(--gochatterbot-border-light);
    color: var(--gochatterbot-text-secondary);
}

.gochatterbot-feedback-cancel:hover {
    background: var(--gochatterbot-border);
}

.gochatterbot-feedback-submit {
    background: var(--gochatterbot-accent);
    color: #fff;
}

.gochatterbot-feedback-submit:hover {
    background: var(--gochatterbot-accent-dark);
}
