/* ABN AI Shopping Assistant Glassmorphism Floating Widget CSS (v2.0.0) */
#abn-ai-chat-root {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999999;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    direction: rtl;
}

#abn-ai-trigger {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 50px;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#abn-ai-trigger:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.45);
    border-color: #f59e0b;
}

.ai-avatar-icon {
    font-size: 22px;
}

#abn-ai-window {
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 400px;
    max-width: calc(100vw - 40px);
    height: 600px;
    max-height: calc(100vh - 120px);
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

#abn-ai-window.abn-ai-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
}

.abn-ai-header {
    background: rgba(30, 41, 59, 0.95);
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.abn-ai-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.abn-ai-avatar {
    font-size: 28px;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 10px;
    flex-shrink: 0;
}

.abn-ai-brand-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.abn-ai-brand-info h4 {
    margin: 0;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.abn-ai-status {
    font-size: 11px;
    color: #10b981;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.abn-ai-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

#abn-ai-new-chat {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fcd34d;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

#abn-ai-new-chat:hover {
    background: #f59e0b;
    color: #000000;
}

#abn-ai-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 22px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
}

#abn-ai-close:hover {
    color: #ffffff;
}

.abn-ai-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.abn-ai-msg {
    display: flex;
    flex-direction: column;
    max-width: 90%;
}

.abn-ai-msg.user {
    align-self: flex-start;
}

.abn-ai-msg.bot {
    align-self: flex-end;
}

.msg-bubble {
    padding: 14px 18px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.65;
    color: #e2e8f0;
}

.msg-bubble a {
    color: #38bdf8;
    text-decoration: underline;
    font-weight: 600;
}

.msg-bubble a:hover {
    color: #f59e0b;
}

.abn-ai-msg.user .msg-bubble {
    background: #2563eb;
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.abn-ai-msg.bot .msg-bubble {
    background: rgba(51, 65, 85, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 4px;
}

.abn-ai-footer {
    padding: 14px 16px;
    background: rgba(30, 41, 59, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#abn-ai-form {
    display: flex;
    gap: 8px;
}

#abn-ai-input {
    flex: 1;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 10px 14px;
    color: #ffffff;
    font-size: 14px;
}

#abn-ai-input:focus {
    outline: none;
    border-color: #f59e0b;
}

#abn-ai-send {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
