.glint-chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif
}

.glint-chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #61cae9;
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px #0000001a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s
}

.glint-chatbot-toggle:hover {
    transform: scale(1.05)
}

.glint-chatbot-window {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 350px;
    height: 600px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px #00000026;
    display: flex;
    flex-direction: column;
    overflow: hidden
}

.glint-chatbot-header {
    background: #232f3d;
    color: #fff;
    padding: 8px 16px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.glint-chatbot-close {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 20px
}

.glint-chatbot-tabs {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb
}

.glint-tab {
    flex: 1;
    padding: 10px 0;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all .2s
}

.glint-tab.active {
    color: #232f3d;
    border-bottom-color: #232f3d
}

.glint-chatbot-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f9fafb
}

.glint-message-wrapper {
    display: flex;
    gap: 8px;
    align-items: flex-end
}

.glint-message-wrapper.user {
    flex-direction: row-reverse
}

.glint-message-wrapper.bot {
    align-items: flex-start
}

.glint-bot-profile {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center
}

.glint-bot-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.glint-bot-avatar-placeholder {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280
}

.glint-message-content {
    display: flex;
    flex-direction: column;
    max-width: 80%
}

.glint-bot-name {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
    margin-left: 4px
}

.glint-message {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word
}

.glint-message.user {
    background: #232f3d;
    color: #fff;
    border-bottom-right-radius: 4px
}

.glint-message.bot {
    background: #fff;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 4px
}

.glint-message.system {
    align-self: center;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 12px;
    max-width: 90%;
    text-align: center;
    border-radius: 16px;
    margin: 0 auto;
    align-items: center
}

.glint-chatbot-input-area {
    display: flex;
    padding: 15px;
    background: #232f3d
}

#top input[type=text].glint-chatbot-input {
    background: #f1f5f9;
    border-radius: 7px;
    margin-bottom: 0;
    border-width: 0;
    font-size: .8rem;
    padding: 8px 12px
}

.glint-quick-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0;
    padding: 0;
    background: #f8fafc;
    box-shadow: 0 0 25px 1px #0000001a
}

.glint-quick-links::-webkit-scrollbar {
    height: 4px
}

.glint-quick-links::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px
}

.glint-quick-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 4px;
    padding: 8px 12px;
    font-size: 12px;
    color: #000;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s, color .2s;
    border-right: 1px solid #eaebeb
}

.glint-quick-link:hover {
    background: #fefefe;
    color: #0f172a
}

.glint-custom-html .product-image img {
    max-height: 215px
}

.glint-chatbot-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    outline: none;
    font-size: 14px
}

.glint-chatbot-input:focus {
    border-color: #232f3d
}

.glint-chatbot-send {
    background: #232f3d;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    margin-left: 6px;
    padding-right: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center
}

.glint-chatbot-send:disabled {
    cursor: not-allowed
}

.glint-chatbot-voice-area {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center
}

.glint-voice-btn {
    width: 100%;
    padding: 6px;
    border: none;
    border-radius: 24px;
    background: #f1f5f9;
    color: #334155;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    user-select: none;
    -webkit-user-select: none
}

.glint-voice-btn:hover:not(:disabled) {
    background: #e2e8f0
}

.glint-voice-btn.recording {
    background: #ef4444;
    color: #fff;
    animation: pulse 1.5s infinite
}

@keyframes pulse {
    0% {
        transform: scale(1)
    }

    50% {
        transform: scale(.98)
    }

    to {
        transform: scale(1)
    }
}

.glint-typing-indicator {
    display: flex;
    gap: 4px;
    padding: 4px 8px
}

.glint-typing-dot {
    width: 6px;
    height: 6px;
    background: #9ca3af;
    border-radius: 50%;
    animation: glint-bounce 1.4s infinite ease-in-out both
}

.glint-typing-dot:nth-child(1) {
    animation-delay: -.32s
}

.glint-typing-dot:nth-child(2) {
    animation-delay: -.16s
}

@keyframes glint-bounce {

    0%,
    80%,
    to {
        transform: scale(0)
    }

    40% {
        transform: scale(1)
    }
}

.glint-markdown {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.glint-markdown p {
    margin: 0
}

.glint-markdown p:not(:last-child) {
    margin-bottom: 8px
}

.glint-markdown a {
    color: #232f3d;
    text-decoration: underline
}

.glint-markdown a:hover {
    text-decoration: none
}

.glint-markdown strong {
    font-weight: 600;
    color: #111827
}

.glint-markdown em {
    font-style: italic
}

.glint-markdown ul,
.glint-markdown ol {
    margin: 0 0 8px;
    padding-left: 20px
}

.glint-markdown ul {
    list-style-type: disc
}

.glint-markdown ol {
    list-style-type: decimal
}

.glint-markdown li {
    margin-bottom: 4px
}

.glint-markdown img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 8px;
    border: 1px solid #e5e7eb
}

.glint-markdown h1,
.glint-markdown h2,
.glint-markdown h3,
.glint-markdown h4 {
    margin: 12px 0 8px;
    font-weight: 600;
    color: #111827;
    line-height: 1.2
}

.glint-markdown h1 {
    font-size: 1.25em
}

.glint-markdown h2 {
    font-size: 1.15em
}

.glint-markdown h3 {
    font-size: 1.05em
}

.wp-smiley .glint-quick-link-icon img.emoji {
    height: 18px !important;
    vertical-align: middle !important;
    width: auto !important
}

@media (max-width: 640px) {
    .glint-chatbot-window {
        position: fixed;
        z-index: 9999999;
        bottom: 0;
        right: 0;
        width: 100%;
        height: 90vh;
        margin: 0
    }
}