/* GLOBAL FONT + RESET */
#asai-app, #asai-app * {
    font-family: 'Inter Tight', sans-serif !important;
    box-sizing: border-box;
}

/* ROOT WRAPPER */
#asai-app {
    width: 100%;
    padding-top: 10px;
    padding-bottom: 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* CLEAN WIDE CONTAINER */
.asai-app-shell {
    width: 90%;
    max-width: 1800px;
    min-height: 80vh;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* HEADER */
.asai-header {
    padding: 18px 24px;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    font-size: 20px;
    font-weight: 600;
    color: #000000;
}

/* MAIN CHAT AREA */
.asai-main {
    flex: 1;
    padding: 24px;
    background: #fafafa;
    overflow: visible;
}

/* SYSTEM MESSAGE */
.asai-system-message {
    background: #000;
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 13px;
    display: none;
}

/* CHAT WINDOW */
.asai-chat-window {
    overflow: visible;
    max-height: none;
    padding-right: 6px;
    margin-bottom: 20px;
}

/* MESSAGES */
.asai-message {
    display: flex;
    margin-bottom: 16px;
}

.asai-message.asai-user {
    justify-content: flex-end;
}

.asai-message.asai-assistant {
    justify-content: flex-start;
}

.asai-bubble {
    max-width: 75%;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.55;
}

/* USER MESSAGE */
.asai-bubble-user {
    background: #000;
    color: #fff;
}

/* BOT MESSAGE */
.asai-bubble-assistant {
    background: #f2f2f2;
    color: #000;
    border: 1px solid #e0e0e0;
}

/* PRODUCT CARDS */
.asai-product-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
    max-width: 100%;
    background: #f2f2f2;
    border: 1px solid #e0e0e0;
    padding: 14px;
    border-radius: 12px;
}

.asai-product-card {
    width: 240px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
    position: relative;
    text-align: left;
}

.asai-product-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.asai-product-title {
    font-size: 15px;
    font-weight: 600;
    color: #000;
    padding: 12px 14px 4px 14px;
}

.asai-product-desc {
    font-size: 13px;
    color: #555;
    padding: 0 14px 12px 14px;
}

.asai-product-btn,
.asai-product-btn-shelber,
.asai-product-btn-secondary {
    display: block;
    margin: 0 14px 14px 14px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
}

.asai-product-btn {
    background: #000;
    color: #fff;
}

.asai-product-btn-shelber {
    background: #ff6600;
    color: #fff;
    margin-top: -6px;
}

.asai-product-btn-shelber:hover {
    background: #e65c00;
}

.asai-product-btn-secondary {
    background: #000;
    color: #fff;
}

.asai-product-btn-secondary:hover {
    background: #333;
}

.asai-product-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #093c8e;
    color: #fff;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* LOADING INDICATOR */
.asai-loading {
    margin-top: 10px;
    padding: 10px 14px;
    background: #000;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}

/* FOOTER INPUT AREA */
.asai-footer {
    padding: 18px 24px;
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
}

/* CLEANED INPUT WRAPPER */
.asai-input-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    background: #fff;
    border-radius: 14px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* TEXTAREA */
.asai-input-main {
    width: 100%;
}

.asai-input-textarea {
    width: 100%;
    border: none;
    resize: none;
    outline: none;
    font-size: 15px;
    background: transparent;
    color: #000;
    padding: 2px 0;
    line-height: 1.4;
    overflow-y: hidden;
}

/* BUTTON ROW */
.asai-input-buttons-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* PLUS BUTTON */
.asai-plus-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f2f2f2;
    border: 1px solid #ddd;
    font-size: 22px;
    font-weight: 600;
    color: #333;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}

.asai-plus-btn:hover {
    background: #e8e8e8;
}

/* SEND BUTTON */
.asai-send-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.asai-send-btn:hover {
    background: #333;
}

/* IMAGE PREVIEW (CLEANED) */
.asai-image-preview {
    display: block;
    width: 100%;
    margin-bottom: 6px;
    background: #f3f3f3;
    padding: 6px 10px;
    border-radius: 10px;
    position: relative;
}

.asai-image-preview img {
    max-width: 120px;
    max-height: 120px;
    border-radius: 6px;
    object-fit: cover;
}

.asai-image-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    color: #cc0000;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.asai-image-remove:hover {
    color: #ff0000;
}

/* MOBILE */
@media (max-width: 768px) {
    .asai-bubble {
        max-width: 90%;
    }
}

/* GLOBAL BUTTONS */
.asai-bottom-global {
    width: 100%;
    text-align: center;
}

.asai-global-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #000;
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 5px;
}

.asai-global-btn:hover {
    background: #333;
}

/* DISCLAIMER */
.asai-disclaimer {
    font-size: 11px;
    font-style: italic;
    color: #777;
    margin-top: 8px;
    text-align: center;
}
.asai-input-textarea,
.asai-input-textarea:focus,
.asai-input-textarea:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-focus-ring-color: transparent !important;
}
.asai-input-wrapper:focus-within {
    outline: none !important;
    box-shadow: none !important;
    border-color: #ddd !important;
    -webkit-tap-highlight-color: transparent !important;
}
/* Typing bubble dots */
.asai-typing-dot {
    width: 6px;
    height: 6px;
    background: #ccc;
    border-radius: 50%;
    display: inline-block;
    margin: 0 2px;
    animation: blink 1.4s infinite both;
}

.asai-typing-dot:nth-child(2) { animation-delay: .2s; }
.asai-typing-dot:nth-child(3) { animation-delay: .4s; }

@keyframes blink {
    0% { opacity: .2; }
    20% { opacity: 1; }
    100% { opacity: .2; }
}
.asai-loading {
    display: none !important;
}

.asai-view-all-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.asai-view-all-btn {
    display: inline-block;
    padding: 10px 18px;
    background: #000;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.asai-view-all-btn:hover {
    background: #333;
}
.asai-chat-image {
    max-width: 300px;
    max-height: 300px;
    width: auto;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
    display: block;
}

