.kb-search-form {
    display: flex;
    gap: 0.75rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.kb-search-input {
    flex: 1;
}

.kb-sidebar .list-group-item.active {
    background: var(--paytura-primary, #1b4965);
    border-color: var(--paytura-primary, #1b4965);
}

.kb-result-card h3 a {
    color: var(--paytura-primary, #1b4965);
    text-decoration: none;
}

.kb-result-card h3 a:hover {
    color: var(--paytura-accent, #5fa8d3);
}

.kb-article-body {
    font-size: 1.05rem;
    line-height: 1.75;
}

.kb-related {
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
}

.rich-text-content img {
    max-width: 100%;
    height: auto;
}

.rich-text-content table {
    width: 100%;
    margin: 1rem 0;
}

.kb-pagination .kb-pagination-spacer {
    display: inline-block;
    min-width: 7rem;
}

.kb-chat-root {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1080;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.kb-chat-toggle {
    border: 0;
    border-radius: 999px;
    background: var(--paytura-primary, #1b4965);
    color: #fff;
    padding: 0.85rem 1.25rem;
    box-shadow: 0 8px 24px rgba(13, 27, 42, 0.25);
    font-weight: 600;
}

.kb-chat-toggle:hover {
    background: var(--paytura-accent, #5fa8d3);
}

.kb-chat-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.75rem);
    width: min(494px, calc(100vw - 2rem));
    max-height: min(780px, calc(100vh - 4rem));
    min-height: min(780px, calc(100vh - 4rem));
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(13, 27, 42, 0.2);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.kb-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    background: var(--paytura-dark, #0d1b2a);
    color: #fff;
}

.kb-chat-subtitle {
    font-size: 0.8rem;
    opacity: 0.85;
}

.kb-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #f7fafc;
}

.kb-chat-message {
    margin-bottom: 0.75rem;
}

.kb-chat-message-user {
    text-align: right;
}

.kb-chat-bubble {
    display: inline-block;
    max-width: 92%;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.45;
    text-align: left;
}

.kb-chat-message-user .kb-chat-bubble {
    background: var(--paytura-primary, #1b4965);
    color: #fff;
}

.kb-chat-message-assistant .kb-chat-bubble {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: var(--paytura-text, #1a1a2e);
}

.kb-chat-sources {
    margin: 0.35rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.85rem;
}

.kb-chat-sources a {
    color: var(--paytura-primary, #1b4965);
}

.kb-chat-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.kb-chat-input {
    resize: vertical;
    min-height: 2.5rem;
    max-height: 6rem;
}

.kb-chat-send {
    align-self: flex-end;
}
