.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: 3px 15px;
    margin-top: -60px;
    margin-right: -10px;
    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: -7px;
    left: 4px;
    width: 12px;
    height: 12px;
    background: #22c55e;
    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: #31AEDF;
    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(49, 174, 223, 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;
}

@media(max-width:991px) {

    .yc-chat-toggle {
        bottom: 65px;
        right: 10px;
    }

}




/* Window */

.yc-chat-wrapper {
    width: 420px;
    height: 490px;
    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, #31AEDF, #55B779);
    color: #fff;
    padding: 17px;
    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: #31AEDF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.yc-header-info h3 {
    font-size: 15px;
    line-height: unset;
}

.yc-header-info p {
    font-size: 12px;
    margin-top: 4px;
    opacity: .9;
    margin-bottom: 0;
    line-height: unset;
}

.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;
}


.user {
    color: #fff;
    margin-left: auto;
}

.user .yc-message-content {
    background: #31AEDF;
    border-radius: 15px 0px 15px 15px;
}

.yc-chat-footer {
    padding: 15px;
    border-top: 1px solid #eee;
}

.yc-chat-footer a:hover {
    color: #fff !important;
}

.yc-start-btn {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    color: #fff;
    font-size: 15px;
    background: linear-gradient(135deg, #31AEDF, #55B779);
}



.yc-input-wrap {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.yc-input {
    flex: 1;
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
}

.yc-send-btn {
    width: 50px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    color: #fff;
    background: #31AEDF;
}

.yc-typing {
    width: 80px;
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
}

.yc-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 50%;
    background: #999;
    animation: typing 1.2s infinite;
}

.yc-dot:nth-child(2) {
    animation-delay: .2s;
}

.yc-dot:nth-child(3) {
    animation-delay: .4s;
}

@keyframes typing {

    0% {
        opacity: .3;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: .3;
    }

}

@media(max-width:600px) {

    .yc-chat-wrapper {
        width: 100%;
        height: 100%;
        right: 0;
        bottom: 0;
        border-radius: 0;
    }

    .yc-chat-body {
        height: 65%;
    }

}

.btn-message {
    max-width: 90%;
}

/* Error Notification Styles */
.error-notification {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: #fee;
    color: #c33;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 3px solid #c33;
    animation: slideUp 0.3s ease;
    z-index: 1000;
}

.error-icon {
    font-size: 14px;
}

.error-text {
    flex: 1;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.yc-input-wrap {
    position: relative;
}

/* Button message styles */
.btn-message {
    max-width: 90%;
    margin-bottom: 15px;
}

.bot-question {
    margin-bottom: 10px;
    font-weight: 500;
}


/* Input field focus state */
.yc-input:focus {
    outline: none;
    border-color: #31AEDF;
    box-shadow: 0 0 0 2px rgba(49, 174, 223, 0.1);
}

/* Send button hover */
.yc-send-btn:hover {
    background: #2598c4;
    transform: scale(1.02);
}

/* Error message in chat */
.bot.error-message {
    background: #fee;
    color: #c33;
    border-left: 3px solid #c33;
}

/* Scrollbar styling */
.yc-chat-body::-webkit-scrollbar {
    width: 5px;
}

.yc-chat-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.yc-chat-body::-webkit-scrollbar-thumb {
    background: #31AEDF;
    border-radius: 5px;
}



/* Start New Chat Button Styles */
.yc-start-new-chat-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #31AEDF, #55B779);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.3s;
}

.yc-start-new-chat-btn:hover {
    transform: scale(1.02);
}



/* Disabled button styles */
.flow-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.flow-btn:disabled:hover {
    transform: none;
    background: white;
    color: inherit;
}



/* Error Notification Styles */
.error-notification {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: #fee;
    color: #c33;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 3px solid #c33;
    animation: slideUp 0.3s ease;
    z-index: 1000;
}

.error-icon {
    font-size: 14px;
}

.error-text {
    flex: 1;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.yc-input-wrap {
    position: relative;
}

/* Input field focus state */
.yc-input:focus {
    outline: none;
    border-color: #31AEDF;
    box-shadow: 0 0 0 2px rgba(49, 174, 223, 0.1);
}

/* Send button hover */
.yc-send-btn:hover {
    background: #2598c4;
    transform: scale(1.02);
}

/* Error message in chat */
.bot.error-message {
    background: #fee;
    color: #c33;
    border-left: 3px solid #c33;
}


/* Animation for new messages */
.yc-message {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hamburger {
    width: 5px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 4px;
    border-radius: 50px;
    background: #ffffff;
    margin: 4px 0;
}

/* Message wrapper and time styles */


.bot-wrapper {
    display: flex;
    justify-content: flex-start;
}

.user-wrapper {
    display: flex;
    justify-content: flex-end;
}

/* .yc-message {
    position: relative;
    max-width: 95%;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
} */

.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;
}

.user .yc-message-time {
    color: #1b1b1b;
}

/* Company logo in avatar */
.yc-avatar {
    overflow: hidden;
}

.yc-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Button group wrapper styles */
.yc-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


.yc-btn-group-wrapper {
    margin: auto auto 10px 45px;
    /* display: flex; */
    /* justify-content: flex-start; */
}

.yc-btn-group-wrapper .yc-message {
    max-width: 100%;
    background: white;
    overflow: hidden;
}



.yc-option-btn {
    width: calc(50% - 5px);
    text-align: left;
    padding: 8px 5px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.yc-option-btn:hover {
    background: #31AEDF;
    color: white;
    border-color: #31AEDF;
    padding-left: 5px;
}

/* 3-Dot Menu Styles */
.yc-menu-container {
    position: relative;
}

.yc-three-dot-menu {
    cursor: pointer;
    font-size: 18px;
    padding: 4px 6px;
    border-radius: 10%;
    transition: background 0.3s;
}

.yc-three-dot-menu:hover {
    background: rgba(255, 255, 255, 0.2);
}

.yc-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 175px;
    z-index: 1000;
    overflow: hidden;
    margin-top: 8px;
}

.yc-dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    font-size: 14px;
    transition: background 0.3s;
}

.yc-dropdown-item i {
    width: 18px;
    font-size: 14px;
    color: #31AEDF;
}

.yc-dropdown-item:hover {
    background: #f5f5f5;
}

/* Start New Chat Button Styles */
.yc-start-new-chat-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #31AEDF, #55B779);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.3s;
}

.yc-start-new-chat-btn:hover {
    transform: scale(1.02);
}

/* Error Notification Styles */
.error-notification {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: #fee;
    color: #c33;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 3px solid #c33;
    animation: slideUp 0.3s ease;
    z-index: 1000;
}

.error-icon {
    font-size: 14px;
}

.error-text {
    flex: 1;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.yc-input-wrap {
    position: relative;
}

/* Input field focus state */
.yc-input:focus {
    outline: none;
    border-color: #31AEDF;
    box-shadow: 0 0 0 2px rgba(49, 174, 223, 0.1);
}

/* Send button hover */
.yc-send-btn:hover {
    background: #2598c4;
    transform: scale(1.02);
}

/* Error message in chat */
.bot.error-message {
    background: #fee;
    color: #c33;
    border-left: 3px solid #c33;
}


/* Animation for new messages */
.yc-message {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Adjust header for 3-dot menu */
.yc-chat-header {
    position: relative;
}

/* Disabled button styles */
.flow-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.flow-btn:disabled:hover {
    transform: none;
    background: white;
    color: inherit;
}


/* Typing Animation */
.typing-animation {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
}

.typing-animation span {
    width: 8px;
    height: 8px;
    background-color: #888;
    border-radius: 50%;
    display: inline-block;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-animation span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-animation span:nth-child(2) {
    animation-delay: -0.16s;
}

.typing-animation span:nth-child(3) {
    animation-delay: 0s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}



.bot-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
    overflow: hidden;
}