/* Unique Floating Fixed Coordinates */
.cg-bot-floating-btn {
    position: fixed;
    bottom: 184px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff9900 0%, #ff5500 100%);
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(255, 85, 0, 0.4);
    cursor: pointer;
    z-index: 2147483647 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cg-bot-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 153, 0, 0.4);
    border-radius: 50%;
    animation: cg-pulse-anim 2s infinite;
    z-index: 1;
}
@keyframes cg-pulse-anim {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Panel Design Container */
.cg-chat-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 360px;
    max-width: calc(100vw - 40px);
    height: 520px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    z-index: 2147483647 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border: 1px solid #e0e0e0;
}

.cg-chat-header {
    background: #0073aa;
    color: #ffffff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cg-header-title { display: flex; align-items: center; gap: 10px; }
.cg-header-title strong { display: block; font-size: 15px; }
.cg-header-title small { font-size: 11px; opacity: 0.8; }
#cg-chat-close { cursor: pointer; font-size: 26px; font-weight: 300; transition: 0.2s; }
#cg-chat-close:hover { color: #ff9900; }

.cg-chat-body { flex: 1; padding: 18px; overflow-y: auto; background: #f4f7f9; }

.cg-step-container { display: none; }
.cg-step-container.active { display: block; }

.bot-welcome-msg {
    background: #ffffff;
    color: #333;
    padding: 12px 16px;
    border-radius: 12px;
    border-left: 4px solid #ff9900;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.cg-options-grid { display: flex; flex-direction: column; gap: 9px; }
.cg-opt-btn, .cg-type-btn, .cg-direct-btn {
    background: #ffffff;
    border: 1px solid #dcdcdc;
    padding: 11px 14px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    transition: all 0.2s ease;
}
.cg-opt-btn:hover, .cg-type-btn:hover, .cg-direct-btn:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
    transform: translateY(-1px);
}

.cg-back-btn {
    background: transparent;
    border: none;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    margin-top: 12px;
    padding: 5px 0;
}
.cg-back-btn:hover { color: #0073aa; }

.results-heading { font-weight: bold; font-size: 14px; margin-bottom: 10px; color: #111; }
.cg-results-list { list-style: none; padding: 0; margin: 0; }
.cg-results-list li { margin-bottom: 8px; }
.cg-results-list a {
    display: block;
    background: #fff;
    padding: 11px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    font-weight: bold;
    border: 1px solid #eaeaea;
}
.cg-results-list a span { color: #0073aa; float: right; font-size: 11px; font-weight: normal; }

.cg-pdf-download-btn {
    width: 100%;
    background: #25d366;
    color: white;
    border: none;
    padding: 13px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}
.cg-pdf-download-btn:hover { background: #20ba5a; }

.cg-loader { text-align: center; padding: 25px 10px; }
.spinner {
    width: 35px;
    height: 35px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff9900;
    border-radius: 50%;
    margin: 0 auto 12px;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }