.kb-breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
}

.kb-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.kb-breadcrumb-item:not(:last-child)::after {
    content: "/";
    opacity: 0.55;
}

.paytura-page-header .kb-breadcrumb-list a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.paytura-page-header .kb-breadcrumb-list a:hover {
    color: #fff;
    text-decoration: underline;
}

.paytura-page-header .kb-breadcrumb-item span {
    color: rgba(255, 255, 255, 0.9);
}

.kb-breadcrumb-inline .kb-breadcrumb-list a {
    color: var(--paytura-primary, #1b4965);
    text-decoration: none;
}

.kb-breadcrumb-inline .kb-breadcrumb-list a:hover {
    color: var(--paytura-accent, #5fa8d3);
    text-decoration: underline;
}

.kb-related-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.kb-related-item a {
    color: var(--paytura-primary, #1b4965);
    text-decoration: none;
    font-weight: 500;
}

.kb-related-item a:hover {
    color: var(--paytura-accent, #5fa8d3);
}

.kb-admin-category-child {
    padding-left: 1.75rem;
    border-left: 3px solid #e2e8f0;
}

.kb-admin-category-child .category-name::before {
    content: "↳ ";
    color: #6c757d;
}

.kb-search-form {
    display: flex;
    gap: 0.75rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.kb-search-wrap {
    position: relative;
    flex: 1;
}

.kb-search-suggestions {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    right: 0;
    z-index: 20;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    max-height: 320px;
    overflow-y: auto;
}

.kb-search-suggestion-link {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.65rem 0.85rem;
    color: inherit;
    text-decoration: none;
}

.kb-search-suggestion-link:hover,
.kb-search-suggestion-link:focus {
    background: #f8f9fa;
    outline: none;
}

.kb-category-link-card h3 {
    color: var(--paytura-primary, #1b4965);
}

.kb-hub-card {
    color: inherit;
    border-color: #dee2e6;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.kb-hub-card:hover {
    border-color: var(--paytura-primary, #1b4965);
    box-shadow: 0 0.25rem 0.75rem rgba(27, 73, 101, 0.12);
}

.kb-hub-card h3 {
    color: var(--paytura-primary, #1b4965);
}

.kb-internal-banner {
    background: #fff3cd;
    border: 1px solid #ffecb5;
    border-left: 4px solid #ffc107;
    border-radius: 0.375rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: #664d03;
}

.kb-featured-card {
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.kb-featured-card:hover {
    border-color: var(--paytura-accent, #5fa8d3);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.06);
}

.kb-featured-card h3 {
    color: var(--paytura-primary, #1b4965);
}

.kb-popular-list {
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    background: #fff;
}

.kb-popular-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.kb-popular-item:last-child {
    border-bottom: none;
}

.kb-popular-item a {
    color: var(--paytura-primary, #1b4965);
    text-decoration: none;
    font-weight: 500;
}

.kb-popular-item a:hover {
    color: var(--paytura-accent, #5fa8d3);
}

.kb-search-input {
    flex: 1;
    width: 100%;
}

.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-talech-disclaimer {
    background: #f8f9fa;
    border-left: 4px solid var(--paytura-primary, #1b4965);
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: #495057;
}

.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;
}
