/* vogo AI Chatbot Styles */
* {
    box-sizing: border-box;
}

/* Chat Button */
.vogo-chat-button {
    background-color: #673de6 !important;
    position: fixed !important;
    bottom: 65px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #673de6;
    border-radius: 50% !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(103, 58, 183, 0.3) !important;
    cursor: pointer !important;
    z-index: 1000;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.vogo-chat-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(103, 58, 183, 0.4);
}

.vogo-chat-button.active {
    background: #673de6 !important;
}

.vogo-chat-button svg {
    width: 24px;
    height: 24px;
    fill: white;
    transition: transform 0.3s ease;
}

.vogo-chat-button.active svg {
    transform: rotate(45deg);
}

/* Chat Window */
.vogo-chat-window {
    position: relative;
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: flex;
    flex-direction: column;
}

.vogo-chat-window.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Chat Header */
.vogo-chat-header {
    color: #1d1e20;
    padding: 8px 8px 8px 16px;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vogo-chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vogo-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.vogo-chat-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.vogo-chat-subtitle {
    font-size: 12px;
    opacity: 0.9;
    margin: 0;
}

.vogo-clear-btn {
    border: none !important;
    border-radius: 8px !important;
    padding: 8px !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

.vogo-clear-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

.vogo-clear-btn svg {
    width: 16px;
    height: 16px;
    fill: #1d1e20 !important;
}

/* Chat Messages */
.vogo-chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vogo-message {
    max-width: 85%;
    word-wrap: break-word;
}

.vogo-message.user {
    align-self: flex-end;
}

.vogo-message.ai {
    align-self: flex-start;
}

.vogo-message-content {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
}

.vogo-message.user .vogo-message-content {
    background: #673de6 !important;
    color: white;
    border-bottom-right-radius: 4px;
}

.vogo-message.ai .vogo-message-content {
    background: #f5f5f5;
    color: #333;
    border-bottom-left-radius: 4px;
}

.vogo-message-time {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    text-align: right;
}

.vogo-message.ai .vogo-message-time {
    text-align: left;
}

/* Welcome Message */
.vogo-welcome {
    align-items: flex-start;
    background-color: #f2f3f6 !important;
    border-radius: 8px;
    display: flex;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    padding: 16px;
}

.vogo-welcome-header-avatar {
    width: 40px;
    height: 40px;
    background: #673de6 !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    color: white;
    margin: 0 5px 0 0;
}
.vogo-welcome-avatar {
    width: 33px;
    height: 23px;
    background: #673de6 !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    color: white;
    margin: 0 5px 0 0;
}

/* Typing Indicator */
.vogo-typing {
    display: none;
    align-self: flex-start;
    max-width: 85%;
}

.vogo-typing-content {
    background: #f5f5f5;
    padding: 12px 16px;
    border-radius: 18px 18px 18px 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.vogo-typing-dot {
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
    animation: vogoTyping 1.4s infinite ease-in-out;
}

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

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

.vogo-common-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 18px 24px 0 24px;
    font-size: 14px;
    color: #6c30ff;
    align-items: center;
}

.vogo-common-questions span {
    font-weight: 600;
    margin-right: 8px;
    color: #333;
}

.vogo-question-btn {
    border: 1px solid #d8dae0 !important;
    border-radius: 999px !important;
    cursor: default !important;
    margin-bottom: 5px !important;
    padding: 8px 16px !important;
    transition: border-color .2s ease-in-out !important;
}

.vogo-external-link{
    text-decoration: none;
}

.vogo-chat-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.vogo-question-btn:hover {
    border-color: #673de6 !important;
}
.vogo-feedback {
    position: relative;
    display: flex;
    align-items: center;
}

.vogo-button-tooltip {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%) translateY(8px);
    background: #fff;
    color: #6c30ff;
    font-size: 14px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(108,48,255,0.08);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 10;
}
.vogo-feedback-btn {
    background: #f3f0ff !important;
    border: none !important;
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
    font-size: 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    padding: 0 !important;
}

.vogo-feedback-btn:hover {
    background: #e5dbff !important;
}

.vogo-feedback-btn:hover + .vogo-button-tooltip {
    opacity: 1;
}


.vogo-feedback-popup {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(245, 243, 255, 0.85); /* semi-transparent overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.vogo-feedback-popup-content {
    position: relative;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(108,48,255,0.18);
    padding: 32px 28px 24px 28px;
    min-width: 320px;
    max-width: 90vw;
    text-align: center;
    z-index: 10000;
}

.vogo-feedback-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #6c30ff;
}

.vogo-feedback-scale {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 18px;
}

.vogo-feedback-numbers {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

.vogo-feedback-number {
    background: #f3f0ff;
    color: #6c30ff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.vogo-feedback-number:hover,
.vogo-feedback-number.selected {
    background: #6c30ff;
    color: #fff;
}

.vogo-feedback-labels {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 2px;
    padding: 0 2px;
}

.vogo-feedback-label {
    font-size: 13px;
    color: #888;
    min-width: 48px;
}

.vogo-feedback-label-poor {
    text-align: left;
}

.vogo-feedback-label-excellent {
    text-align: right;
}

.vogo-feedback-close {
    position: absolute;
    top: 0px;
    right: 0px;
    background: none !important;
    border: none;
    font-size: 22px;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 1;
}

.composer-btn {
    background: none !important;
}

.vogo-feedback-close:hover {
    color: #6c30ff;
}

@keyframes vogoTyping {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    30% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Chat Input */
.vogo-chat-input {
    padding: 20px;
    border-top: 1px solid #eee;
    border-radius: 0 0 16px 16px;
}

.vogo-input-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vogo-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 24px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.vogo-input:focus {
    border-color: #673ab7;
}

/* Send button styles */
.vogo-send-btn {
    width: 40px;
    height: 40px;
    background: #673de6 !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.2s ease !important;
}

.vogo-send-btn:hover:not(:disabled):not(.disabled) {
    background: #673de6 !important;
    transform: scale(1.05);
}

.vogo-send-btn:active:not(:disabled):not(.disabled) {
    transform: scale(0.95);
}

/* Disabled state styles */
.vogo-send-btn:disabled,
.vogo-send-btn.disabled {
    background: #6c757d !important;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

.vogo-send-btn:disabled svg,
.vogo-send-btn.disabled svg {
    fill: #adb5bd !important;
}

/* SVG icon styling */
.vogo-send-btn svg {
    width: 20px !important;
    height: 20px !important;
    color: #fff !important;
    transition: fill 0.3s ease !important;
}

/* Alternative: If using Unicode arrow */
.vogo-send-btn:disabled,
.vogo-send-btn.disabled {
    color: #adb5bd !important;
}


.vogo-send-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Scrollbar Styles */
.vogo-chat-messages::-webkit-scrollbar {
    width: 4px;
}

.vogo-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.vogo-chat-messages::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.vogo-category-item {
    background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); padding: 10px; display: flex; align-items: center; min-width: 260px; max-width: 320px;margin-bottom: 3px;
}
.vogo-category-details {
    display:flex; flex-direction:column;
}
.vogo-category-name {
    font-weight:bold; margin-bottom:4px;
}
.vogo-category-name a{
    text-decoration: none;;
}
.vogo-category-desc {
    font-size:90%; color:#555;
}

.vogo-product-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.vogo-product-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8f9fa;
    cursor: pointer;
    font-size: 12px;
}

.vogo-view-btn:hover {
    background: #e9ecef;
}

.vogo-cart-btn {
    background: #673de6 !important;
    color: white;
    border-color: #007bff;
}


/* Mobile Responsive */
@media (max-width: 480px) {
    .vogo-chat-window {
        width: calc(100vw - 24px);
        right: 12px;
        bottom: 90px;
        height: 70vh;
        max-height: 500px;
    }

    .vogo-chat-button {
        right: 12px;
        bottom: 12px;
        width: 56px;
        height: 56px;
    }
}

/* Hide on very small screens */
@media (max-width: 320px) {
    .vogo-chat-window {
        width: 100vw;
        right: 0;
        bottom: 0;
        height: 100vh;
        border-radius: 0;
    }

    .vogo-chat-header {
        border-radius: 0;
    }

    .vogo-chat-input {
        border-radius: 0;
    }
}