/* Encapsulamento com prefixo específico */
.wasp-chatbot-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.wasp-chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    font-family: 'Source Code Pro', monospace;
}

.wasp-chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    border: 3px solid #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.wasp-chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
}

.wasp-chatbot-toggle iconify-icon {
    color: #ffffff;
    font-size: 32px;
}

.wasp-chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 500px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid #000000;
    transition: all 0.3s ease;
}

.wasp-chatbot-window.active {
    display: flex;
}

.wasp-chatbot-window.expanded {
    width: 600px;
    height: calc(100vh - 120px);
    max-height: 700px;
}

.wasp-chatbot-header {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: #ffffff;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #808080;
}

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

.wasp-chatbot-icon {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wasp-chatbot-icon iconify-icon {
    color: #000000;
    font-size: 24px;
}

.wasp-chatbot-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.wasp-chatbot-controls {
    display: flex;
    gap: 10px;
}

.wasp-control-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 20px;
    padding: 5px;
    transition: all 0.2s ease;
}

.wasp-control-btn:hover {
    transform: scale(1.2);
    color: #808080;
}

.wasp-chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wasp-chatbot-messages::-webkit-scrollbar {
    width: 8px;
}

.wasp-chatbot-messages::-webkit-scrollbar-track {
    background: #e0e0e0;
}

.wasp-chatbot-messages::-webkit-scrollbar-thumb {
    background: #808080;
    border-radius: 4px;
}

.wasp-message {
    display: flex;
    gap: 10px;
    animation: fadeIn 0.4s ease;
}

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

.wasp-message.bot {
    align-self: flex-start;
}

.wasp-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.wasp-message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wasp-message.bot .wasp-message-avatar {
    background: #000000;
}

.wasp-message.bot .wasp-message-avatar iconify-icon {
    color: #ffffff;
    font-size: 20px;
}

.wasp-message.user .wasp-message-avatar {
    background: #808080;
    color: #ffffff;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.wasp-message-content {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.wasp-message.bot .wasp-message-content {
    background: #ffffff;
    color: #000000;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wasp-message.user .wasp-message-content {
    background: #000000;
    color: #ffffff;
}

.wasp-chatbot-options {
    padding: 15px 20px;
    background: #ffffff;
    border-top: 2px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wasp-option-btn {
    background: #ffffff;
    border: 2px solid #000000;
    color: #000000;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.wasp-option-btn:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.wasp-option-btn.primary {
    background: #000000;
    color: #ffffff;
}

.wasp-option-btn.primary:hover {
    background: #333333;
}

.wasp-price-table {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.8;
}

.wasp-price-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #e0e0e0;
}

.wasp-price-item:last-child {
    border-bottom: none;
}

.wasp-service-list {
    margin-top: 10px;
}

.wasp-service-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.wasp-service-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.wasp-service-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 5px;
    color: #000000;
}

.wasp-service-desc {
    font-size: 12px;
    color: #333333;
    line-height: 1.5;
}

.wasp-typing-indicator {
    display: none;
    align-items: center;
    gap: 5px;
    padding: 12px 16px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    width: fit-content;
}

.wasp-typing-indicator.active {
    display: flex;
}

.wasp-typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #808080;
    animation: typing 1.4s infinite;
}

.wasp-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.wasp-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .wasp-chatbot-window {
        width: calc(100vw - 40px);
        height: 500px;
        right: 20px;
    }

    .wasp-chatbot-window.expanded {
        width: calc(100vw - 40px);
        height: calc(100vh - 120px);
        max-height: calc(100vh - 120px);
    }
}