/* =============================================
   Helpon Widget - Pixel-matched to design
   ============================================= */

:root {
    --fc-primary: #4a8e8e;
    --fc-primary-dark: #3d7575;
    --fc-primary-light: #6aaeae;
    --fc-primary-bg: #eef6f6;
    --fc-white: #ffffff;
    --fc-gray-50: #fafbfc;
    --fc-gray-100: #f3f4f6;
    --fc-gray-200: #e5e7eb;
    --fc-gray-300: #d1d5db;
    --fc-gray-400: #9ca3af;
    --fc-gray-500: #6b7280;
    --fc-gray-600: #4b5563;
    --fc-gray-700: #374151;
    --fc-gray-800: #1f2937;
    --fc-radius: 20px;
    --fc-radius-sm: 10px;
}

/* =============================================
   FLOATING TRIGGER BUTTON
   ============================================= */
#helpon-chat-trigger {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--fc-primary), var(--fc-primary-dark));
    color: var(--fc-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(74, 142, 142, 0.4);
    z-index: 999998;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    outline: none;
}

#helpon-chat-trigger:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(74, 142, 142, 0.5);
}

#helpon-chat-trigger svg {
    width: 28px;
    height: 28px;
    fill: var(--fc-white);
}

#helpon-chat-trigger .helpon-trigger-close { display: none; }
#helpon-chat-trigger.helpon-open .helpon-trigger-icon { display: none; }
#helpon-chat-trigger.helpon-open .helpon-trigger-close { display: block; }

.helpon-trigger-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--fc-primary);
    animation: helpon-pulse 2s ease-out infinite;
    z-index: -1;
}

@keyframes helpon-pulse {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Left position variant */
#helpon-chat-trigger.helpon-left { right: auto; left: 24px; }
#helpon-chat-widget.helpon-left { right: auto; left: 24px; }

/* =============================================
   WIDGET CONTAINER
   ============================================= */
#helpon-chat-widget {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 400px;
    max-height: 620px;
    background: var(--fc-white);
    border-radius: var(--fc-radius);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0,0,0,0.04);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease, visibility 0.25s;
}

#helpon-chat-widget.helpon-visible {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

/* =============================================
   HEADER — v3.0 Two-row redesign
   ============================================= */
.helpon-header {
    background: linear-gradient(135deg, #3d7a7a 0%, #2a6b6b 50%, #1e5f5f 100%);
    color: var(--fc-white);
    padding: 0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: relative;
    border-radius: var(--fc-radius) var(--fc-radius) 0 0;
    overflow: hidden;
}

/* Row 1: Avatar + Name + Status + Close */
.helpon-header-top {
    display: flex;
    align-items: center;
    padding: 16px 16px 12px;
    gap: 12px;
}

.helpon-header-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
}

.helpon-header-info {
    flex: 1;
    min-width: 0;
}

.helpon-header-name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    display: block;
    letter-spacing: -0.2px;
}

.helpon-header-subtitle {
    font-size: 11.5px;
    opacity: 0.7;
    display: block;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.helpon-status-online {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    font-size: 10.5px;
    font-weight: 600;
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 20px;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.helpon-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 4px rgba(74, 222, 128, 0.6);
    animation: helpon-pulse-dot 2s ease-in-out infinite;
}

@keyframes helpon-pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 4px rgba(74,222,128,0.6); }
    50% { opacity: 0.5; box-shadow: 0 0 8px rgba(74,222,128,0.3); }
}

/* Close button */
.helpon-close-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.helpon-close-btn svg {
    width: 16px;
    height: 16px;
}

.helpon-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--fc-white);
}

/* Row 2: Action Buttons */
.helpon-header-actions {
    display: flex;
    gap: 8px;
    padding: 0 16px 14px;
}

/* =============================================
   PROGRESS STEPPER - Matches screenshot exactly
   ============================================= */
.helpon-stepper {
    padding: 14px 12px 8px;
    background: var(--fc-white);
    border-bottom: 1px solid var(--fc-gray-200);
    flex-shrink: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.helpon-stepper::-webkit-scrollbar { display: none; }

.helpon-stepper-track {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    padding: 0 4px;
}

.helpon-stepper-line {
    position: absolute;
    top: 14px;
    left: 30px;
    right: 30px;
    height: 3px;
    background: var(--fc-gray-200);
    z-index: 0;
    border-radius: 2px;
}

.helpon-stepper-line-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--fc-primary);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.helpon-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    min-width: 52px;
    flex: 1;
}

.helpon-step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background: var(--fc-white);
    border: 2px solid var(--fc-gray-300);
    color: var(--fc-gray-400);
    transition: all 0.4s ease;
    position: relative;
}

.helpon-step-item.helpon-step-active .helpon-step-circle {
    background: var(--fc-primary);
    border-color: var(--fc-primary);
    color: var(--fc-white);
    box-shadow: 0 2px 8px rgba(74, 142, 142, 0.35);
}

.helpon-step-item.helpon-step-completed .helpon-step-circle {
    background: var(--fc-primary);
    border-color: var(--fc-primary);
    color: var(--fc-white);
}

.helpon-step-label {
    font-size: 9px;
    color: var(--fc-gray-400);
    margin-top: 5px;
    text-align: center;
    white-space: nowrap;
    max-width: 65px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    transition: color 0.3s;
}

.helpon-step-item.helpon-step-active .helpon-step-label {
    color: var(--fc-primary);
    font-weight: 700;
}

.helpon-step-item.helpon-step-completed .helpon-step-label {
    color: var(--fc-primary);
    font-weight: 600;
}

.helpon-stepper-description {
    font-size: 11px;
    color: var(--fc-gray-500);
    text-align: center;
    margin-top: 8px;
    padding: 0 4px;
}

/* =============================================
   MESSAGES AREA
   ============================================= */
.helpon-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px;
    background: linear-gradient(180deg, #f7f9fb 0%, #f0f3f6 100%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 260px;
    max-height: 360px;
    position: relative;
}

.helpon-messages::-webkit-scrollbar { width: 3px; }
.helpon-messages::-webkit-scrollbar-track { background: transparent; }
.helpon-messages::-webkit-scrollbar-thumb { background: var(--fc-gray-300); border-radius: 3px; }

/* =============================================
   MESSAGE BUBBLES - Matches screenshot exactly
   ============================================= */
.helpon-msg {
    display: flex;
    gap: 8px;
    max-width: 82%;
    animation: helpon-msg-in 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes helpon-msg-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.helpon-msg-bot {
    align-self: flex-start;
}

.helpon-msg-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.helpon-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    margin-top: 2px;
}

.helpon-msg-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--fc-gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.helpon-msg-user-avatar svg {
    width: 16px;
    height: 16px;
    fill: var(--fc-gray-500);
}

.helpon-msg-bubble {
    padding: 11px 15px;
    font-size: 13.5px;
    line-height: 1.55;
    word-break: break-word;
    white-space: pre-line;
}

.helpon-msg-bot .helpon-msg-bubble {
    background: var(--fc-white);
    color: var(--fc-gray-700);
    border-radius: 4px 18px 18px 18px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.helpon-msg-user .helpon-msg-bubble {
    background: var(--fc-primary);
    color: var(--fc-white);
    border-radius: 18px 4px 18px 18px;
    box-shadow: 0 1px 4px rgba(74, 142, 142, 0.25);
}

/* =============================================
   OPTION BUTTONS - Matches screenshot exactly
   Full width, white bg, bold left-aligned text
   ============================================= */
.helpon-options-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 2px 0;
    animation: helpon-msg-in 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.helpon-option-btn {
    display: block;
    width: 100%;
    padding: 14px 16px;
    background: var(--fc-white);
    border: 1px solid var(--fc-gray-200);
    border-left: 3px solid transparent;
    border-radius: var(--fc-radius-sm);
    font-size: 14px;
    font-weight: 700;
    color: var(--fc-gray-800);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    line-height: 1.3;
}

.helpon-option-btn:hover {
    border-left-color: var(--fc-primary);
    background: var(--fc-primary-bg);
    box-shadow: 0 2px 8px rgba(74, 142, 142, 0.12);
    transform: translateX(2px);
}

.helpon-option-btn:active {
    transform: translateX(2px) scale(0.99);
}

/* =============================================
   IMAGE UPLOAD ZONE
   ============================================= */
.helpon-upload-zone {
    width: 100%;
    padding: 28px 16px;
    border: 2px dashed var(--fc-gray-300);
    border-radius: var(--fc-radius-sm);
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    background: var(--fc-white);
    animation: helpon-msg-in 0.35s ease;
}

.helpon-upload-zone:hover {
    border-color: var(--fc-primary);
    background: var(--fc-primary-bg);
}

.helpon-upload-zone.helpon-drag-over {
    border-color: var(--fc-primary);
    background: var(--fc-primary-bg);
    transform: scale(1.01);
}

.helpon-upload-icon { font-size: 36px; margin-bottom: 8px; display: block; }

.helpon-upload-text {
    font-size: 13px;
    color: var(--fc-gray-500);
}

.helpon-upload-text span {
    color: var(--fc-primary);
    font-weight: 700;
    text-decoration: underline;
}

.helpon-upload-success {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 700;
    animation: helpon-msg-in 0.35s ease;
    box-shadow: 0 1px 3px rgba(6, 95, 70, 0.1);
}

/* =============================================
   AI ANALYSIS CARD - Professional Assessment UI
   ============================================= */
.helpon-analysis-card {
    background: var(--fc-white);
    border: 1px solid var(--fc-gray-200);
    border-radius: 14px;
    padding: 0;
    width: 100%;
    animation: helpon-msg-in 0.35s ease;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    overflow: visible;
    margin: 8px 0;
    flex-shrink: 0;
}

.helpon-analysis-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #f0f9f6 0%, #e8f4f0 100%);
    border-bottom: 1px solid var(--fc-gray-100);
}

.helpon-analysis-icon {
    font-size: 24px;
    line-height: 1;
}

.helpon-analysis-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--fc-gray-800);
}

.helpon-analysis-subtitle {
    font-size: 11px;
    color: var(--fc-gray-500);
    font-weight: 400;
    margin-top: 1px;
}

.helpon-analysis-condition {
    padding: 14px 18px;
    border-bottom: 1px solid var(--fc-gray-100);
}

.helpon-analysis-condition-name {
    font-weight: 800;
    font-size: 16px;
    margin-top: 4px;
}

.helpon-analysis-meta {
    display: flex;
    gap: 16px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--fc-gray-100);
}

.helpon-analysis-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.helpon-analysis-label {
    color: var(--fc-gray-500);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.helpon-severity-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    color: var(--fc-white);
    text-transform: capitalize;
    letter-spacing: 0.3px;
    width: fit-content;
}

.helpon-confidence-badge {
    font-weight: 700;
    font-size: 13px;
}

.helpon-analysis-description {
    padding: 12px 18px;
    border-bottom: 1px solid var(--fc-gray-100);
}

.helpon-analysis-description p {
    margin: 4px 0 0 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--fc-gray-700);
}

.helpon-analysis-recommendations {
    padding: 12px 18px;
    border-bottom: 1px solid var(--fc-gray-100);
}

.helpon-analysis-recs-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--fc-gray-500);
    margin-bottom: 8px;
}

.helpon-analysis-recommendations ul {
    margin: 0;
    padding-left: 16px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--fc-gray-600);
}

.helpon-analysis-recommendations li {
    margin-bottom: 4px;
    position: relative;
}

.helpon-analysis-recommendations li::marker {
    color: var(--fc-primary);
}

.helpon-analysis-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 10.5px;
    color: var(--fc-gray-500);
    padding: 10px 18px;
    background: #fffbf0;
    line-height: 1.5;
    margin: 0;
}

.helpon-disclaimer-icon {
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* =============================================
   ENHANCED AI ANALYSIS — Progress Bar + Badges
   ============================================= */
.helpon-analysis-meta-item .helpon-analysis-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 2px;
}

.helpon-analysis-progress-bar {
    flex: 1;
    height: 6px;
    background: var(--fc-gray-200);
    border-radius: 3px;
    overflow: hidden;
}

.helpon-analysis-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease-out;
}

.helpon-analysis-progress-pct {
    font-size: 12px;
    font-weight: 700;
    min-width: 32px;
    text-align: right;
}

.helpon-triage-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    color: var(--fc-white);
    text-transform: capitalize;
    letter-spacing: 0.3px;
    width: fit-content;
}

/* =============================================
   SESSION REPORT CARD — Post-Chat Report
   ============================================= */
.helpon-report-card {
    background: var(--fc-white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    margin: 12px 0;
    animation: helpon-report-in 0.6s ease;
    flex-shrink: 0;
}

@keyframes helpon-report-in {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.helpon-report-header {
    background: linear-gradient(135deg, var(--fc-primary), var(--fc-primary-dark));
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.helpon-report-header-icon {
    font-size: 22px;
    line-height: 1;
}

.helpon-report-header-text h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: var(--fc-white);
}

.helpon-report-header-text p {
    margin: 2px 0 0;
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    font-weight: 400;
}

.helpon-report-summary {
    padding: 14px 18px;
    background: linear-gradient(135deg, #f0f9f6 0%, #f8fafb 100%);
    border-bottom: 1px solid var(--fc-gray-100);
}

.helpon-report-summary-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--fc-primary);
    margin-bottom: 6px;
}

.helpon-report-summary p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--fc-gray-700);
}

.helpon-report-section-title {
    padding: 10px 18px 0;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--fc-gray-500);
}

.helpon-report-grid {
    padding: 0;
}

.helpon-report-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    border-bottom: 1px solid var(--fc-gray-50);
}

.helpon-report-row:nth-child(even) {
    background: #fafbfc;
}

.helpon-report-row-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--fc-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.helpon-report-row-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--fc-gray-800);
    text-align: right;
}

/* Report progress bar */
.helpon-report-confidence {
    display: flex;
    align-items: center;
    gap: 8px;
}

.helpon-report-progress {
    width: 100px;
    height: 8px;
    background: var(--fc-gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.helpon-report-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.helpon-report-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--fc-white);
    text-transform: capitalize;
}

/* Sentiment colors */
.helpon-sentiment-positive  { color: #16a34a; }
.helpon-sentiment-neutral   { color: #64748b; }
.helpon-sentiment-negative  { color: #e67e22; }
.helpon-sentiment-concerned { color: #e67e22; }
.helpon-sentiment-distressed { color: #dc2626; }

/* Urgency colors */
.helpon-urgency-low      { color: #16a34a; }
.helpon-urgency-medium   { color: #e67e22; }
.helpon-urgency-high     { color: #dc2626; }
.helpon-urgency-critical { color: #dc2626; font-weight: 800; }

.helpon-report-recs {
    padding: 12px 18px;
    background: linear-gradient(135deg, #f0fdf4 0%, #f7fdf9 100%);
    border-top: 1px solid #dcfce7;
}

.helpon-report-recs-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #16a34a;
    margin-bottom: 8px;
}

.helpon-report-recs ul {
    margin: 0;
    padding-left: 16px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--fc-gray-700);
}

.helpon-report-recs li {
    margin-bottom: 3px;
}

.helpon-report-recs li::marker {
    color: #16a34a;
}

.helpon-report-info {
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10.5px;
    color: var(--fc-gray-400);
    border-top: 1px solid var(--fc-gray-100);
}

.helpon-report-info svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.helpon-report-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 18px;
    background: #fffbf0;
    font-size: 10px;
    color: #92400e;
    line-height: 1.5;
    border-top: 1px solid #fde68a;
}

.helpon-report-email-sent {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #f0fdf4;
    font-size: 11px;
    color: #16a34a;
    font-weight: 600;
    border-top: 1px solid #dcfce7;
}

.helpon-report-email-sent svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* =============================================
   BOOKING BUTTON
   ============================================= */
.helpon-booking-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 18px;
    background: linear-gradient(135deg, var(--fc-primary), var(--fc-primary-dark));
    color: var(--fc-white);
    border: none;
    border-radius: var(--fc-radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    font-family: inherit;
    animation: helpon-msg-in 0.35s ease;
    box-shadow: 0 3px 12px rgba(74, 142, 142, 0.3);
}

.helpon-booking-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(74, 142, 142, 0.4);
    color: var(--fc-white);
}

.helpon-booking-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* =============================================
   CONFIRMATION CHECKBOX
   ============================================= */
.helpon-checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    background: var(--fc-white);
    border: 1px solid var(--fc-gray-200);
    border-radius: var(--fc-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    animation: helpon-msg-in 0.35s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.helpon-checkbox-container:hover {
    border-color: var(--fc-primary);
    background: var(--fc-primary-bg);
}

.helpon-checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--fc-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.helpon-checkbox-container label {
    font-size: 13px;
    font-weight: 700;
    color: var(--fc-gray-700);
    cursor: pointer;
}

/* =============================================
   TYPING INDICATOR
   ============================================= */
.helpon-typing {
    display: flex;
    gap: 8px;
    align-self: flex-start;
    animation: helpon-msg-in 0.3s ease;
}

.helpon-typing-bubble {
    background: var(--fc-white);
    border-radius: 4px 18px 18px 18px;
    padding: 14px 18px;
    display: flex;
    gap: 5px;
    align-items: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.helpon-typing-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--fc-gray-400);
    animation: helpon-typing-bounce 1.4s infinite ease-in-out;
}

.helpon-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.helpon-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes helpon-typing-bounce {
    0%, 80%, 100% { transform: scale(0.5); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}

/* =============================================
   INPUT AREA - Matches screenshot exactly
   ============================================= */
.helpon-input-area {
    display: flex;
    align-items: center;
    padding: 14px 14px;
    border-top: 1px solid var(--fc-gray-200);
    background: var(--fc-white);
    flex-shrink: 0;
    gap: 10px;
    border-radius: 0 0 var(--fc-radius) var(--fc-radius);
}

.helpon-input {
    flex: 1;
    padding: 11px 16px;
    border: 1.5px solid var(--fc-gray-300);
    border-radius: 22px;
    font-size: 13px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--fc-white);
    color: var(--fc-gray-700);
}

.helpon-input::placeholder {
    color: var(--fc-gray-400);
}

.helpon-input:focus {
    border-color: var(--fc-primary);
    box-shadow: 0 0 0 3px rgba(74, 142, 142, 0.1);
}

.helpon-input:disabled {
    background: var(--fc-gray-50);
    color: var(--fc-gray-400);
    border-color: var(--fc-gray-200);
}

.helpon-send-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--fc-primary), var(--fc-primary-dark));
    color: var(--fc-white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(74, 142, 142, 0.25);
}

.helpon-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 12px rgba(74, 142, 142, 0.35);
}

.helpon-send-btn:active {
    transform: scale(0.95);
}

.helpon-send-btn:disabled {
    background: var(--fc-gray-300);
    cursor: not-allowed;
    box-shadow: none;
}

.helpon-send-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Hidden file input */
.helpon-file-input { display: none; }

/* =============================================
   v2.0 — CONSENT BANNER
   ============================================= */
.helpon-consent-banner {
    padding: 24px 18px;
    text-align: center;
    animation: helpon-msg-in 0.35s ease;
}

.helpon-consent-greeting {
    margin-bottom: 16px;
}

.helpon-consent-hello {
    font-size: 17px;
    font-weight: 700;
    color: var(--fc-gray-800);
    margin-bottom: 4px;
}

.helpon-consent-subtitle {
    font-size: 13px;
    color: var(--fc-gray-500);
}

.helpon-consent-text {
    font-size: 12px;
    line-height: 1.65;
    color: var(--fc-gray-500);
    margin-bottom: 12px;
    padding: 12px 14px;
    background: var(--fc-gray-50);
    border-radius: var(--fc-radius-sm);
    border: 1px solid var(--fc-gray-200);
}

.helpon-consent-link {
    display: inline-block;
    color: var(--fc-primary);
    font-size: 12px;
    font-weight: 600;
    text-decoration: underline;
    margin-bottom: 18px;
}

.helpon-consent-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.helpon-consent-btn {
    border: none;
    border-radius: 22px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.helpon-consent-btn-agree {
    width: 100%;
    padding: 13px 24px;
    background: linear-gradient(135deg, var(--fc-primary), var(--fc-primary-dark));
    color: var(--fc-white);
    box-shadow: 0 2px 8px rgba(74, 142, 142, 0.3);
    font-size: 14px;
}

.helpon-consent-btn-agree:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(74, 142, 142, 0.4);
}

.helpon-consent-btn-decline {
    padding: 8px 24px;
    background: transparent;
    color: var(--fc-gray-400);
    font-size: 12px;
    font-weight: 500;
}

.helpon-consent-btn-decline:hover {
    color: var(--fc-gray-600);
}

/* =============================================
   v2.0 — OFFLINE BANNER
   ============================================= */
.helpon-offline-banner {
    padding: 30px 18px;
    text-align: center;
    animation: helpon-msg-in 0.35s ease;
}

.helpon-offline-message {
    font-size: 14px;
    line-height: 1.6;
    color: var(--fc-gray-600);
    margin-bottom: 18px;
}

.helpon-offline-form {
    display: flex;
    gap: 8px;
    max-width: 320px;
    margin: 0 auto;
}

.helpon-offline-form .helpon-input {
    flex: 1;
}

.helpon-offline-form .helpon-send-btn {
    width: auto;
    padding: 0 18px;
    border-radius: 22px;
    font-size: 12px;
    font-weight: 700;
}

/* =============================================
   v2.0 — TRIAGE BADGE
   ============================================= */
.helpon-triage-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 800;
    color: var(--fc-white);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    width: fit-content;
}

.helpon-triage-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.5;
}

/* =============================================
   v2.0 — FOLLOW-UP QUESTIONS
   ============================================= */
.helpon-followup-questions {
    width: 100%;
    padding: 2px 0;
    animation: helpon-msg-in 0.35s ease;
    margin-top: 8px;
}

.helpon-followup-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--fc-gray-500);
    margin-bottom: 8px;
    padding-left: 2px;
}

.helpon-followup-btn {
    display: block;
    width: 100%;
    padding: 11px 14px;
    background: var(--fc-white);
    border: 1px solid var(--fc-gray-200);
    border-left: 3px solid var(--fc-primary);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--fc-gray-700);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    margin-bottom: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.helpon-followup-btn:hover {
    background: var(--fc-primary-bg);
    box-shadow: 0 2px 8px rgba(74, 142, 142, 0.12);
    transform: translateX(2px);
}

/* =============================================
   v3.0 — ESCALATION BUTTON (header action)
   ============================================= */
.helpon-escalation-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 1;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--fc-white);
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

.helpon-escalation-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
}

.helpon-escalation-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.85;
}

/* =============================================
   v2.0 — SATISFACTION SURVEY
   ============================================= */
.helpon-survey-container {
    width: 100%;
    padding: 18px;
    background: var(--fc-white);
    border: 1px solid var(--fc-gray-200);
    border-radius: 14px;
    text-align: center;
    animation: helpon-msg-in 0.35s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin: 8px 0;
}

.helpon-survey-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--fc-gray-800);
    margin-bottom: 4px;
}

.helpon-survey-subtitle {
    font-size: 12px;
    color: var(--fc-gray-500);
    margin-bottom: 14px;
}

.helpon-survey-stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
}

.helpon-survey-star {
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 28px;
    color: var(--fc-gray-300);
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.helpon-survey-star:hover,
.helpon-survey-star.helpon-star-active {
    color: #f59e0b;
    transform: scale(1.15);
}

.helpon-survey-comment {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--fc-gray-300);
    border-radius: 10px;
    font-size: 13px;
    font-family: inherit;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 12px;
}

.helpon-survey-comment:focus {
    border-color: var(--fc-primary);
}

.helpon-survey-submit {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--fc-primary), var(--fc-primary-dark));
    color: var(--fc-white);
    border: none;
    border-radius: 22px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.helpon-survey-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(74, 142, 142, 0.3);
}

.helpon-survey-thanks {
    font-size: 14px;
    color: var(--fc-primary);
    font-weight: 700;
    padding: 20px;
}

/* =============================================
   v2.0 — NEW QUESTION TYPES
   ============================================= */

/* Date Picker */
.helpon-date-picker-wrap {
    width: 100%;
    padding: 14px 16px;
    background: var(--fc-white);
    border: 1.5px solid var(--fc-gray-200);
    border-radius: var(--fc-radius-sm);
    animation: helpon-msg-in 0.35s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.helpon-date-picker-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--fc-gray-600);
}

.helpon-date-picker-label svg {
    width: 18px;
    height: 18px;
    color: var(--fc-primary);
    flex-shrink: 0;
}

.helpon-date-picker-wrap .helpon-date-picker-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--fc-gray-300);
    border-radius: var(--fc-radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--fc-gray-700);
    background: var(--fc-white);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.helpon-date-picker-wrap .helpon-date-picker-input:focus {
    border-color: var(--fc-primary);
    box-shadow: 0 0 0 3px rgba(74, 142, 142, 0.1);
}

.helpon-date-picker-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 10px;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--fc-primary), var(--fc-primary-dark));
    color: var(--fc-white);
    border: none;
    border-radius: var(--fc-radius-sm);
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(74, 142, 142, 0.25);
}

.helpon-date-picker-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(74, 142, 142, 0.35);
}

.helpon-date-picker-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.helpon-date-picker-submit svg {
    width: 16px;
    height: 16px;
}

/* Number Slider */
.helpon-slider-wrap {
    width: 100%;
    padding: 14px 16px;
    background: var(--fc-white);
    border: 1px solid var(--fc-gray-200);
    border-radius: var(--fc-radius-sm);
    animation: helpon-msg-in 0.35s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.helpon-slider-value {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--fc-primary);
    margin-bottom: 8px;
    line-height: 1.2;
}

.helpon-slider-value .helpon-slider-unit {
    font-size: 14px;
    font-weight: 600;
    color: var(--fc-gray-500);
    margin-left: 4px;
}

.helpon-slider-input {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: var(--fc-gray-200);
    outline: none;
    margin: 8px 0;
}

.helpon-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--fc-primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(74, 142, 142, 0.3);
    transition: transform 0.15s ease;
}

.helpon-slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.helpon-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--fc-gray-400);
    font-weight: 500;
}

/* Multi-Select Checkboxes */
.helpon-multiselect-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    animation: helpon-msg-in 0.35s ease;
}

.helpon-multiselect-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--fc-white);
    border: 1px solid var(--fc-gray-200);
    border-radius: var(--fc-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.helpon-multiselect-option:hover {
    border-color: var(--fc-primary);
    background: var(--fc-primary-bg);
}

.helpon-multiselect-option.helpon-ms-selected {
    border-color: var(--fc-primary);
    background: var(--fc-primary-bg);
    box-shadow: 0 0 0 2px rgba(74, 142, 142, 0.15);
}

.helpon-multiselect-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--fc-primary);
    flex-shrink: 0;
}

.helpon-multiselect-option span {
    font-size: 13px;
    font-weight: 600;
    color: var(--fc-gray-700);
}

.helpon-multiselect-done {
    align-self: flex-end;
    padding: 8px 20px;
    background: var(--fc-primary);
    color: var(--fc-white);
    border: none;
    border-radius: 18px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    margin-top: 4px;
}

.helpon-multiselect-done:hover {
    background: var(--fc-primary-dark);
}

/* Textarea */
.helpon-textarea-wrap {
    width: 100%;
    animation: helpon-msg-in 0.35s ease;
}

.helpon-textarea-wrap textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--fc-gray-300);
    border-radius: var(--fc-radius-sm);
    font-size: 13px;
    font-family: inherit;
    color: var(--fc-gray-700);
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
    line-height: 1.5;
    min-height: 80px;
}

.helpon-textarea-wrap textarea:focus {
    border-color: var(--fc-primary);
    box-shadow: 0 0 0 3px rgba(74, 142, 142, 0.1);
}

.helpon-textarea-submit {
    display: block;
    margin-top: 8px;
    margin-left: auto;
    padding: 8px 20px;
    background: var(--fc-primary);
    color: var(--fc-white);
    border: none;
    border-radius: 18px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.helpon-textarea-submit:hover {
    background: var(--fc-primary-dark);
}

/* Star Rating */
.helpon-rating-wrap {
    width: 100%;
    text-align: center;
    padding: 14px 0;
    animation: helpon-msg-in 0.35s ease;
}

.helpon-rating-stars {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

.helpon-rating-star {
    width: 40px;
    height: 40px;
    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--fc-gray-300);
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.helpon-rating-star:hover,
.helpon-rating-star.helpon-star-active {
    color: #f59e0b;
    transform: scale(1.2);
}

.helpon-rating-label {
    font-size: 12px;
    color: var(--fc-gray-500);
    font-weight: 500;
}

/* Yes/No Buttons */
.helpon-yesno-wrap {
    display: flex;
    gap: 10px;
    width: 100%;
    animation: helpon-msg-in 0.35s ease;
}

.helpon-yesno-btn {
    flex: 1;
    padding: 16px;
    border: 2px solid var(--fc-gray-200);
    border-radius: var(--fc-radius-sm);
    background: var(--fc-white);
    font-size: 15px;
    font-weight: 800;
    color: var(--fc-gray-700);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.helpon-yesno-btn:hover {
    border-color: var(--fc-primary);
    background: var(--fc-primary-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 142, 142, 0.15);
}

.helpon-yesno-btn:active {
    transform: translateY(0);
}

/* Info Card */
.helpon-info-card {
    width: 100%;
    padding: 16px 18px;
    background: linear-gradient(135deg, #f0f9f6 0%, #e8f4f0 100%);
    border: 1px solid rgba(74, 142, 142, 0.15);
    border-radius: 14px;
    animation: helpon-msg-in 0.35s ease;
}

.helpon-info-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--fc-gray-800);
    margin-bottom: 6px;
}

.helpon-info-card-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--fc-gray-600);
}

/* =============================================
   v2.0 — POWERED BY FOOTER
   ============================================= */
.helpon-powered-by {
    text-align: center;
    padding: 8px 14px;
    font-size: 10px;
    color: var(--fc-gray-400);
    border-top: 1px solid var(--fc-gray-100);
    background: var(--fc-white);
}

.helpon-powered-by a {
    color: var(--fc-gray-500);
    text-decoration: none;
    font-weight: 600;
}

.helpon-powered-by a:hover {
    color: var(--fc-primary);
}

/* =============================================
   v2.0 — TRIGGER LABEL
   ============================================= */
.helpon-trigger-label {
    position: fixed;
    bottom: 90px;
    right: 24px;
    background: var(--fc-white);
    color: var(--fc-gray-700);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    z-index: 999997;
    white-space: nowrap;
    animation: helpon-msg-in 0.35s ease;
    pointer-events: none;
}

.helpon-trigger-label::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 24px;
    width: 12px;
    height: 12px;
    background: var(--fc-white);
    transform: rotate(45deg);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.08);
}

#helpon-chat-trigger.helpon-left ~ .helpon-trigger-label {
    right: auto;
    left: 24px;
}

#helpon-chat-trigger.helpon-left ~ .helpon-trigger-label::after {
    right: auto;
    left: 24px;
}

/* =============================================
   v2.0 — MEDICAL DISCLAIMER (Widget)
   ============================================= */
.helpon-medical-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.5;
    color: #92400e;
    margin: 8px 0;
    animation: helpon-msg-in 0.35s ease;
}

.helpon-medical-disclaimer-icon {
    font-size: 14px;
    flex-shrink: 0;
    line-height: 1;
}

/* ========== v2.1 — ESCALATION CONTACT FORM ========== */

.helpon-contact-form {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    max-width: 280px;
}
.helpon-contact-field {
    margin-bottom: 12px;
}
.helpon-contact-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}
.helpon-contact-field .helpon-required {
    color: #ef4444;
}
.helpon-contact-field input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.helpon-contact-field input:focus {
    border-color: var(--fc-primary, #5f8b8b);
    box-shadow: 0 0 0 2px rgba(95, 139, 139, 0.15);
}
.helpon-contact-submit {
    width: 100%;
    padding: 10px 16px;
    background: var(--fc-primary, #5f8b8b);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}
.helpon-contact-submit:hover {
    opacity: 0.9;
}
.helpon-contact-error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 8px;
    text-align: center;
}

/* ========== v2.1 — LIVE CHAT / AGENT MESSAGES ========== */

.helpon-msg-agent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    animation: helpon-fadeIn 0.3s ease;
}

.helpon-agent-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #3b82f6;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.helpon-agent-name {
    font-size: 11px;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 2px;
}

.helpon-agent-bubble {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe;
    color: #1e3a5f;
}

.helpon-msg-system {
    display: flex;
    justify-content: center;
    margin: 12px 0;
}

.helpon-system-text {
    font-size: 11px;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 12px;
    text-align: center;
}

.helpon-waiting-agent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    color: #64748b;
    font-size: 13px;
}

.helpon-waiting-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f59e0b;
    display: inline-block;
    animation: helpon-pulse-dot 1.5s ease-in-out infinite;
}

@keyframes helpon-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

/* =============================================
   v2.6 — AGENT TYPING INDICATOR
   ============================================= */

.helpon-typing-bubble {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    padding: 12px 18px !important;
    min-width: 60px;
}

.helpon-typing-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #93c5fd;
    display: inline-block;
    animation: helpon-typing-bounce 1.4s infinite ease-in-out both;
}

.helpon-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.helpon-typing-dot:nth-child(2) { animation-delay: -0.16s; }
.helpon-typing-dot:nth-child(3) { animation-delay: 0s; }

@keyframes helpon-typing-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* =============================================
   v3.0 — FAQ BUTTON IN HEADER (action row)
   ============================================= */
.helpon-faq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 1;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--fc-white);
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    backdrop-filter: blur(4px);
    white-space: nowrap;
    margin-top: 0;
}

.helpon-faq-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
}

.helpon-faq-btn.helpon-faq-active {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.6);
}

.helpon-faq-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.85;
}

/* =============================================
   v2.2 — FAQ PANEL (overlay in messages area)
   ============================================= */
.helpon-faq-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--fc-white);
    z-index: 10;
    display: flex;
    flex-direction: column;
    animation: helpon-msg-in 0.25s ease;
}

.helpon-faq-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--fc-gray-200);
    flex-shrink: 0;
}

.helpon-faq-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--fc-gray-800);
}

.helpon-faq-close-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--fc-gray-100);
    border-radius: 50%;
    font-size: 18px;
    color: var(--fc-gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.helpon-faq-close-btn:hover {
    background: var(--fc-gray-200);
    color: var(--fc-gray-700);
}

.helpon-faq-search-wrap {
    padding: 10px 16px;
    border-bottom: 1px solid var(--fc-gray-100);
    flex-shrink: 0;
}

.helpon-faq-search {
    width: 100%;
    padding: 9px 14px;
    border: 1.5px solid var(--fc-gray-300);
    border-radius: 20px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.helpon-faq-search:focus {
    border-color: var(--fc-primary);
    box-shadow: 0 0 0 3px rgba(74, 142, 142, 0.1);
}

.helpon-faq-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
}

.helpon-faq-loading,
.helpon-faq-empty {
    text-align: center;
    padding: 30px 16px;
    color: var(--fc-gray-500);
    font-size: 13px;
}

/* FAQ Categories */
.helpon-faq-categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.helpon-faq-category-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--fc-gray-50);
    border: 1px solid var(--fc-gray-200);
    border-left: 3px solid var(--fc-primary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.helpon-faq-category-card:hover {
    background: var(--fc-primary-bg);
    border-color: var(--fc-primary);
    box-shadow: 0 2px 8px rgba(74, 142, 142, 0.12);
    transform: translateX(2px);
}

.helpon-faq-category-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--fc-gray-800);
}

.helpon-faq-category-count {
    font-size: 11px;
    font-weight: 600;
    color: var(--fc-gray-500);
    background: var(--fc-gray-200);
    padding: 3px 10px;
    border-radius: 12px;
}

/* FAQ Questions List */
.helpon-faq-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--fc-gray-100);
    border: none;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--fc-gray-600);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    margin-bottom: 12px;
}

.helpon-faq-back-btn:hover {
    background: var(--fc-gray-200);
    color: var(--fc-gray-700);
}

.helpon-faq-category-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--fc-gray-800);
    margin-bottom: 12px;
}

.helpon-faq-questions-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.helpon-faq-question-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: var(--fc-white);
    border: 1px solid var(--fc-gray-200);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.helpon-faq-question-item:hover {
    border-color: var(--fc-primary);
    background: var(--fc-primary-bg);
    box-shadow: 0 2px 8px rgba(74, 142, 142, 0.1);
}

.helpon-faq-q-icon {
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

.helpon-faq-q-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--fc-gray-700);
    line-height: 1.4;
    display: block;
}

.helpon-faq-q-category {
    font-size: 10px;
    font-weight: 600;
    color: var(--fc-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: block;
    margin-top: 3px;
}

.helpon-faq-ai-btn {
    display: block;
    margin: 16px auto 0;
    padding: 10px 20px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: var(--fc-white);
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.helpon-faq-ai-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* =============================================
   v2.2 — KB SUGGESTION CARDS (inline in chat)
   ============================================= */
.helpon-kb-suggestions {
    width: 100%;
    animation: helpon-msg-in 0.35s ease;
    margin: 4px 0 8px;
    flex-shrink: 0;
}

.helpon-kb-suggestions-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--fc-gray-500);
    margin-bottom: 8px;
    padding-left: 2px;
}

.helpon-kb-card {
    background: var(--fc-white);
    border: 1px solid var(--fc-gray-200);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.helpon-kb-card:hover {
    border-color: var(--fc-primary);
    box-shadow: 0 2px 10px rgba(74, 142, 142, 0.12);
}

.helpon-kb-card-compact {
    padding: 10px 12px;
}

.helpon-kb-card-question {
    font-size: 13px;
    font-weight: 700;
    color: var(--fc-gray-800);
    line-height: 1.3;
    margin-bottom: 4px;
}

.helpon-kb-card-answer {
    font-size: 12px;
    line-height: 1.5;
    color: var(--fc-gray-500);
    margin-bottom: 8px;
}

.helpon-kb-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.helpon-kb-card-category {
    display: inline-block;
    padding: 2px 8px;
    background: #ede9fe;
    color: #7c3aed;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.helpon-kb-card-view-btn {
    padding: 4px 12px;
    background: var(--fc-primary);
    color: var(--fc-white);
    border: none;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    margin-left: auto;
}

.helpon-kb-card-view-btn:hover {
    background: var(--fc-primary-dark);
    transform: translateY(-1px);
}

/* =============================================
   v2.2 — KB FULL ANSWER IN CHAT
   ============================================= */
.helpon-kb-answer-full {
    width: 100%;
    background: var(--fc-white);
    border: 1px solid var(--fc-gray-200);
    border-radius: 14px;
    overflow: visible;
    animation: helpon-msg-in 0.35s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin: 6px 0;
    flex-shrink: 0;
}

.helpon-kb-answer-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #f0f9f6 0%, #e8f4f0 100%);
    border-bottom: 1px solid var(--fc-gray-100);
}

.helpon-kb-answer-icon {
    font-size: 18px;
    line-height: 1;
}

.helpon-kb-answer-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--fc-gray-700);
}

.helpon-kb-answer-question {
    padding: 10px 14px 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--fc-gray-800);
    line-height: 1.3;
}

.helpon-kb-answer-text {
    padding: 6px 14px 12px;
    font-size: 13px;
    line-height: 1.65;
    color: var(--fc-gray-600);
    white-space: pre-line;
}

.helpon-kb-helpful-btns {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-top: 1px solid var(--fc-gray-100);
    background: var(--fc-gray-50);
    flex-wrap: wrap;
}

.helpon-kb-helpful-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--fc-gray-500);
    margin-right: 4px;
}

.helpon-kb-helpful-yes,
.helpon-kb-helpful-no {
    padding: 5px 14px;
    border: 1px solid var(--fc-gray-300);
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    background: var(--fc-white);
    color: var(--fc-gray-600);
}

.helpon-kb-helpful-yes:hover {
    background: #d1fae5;
    border-color: #34d399;
    color: #065f46;
}

.helpon-kb-helpful-no:hover {
    background: #fee2e2;
    border-color: #f87171;
    color: #991b1b;
}

.helpon-kb-helpful-thanks {
    font-size: 12px;
    color: var(--fc-primary);
    font-weight: 600;
}

.helpon-kb-ai-follow-btn {
    display: block;
    margin-top: 8px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: var(--fc-white);
    border: none;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.helpon-kb-ai-follow-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(124, 58, 237, 0.3);
}

/* =============================================
   v2.2 — AI-ASSISTED ANSWER
   ============================================= */
.helpon-kb-ai-answer .helpon-kb-answer-header {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
}

.helpon-ai-badge {
    display: inline-block;
    padding: 2px 10px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: var(--fc-white);
    border-radius: 10px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
}

.helpon-kb-ai-sources {
    padding: 8px 14px;
    border-top: 1px solid var(--fc-gray-100);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.helpon-kb-ai-sources-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--fc-gray-500);
}

.helpon-kb-ai-source-tag {
    display: inline-block;
    padding: 2px 8px;
    background: var(--fc-gray-100);
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    color: var(--fc-gray-600);
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.helpon-kb-ai-disclaimer {
    padding: 8px 14px;
    background: #fffbf0;
    font-size: 10px;
    color: #92400e;
    line-height: 1.5;
    border-top: 1px solid #fde68a;
}

/* =============================================
   v2.2 — ESCALATION KB INTERCEPT
   ============================================= */
.helpon-escalation-kb-suggestions {
    width: 100%;
    animation: helpon-msg-in 0.35s ease;
    margin: 8px 0;
    flex-shrink: 0;
}

.helpon-escalation-skip-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid #f87171;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    text-align: center;
}

.helpon-escalation-skip-btn:hover {
    background: #fef2f2;
    border-color: #ef4444;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
}

/* =============================================
   MOBILE RESPONSIVE
   ============================================= */
@media (max-width: 480px) {
    #helpon-chat-widget {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        /* Use dvh for dynamic viewport height that accounts for mobile browser chrome.
           Fallback to 100vh for older browsers, then override with 100dvh. */
        max-height: 100vh;
        max-height: 100dvh;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
    }

    #helpon-chat-widget.helpon-left {
        left: 0;
        right: 0;
    }

    .helpon-header {
        border-radius: 0;
        /* Safe area padding for devices with notches/dynamic island */
        padding-top: env(safe-area-inset-top, 0px);
    }

    .helpon-input-area {
        border-radius: 0;
        /* Safe area padding for bottom bar (home indicator on iPhone) */
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .helpon-messages {
        max-height: none;
        flex: 1;
    }

    #helpon-chat-trigger {
        bottom: 16px;
        right: 16px;
    }

    #helpon-chat-trigger.helpon-left {
        left: 16px;
    }

    .helpon-trigger-label {
        display: none;
    }

    .helpon-yesno-wrap {
        flex-direction: column;
    }

    .helpon-faq-panel {
        border-radius: 0;
    }
}

/* =============================================
   v2.7 — DARK MODE
   ============================================= */
#helpon-chat-widget.helpon-theme-dark {
    --fc-white: #1a1a2e;
    --fc-gray-50: #1e1e35;
    --fc-gray-100: #252540;
    --fc-gray-200: #2d2d4a;
    --fc-gray-300: #3a3a55;
    --fc-gray-400: #6b7080;
    --fc-gray-500: #9ca3af;
    --fc-gray-600: #c8ccd4;
    --fc-gray-700: #e0e3ea;
    --fc-gray-800: #f0f1f4;
    --fc-primary-bg: rgba(74, 142, 142, 0.15);
}

#helpon-chat-widget.helpon-theme-dark .helpon-header {
    border-bottom-color: var(--fc-gray-200);
}

#helpon-chat-widget.helpon-theme-dark .helpon-messages {
    background: var(--fc-white);
}

#helpon-chat-widget.helpon-theme-dark .helpon-bot-msg .helpon-msg-content {
    background: var(--fc-gray-100);
    color: var(--fc-gray-800);
}

#helpon-chat-widget.helpon-theme-dark .helpon-user-msg .helpon-msg-content {
    color: #fff;
}

#helpon-chat-widget.helpon-theme-dark .helpon-input-area {
    background: var(--fc-gray-50);
    border-top-color: var(--fc-gray-200);
}

#helpon-chat-widget.helpon-theme-dark .helpon-chat-input {
    background: var(--fc-gray-100);
    color: var(--fc-gray-800);
    border-color: var(--fc-gray-300);
}

#helpon-chat-widget.helpon-theme-dark .helpon-chat-input::placeholder {
    color: var(--fc-gray-400);
}

#helpon-chat-widget.helpon-theme-dark .helpon-option-btn {
    background: var(--fc-gray-100);
    color: var(--fc-gray-700);
    border-color: var(--fc-gray-300);
}

#helpon-chat-widget.helpon-theme-dark .helpon-option-btn:hover {
    background: var(--fc-primary-bg);
    border-color: var(--fc-primary);
    color: var(--fc-primary-light);
}

#helpon-chat-widget.helpon-theme-dark .helpon-progress-bar {
    background: var(--fc-gray-200);
}

#helpon-chat-widget.helpon-theme-dark .helpon-step-label {
    color: var(--fc-gray-500);
}

#helpon-chat-widget.helpon-theme-dark .helpon-powered-by {
    color: var(--fc-gray-400);
    border-top-color: var(--fc-gray-200);
}

#helpon-chat-widget.helpon-theme-dark .helpon-disclaimer {
    background: rgba(217, 119, 6, 0.12);
    color: #fbbf24;
    border-color: rgba(217, 119, 6, 0.25);
}

#helpon-chat-widget.helpon-theme-dark .helpon-upload-zone {
    background: var(--fc-gray-100);
    border-color: var(--fc-gray-300);
    color: var(--fc-gray-500);
}

#helpon-chat-widget.helpon-theme-dark .helpon-kb-card,
#helpon-chat-widget.helpon-theme-dark .helpon-faq-panel {
    background: var(--fc-gray-100);
    border-color: var(--fc-gray-300);
    color: var(--fc-gray-700);
}

#helpon-chat-widget.helpon-theme-dark .helpon-faq-question-item {
    border-color: var(--fc-gray-200);
    color: var(--fc-gray-700);
}

#helpon-chat-widget.helpon-theme-dark .helpon-faq-question-item:hover {
    background: var(--fc-gray-200);
}

#helpon-chat-widget.helpon-theme-dark .helpon-faq-search {
    background: var(--fc-gray-200);
    color: var(--fc-gray-800);
    border-color: var(--fc-gray-300);
}

#helpon-chat-widget.helpon-theme-dark .helpon-consent-panel {
    background: var(--fc-gray-50);
    color: var(--fc-gray-700);
}

#helpon-chat-widget.helpon-theme-dark .helpon-survey-panel {
    background: var(--fc-gray-100);
}

#helpon-chat-widget.helpon-theme-dark .helpon-survey-star {
    color: var(--fc-gray-400);
}

/* =============================================
   v2.8: SPECIAL OFFER BANNER
   ============================================= */
.helpon-special-offer-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, filter 0.2s ease;
    line-height: 1.4;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

a.helpon-special-offer-banner:hover {
    filter: brightness(1.05);
    color: #78350f;
    text-decoration: none;
}

.helpon-special-offer-text {
    display: inline-block;
}

#helpon-chat-widget.helpon-theme-dark .helpon-special-offer-banner {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #fef3c7;
}

/* =============================================
   v2.8: AUTO-REPLY CARD
   ============================================= */
.helpon-auto-reply-card {
    margin: 8px 16px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
    border-radius: var(--fc-radius-sm);
    font-size: 13px;
    animation: fcFadeIn 0.3s ease;
}

.helpon-auto-reply-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.helpon-auto-reply-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.helpon-auto-reply-icon {
    font-size: 14px;
}

.helpon-confidence-high {
    background: #dcfce7;
    color: #166534;
}

.helpon-confidence-medium {
    background: #fef3c7;
    color: #92400e;
}

.helpon-confidence-low {
    background: #fee2e2;
    color: #991b1b;
}

.helpon-auto-reply-body {
    color: var(--fc-gray-700);
    line-height: 1.55;
    margin-bottom: 8px;
}

.helpon-auto-reply-footer {
    border-top: 1px solid #bfdbfe;
    padding-top: 8px;
}

.helpon-auto-reply-disclaimer {
    font-size: 11px;
    color: var(--fc-gray-400);
    font-style: italic;
}

#helpon-chat-widget.helpon-theme-dark .helpon-auto-reply-card {
    background: linear-gradient(135deg, var(--fc-gray-100), var(--fc-gray-50));
    border-color: var(--fc-gray-200);
}

#helpon-chat-widget.helpon-theme-dark .helpon-auto-reply-body {
    color: var(--fc-gray-700);
}

#helpon-chat-widget.helpon-theme-dark .helpon-auto-reply-footer {
    border-color: var(--fc-gray-200);
}

/* ============================================
   v3.0 — AI Chat Mode
   ============================================ */

/* AI Welcome Card */
.helpon-ai-welcome {
    text-align: center;
    padding: 24px 16px;
    margin: 12px 0;
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border-radius: 16px;
    border: 1px solid #dbeafe;
}

.helpon-ai-welcome-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.helpon-ai-welcome-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.helpon-ai-welcome-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 14px;
}

.helpon-ai-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.helpon-ai-suggestion-chip {
    display: inline-block;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #3b82f6;
    background: #fff;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.helpon-ai-suggestion-chip:hover {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
    transform: translateY(-1px);
}

/* AI Chat Input Area */
.helpon-ai-chat-input-area {
    padding: 10px 12px 8px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.helpon-ai-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.helpon-ai-chat-input {
    flex: 1;
    padding: 10px 14px;
    font-size: 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 24px;
    outline: none;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.helpon-ai-chat-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.helpon-ai-chat-input:disabled {
    background: #f1f5f9;
    color: #94a3b8;
}

.helpon-ai-chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.helpon-ai-chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.helpon-ai-chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.helpon-ai-powered {
    text-align: center;
    font-size: 10px;
    color: #94a3b8;
    margin-top: 6px;
}

/* AI Message Bubble */
.helpon-ai-message .helpon-ai-bubble {
    position: relative;
}

.helpon-ai-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.helpon-ai-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    border-radius: 10px;
}

.helpon-ai-provider-badge {
    display: inline-flex;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 500;
    border-radius: 10px;
    border: 1px solid;
}

.helpon-provider-claude {
    color: #d97706;
    background: #fffbeb;
    border-color: #fde68a;
}

.helpon-provider-openai {
    color: #059669;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.helpon-ai-body {
    font-size: 14px;
    line-height: 1.65;
    color: #334155;
}

.helpon-ai-body ul {
    margin: 6px 0;
    padding-left: 18px;
}

.helpon-ai-body li {
    margin-bottom: 3px;
}

.helpon-ai-body strong {
    font-weight: 600;
    color: #1e293b;
}

/* AI Disclaimer */
.helpon-ai-disclaimer {
    margin-top: 10px;
    padding: 8px 10px;
    font-size: 11px;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 8px;
    border-left: 3px solid #94a3b8;
    line-height: 1.4;
}

/* AI Typing Indicator */
.helpon-ai-typing-bubble {
    padding: 12px 18px !important;
    min-width: 60px;
}

.helpon-ai-typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 20px;
}

.helpon-ai-typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8;
    animation: helpon-ai-bounce 1.4s ease-in-out infinite;
}

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

.helpon-ai-typing-dot:nth-child(3) {
    animation-delay: 0.32s;
}

@keyframes helpon-ai-bounce {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    40% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

/* AI Error Bubble */
.helpon-ai-error-bubble {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #991b1b !important;
}

.helpon-ai-error-icon {
    margin-right: 4px;
}

/* AI Escalation Offer */
.helpon-ai-escalation-offer {
    margin-top: 8px;
    padding: 10px 12px;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 10px;
    font-size: 13px;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.helpon-ai-escalation-icon {
    font-size: 16px;
}

.helpon-ai-escalate-btn {
    background: #dc2626;
    color: #fff;
    border: none;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-left: auto;
}

.helpon-ai-escalate-btn:hover {
    background: #b91c1c;
}

/* AI Booking CTA */
.helpon-ai-booking-cta {
    margin-top: 8px;
    text-align: center;
}

.helpon-ai-booking-cta .helpon-btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.helpon-ai-booking-cta .helpon-btn-primary:hover {
    transform: translateY(-1px);
}

/* Sentiment Indicators (admin views) */
.helpon-sentiment-positive { color: #16a34a; }
.helpon-sentiment-neutral { color: #64748b; }
.helpon-sentiment-negative { color: #ea580c; }
.helpon-sentiment-distressed { color: #dc2626; }

/* ============ Dark Theme Overrides ============ */
[data-theme="dark"] .helpon-ai-welcome {
    background: linear-gradient(135deg, #1e293b 0%, #1a2332 100%);
    border-color: #334155;
}

[data-theme="dark"] .helpon-ai-welcome-title {
    color: #f1f5f9;
}

[data-theme="dark"] .helpon-ai-welcome-desc {
    color: #94a3b8;
}

[data-theme="dark"] .helpon-ai-suggestion-chip {
    background: #1e293b;
    color: #60a5fa;
    border-color: #334155;
}

[data-theme="dark"] .helpon-ai-suggestion-chip:hover {
    background: #3b82f6;
    color: #fff;
}

[data-theme="dark"] .helpon-ai-chat-input-area {
    background: #0f172a;
    border-top-color: #334155;
}

[data-theme="dark"] .helpon-ai-chat-input {
    background: #1e293b;
    border-color: #475569;
    color: #f1f5f9;
}

[data-theme="dark"] .helpon-ai-chat-input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

[data-theme="dark"] .helpon-ai-body {
    color: #cbd5e1;
}

[data-theme="dark"] .helpon-ai-body strong {
    color: #f1f5f9;
}

[data-theme="dark"] .helpon-ai-disclaimer {
    background: #1e293b;
    color: #94a3b8;
    border-left-color: #475569;
}

[data-theme="dark"] .helpon-ai-escalation-offer {
    background: #422006;
    border-color: #854d0e;
    color: #fde68a;
}

[data-theme="dark"] .helpon-ai-error-bubble {
    background: #450a0a !important;
    border-color: #991b1b !important;
    color: #fecaca !important;
}

/* =============================================
   v3.1: Unavailable Card (Session Limit)
   ============================================= */
.helpon-unavailable-card {
    text-align: center;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.helpon-unavailable-icon {
    opacity: 0.6;
    margin-bottom: 4px;
}

.helpon-unavailable-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--fc-text-primary, #1e293b);
    margin: 0;
}

.helpon-unavailable-card p {
    font-size: 13px;
    color: var(--fc-text-secondary, #64748b);
    line-height: 1.5;
    margin: 0;
    max-width: 280px;
}

[data-theme="dark"] .helpon-unavailable-card h3 {
    color: #e2e8f0;
}

[data-theme="dark"] .helpon-unavailable-card p {
    color: #94a3b8;
}

[data-theme="dark"] .helpon-unavailable-icon svg {
    stroke: #64748b;
}

/* ============================================================
   v3.3 — LEAD CAPTURE FORM
   ============================================================ */

.helpon-lead-capture {
    padding: 24px 16px;
    text-align: center;
}

.helpon-lead-capture-header {
    margin-bottom: 20px;
}

.helpon-lead-capture-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--fc-text, #1e293b);
    margin-bottom: 4px;
}

.helpon-lead-capture-subtitle {
    font-size: 13px;
    color: var(--fc-text-secondary, #64748b);
}

.helpon-lead-capture-form {
    text-align: left;
}

.helpon-lead-field {
    margin-bottom: 14px;
}

.helpon-lead-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--fc-text, #1e293b);
    margin-bottom: 4px;
}

.helpon-lead-label .helpon-required {
    color: #ef4444;
}

.helpon-lead-input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--fc-border, #e2e8f0);
    border-radius: 8px;
    font-size: 14px;
    color: var(--fc-text, #1e293b);
    background: var(--fc-bg, #fff);
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.helpon-lead-input:focus {
    outline: none;
    border-color: var(--fc-primary, #5f8b8b);
    box-shadow: 0 0 0 3px rgba(95, 139, 139, 0.1);
}

.helpon-lead-input.helpon-input-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

textarea.helpon-lead-input {
    min-height: 60px;
    resize: vertical;
}

.helpon-lead-submit {
    width: 100%;
    padding: 11px 16px;
    background: var(--fc-primary, #5f8b8b);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
    transition: background 0.2s ease;
}

.helpon-lead-submit:hover {
    background: var(--fc-primary-dark, #4a7070);
}

.helpon-lead-skip {
    width: 100%;
    padding: 10px 16px;
    background: none;
    color: var(--fc-text-secondary, #64748b);
    border: none;
    font-size: 13px;
    cursor: pointer;
    margin-top: 8px;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.helpon-lead-skip:hover {
    color: var(--fc-text, #1e293b);
}

/* Dark theme */
[data-theme="dark"] .helpon-lead-capture-title { color: #e2e8f0; }
[data-theme="dark"] .helpon-lead-capture-subtitle { color: #94a3b8; }
[data-theme="dark"] .helpon-lead-label { color: #e2e8f0; }
[data-theme="dark"] .helpon-lead-input {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}
[data-theme="dark"] .helpon-lead-skip { color: #94a3b8; }
[data-theme="dark"] .helpon-lead-skip:hover { color: #e2e8f0; }

/* ============================================================
   v3.3 — CONCIERGE BOT
   ============================================================ */

.helpon-concierge-card {
    padding: 0 !important;
    background: none !important;
}

.helpon-concierge-text {
    font-size: 14px;
    color: var(--fc-text, #1e293b);
    margin-bottom: 12px;
    line-height: 1.5;
}

.helpon-concierge-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.helpon-concierge-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 14px;
    background: var(--fc-bg, #fff);
    border: 1.5px solid var(--fc-border, #e2e8f0);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--fc-text, #1e293b);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.helpon-concierge-btn:hover {
    border-color: var(--fc-primary, #5f8b8b);
    background: rgba(95, 139, 139, 0.04);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.helpon-concierge-icon {
    font-size: 18px;
    flex-shrink: 0;
}

/* Dark theme */
[data-theme="dark"] .helpon-concierge-text { color: #e2e8f0; }
[data-theme="dark"] .helpon-concierge-btn {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}
[data-theme="dark"] .helpon-concierge-btn:hover {
    border-color: var(--fc-primary, #5f8b8b);
    background: rgba(95, 139, 139, 0.1);
}

/* ============================================================
   v3.3 — PROACTIVE TRIGGER BUBBLE
   ============================================================ */

.helpon-proactive-bubble {
    position: fixed;
    bottom: 90px;
    right: 20px;
    max-width: 300px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.06);
    padding: 14px 40px 14px 16px;
    z-index: 999998;
    animation: helpon-bubble-in 0.3s ease-out;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@keyframes helpon-bubble-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.helpon-proactive-text {
    font-size: 14px;
    line-height: 1.5;
    color: #1e293b;
}

.helpon-proactive-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: none;
    border: none;
    font-size: 18px;
    color: #94a3b8;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
    transition: all 0.15s ease;
}

.helpon-proactive-close:hover {
    background: #f1f5f9;
    color: #475569;
}

/* Bubble arrow pointing to trigger button */
.helpon-proactive-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 24px;
    width: 16px;
    height: 16px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.06);
    border-radius: 2px;
}

/* Left-positioned widget */
.helpon-widget-left .helpon-proactive-bubble {
    right: auto;
    left: 20px;
}

.helpon-widget-left .helpon-proactive-bubble::after {
    right: auto;
    left: 24px;
}

@media (max-width: 480px) {
    .helpon-proactive-bubble {
        right: 12px;
        left: 12px;
        max-width: none;
        bottom: 80px;
    }
}

/* ========== v3.5: Appointment Booking Card ========== */
.helpon-appointment-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin: 8px 0;
}
.helpon-appointment-header {
    background: linear-gradient(135deg, var(--fc-primary-color, #5f8b8b), var(--fc-primary-dark, #4a7070));
    color: #fff;
    padding: 12px 16px;
    font-size: 14px;
}
.helpon-appointment-body {
    padding: 12px 16px;
}
.helpon-appt-field {
    margin-bottom: 10px;
}
.helpon-appt-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.helpon-appt-field input,
.helpon-appt-field select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    box-sizing: border-box;
}
.helpon-appt-field input:focus,
.helpon-appt-field select:focus {
    border-color: var(--fc-primary-color, #5f8b8b);
    outline: none;
    box-shadow: 0 0 0 2px rgba(95, 139, 139, 0.15);
}
.helpon-appt-book-btn {
    width: 100%;
    padding: 10px;
    background: var(--fc-primary-color, #5f8b8b);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
}
.helpon-appt-book-btn:hover {
    background: var(--fc-primary-dark, #4a7070);
}
.helpon-appt-book-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========== v3.7: Location Picker ========== */
.helpon-location-choice {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.helpon-location-choice:hover {
    border-color: var(--fc-primary-color, #5f8b8b);
    background: #f0fdf4;
    box-shadow: 0 2px 8px rgba(95, 139, 139, 0.12);
}
.helpon-location-choice:last-child {
    margin-bottom: 0;
}
.helpon-location-choice-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
}
.helpon-location-choice-addr {
    display: block;
    font-size: 12px;
    color: #64748b;
}
.helpon-location-choice-phone {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

#helpon-chat-widget.helpon-theme-dark .helpon-appointment-card {
    background: #1e293b;
    border-color: #334155;
}
#helpon-chat-widget.helpon-theme-dark .helpon-appt-field input,
#helpon-chat-widget.helpon-theme-dark .helpon-appt-field select {
    background: #0f172a;
    border-color: #475569;
    color: #f1f5f9;
}
#helpon-chat-widget.helpon-theme-dark .helpon-location-choice {
    background: #0f172a;
    border-color: #334155;
}
#helpon-chat-widget.helpon-theme-dark .helpon-location-choice:hover {
    border-color: var(--fc-primary-color, #5f8b8b);
    background: #1e293b;
}
#helpon-chat-widget.helpon-theme-dark .helpon-location-choice-name {
    color: #f1f5f9;
}
#helpon-chat-widget.helpon-theme-dark .helpon-location-choice-addr {
    color: #94a3b8;
}
#helpon-chat-widget.helpon-theme-dark .helpon-location-choice-phone {
    color: #64748b;
}

/* Full-width booking form (no avatar, spans entire chat width) */
.helpon-msg-booking-full {
    max-width: 100% !important;
    width: 100%;
    animation: helpon-msg-in 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Date Strip + Time Grid Picker (v3.8)
   ========================================================================== */

/* Date Strip — 7-column grid (wraps 14 days into 2 rows) */
.helpon-appt-date-strip {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 2px 0 8px;
    margin-bottom: 8px;
}

.helpon-appt-date-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px 1px 4px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
    min-width: 0;
    overflow: hidden;
    transition: all 0.2s ease;
    font-family: inherit;
    position: relative;
}
.helpon-appt-date-pill:hover {
    border-color: var(--fc-primary-color, #5f8b8b);
    background: #f0fdfa;
    transform: translateY(-1px);
}
.helpon-appt-date-pill.helpon-appt-date-active {
    background: var(--fc-primary-color, #5f8b8b);
    border-color: var(--fc-primary-color, #5f8b8b);
    color: #fff;
    box-shadow: 0 3px 8px rgba(95, 139, 139, 0.3);
    transform: translateY(-1px);
}
.helpon-appt-date-day {
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.3px;
}
.helpon-appt-date-num {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
    white-space: nowrap;
}
.helpon-appt-date-month {
    font-size: 8px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
}
/* Today indicator — small dot under the month */
.helpon-appt-date-pill.helpon-appt-date-is-today::after {
    content: '';
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--fc-primary-color, #5f8b8b);
    margin: 2px auto 0;
}
.helpon-appt-date-pill.helpon-appt-date-active.helpon-appt-date-is-today::after {
    background: #fff;
}
.helpon-appt-date-pill.helpon-appt-date-active .helpon-appt-date-day,
.helpon-appt-date-pill.helpon-appt-date-active .helpon-appt-date-num,
.helpon-appt-date-pill.helpon-appt-date-active .helpon-appt-date-month {
    color: #fff;
}

/* Time Grid */
.helpon-appt-time-grid {
    min-height: 50px;
    margin-bottom: 8px;
}
.helpon-appt-time-section {
    margin-bottom: 10px;
}
.helpon-appt-time-section:last-child {
    margin-bottom: 0;
}
.helpon-appt-time-section-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.4px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.helpon-appt-time-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.helpon-appt-time-pill {
    padding: 7px 14px;
    border-radius: 20px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}
.helpon-appt-time-pill:hover {
    border-color: var(--fc-primary-color, #5f8b8b);
    color: var(--fc-primary-color, #5f8b8b);
    background: #f0fdfa;
}
.helpon-appt-time-pill.helpon-appt-time-active {
    background: var(--fc-primary-color, #5f8b8b);
    border-color: var(--fc-primary-color, #5f8b8b);
    color: #fff;
    box-shadow: 0 2px 8px rgba(95, 139, 139, 0.3);
}
.helpon-appt-time-loading {
    text-align: center;
    padding: 16px 0;
    color: #94a3b8;
    font-size: 12px;
}
.helpon-appt-time-empty {
    text-align: center;
    padding: 14px 10px;
    color: #94a3b8;
    font-size: 12px;
    font-style: italic;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px dashed #e2e8f0;
}

/* Spinner for loading */
.helpon-appt-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #e2e8f0;
    border-top-color: var(--fc-primary-color, #5f8b8b);
    border-radius: 50%;
    animation: helpon-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}
@keyframes helpon-spin {
    to { transform: rotate(360deg); }
}

/* Booking summary */
.helpon-appt-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 100%);
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    font-size: 13px;
    color: #065f46;
    margin-bottom: 8px;
}
.helpon-appt-summary-icon {
    font-size: 16px;
    flex-shrink: 0;
}

/* Field row (side-by-side) */
.helpon-appt-field-row {
    display: flex;
    gap: 8px;
}
.helpon-appt-field-half {
    flex: 1;
    min-width: 0;
}
.helpon-appt-field-half label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}
.helpon-appt-field-half input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    color: #1e293b;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.helpon-appt-field-half input:focus {
    outline: none;
    border-color: var(--fc-primary-color, #5f8b8b);
    box-shadow: 0 0 0 3px rgba(95, 139, 139, 0.15);
}

/* Dark theme variants */
#helpon-chat-widget.helpon-theme-dark .helpon-appt-date-pill {
    background: #1e293b;
    border-color: #334155;
}
#helpon-chat-widget.helpon-theme-dark .helpon-appt-date-pill:hover {
    border-color: var(--fc-primary-color, #5f8b8b);
    background: #0f172a;
}
#helpon-chat-widget.helpon-theme-dark .helpon-appt-date-day,
#helpon-chat-widget.helpon-theme-dark .helpon-appt-date-month {
    color: #64748b;
}
#helpon-chat-widget.helpon-theme-dark .helpon-appt-date-num {
    color: #f1f5f9;
}
#helpon-chat-widget.helpon-theme-dark .helpon-appt-date-pill.helpon-appt-date-active .helpon-appt-date-day,
#helpon-chat-widget.helpon-theme-dark .helpon-appt-date-pill.helpon-appt-date-active .helpon-appt-date-num,
#helpon-chat-widget.helpon-theme-dark .helpon-appt-date-pill.helpon-appt-date-active .helpon-appt-date-month {
    color: #fff;
}
#helpon-chat-widget.helpon-theme-dark .helpon-appt-time-pill {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}
#helpon-chat-widget.helpon-theme-dark .helpon-appt-time-pill:hover {
    border-color: var(--fc-primary-color, #5f8b8b);
    background: #0f172a;
}
#helpon-chat-widget.helpon-theme-dark .helpon-appt-time-empty {
    background: #0f172a;
    border-color: #334155;
    color: #64748b;
}
#helpon-chat-widget.helpon-theme-dark .helpon-appt-summary {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    border-color: #047857;
    color: #a7f3d0;
}
#helpon-chat-widget.helpon-theme-dark .helpon-appt-field-half input {
    background: #0f172a;
    border-color: #475569;
    color: #f1f5f9;
}
