.chatgpt-ai-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
}
.chatgpt-ai-input-row { position: relative; }
#chatgpt-ai-input {
    width: 100%;
    padding: 14px 42px 14px 16px;
    border-radius: 999px;
    border: 1px solid #d0d0d0;
    font-size: 15px;
    background: #f7f7f8;
    transition: all 0.18s ease;
    box-sizing: border-box;
}
#chatgpt-ai-input:focus {
    outline: none;
    border-color: #999;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.03);
}
.chatgpt-ai-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #888;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    display: none;
}
.chatgpt-ai-clear-btn:hover {
    background: rgba(0,0,0,0.04);
    color: #555;
}
.chatgpt-ai-results {
    margin-top: 10px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 20px 45px rgba(0,0,0,0.08);
    padding: 16px 18px;
    display: none;
    min-height: 40px;
    box-sizing: border-box;
}
.chatgpt-ai-empty { font-size: 14px; color: #777; }
.chatgpt-ai-loading {
    font-size: 14px;
    color: #555;
    position: relative;
    padding-left: 24px;
}
.chatgpt-ai-loading::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 50%;
    width: 12px;
    height: 12px;
    margin-top: -6px;
    border-radius: 999px;
    border: 2px solid #999;
    border-top-color: transparent;
    animation: chatgpt-ai-spin 0.7s linear infinite;
}
@keyframes chatgpt-ai-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.chatgpt-ai-error { font-size: 14px; color: #c0392b; }
.chatgpt-ai-answer {
    font-size: 15px;
    line-height: 1.6;
    color: #222;
    white-space: pre-wrap;
}
.chatgpt-ai-sources {
    margin-top: 14px;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
}
.chatgpt-ai-sources-title {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}
.chatgpt-ai-sources ul { margin: 0; padding-left: 18px; }
.chatgpt-ai-sources li { margin: 0 0 4px 0; font-size: 13px; }
.chatgpt-ai-sources a { color: #2563eb; text-decoration: none; }
.chatgpt-ai-sources a:hover { text-decoration: underline; }

.chatgpt-ai-doctors {
    margin-top: 18px;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}
.chatgpt-ai-doctors-title {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
}
.chatgpt-ai-doctors-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
@media (min-width: 600px) {
    .chatgpt-ai-doctors-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.chatgpt-ai-doctor-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #f7f7f8;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.chatgpt-ai-doctor-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
    background: #ffffff;
}
.chatgpt-ai-doctor-avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background-color: #e5e5e5;
    overflow: hidden;
    flex-shrink: 0;
}
.chatgpt-ai-doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.chatgpt-ai-doctor-info { min-width: 0; }
.chatgpt-ai-doctor-name {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}
.chatgpt-ai-doctor-specialty {
    font-size: 11px;
    color: #6b7280;
}
.chatgpt-ai-cta-button {
    display: block;
    width: 100%;
    margin-top: 18px;
    padding: 12px 18px;
    text-align: center;
    border-radius: 999px;
    background: #000000;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    box-sizing: border-box;
}
.chatgpt-ai-cta-button:hover { opacity: 0.9; }
