/* Chat Widget Styles - Right Side */

/*
 * Tawk.to automatically positions on the right by default
 * These styles provide fallback and customization
 */

.chat-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
}

/* Custom chat button (if not using Tawk.to default) */

.custom-chat-button {
    background-color: var(--primary-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1.5rem;
}

.custom-chat-button:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}

.custom-chat-button.hidden {
    display: none;
}

/* Chat badge for notifications */

.chat-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--error-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Tawk.to widget customization */

#tawk-widget-container {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
}

/* Ensure chat doesn't overlap with cookie banner */

@media (max-width: 768px) {
    .chat-widget-container,
    #tawk-widget-container {
        bottom: 10px !important;
        right: 10px !important;
    }

    .custom-chat-button {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .chat-widget-container,
    #tawk-widget-container {
        bottom: 80px !important;
        right: 5px !important;
    }
}

/* Hide chat on print */

@media print {
    .chat-widget-container,
    #tawk-widget-container,
    .custom-chat-button {
        display: none !important;
    }
}

/* LinkedIn Chat Button Style */

.linkedin-chat-button {
    background-color: #0077b5;
    color: white;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.linkedin-chat-button:hover {
    background-color: #005582;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.linkedin-chat-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}
