.st-chatbot-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: var(--font-text), sans-serif;
}

.st-chatbot-toggle {
    background: #0f0f0f;
    border: 3px solid #ff6a00;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255, 106, 0, 0.3);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 0;
}

.st-chatbot-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(255, 106, 0, 0.5);
}

.st-chatbot-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #0f0f0f;
    display: flex;
    align-items: center;
    justify-content: center;
}

.st-chatbot-avatar img {
    max-width: 60%;
    max-height: 60%;
    object-fit: contain;
}

.st-chatbot-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ff4a6b;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0f0f0f;
}

/* Initial Tooltip */
.st-chatbot-tooltip {
    position: absolute;
    right: 90px;
    bottom: 0;
    background: #2a2a2a; /* Dark grey */
    border: 1px solid #444;
    border-radius: 16px;
    padding: 20px;
    width: 300px;
    text-align: left;
    color: #fff;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateX(0);
    pointer-events: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.st-chatbot-wrapper.is-open .st-chatbot-tooltip {
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
}

.st-chatbot-brand {
    color: #fff;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.st-chatbot-tooltip h4 {
    font-size: 18px;
    margin: 0 0 8px 0;
    line-height: 1.3;
    color: #fff;
}

.st-chatbot-tooltip p {
    font-size: 13px;
    color: #aaa;
    margin: 0;
    line-height: 1.5;
}

/* Chat Window */
.st-chatbot-window {
    position: absolute;
    bottom: 90px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 60px);
    height: 650px;
    max-height: calc(100vh - 140px);
    background: #141414; /* Darker grey */
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: bottom right;
}

@media (max-width: 480px) {
    .st-chatbot-window {
        max-width: calc(100vw - 40px);
        max-height: calc(100vh - 100px);
    }
    .st-chatbot-wrapper {
        right: 20px;
        bottom: 20px;
    }
}

.st-chatbot-wrapper.is-open .st-chatbot-window {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.st-chatbot-window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #222;
    background: #1a1a1a;
}

.st-chatbot-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.st-chatbot-header-text {
    display: flex;
    flex-direction: column;
}

.st-chatbot-brand {
    color: #fff;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2px;
}

.st-chatbot-subtitle {
    color: #888;
    font-size: 11px;
}

.st-chatbot-close-main {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.st-chatbot-close-main:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.st-chatbot-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #141414;
    position: relative;
    overflow: hidden;
}

.st-chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Scrollbar */
.st-chatbot-messages::-webkit-scrollbar { width: 6px; }
.st-chatbot-messages::-webkit-scrollbar-track { background: transparent; }
.st-chatbot-messages::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }

.st-chat-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.st-chat-msg.bot {
    background: #1e1e1e;
    color: #e0e0e0;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid #2a2a2a;
}

.st-chat-msg.user {
    background: #ff6a00;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

/* Options List Items */
.st-chatbot-options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
    width: 100%;
}

.st-chatbot-option-card {
    background: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    color: #eee;
}

.st-chatbot-option-card:hover {
    background: #252525;
    border-color: #444;
}

.st-chatbot-option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
}

.st-chatbot-option-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.st-chatbot-option-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.st-chatbot-option-subtitle {
    font-size: 11px;
    color: #888;
}

.st-chatbot-option-arrow {
    color: #666;
}

.st-chatbot-pills {
    padding: 0 20px 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.st-chatbot-pill {
    background: transparent;
    border: 1px solid #333;
    color: #ccc;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.st-chatbot-pill:hover {
    background: rgba(255,106,0,0.1);
    border-color: #ff6a00;
    color: #ff6a00;
}

.st-chatbot-input-wrapper {
    padding: 10px 20px 20px;
    background: #141414;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.st-chatbot-input-container {
    display: flex;
    padding: 6px 6px 6px 16px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 24px;
    gap: 8px;
    align-items: center;
    transition: border-color 0.3s;
}

.st-chatbot-input-container:focus-within {
    border-color: #555;
}

.st-chatbot-input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    padding: 8px 0 !important;
    color: #fff !important;
    font-size: 14px !important;
    outline: none !important;
    box-shadow: none !important;
}

.st-chatbot-input::placeholder {
    color: #666 !important;
}

.st-chatbot-send {
    background: transparent !important;
    border: none !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    cursor: pointer !important;
    transition: transform 0.2s, color 0.3s !important;
    padding: 0 !important;
    border-radius: 50% !important;
}

.st-chatbot-send:hover {
    color: #ff6a00 !important;
    transform: scale(1.1) !important;
}

.st-chatbot-reply-text {
    font-size: 11px;
    color: #666;
    text-align: left;
    padding-left: 4px;
}

@media (max-width: 480px) {
    .st-chatbot-window {
        position: fixed;
        bottom: 90px;
        right: 15px;
        left: 15px;
        width: auto;
        height: 65vh;
        max-height: 500px;
        border-radius: 20px !important;
    }
    .st-chatbot-body {
        height: calc(100% - 70px); /* Subtract input container height */
    }
    .st-chatbot-tooltip {
        display: none;
    }
}
