.yc-chat-body {
    padding: 16px;
    background-color: #f8f9fa;
}

.yc-message-time {
    font-size: 11px;
    color: #70757a;
    margin: 4px 0 12px 48px;
}

.yc-bot-menu-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: 44px;
    /* Aligns buttons right under the message text */
    max-width: 100%;
}

.chat-tour-btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    padding: 10px 14px;
    color: #202124;
    text-decoration: none;
    font-size: 14px;
    font-family: inherit;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.chat-tour-btn-link:hover {
    background-color: #f1f3f4;
    border-color: #c5c5c5;
}

.chat-tour-btn-link i {
    font-size: 15px;
}

.yc-chat-toggle {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 9999;
}

.yc-toggle-text {
    background: #fff;
    color: #333;
    padding: 10px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .15);
    white-space: nowrap;
    transition: all .3s ease;
}

.yc-toggle-text::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 0px;
    width: 12px;
    height: 12px;
    background: #198754;
    border-radius: 50%;
    border: 2px solid #fff;
    animation: ycOnlinePulse 1.5s infinite;
}

@keyframes ycOnlinePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}


.yc-toggle-icon {
    width: 65px;
    height: 65px;
    /* background: #198754; */
    background: linear-gradient(135deg, #198754, #C9C613);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}

/* Pulse Animation */
.yc-toggle-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(4, 100, 20, 0.5);
    animation: ycPulse 2s infinite;
    z-index: -1;
}

@keyframes ycPulse {
    0% {
        transform: scale(1);
        opacity: .8;
    }

    70% {
        transform: scale(1.5);
        opacity: 0;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Hide text when chat is open */
.yc-chat-toggle.active .yc-toggle-text {
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
}




/* Window */
.bot-wrapper {
    display: flex;
    justify-content: flex-start;
}

.yc-chat-wrapper {
    width: 420px;
    height: 460px;
    position: fixed;
    right: 25px;
    bottom: 100px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .15);
    display: none;
    z-index: 99999;
}

.yc-chat-header {
    background: linear-gradient(135deg, #198754, #C9C613);
    color: #fff;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.yc-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.yc-avatar {
    width: 45px;
    height: 45px;
    background: #fff;
    color: #198754;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.yc-header-info h3 {
    font-size: 15px;
}

.yc-header-info p {
    font-size: 12px;
    margin-top: 4px;
    opacity: .9;
}

.yc-close-chat {
    cursor: pointer;
    font-size: 20px;
}

.yc-chat-body {
    height: 330px;
    overflow-y: auto;
    padding: 15px;
    background: #f8fafc;
}

.yc-message {
    max-width: 80%;
    padding: 0;
    margin-bottom: 10px;
    line-height: 1.5;
    font-size: 14px;
}

.yc-chat-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

.welcome-message {
    padding: 8px 15px;
    border: 1px solid #d8d8d8;
    border-radius: 0px 15px 15px;
}

.yc-message-content {
    padding: 8px 15px;
    border: 1px solid #d8d8d8;
    border-radius: 0px 15px 15px;
}

.yc-message-time {
    font-size: 10px;
    padding: 2px 12px 4px;
    opacity: 0.85;
    /* border-top: 1px solid rgba(0, 0, 0, 0.05); */
}

.bot .yc-message-time {
    color: #1b1b1b;
}

.yc-avatar {
    overflow: hidden;
}

.yc-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bot-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
    overflow: hidden;
}