/* AI Connect — in-widget chat help ("?" button + overlay).
   Rendered by chat.js only when the widget root carries data-aic-help-text
   or data-aic-help-url; without those attributes nothing is added.
   Class names match the dConnect twin (public/css/chat.css). */

.ai-connect-chat--has-help { position: relative; }

.ai-connect-chat__help-btn {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #555;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}
.ai-connect-chat__help-btn:hover,
.ai-connect-chat__help-btn:focus {
    background: #fff;
    color: #000;
}

.ai-connect-chat__help-overlay {
    position: absolute;
    inset: 0;
    z-index: 6;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.97);
    padding: 1.25rem 1.5rem;
}
.ai-connect-chat__help-overlay[hidden] { display: none; }

.ai-connect-chat__help-close {
    position: absolute;
    top: 0.5rem;
    right: 0.6rem;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #555;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}
.ai-connect-chat__help-close:hover,
.ai-connect-chat__help-close:focus { color: #000; }

.ai-connect-chat__help-content {
    color: #333;
    font-size: 0.9rem;
    line-height: 1.5;
    padding-right: 1.5rem;
}
.ai-connect-chat__help-content h1,
.ai-connect-chat__help-content h2,
.ai-connect-chat__help-content h3,
.ai-connect-chat__help-content h4 { margin: 0.8rem 0 0.3rem; font-size: 1rem; }
.ai-connect-chat__help-content p { margin: 0 0 0.6rem; }
.ai-connect-chat__help-content ul,
.ai-connect-chat__help-content ol { margin: 0.4rem 0; padding-left: 1.2rem; }
