@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css');

:root {
    --cb-primary: #0A66C2;
    --cb-primary-hover: #08529e;
    --cb-bg: #ffffff;
    --cb-gray: #f8fafc;
    --cb-text: #1e293b;
    --cb-text-light: #64748b;
    --cb-border: #e2e8f0;
    --cb-shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.15), 0 10px 20px -5px rgba(0, 0, 0, 0.1);
    --cb-shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.05);
    --cb-font: 'Inter', system-ui, -apple-system, sans-serif;
    --cb-radius: 20px;
    --cb-radius-sm: 12px;
    --cb-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#goenka-chatbot-widget {
    position: fixed;
    bottom: 100px;
    right: 24px;
    z-index: 9;
    font-family: var(--cb-font);
    display: flex;
    flex-direction: column;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    align-items: flex-end;
    gap: 0;
}

#cb-trigger-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cb-primary), #1178dc);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: var(--cb-shadow-lg);
    transition: var(--cb-transition);
    border: none;
    outline: none;
    position: fixed;
    overflow: hidden;
    bottom: 60px;
    z-index: -1; 
    right: 30px;
}

#cb-trigger-btn video {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    object-fit: cover;
}

#cb-trigger-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 25px 45px -10px rgba(10, 102, 194, 0.4);
}

/* === Trigger Wrapper (tooltip + button container) === */
#cb-trigger-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    position: absolute;
    bottom: 40px;
    width: 260px;
    /* position: relative; */
}

/* === Tooltip Bubble === */
#cb-tooltip {
    background: #ffffff;
    border-radius: 14px;
    padding: 12px 40px 12px 16px;
    box-shadow: 0 6px 24px -4px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 260px;
    animation: tooltipFadeIn 0.5s ease 1s both;
    position: relative;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#cb-tooltip.cb-tooltip-hidden {
    opacity: 0 !important;
    pointer-events: none;
    transform: translateX(10px);
    animation: none;
}

.cb-tooltip-wave {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
    animation: wave 1.5s ease-in-out 1.5s 2;
    transform-origin: 70% 70%;
}

.cb-tooltip-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cb-tooltip-text strong {
    font-size: 11px;
    color: #1e293b;
    font-weight: 600;
    line-height: 1.3;
}

.cb-tooltip-text span {
    font-size: 11px;
    color: #22c55e;
    font-weight: 500;
    line-height: 1.3;
}

#cb-tooltip-close {
    position: absolute;
    top: 4px;
    right: 8px;
    background: none;
    border: none;
    font-size: 18px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s;
}

#cb-tooltip-close:hover {
    color: #475569;
}

/* Tooltip tail / arrow */
#cb-tooltip::after {
    content: '';
    position: absolute;
    right: 50px;
    top: 99%;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #ffffff;
    box-shadow: 2px -2px 4px rgba(0, 0, 0, 0.04);
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes wave {
    0% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(14deg);
    }

    20% {
        transform: rotate(-8deg);
    }

    30% {
        transform: rotate(14deg);
    }

    40% {
        transform: rotate(-4deg);
    }

    50% {
        transform: rotate(10deg);
    }

    60% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* === Close Icon inside trigger (hidden by default) === */
#cb-trigger-close-icon {
    display: none;
    font-size: 26px;
    color: #fff;
    z-index: 2;
    position: relative;
}

/* When chatbot is open: hide video, show close icon, change bg */
#cb-trigger-btn.cb-trigger-close-mode {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

#cb-trigger-btn.cb-trigger-close-mode video {
    display: none;
}

#cb-trigger-btn.cb-trigger-close-mode #cb-trigger-close-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

#cb-window {
    width: 450px;
    height: 640px;
    max-height: calc(88vh - 100px);
    background-color: var(--cb-gray);
    border-radius: var(--cb-radius);
    box-shadow: var(--cb-shadow-lg);
    display: none;
    flex-direction: column;
    margin-bottom: 0;
    position: relative;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: bottom right;
    border: 5px solid rgba(0, 0, 0, 0.05);
    z-index: 9;
}

#cb-window.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Fullscreen Mode for Desktop */
#cb-window.cb-is-fullscreen {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    max-width: 100vw;
    margin: 0;
    border-radius: 0;
    border: none;
}

button#cb-close-btn {
    position: absolute;
    right: -12px;
    top: -13px;
    background: #ffffff;
    width: 30px;
    height: 30px;
    box-shadow: 0 0 9px #000;
    border-radius: 100%;
}

.cb-header {
    background: linear-gradient(135deg, #121c2d 0%, #123985 100%);
    color: white;
    padding: 14px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 10;
    border-radius: 15px 15px 0 0;
}

.cb-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cb-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    padding: 2px;
}

.cb-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.cb-status-dot {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 12px;
    height: 12px;
    background-color: #22c55e;
    border-radius: 50%;
    border: 2px solid #0f172a;
}

.cb-header-text {
    display: flex;
    flex-direction: column;
}

.cb-title {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.cb-subtitle {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 3px;
    font-weight: 500;
}

.cb-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cb-header-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.cb-header-btn:hover {
    color: white;
}

.cb-lang-toggle {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    gap: 6px;
    transition: var(--cb-transition);
}

.cb-lang-toggle:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.cb-fullscreen-btn,
.cb-close {
    font-size: 18px;
    padding: 4px;
}

.cb-body {
    flex: 1;
    overflow-y: auto;
    padding: 22px 20px;
    background-color: var(--cb-gray);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Scrollbar styles */
.cb-body::-webkit-scrollbar {
    width: 6px;
}

.cb-body::-webkit-scrollbar-track {
    background: transparent;
}

.cb-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.cb-message {
    max-width: 88%;
    font-size: 14px;
    line-height: 1.6;
    animation: fadeIn 0.3s ease;
    letter-spacing: -0.01em;
    word-break: break-word;
}

.cb-message.bot {
    align-self: flex-start;
    background-color: #ffffff;
    color: #1e293b;
    padding: 12px 16px;
    border-radius: 16px 16px 16px 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.cb-message.bot strong {
    font-weight: 700;
    color: #0f172a;
}

.cb-message.bot em {
    font-style: italic;
    color: #475569;
}

.cb-message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #0A66C2 0%, #004182 100%);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 16px 16px 4px 16px;
    box-shadow: 0 4px 12px rgba(10, 102, 194, 0.2);
}

.cb-message.user strong {
    font-weight: 700;
    color: #ffffff;
}

.cb-msg-link {
    color: #0284c7;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s ease;
}

.cb-msg-link:hover {
    color: #0369a1;
}

.cb-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
    align-self: flex-start;
    max-width: 100%;
}

.cb-btn {
    background-color: white;
    border: 1px solid var(--cb-border);
    color: #334155;
    padding: 6px 18px;
    border-radius: 100px;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--cb-transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--cb-shadow-sm);
}

.cb-btn:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.08);
}

.cb-btn.human {
    color: #059669;
    border-color: #a7f3d0;
    background-color: #f0fdf4;
}

.cb-btn.human:hover {
    background-color: #dcfce7;
    border-color: #6ee7b7;
}

.cb-input-area {
    padding: 10px 10px;
    background-color: white;
    border-radius: 0 0 15px 15px;
    border-top: 1px solid var(--cb-border);
    z-index: 10;
}

.cb-input-wrapper {
    background-color: var(--cb-gray);
    border-radius: 100px;
    display: flex;
    align-items: center;
    padding: 8px 8px 8px 20px;
    gap: 12px;
    border: 1px solid var(--cb-border);
    transition: var(--cb-transition);
}

.cb-input-wrapper:focus-within {
    border-color: var(--cb-primary);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.1);
}

.cb-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14.5px;
    background: transparent;
    font-family: var(--cb-font);
    color: var(--cb-text);
}

.cb-input::placeholder {
    color: #94a3b8;
}

.cb-input-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cb-lang-select {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    box-shadow: var(--cb-shadow-sm);
    transition: var(--cb-transition);
}

.cb-lang-select:hover {
    background-color: #f8fafc;
}

.cb-mic-btn {
    background: none;
    border: none;
    color: #10b981;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--cb-transition);
}

.cb-mic-btn:hover {
    background-color: #dcfce7;
}

.cb-send {
    background: linear-gradient(135deg, var(--cb-primary), #1178dc);
    border: none;
    color: white;
    font-size: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--cb-transition);
    box-shadow: 0 2px 8px rgba(10, 102, 194, 0.3);
}

.cb-send:hover {
    transform: scale(1.1);
}

/* .d-none {
    display: none !important;
} */

/* Form Styles inside Chat */
.cb-form {
    background: white;
    padding: 20px;
    border-radius: var(--cb-radius-sm);
    border: 1px solid var(--cb-border);
    width: 100%;
    max-width: 320px;
    box-shadow: var(--cb-shadow-sm);
}

/* === Welcome Lead Card & Spam Protected Initial Form === */
.cb-lead-card {
    background: #ffffff;
    /* border: 1px solid #e2e8f0; */
    border-radius: 16px;
    padding: 16px 47px 0 47px;
    margin-bottom: 16px;
    /* box-shadow: 0 10px 25px -5px rgba(10, 102, 194, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.02); */
    animation: cbFadeIn 0.35s ease-out;
}

@keyframes cbFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cb-lead-header {
    text-align: center;
    margin-bottom: 16px;
}

.cb-lead-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0284c7;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 8px;
}

.cb-lead-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.cb-lead-desc {
    font-size: 12px;
    color: #64748b;
    margin-top: 3px;
}

.cb-form-group {
    margin-bottom: 12px;
}

.cb-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 5px;
}

.cb-input-box {
    position: relative;
    display: flex;
    align-items: center;
}

.cb-input-box i {
    position: absolute;
    left: 12px;
    color: #94a3b8;
    font-size: 15px;
    pointer-events: none;
    transition: color 0.2s ease;
}

.cb-input-box input {
    width: 100%;
    height: 42px;
    padding: 8px 12px 8px 36px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 13.5px;
    font-family: var(--cb-font);
    color: #0f172a;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.cb-input-box input:focus {
    outline: none;
    background: #ffffff;
    border-color: #0A66C2;
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.12);
}

.cb-input-box input:focus+i,
.cb-input-box:focus-within i {
    color: #0A66C2;
}

/* Mathematical Captcha Component */
.cb-captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cb-captcha-math {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    border-radius: 9px;
    padding: 0 10px;
    height: 40px;
    user-select: none;
}

.cb-captcha-math .cb-captcha-eq {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14.5px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cb-captcha-math .cb-captcha-eq i {
    color: #0A66C2;
    font-size: 13px;
}

.cb-captcha-refresh {
    background: transparent;
    border: none;
    color: #0A66C2;
    cursor: pointer;
    font-size: 15px;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cb-captcha-refresh:hover {
    background: #e2e8f0;
    color: #00458e;
    transform: rotate(180deg);
}

.cb-captcha-input {
    width: 100px;
    flex-shrink: 0;
}

.cb-captcha-input input {
    width: 100%;
    height: 40px;
    border: 1.5px solid #cbd5e1;
    border-radius: 9px;
    padding: 0 10px;
    font-size: 13.5px;
    font-weight: 700;
    text-align: center;
    background: #f8fafc;
    transition: all 0.2s ease;
    font-family: var(--cb-font);
}

.cb-captcha-input input:focus {
    outline: none;
    background: #ffffff;
    border-color: #0A66C2;
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.12);
}

.cb-form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 11.5px;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: cbShake 0.35s ease;
}

@keyframes cbShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}

.cb-lead-btn {
    width: 100%;
    height: 44px;
    background: linear-gradient(135deg, #0A66C2 0%, #00458e 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(10, 102, 194, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.cb-lead-btn:hover {
    background: linear-gradient(135deg, #085bb0 0%, #003b7a 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(10, 102, 194, 0.35);
}

.cb-lead-btn:active {
    transform: translateY(0);
}

.cb-lead-trust {
    text-align: center;
    font-size: 11px;
    color: #64748b;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Language Selection Grid */
.cb-lang-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 12px;
}

.cb-lang-note {
    grid-column: 1 / -1;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 11.5px;
    color: #475569;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.4;
    margin-top: 2px;
}

.cb-lang-note i {
    font-size: 13px;
    margin-top: 1px;
    flex-shrink: 0;
}

.cb-lang-card-btn {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    font-family: var(--cb-font);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.cb-lang-card-btn:hover {
    border-color: #0A66C2;
    background: #f0f7ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 102, 194, 0.12);
}

.cb-lang-card-btn .flag-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
}

.cb-lang-card-btn .flag-sub {
    font-size: 11px;
    color: #64748b;
}

.cb-loading {
    display: flex;
    gap: 6px;
    padding: 16px 20px;
}

.cb-dot {
    width: 8px;
    height: 8px;
    background-color: #cbd5e1;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.cb-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.cb-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
        background-color: var(--cb-primary);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Highlighted Documents Required Card & Numbered List === */
.cb-doc-highlight-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #0A66C2;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 12px 0 6px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.cb-doc-highlight-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cb-doc-list {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    color: #1e293b;
    line-height: 1.6;
}

.cb-doc-list li {
    margin-bottom: 4px;
}

.cb-doc-list li:last-child {
    margin-bottom: 0;
}

/* === Download PDF Action Card (Matches Reference UI) === */
.cb-pdf-action-card {
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 8px;
    padding: 8px 10px;
    margin: 0 0 0 0;
    cursor: pointer;
    display: flex;
    max-width: 88%;
    font-size: 14px;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    /* box-shadow: 0 2px 8px rgba(22, 163, 74, 0.06); */
    user-select: none;
}

.cb-pdf-action-card:hover {
    background: #dcfce7;
    border-color: #86efac;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.16);
}

.cb-pdf-action-card:active {
    transform: translateY(0);
}

.cb-pdf-card-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cb-pdf-icon {
    font-size: 20px;
    color: #dc2626;
    background: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.cb-pdf-text {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.cb-pdf-card-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cb-pdf-badge {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.cb-pdf-arrow {
    font-size: 13px;
    color: #16a34a;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.cb-pdf-action-card:hover .cb-pdf-arrow {
    transform: translate(2px, -2px);
}

/* === In-Chatbot Overlay PDF Viewer === */
.cb-pdf-viewer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    border-radius: inherit;
    overflow: hidden;
    animation: cbPdfSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cbPdfSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cb-pdf-viewer-header {
    height: 52px;
    background: #0f172a;
    color: #ffffff;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cb-pdf-viewer-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #f8fafc;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 68%;
}

.cb-pdf-viewer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cb-pdf-hdr-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cb-pdf-hdr-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.cb-pdf-close-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
}

.cb-pdf-viewer-body {
    flex: 1;
    width: 100%;
    height: calc(100% - 52px);
    background: #334155;
    position: relative;
}

.cb-pdf-viewer-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Mobile Responsiveness (Dynamic Viewport Height) */
@media (max-width: 480px) {
    #cb-trigger-wrapper {
        /* Keep trigger visible on mobile for toggle */
    }

    #cb-tooltip {
        display: none;
    }

    #goenka-chatbot-widget {
        bottom: 0;
        right: 0;
    }

    #cb-window {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        margin: 0;
        border: none;
        box-shadow: none;
    }

    #cb-window.active~#cb-trigger-wrapper {
        position: fixed;
        bottom: 12px;
        right: 12px;
        z-index: 1000000;
    }

    #cb-trigger-btn {
        width: 56px;
        height: 56px;
    }

    .cb-header {
        border-radius: 0;
        padding: 12px 16px;
    }

    .cb-fullscreen-btn {
        display: none;
        /* No need for fullscreen toggle on mobile since it's already full */
    }

    .cb-body {
        padding: 20px 16px;
    }

    .cb-input-area {
        padding: 12px 16px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }
}