/* Enhanced Help Agent Styling */

/* Main help agent container */
.help-agent-container {
    position: fixed;
    z-index: 10010;
    display: flex;
    align-items: flex-end;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    left: 32px;
    bottom: 32px;
}

/* Professional representative image */
.help-agent-representative {
    width: 110px;
    height: 110px;
    margin-right: 12px;
    margin-bottom: 0;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-agent-representative-hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.help-agent-representative-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: opacity 0.3s ease-in-out;
}

/* Loading state */
.help-agent-representative-loading {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef, #f8f9fa);
    background-size: 200% 200%;
    animation: loading-shimmer 1.5s ease-in-out infinite;
}

.help-agent-representative-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 2px solid #073590;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: loading-spin 1s linear infinite;
}

@keyframes loading-shimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes loading-spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Loaded state */
.help-agent-representative-loaded {
    background: #f8f9fa;
}

.help-agent-representative-loaded::before {
    display: none;
}

/* Error state and fallback */
.help-agent-representative-error {
    background: linear-gradient(135deg, #073590, #4a7dba);
    color: white;
}

.help-agent-representative-error::before {
    display: none;
}

.help-agent-representative-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
}

.help-agent-representative-initials {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    line-height: 1;
    margin-bottom: 4px;
}

.help-agent-representative-fallback-text {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive sizing for representative image */
@media (max-width: 480px) {
    .help-agent-representative {
        width: 60px;
        height: 60px;
        margin-right: 6px;
    }

    .help-agent-representative-initials {
        font-size: 1.2rem;
    }

    .help-agent-representative-fallback-text {
        font-size: 0.5rem;
    }

    .help-agent-representative-loading::before {
        width: 16px;
        height: 16px;
        border-width: 1.5px;
    }
}

@media (max-width: 768px) and (min-width: 481px) {
    .help-agent-representative {
        width: 80px;
        height: 80px;
        margin-right: 8px;
    }

    .help-agent-representative-initials {
        font-size: 1.5rem;
    }

    .help-agent-representative-fallback-text {
        font-size: 0.6rem;
    }

    .help-agent-representative-loading::before {
        width: 20px;
        height: 20px;
    }
}

/* Enhanced speech bubble with modern professional styling */
.help-agent-bubble {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 20px;
    padding: 24px 28px;
    font-size: 1.1rem;
    color: #1a365d;
    box-shadow:
        0 8px 32px rgba(7, 53, 144, 0.12),
        0 2px 8px rgba(7, 53, 144, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    max-width: 380px;
    margin-bottom: 20px;
    margin-left: 0;
    margin-right: 0;
    display: flex;
    flex-direction: column;
    min-height: 80px;
    border: 1px solid rgba(7, 53, 144, 0.12);
    backdrop-filter: blur(20px);
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: bubble-appear 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover effect for speech bubble */
.help-agent-bubble:hover {
    box-shadow:
        0 12px 40px rgba(7, 53, 144, 0.15),
        0 4px 12px rgba(7, 53, 144, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    border-color: rgba(7, 53, 144, 0.18);
}

/* Enhanced speech bubble tail with gradient matching */
.help-agent-bubble::before {
    content: '';
    position: absolute;
    left: -20px;
    bottom: 24px;
    width: 0;
    height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-right: 20px solid #ffffff;
    filter: drop-shadow(-3px 0 4px rgba(7, 53, 144, 0.08));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Bubble appearance animation */
@keyframes bubble-appear {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
        box-shadow: 0 2px 8px rgba(7, 53, 144, 0.05);
    }

    50% {
        opacity: 0.8;
        transform: translateY(-2px) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        box-shadow:
            0 8px 32px rgba(7, 53, 144, 0.12),
            0 2px 8px rgba(7, 53, 144, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }
}

/* Enhanced message text container with improved typography */
.help-agent-message {
    flex: 1;
    line-height: 1.6;
    font-weight: 450;
    letter-spacing: 0.2px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #2d3748;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-spacing: 0.1em;
    hyphens: auto;
    overflow-wrap: break-word;
}

/* Enhanced typing animation cursor with smooth transitions */
.help-agent-typing::after {
    content: '|';
    animation: enhanced-blink 1.2s infinite ease-in-out;
    color: #4a90e2;
    font-weight: 600;
    margin-left: 2px;
    display: inline-block;
    transform-origin: center;
}

@keyframes enhanced-blink {

    0%,
    45% {
        opacity: 1;
        transform: scaleY(1);
    }

    50%,
    95% {
        opacity: 0;
        transform: scaleY(0.8);
    }

    100% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* Control buttons container */
.help-agent-controls {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
}

/* Minimize button */
.help-agent-minimize {
    background: #e53935;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(229, 57, 53, 0.3);
}

.help-agent-minimize:hover {
    background: #d32f2f;
    transform: scale(1.1);
}

/* Pause/Resume button */
.help-agent-pause {
    background: #ff9800;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
}

.help-agent-pause:hover {
    background: #f57c00;
    transform: scale(1.1);
}

/* Navigation arrows container */
.help-agent-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 18px auto 0 auto;
    width: 100%;
}

/* Navigation arrows */
.help-agent-arrow {
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #073590;
    transition: all 0.2s ease;
    padding: 8px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-agent-arrow:hover:not(:disabled) {
    background: rgba(7, 53, 144, 0.1);
    transform: scale(1.1);
}

.help-agent-arrow:disabled {
    color: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Step indicator */
.help-agent-step-indicator {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #073590;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Step selector dropdown */
.help-agent-step-selector {
    background: #f8f9fa;
    border: 1px solid #073590;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.8rem;
    color: #073590;
    cursor: pointer;
    margin: 0 8px;
    min-width: 80px;
    transition: all 0.2s ease;
}

.help-agent-step-selector:hover {
    background: #e9ecef;
    border-color: #4a7dba;
}

.help-agent-step-selector:focus {
    outline: 2px solid #073590;
    outline-offset: 2px;
    background: #ffffff;
}

/* Minimized help button with step indicator */
.minimized-help-button {
    position: relative;
    animation: minimized-pulse 3s infinite;
}

.minimized-step-indicator {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #073590;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(7, 53, 144, 0.3);
}

@keyframes minimized-pulse {
    0% {
        box-shadow: 0 4px 16px rgba(7, 53, 144, 0.2);
    }
    
    33% {
        box-shadow: 0 4px 20px rgba(7, 53, 144, 0.3);
    }
    
    66% {
        box-shadow: 0 4px 24px rgba(7, 53, 144, 0.4);
    }
    
    100% {
        box-shadow: 0 4px 16px rgba(7, 53, 144, 0.2);
    }
}

/* Keyboard help overlay */
.help-agent-keyboard-help {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border: 2px solid #073590;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 10050;
    max-width: 400px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    animation: help-overlay-appear 0.3s ease-out;
}

@keyframes help-overlay-appear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.help-agent-keyboard-help h3 {
    margin: 0;
    color: #073590;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.help-agent-keyboard-help kbd {
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    border: 1px solid #ddd;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.help-agent-keyboard-help .help-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.help-agent-keyboard-help .help-close-btn:hover {
    background: #f0f0f0;
    color: #333;
}

/* Floating help button */
.floating-help-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10001;
    background: #ffffff;
    border: 2px solid #073590;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(7, 53, 144, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.floating-help-button:hover {
    background: #073590;
    color: white;
    transform: scale(1.1);
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 16px rgba(7, 53, 144, 0.2);
    }

    50% {
        box-shadow: 0 4px 24px rgba(7, 53, 144, 0.4);
    }

    100% {
        box-shadow: 0 4px 16px rgba(7, 53, 144, 0.2);
    }
}

/* Enhanced pointing hand animations with improved timing and smoothness */
.help-agent-hand {
    position: absolute;
    z-index: 10020;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.9;
    transform-origin: center center;
    will-change: transform, opacity;
}

/* Enhanced bounce animation with more natural movement */
.help-agent-hand-bounce {
    animation: enhanced-hand-bounce 1.8s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes enhanced-hand-bounce {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.9;
    }
    
    25% {
        transform: translateY(-8px) scale(1.02);
        opacity: 0.95;
    }

    50% {
        transform: translateY(-16px) scale(1.05);
        opacity: 1;
        filter: drop-shadow(0 4px 12px rgba(255, 165, 0, 0.5));
    }
    
    75% {
        transform: translateY(-8px) scale(1.02);
        opacity: 0.95;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 0.9;
    }
}

/* Enhanced sweep animation with smoother transitions */
.help-agent-hand-sweep {
    animation: enhanced-hand-sweep 1.2s ease-in-out;
}

@keyframes enhanced-hand-sweep {
    0% {
        transform: translateX(-15px) scale(0.95) rotate(-5deg);
        opacity: 0.7;
        filter: drop-shadow(0 2px 6px rgba(255, 165, 0, 0.3));
    }
    
    20% {
        transform: translateX(-5px) scale(0.98) rotate(-2deg);
        opacity: 0.85;
    }

    50% {
        transform: translateX(0) scale(1) rotate(0deg);
        opacity: 1;
        filter: drop-shadow(0 4px 12px rgba(255, 165, 0, 0.6));
    }
    
    80% {
        transform: translateX(5px) scale(0.98) rotate(2deg);
        opacity: 0.85;
    }

    100% {
        transform: translateX(15px) scale(0.95) rotate(5deg);
        opacity: 0.7;
        filter: drop-shadow(0 2px 6px rgba(255, 165, 0, 0.3));
    }
}

/* Enhanced point animation with subtle pulse and glow */
.help-agent-hand-point {
    animation: enhanced-hand-point 2.4s infinite ease-in-out;
}

@keyframes enhanced-hand-point {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 0.8;
        filter: drop-shadow(0 0 8px rgba(255, 165, 0, 0.2));
    }
    
    25% {
        transform: scale(1.03) rotate(1deg);
        opacity: 0.9;
        filter: drop-shadow(0 0 12px rgba(255, 165, 0, 0.4));
    }

    50% {
        transform: scale(1.06) rotate(0deg);
        opacity: 1;
        filter: drop-shadow(0 0 16px rgba(255, 165, 0, 0.6));
    }
    
    75% {
        transform: scale(1.03) rotate(-1deg);
        opacity: 0.9;
        filter: drop-shadow(0 0 12px rgba(255, 165, 0, 0.4));
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.8;
        filter: drop-shadow(0 0 8px rgba(255, 165, 0, 0.2));
    }
}

/* Entrance animation for hand appearance */
.help-agent-hand-enter {
    animation: hand-enter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes hand-enter {
    0% {
        transform: scale(0.6) translateY(20px);
        opacity: 0;
    }
    
    60% {
        transform: scale(1.1) translateY(-5px);
        opacity: 0.8;
    }
    
    100% {
        transform: scale(1) translateY(0);
        opacity: 0.9;
    }
}

/* Exit animation for hand disappearance */
.help-agent-hand-exit {
    animation: hand-exit 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes hand-exit {
    0% {
        transform: scale(1) translateY(0);
        opacity: 0.9;
    }
    
    100% {
        transform: scale(0.8) translateY(10px);
        opacity: 0;
    }
}

/* Hover effect for interactive elements being pointed at */
.help-agent-target-highlight {
    animation: target-highlight 1.5s ease-in-out;
    box-shadow: 0 0 0 2px rgba(7, 53, 144, 0.3), 0 0 12px rgba(7, 53, 144, 0.2) !important;
    transition: all 0.3s ease !important;
}

@keyframes target-highlight {
    0% {
        box-shadow: 0 0 0 0px rgba(7, 53, 144, 0), 0 0 0px rgba(7, 53, 144, 0);
    }
    
    50% {
        box-shadow: 0 0 0 3px rgba(7, 53, 144, 0.4), 0 0 16px rgba(7, 53, 144, 0.3);
    }
    
    100% {
        box-shadow: 0 0 0 2px rgba(7, 53, 144, 0.3), 0 0 12px rgba(7, 53, 144, 0.2);
    }
}

/* Form element specific highlighting */
input.help-agent-target-highlight,
textarea.help-agent-target-highlight,
select.help-agent-target-highlight {
    border: 2px solid rgba(7, 53, 144, 0.4) !important;
    background-color: rgba(7, 53, 144, 0.02) !important;
}

/* Button specific highlighting */
button.help-agent-target-highlight {
    transform: scale(1.02) !important;
    box-shadow: 0 0 0 2px rgba(7, 53, 144, 0.3), 0 4px 16px rgba(7, 53, 144, 0.2) !important;
}

/* Enhanced responsive design for mobile devices with smooth transitions */
@media (max-width: 768px) {
    .help-agent-container {
        left: 16px;
        bottom: 16px;
    }

    .help-agent-bubble {
        max-width: 320px;
        font-size: 1rem;
        padding: 20px 24px;
        border-radius: 18px;
        min-height: 70px;
        box-shadow:
            0 6px 24px rgba(7, 53, 144, 0.10),
            0 2px 6px rgba(7, 53, 144, 0.06),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }

    .help-agent-bubble::before {
        left: -18px;
        bottom: 22px;
        border-top: 12px solid transparent;
        border-bottom: 12px solid transparent;
        border-right: 18px solid #ffffff;
    }

    .help-agent-representative {
        width: 80px;
        height: 80px;
        margin-right: 8px;
    }

    .help-agent-navigation {
        gap: 12px;
        margin-top: 12px;
    }

    .help-agent-arrow {
        font-size: 1.5rem;
        width: 36px;
        height: 36px;
    }

    .help-agent-step-selector {
        min-width: 60px;
        font-size: 0.7rem;
        padding: 3px 6px;
        margin: 0 4px;
    }

    .floating-help-button {
        width: 50px;
        height: 50px;
        bottom: 16px;
        right: 16px;
    }

    .help-agent-message {
        line-height: 1.5;
        font-weight: 400;
    }
}

@media (max-width: 480px) {
    .help-agent-bubble {
        max-width: 280px;
        font-size: 0.95rem;
        padding: 18px 20px;
        border-radius: 16px;
        min-height: 60px;
        box-shadow:
            0 4px 20px rgba(7, 53, 144, 0.08),
            0 1px 4px rgba(7, 53, 144, 0.04),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }

    .help-agent-bubble::before {
        left: -16px;
        bottom: 20px;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        border-right: 16px solid #ffffff;
    }

    .help-agent-representative {
        width: 70px;
        height: 70px;
    }

    .help-agent-navigation {
        gap: 20px;
        margin-top: 10px;
    }

    .help-agent-message {
        line-height: 1.4;
        font-weight: 400;
        letter-spacing: 0.1px;
    }
}

@media (max-width: 360px) {
    .help-agent-container {
        left: 12px;
        bottom: 12px;
    }

    .help-agent-bubble {
        max-width: 260px;
        font-size: 0.9rem;
        padding: 16px 18px;
        border-radius: 14px;
        min-height: 55px;
        box-shadow:
            0 3px 16px rgba(7, 53, 144, 0.06),
            0 1px 3px rgba(7, 53, 144, 0.03),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }

    .help-agent-bubble::before {
        left: -14px;
        bottom: 18px;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
        border-right: 14px solid #ffffff;
    }

    .help-agent-representative {
        width: 60px;
        height: 60px;
        margin-right: 6px;
    }

    .help-agent-navigation {
        gap: 16px;
        margin-top: 8px;
    }

    .help-agent-arrow {
        font-size: 1.3rem;
        width: 32px;
        height: 32px;
    }

    .help-agent-controls {
        top: 6px;
        right: 6px;
        gap: 3px;
    }

    .help-agent-minimize,
    .help-agent-pause {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }

    .help-agent-step-indicator {
        top: -6px;
        padding: 3px 8px;
        font-size: 0.7rem;
        border-radius: 10px;
    }

    .help-agent-message {
        line-height: 1.3;
        font-weight: 400;
        letter-spacing: 0px;
    }

    .help-agent-step-selector {
        min-width: 50px;
        font-size: 0.65rem;
        padding: 2px 4px;
        margin: 0 2px;
    }

    .help-agent-keyboard-help {
        max-width: 280px;
        padding: 16px;
        font-size: 0.85rem;
    }

    .help-agent-keyboard-help h3 {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .help-agent-keyboard-help kbd {
        padding: 2px 4px;
        font-size: 0.7rem;
    }
}

/* Accessibility improvements */
.help-agent-container:focus-within {
    outline: 2px solid #073590;
    outline-offset: 4px;
    border-radius: 4px;
}

.help-agent-arrow:focus,
.help-agent-minimize:focus,
.help-agent-pause:focus,
.floating-help-button:focus {
    outline: 2px solid #073590;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .help-agent-bubble {
        border: 2px solid #073590;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }

    .help-agent-message {
        font-weight: 500;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .help-agent-container,
    .help-agent-representative,
    .help-agent-arrow,
    .help-agent-minimize,
    .help-agent-pause,
    .floating-help-button,
    .help-agent-hand {
        transition: none;
        animation: none;
    }

    .help-agent-typing::after {
        animation: none;
    }
}

/* Error state styling */
.help-agent-error {
    background: #ffebee;
    border: 1px solid #f44336;
    color: #c62828;
}

.help-agent-error .help-agent-message {
    color: #c62828;
}

/* Success state styling */
.help-agent-success {
    background: #e8f5e8;
    border: 1px solid #4caf50;
    color: #2e7d32;
}

.help-agent-success .help-agent-message {
    color: #2e7d32;
}

/* Loading state */
.help-agent-loading {
    opacity: 0.7;
}

.help-agent-loading .help-agent-message::after {
    content: '...';
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {

    0%,
    20% {
        content: '';
    }

    40% {
        content: '.';
    }

    60% {
        content: '..';
    }

    80%,
    100% {
        content: '...';
    }
}
/* Field 
highlight styles for contextual help */
.help-agent-field-highlight {
    position: relative;
    animation: field-highlight-pulse 2s ease-in-out;
    box-shadow: 0 0 0 3px rgba(7, 53, 144, 0.3) !important;
    border-color: #073590 !important;
    transition: all 0.3s ease;
}

.help-agent-field-highlight::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid #073590;
    border-radius: 6px;
    animation: field-highlight-glow 2s ease-in-out;
    pointer-events: none;
    z-index: 1;
}

/* Field highlight pulse animation */
@keyframes field-highlight-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(7, 53, 144, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(7, 53, 144, 0.2);
    }
    100% {
        box-shadow: 0 0 0 3px rgba(7, 53, 144, 0.3);
    }
}

/* Field highlight glow animation */
@keyframes field-highlight-glow {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
    100% {
        opacity: 0.7;
        transform: scale(1);
    }
}

/* Ensure highlighted fields are visible above other elements */
.help-agent-field-highlight {
    z-index: 1000;
}

/* Special styling for shipping type buttons when highlighted */
.shipping-type-btn.help-agent-field-highlight {
    background-color: rgba(7, 53, 144, 0.1) !important;
    transform: scale(1.05);
}

/* Mobile optimizations for field highlighting */
@media (max-width: 768px) {
    .help-agent-field-highlight {
        box-shadow: 0 0 0 2px rgba(7, 53, 144, 0.4) !important;
    }
    
    .help-agent-field-highlight::after {
        border-width: 1px;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
    }
    
    @keyframes field-highlight-pulse {
        0% {
            box-shadow: 0 0 0 0 rgba(7, 53, 144, 0.4);
        }
        50% {
            box-shadow: 0 0 0 6px rgba(7, 53, 144, 0.2);
        }
        100% {
            box-shadow: 0 0 0 2px rgba(7, 53, 144, 0.4);
        }
    }
}