#toozy-stateful-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    font-family: Arial, sans-serif;
}

#toozy-stateful-button {
    background: linear-gradient(135deg, #6B1717 0%, #F6CC9F 100%);
    color: white;
    border: none;
    border-radius: 50px;
    width: 60px;
    height: 60px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

#toozy-stateful-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

@keyframes pulse {
    0% { box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
    50% { box-shadow: 0 4px 20px rgba(248, 206, 16, 0.4); }
    100% { box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
}

#toozy-stateful-window {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 10001;
    overflow: hidden;
}

#toozy-stateful-header {
    background: linear-gradient(135deg, #F6CC9F 0%, #6B1717 100%);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    position: relative;
}

#toozy-stateful-close {
    position: absolute;
    right: 15px;
    top: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

#toozy-stateful-messages {
    height: 350px;
    overflow-y: auto;
    padding: 15px;
    background: #f8f9fa;
}

.toozy-stateful-message {
    margin: 10px 0;
    padding: 10px;
    border-radius: 10px;
    max-width: 80%;
    word-wrap: break-word;
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

.toozy-stateful-user {
    background: #6B1717;
    color: white;
    margin-left: auto;
    text-align: right;
}

.toozy-stateful-ai {
    background: white;
    border: 1px solid #e9ecef;
    margin-right: auto;
}

.toozy-stateful-order-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 8px;
    margin: 5px 0;
    font-size: 12px;
    font-family: monospace;
}

#toozy-stateful-input-container {
    padding: 15px;
    background: white;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
}

#toozy-stateful-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
}

#toozy-stateful-send {
    background: #6B1717;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toozy-stateful-typing {
    font-style: italic;
    color: #6c757d;
    padding: 10px;
}
