@keyframes l3 {
    20% {
        background-position: 0%   0%, 50%  50%,100%  50%;
    }
    40% {
        background-position: 0% 100%, 50%   0%,100%  50%;
    }
    60% {
        background-position: 0%  50%, 50% 100%,100%   0%;
    }
    80% {
        background-position: 0%  50%, 50%  50%,100% 100%;
    }
}

@keyframes l13 {
    to {
        transform: rotate(1turn);
    }
}

@keyframes l17 {
    100% {
        background-size: 120% 100%;
    }
}

@keyframes l23 {
    100% {
        transform: rotate(1turn);
    }
}

/* Shared message styling */
.chat-message {
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: start;
    gap: 8px;
}

.chat-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 100%;
    background-color: var(--mpg-chatbot-chat-icon-bg-color, "linear-gradient(135deg, #3098F3, #ff5a5f)");
    background-image: var(--mpg-chatbot-chat-bot-avatar-url, "none");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.chat-message-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    padding-right: 10px;
}

.chat-message-text {
    display: inline-block;
    clear: both;
    margin: 0;
    padding: 8px 20px 16px 20px;
    border-radius: 18px;
    border-bottom-left-radius: 0;
    color: var(--mpg-chatbot-chat-message-text-color, "#333");
    background-color: var(--mpg-chatbot-chat-message-bg-color, "rgba(233, 233, 255, 0.5)");
    position: relative;
    overflow: visible;
}

.chat-message-text *{
    color: var(--mpg-chatbot-chat-message-text-color, "#333");
}
.chat-message-product {
    display: flex;
    clear: both;
    border: 0;
    padding: 10px 0;
}

.chat-message-product:last-child {
    border: 0;
}

.chat-message-product img {
    max-width: 120px;
    max-height: 90px;
    margin-right: 20px;
    border-radius: 20px;
    display: inline-block;
}

.chat-message-product h2 {
    font-size: 16px;
    font-weight: bold;
    overflow: hidden;
    margin-top: 0;
}

.chat-message-product p {
    margin-top: 15px;
    margin-bottom: 0;
}

.chat-message-product .woocommerce-Price-amount {
    margin-right: 5px;
}

.chat-message-product-content {
    overflow: hidden;
}

.chat-message.message-full .chat-message-text {
    width: 100%;
}

.chat-message.message-user {
    justify-content: end;
}

.chat-message.message-user .chat-message-content {
    align-items: flex-end;
    padding-left: 10px;
    padding-right: 0;
}

.chat-message.message-user .chat-message-text {
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 0;
}

.chat-message.message-files .chat-message-text {
    padding: 0;
    background-color: transparent !important;
}

.chat-message.message-primary .chat-message-text {
    color: var(--mpg-chatbot-chat-user-message-text-color, "#fff");
    background-color: var(--mpg-chatbot-chat-user-message-bg-color, "#68baff");
}

.chat-message.message-success .chat-message-text {
    color: #065f46;
    background-color: #ecfdf5;
}

.chat-message.message-danger .chat-message-text {
    color: #991b1b;
    background-color: #fef2f2;
}

.chat-message.message-warning .chat-message-text {
    color: #92400e;
    background-color: #fffbeb;
}

.chat-message.message-loading .chat-message-text:before {
    content: "";
    display: inline-block;
    width: 38px;
    aspect-ratio: 2.5;
    --chat-message-bg_: no-repeat radial-gradient(circle closest-side, #333 90%, #0000);
    background: var(--chat-message-bg_) 0% 50%, var(--chat-message-bg_) 50% 50%, var(--chat-message-bg_) 100% 50%;
    background-size: calc(100% / 3) 50%;
    animation: l3 1s infinite linear;
}

.chatbot-chat-output-messages {
    flex-direction: column;
    display: flex;
    gap: 20px;
}

.chatbot-chat-files-preview {
    justify-content: end;
}

.chatbot-chat-files-preview .preview-item {
    height: 80px;
    min-width: 100px;
}

.chatbot-chat-files-preview,
.chatbot-chat-form-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: #575b5f;
    /* Preview File */
}

.chatbot-chat-files-preview .preview-item,
.chatbot-chat-form-preview .preview-item {
    position: relative;
    background-color: rgba(87, 91, 95, 0.1);
    border: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 8px;
    vertical-align: top;
}

.chatbot-chat-files-preview .image-preview,
.chatbot-chat-form-preview .image-preview {
    max-height: 160px;
    max-width: 160px;
}

.chatbot-chat-files-preview .image-preview img,
.chatbot-chat-form-preview .image-preview img {
    max-height: 160px;
    max-width: 160px;
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
}

.chatbot-chat-files-preview .preview-cancel-btn,
.chatbot-chat-form-preview .preview-cancel-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    left: auto;
    cursor: pointer;
    width: 24px;
    height: 24px;
    overflow: hidden;
    background: #fff;
    border-radius: 100%;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.5s linear;
    z-index: 2;
}

.chatbot-chat-files-preview .preview-cancel-btn svg,
.chatbot-chat-form-preview .preview-cancel-btn svg {
    color: #575b5f;
    fill: currentColor;
    width: 16px;
    height: 16px;
}

.chatbot-chat-files-preview .preview-cancel-btn:hover,
.chatbot-chat-form-preview .preview-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.8);
}

.chatbot-chat-files-preview .file-name,
.chatbot-chat-form-preview .file-name {
    color: #1b1c1d;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chatbot-chat-files-preview .file-info,
.chatbot-chat-form-preview .file-info {
    display: flex;
    align-items: center;
    gap: 5px;
}

.chatbot-chat-files-preview .file-info img,
.chatbot-chat-files-preview .file-info .file-icon,
.chatbot-chat-form-preview .file-info img,
.chatbot-chat-form-preview .file-info .file-icon {
    width: 12px;
}

.chatbot-chat-files-preview .image-preview,
.chatbot-chat-form-preview .image-preview {
    width: 55px;
    height: 55px;
}

.chatbot-chat-files-preview .image-preview img,
.chatbot-chat-form-preview .image-preview img {
    max-height: 160px;
    max-width: 100%;
}

.chatbot-chat-files-preview .file-preview,
.chatbot-chat-form-preview .file-preview {
    width: 120px;
    height: 55px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 5px;
}

.chatbot-chat-files-preview .preview-item:hover .preview-cancel-btn,
.chatbot-chat-form-preview .preview-item:hover .preview-cancel-btn {
    visibility: visible;
    opacity: 1;
}

.chatbot-chat-files-preview .preview-item.lazy,
.chatbot-chat-form-preview .preview-item.lazy {
    position: relative;
    background-color: rgba(87, 91, 95, 0.18);
}

.chatbot-chat-files-preview .preview-item.lazy:before,
.chatbot-chat-form-preview .preview-item.lazy:before {
    position: absolute;
    content: '';
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    margin-top: -3px;
    margin-left: -18px;
    width: 38px;
    height: 6px;
    -webkit-mask: radial-gradient(circle closest-side, #b49d9d 94%, #0000) left/20% 100%;
    background: linear-gradient(#000000 0 0) left/0% 100% no-repeat #ddd;
    animation: l17 2s infinite steps(6);
}

.chatbot-chat-files-preview .preview-item.lazy .preview-cancel-btn,
.chatbot-chat-form-preview .preview-item.lazy .preview-cancel-btn {
    display: none;
}

/* Chatbot Toggle Button */
.chatbot-toggle-btn {
    position: fixed;
    bottom: 20px;
    left: unset;
    right: 20px;
    color: #fff;
    background-color: var(--mpg-chatbot-chat-icon-bg-color, "linear-gradient(135deg, #3098F3, #ff5a5f)");
    background-image: var(--mpg-chatbot-chat-icon-url, "none");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border: none;
    width: 55px;
    height: 55px;
    padding: 5px 10px 0 10px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: 0.2s ease-in-out;
    transform: scale(1);
    z-index: 999999998;
}

.chatbot-toggle-btn img {
    max-width: 100%;
    max-height: 100%;
}

.chatbot-toggle-btn:hover {
    transform: scale(1.08);
}

.chatbot-container {
    font-size: 14px;
    box-sizing: border-box;
    color: var(--mpg-chatbot-chat-text-color, "#333");
    /* Chatbot Popup */
    /* Chatbot Header */
    /* Close Button */
    /* Chatbot Messages Container */
    /**************************************
     * Lead Capture Form
     **************************************/
    /**************************************
     * Main Chat Container
     **************************************/
}
.chatbot-container label,
.chatbot-container h3{
    color: var(--mpg-chatbot-chat-text-color, "#333");
}

.chatbot-container * {
    box-sizing: border-box;
}
.chatbot-chat-form-actions *{
    color: var(--mpg-chatbot-chatbot-form-actions-color, "#333");
}
.chatbot-container button {
    cursor: pointer;
    outline: none;
    transition: all .3s;
}

.chatbot-container button.chatbot-btn {
    cursor: pointer;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    margin-top: 20px;
    height: 40px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.chatbot-container button.chatbot-btn:hover {
    opacity: 0.8;
}

.chatbot-container button.chatbot-btn-primary {
    color: var(--mpg-chatbot-chat-button-text-color, "#fff");
    background: var(--mpg-chatbot-chat-button-bg-color, "#ed3d63");
}

.chatbot-container button.chatbot-btn-secondary {
    color: #fff;
    background: #9E9E9E;
}

.chatbot-container button.chatbot-chat-send {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 4px;
    padding: 5px;
    margin-left: 4px;
    cursor: pointer;
    color: var(--mpg-chatbot-chat-text-color, "#333");
    outline: none;
}

.chatbot-container button.chatbot-chat-send:hover {
    background: rgba(244, 244, 245, 0.9);
}

.chatbot-container button.chatbot-chat-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    padding: 4px 10px;
    border-radius: 8px;
    gap: 2px;
}

.chatbot-container button.chatbot-chat-upload-btn svg {
    width: 16px;
}

.chatbot-container button.chatbot-chat-upload-btn:hover {
    background: rgba(87, 91, 95, 0.1);
}

.chatbot-container button.loading {
    opacity: 0.7;
}

.chatbot-container button.loading:before {
    content: "";
    display: inline-block;
    width: 20px;
    padding: 2px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #fff;
    --_m: conic-gradient(#0000 10%,#000), linear-gradient(#000 0 0) content-box;
    -webkit-mask: var(--_m);
    mask: var(--_m);
    -webkit-mask-composite: source-out;
    mask-composite: subtract;
    animation: l13 1s infinite linear;
}

.chatbot-container.chatbot-popup {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    top: unset;
    left: unset;
    bottom: 90px;
    right: 20px;
    width: 420px;
    max-width: 90%;
    max-height: 80vh;
    background-color: var(--mpg-chatbot-chat-bg-color, "#f9f9f9");
    border-radius: 10px;
    box-shadow: rgba(150, 150, 150, 0.2) 0px 10px 30px 0px, rgba(150, 150, 150, 0.2) 0px 0px 0px 1px;
    overflow: hidden;
    z-index: 999999998;
    font-family: Arial, sans-serif;
    border: none;
    box-sizing: border-box;
}

.chatbot-container.chatbot-popup button.chatbot-chat-start-btn {
    width: 100%;
}

.chatbot-container.chatbot-popup.chatbot-toggle {
    display: flex;
}

.chatbot-container .chatbot-header {
    color: var(--mpg-chatbot-chat-header-text-color, "#fff");
    background: var(--mpg-chatbot-chat-header-bg-color, "linear-gradient(135deg, #3098F3, #ff5a5f)");
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    height: 60px;
}

.chatbot-container .chatbot-header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-container .chatbot-header-logo img {
    max-width: 150px;
    max-height: 40px;
}

.chatbot-container .chatbot-header-logo span {
    white-space: nowrap;
}

.chatbot-container .close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    border-radius: 4px;
    cursor: pointer;
    width: 30px;
    height: 30px;
}

.chatbot-container .close-btn:hover, .chatbot-container .close-btn:focus {
    color: #fff;
    background: rgba(244, 244, 245, 0.2);
}

.chatbot-container .chatbot-messages {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    background-color: var(--mpg-chatbot-chat-bg-color, "#f9f9f9");
}

.chatbot-container .chatbot-chat-output-wrapper {
    position: relative;
}

.chatbot-container .chatbot-chat-output-wrapper .chatbot-chat-output {
    overflow-y: auto;
}

.chatbot-container .chatbot-chat-output-wrapper .g-recaptcha {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    margin: 0 auto;
}

.chatbot-container .chatbot-chat-output-wrapper .chatbot-chat-quick-replies {
    overflow: hidden;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
    padding: 15px;
    width: 100%;
    margin-left: auto;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    background: #f9f9f9;
    max-height: 350px;
    overflow-y: auto;
}

.chatbot-container .chatbot-chat-output-wrapper .chatbot-chat-quick-replies button {
    background-color: transparent;
    color: var(--mpg-chatbot-chat-user-message-text-color, "#fff");
    background-color: var(--mpg-chatbot-chat-user-message-bg-color, "#68baff");
    border-width: 1px;
    border-style: solid;
    border-color: var(--mpg-chatbot-chat-user-message-bg-color, "#68baff");
    outline: none;
    padding: 7px 15px;
    border-radius: 15px;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: .15s;
    white-space: unset;
    text-align: unset;
}

.chatbot-container .chatbot-chat-output-wrapper .chatbot-chat-quick-replies button:hover {
    color: var(--mpg-chatbot-chat-user-message-text-color, "#fff");
    background-color: var(--mpg-chatbot-chat-user-message-bg-color, "#68baff");
    border-color: var(--mpg-chatbot-chat-user-message-bg-color, "#68baff");
}

.chatbot-container .chatbot-lead-capture,
.chatbot-container .chatbot-confirm {
    width: 100%;
    height: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.chatbot-container .chatbot-confirm button {
    width: 100%;
}

.chatbot-container .chatbot-lead-capture h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    line-height: 1.3;
}

.chatbot-container .chatbot-lead-capture-form {
    width: 100%;
    padding: 30px 15px;
    max-width: 320px;
    margin: 0 auto;
}

.chatbot-container .chatbot-lead-capture-form label {
    margin-bottom: 5px;
    text-align: left;
}

.chatbot-container .chatbot-lead-capture-form .form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.chatbot-container .chatbot-lead-capture-form .form-row:last-child {
    margin-bottom: 0;
}

.chatbot-container .chatbot-lead-capture-form input {
    height: 40px;
    border: 1px solid #9E9E9E;
    border-radius: 6px;
    font-size: 16px;
    padding: 5px 10px;
    box-sizing: border-box;
}

.chatbot-container .chatbot-chat-container {
    width: 100%;
    height: 100%;
    flex: 1;
}

.chatbot-container .chatbot-chat-container-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chatbot-container .chatbot-chat-form {
    display: flex;
    flex-direction: column;
    padding: 10px;
    border: 0;
    border-top-width: 1px;
    border-style: solid;
    border-color: #e4e4e7;
    background-color: #fff;
}

.chatbot-container .chatbot-chat-form .chatbot-chat-input {
    flex: 1;
    border: none;
    outline: none;
    box-shadow: none;
    font-size: 14px;
    padding: 14px 8px;
    margin: 10px 0;
    background-color: transparent;
    box-sizing: border-box;
    border-radius: 24px;
    width: 100%;
}

.chatbot-container .chatbot-chat-form .chatbot-chat-input::placeholder {
    color: #999;
}

.chatbot-container .chatbot-chat-form-actions {
    display: flex;
    justify-content: space-between;
}

.chatbot-container .chatbot-chat-output {
    flex-direction: column;
    display: flex;
    gap: 20px;
    padding: 15px;
    width: 100%;
    max-height: 50vh;
    min-height: 15vh;
    overflow-y: auto;
    color: var(--mpg-chatbot-chat-text-color, "#333");
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 0 #0000, 0 0 #0000, inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}

/*==============================================================================================================*/
/*================ Embed /*================*/
/*==============================================================================================================*/
.chatbot-container.chatbot-embed {
    margin: 20px auto;
    border: 1px solid #ebebeb;
    border-radius: 10px;
    overflow: hidden;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

.chatbot-container.chatbot-embed button.chatbot-chat-start-btn {
    margin: 20px auto 0;
}

.chatbot-container.chatbot-embed .chatbot-messages {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
}

.chatbot-container.chatbot-embed .chatbot-chat-output {
    height: 420px;
}

.chatbot-container.chatbot-embed .chatbot-lead-capture h3 {
    margin-bottom: 35px;
}

.chatbot-container.chatbot-embed .chatbot-lead-capture-form {
    max-width: 400px;
}

.chatbot-container.chatbot-embed .chatbot-lead-capture-form .form-row {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.chatbot-container.chatbot-embed .chatbot-lead-capture-form label {
    width: 30%;
    text-align: left;
}

.chatbot-container.chatbot-embed .chatbot-lead-capture-form input {
    width: 100%;
}
.show-actions{
    position: relative;
    display: none;
}
.show-actions .chatbot-confirm{
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    background: #fff;
    min-width: 300px;
    min-height: 200px;
    padding: 0 20px;
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.show-actions .chatbot-confirm p{
    color: #000;
}
.show-actions .chatbot-confirm.active{
    visibility: visible;
    opacity: 1;
}
.show-actions .toggle{
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 10px;
}
.chatbot-confirm-send-btn.sent{
    pointer-events: none;
    opacity: 0.6;
}

/* Hide feedback buttons when support request is active */
.show-actions .chatbot-confirm.active ~ * .chat-feedback-buttons,
.chatbot-confirm.active ~ * .chat-feedback-buttons {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Alternative approach: Hide feedback buttons when any support dialog is visible */
.chatbot-container:has(.chatbot-confirm.active) .chat-feedback-buttons {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Fallback for browsers that don't support :has() */
.support-request-active .chat-feedback-buttons {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Chat Pause State when Support Request is Active */
.support-request-active .chatbot-chat-form {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.support-request-active .chatbot-chat-input {
    background-color: #f5f5f5 !important;
    color: #999 !important;
}

.support-request-active .chatbot-chat-send,
.support-request-active .chatbot-chat-upload-btn {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Chat Pause Message */
.chat-pause-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #666;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    display: none;
}

.support-request-active .chat-pause-message {
    display: block;
    animation: fadeInPause 0.3s ease-out;
}

@keyframes fadeInPause {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.chat-pause-message .pause-icon {
    margin-right: 6px;
    color: #3098F3;
}

/* Persistent Support Request Button */
.chatbot-support-request-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e4e4e7;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chatbot-support-request-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #3098F3;
    color: #3098F3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.chatbot-support-request-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chatbot-support-request-btn .support-icon {
    margin-right: 4px;
    font-size: 14px;
}

/* Smart Support Suggestions */
.chatbot-smart-suggestion {
    background: rgba(255, 243, 205, 0.9);
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 8px 12px;
    margin: 10px 15px;
    font-size: 13px;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideIn 0.3s ease-out;
}

.chatbot-smart-suggestion .suggestion-icon {
    font-size: 16px;
}

.chatbot-smart-suggestion .suggestion-text {
    flex: 1;
}

.chatbot-smart-suggestion .suggestion-btn {
    background: #fbbf24;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 11px;
    color: #92400e;
    cursor: pointer;
    transition: background 0.2s ease;
}

.chatbot-smart-suggestion .suggestion-btn:hover {
    background: #f59e0b;
    color: #78350f;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Support Confirmation Dialog */
.chatbot-confirm.smart-triggered {
    border: 2px solid #3098F3;
    box-shadow: 0 8px 25px rgba(48, 152, 243, 0.15);
}

.chatbot-confirm.smart-triggered::before {
    content: "💡";
    position: absolute;
    top: -10px;
    left: 20px;
    background: #3098F3;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.chatbot-confirm .support-reason {
    background: rgba(48, 152, 243, 0.1);
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #1e40af;
    border-left: 3px solid #3098F3;
}

/* Feedback System Styles */
.chat-feedback-buttons {
    position: absolute;
    bottom: 5px;
    right: 10px;
    display: flex;
    gap: 6px;
    align-items: center;
    z-index: 1;
}

.feedback-btn {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 3px 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    font-size: 14px;
    backdrop-filter: blur(4px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.feedback-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.feedback-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
}

.feedback-btn.submitting {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.feedback-btn.loading .feedback-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.feedback-btn.active {
    border-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.feedback-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.feedback-positive.active {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
    color: #16a34a;
}

.feedback-negative.active {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #dc2626;
}

.feedback-icon {
    font-size: 12px;
    line-height: 1;
}

.feedback-btn.submitted {
    pointer-events: none;
}

.feedback-btn.confirmed {
    animation: feedbackPulse 0.3s ease-in-out;
}

@keyframes feedbackPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.feedback-btn.thanks {
    font-size: 9px;
    font-weight: bold;
    color: #059669;
}

/* Responsive adjustments for feedback buttons */
@media (max-width: 480px) {
    .chat-message-text {
        padding: 8px 16px 14px 16px;
    }
    
    .chat-feedback-buttons {
        bottom: 5px;
        right: 10px;
        gap: 4px;
    }
    
    .feedback-btn {
        min-width: 20px;
        height: 20px;
        padding: 2px 4px;
        border-radius: 10px;
    }
    
    .feedback-icon {
        font-size: 10px;
    }
    
    .feedback-confirmation,
    .feedback-error {
        font-size: 10px;
        padding: 3px 6px;
        bottom: -26px;
    }
}
.chatbot-support-ticket-created {
    margin: 10px 8px;
    padding: 12px 14px;
    border: 1px solid #c3d9ee;
    border-radius: 8px;
    background: #f0f7ff;
}

.chatbot-support-ticket-created p {
    margin: 0 0 8px;
    line-height: 1.45;
}

.chatbot-support-ticket-created p a {
    color: #d92f62;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.chatbot-support-chat-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 15px;
    border-radius: 7px;
    background: #2271b1;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 600;
    line-height: 1;
    box-sizing: border-box;
}

.chatbot-support-chat-link:hover,
.chatbot-support-chat-link:focus {
    background: #135e96;
    color: #fff !important;
}
