/* ========================================================
   BUDAPEST TŰZIFA - CUSTOMER AI CHAT WIDGET STYLES
   ======================================================== */

#bt-ai-widget-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Floating Launcher Button */
.bt-ai-launcher {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e86a24 0%, #a43e06 100%);
    box-shadow: 0 6px 20px rgba(232, 106, 36, 0.45), 0 2px 6px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
    outline: none;
    position: relative;
}

.bt-ai-launcher:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 26px rgba(232, 106, 36, 0.65);
}

.bt-ai-launcher svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bt-ai-badge-pulse {
    position: absolute;
    top: 0;
    right: 0;
    width: 14px;
    height: 14px;
    background: #ef4444;
    border: 2px solid #ffffff;
    border-radius: 50%;
}

/* Teaser Bubble */
.bt-ai-teaser {
    position: absolute;
    bottom: 72px;
    right: 0;
    background: #251610;
    color: #fdf9f4;
    border: 1px solid rgba(232, 106, 36, 0.35);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.85rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    width: 240px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    animation: btAiFloat 4s ease-in-out infinite;
    transition: opacity 0.25s, transform 0.25s;
}

.bt-ai-teaser-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(232, 106, 36, 0.5);
}

.bt-ai-teaser::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 24px;
    width: 12px;
    height: 12px;
    background: #251610;
    border-right: 1px solid rgba(232, 106, 36, 0.35);
    border-bottom: 1px solid rgba(232, 106, 36, 0.35);
    transform: rotate(45deg);
}

@keyframes btAiFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Chat Window Modal */
.bt-ai-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 390px;
    max-width: calc(100vw - 32px);
    height: 560px;
    max-height: calc(100vh - 120px);
    background: #1c100b;
    border: 1px solid #3d2318;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.96);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.bt-ai-window.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* Chat Header */
.bt-ai-header {
    background: linear-gradient(135deg, #3d2015 0%, #1e100c 100%);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(232, 106, 36, 0.3);
}

.bt-ai-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bt-ai-avatar {
    width: 38px;
    height: 38px;
    background: rgba(232, 106, 36, 0.15);
    border: 1.5px solid #e86a24;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.bt-ai-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.bt-ai-header-title {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
}

.bt-ai-header-sub {
    color: #f38446;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.bt-ai-online-dot {
    width: 7px;
    height: 7px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
}

.bt-ai-header-action-btn {
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 0.95rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s, transform 0.2s;
}

.bt-ai-header-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: rotate(-180deg);
}

.bt-ai-close-btn {
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 1.2rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.bt-ai-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Messages Area */
.bt-ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #150d09;
}

.bt-ai-msg {
    max-width: 90%;
    font-size: 0.88rem;
    line-height: 1.45;
    padding: 10px 14px;
    border-radius: 12px;
    word-break: break-word;
}

.bt-ai-msg.bot {
    align-self: flex-start;
    background: #24140e;
    color: #fdf9f4;
    border: 1px solid #3d2419;
    border-bottom-left-radius: 3px;
}

.bt-ai-msg.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #e86a24 0%, #a43e06 100%);
    color: #ffffff;
    border-bottom-right-radius: 3px;
}

/* Prompt Chips */
.bt-ai-quick-prompts {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px 14px;
    background: #1c100b;
    border-top: 1px solid #2f1b12;
    scrollbar-width: none;
}
.bt-ai-quick-prompts::-webkit-scrollbar {
    display: none;
}

.bt-ai-chip-btn {
    background: #2a1810;
    border: 1px solid #45281b;
    color: #e2d9d4;
    padding: 5px 10px;
    border-radius: 14px;
    font-size: 0.78rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}

.bt-ai-chip-btn:hover {
    background: #3a2216;
    border-color: #e86a24;
    color: #f38446;
}

/* Interactive Product / Shipping Card inside chat */
.bt-ai-card {
    background: #23130c;
    border: 1px solid rgba(232, 106, 36, 0.35);
    border-radius: 10px;
    padding: 10px 12px;
    margin-top: 6px;
    font-size: 0.84rem;
}

.bt-ai-card-btn {
    display: inline-block;
    margin-top: 8px;
    background: linear-gradient(135deg, #e86a24 0%, #b84b0e 100%);
    color: #ffffff !important;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.82rem;
    transition: opacity 0.15s;
}

.bt-ai-card-btn:hover {
    opacity: 0.9;
}

/* Input Area */
.bt-ai-input-area {
    padding: 10px 14px;
    background: #1c100b;
    border-top: 1px solid #2f1b12;
    display: flex;
    gap: 8px;
    align-items: center;
}

.bt-ai-input {
    flex: 1;
    background: #27160f;
    border: 1px solid #45281b;
    color: #ffffff;
    padding: 9px 12px;
    border-radius: 20px;
    font-size: 0.88rem;
    outline: none;
    font-family: inherit;
}

.bt-ai-input:focus {
    border-color: #e86a24;
}

.bt-ai-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e86a24 0%, #b84b0e 100%);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s, background 0.15s;
}

.bt-ai-send-btn:hover {
    transform: scale(1.06);
    background: #f38446;
}

.bt-ai-send-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
}

/* Lists & Formatting Styles (NO TABLES - 100% Mobile Responsive) */
.bt-ai-list {
    margin: 8px 0;
    padding-left: 20px;
    list-style-type: disc;
}

.bt-ai-list li {
    margin-bottom: 6px;
    line-height: 1.45;
    color: #f1f5f9;
}

.bt-ai-link {
    color: #f38446;
    text-decoration: underline;
}

.bt-ai-link:hover {
    color: #ff9d66;
}

.bt-ai-order-link {
    display: inline-block;
    color: #ffffff;
    background: #e86a24;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    margin: 2px 0;
    font-size: 0.82rem;
}

.bt-ai-order-link:hover {
    background: #f38446;
}

.bt-ai-inline-code {
    background: rgba(255, 255, 255, 0.1);
    color: #f38446;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 0.82rem;
}

/* Mobile responsive bottom sheet */
@media (max-width: 480px) {
    #bt-ai-widget-container {
        bottom: 16px;
        right: 16px;
    }
    .bt-ai-window {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100vw;
        max-width: 100vw;
        height: 84vh;
        max-height: 88vh;
        border-radius: 20px 20px 0 0;
    }
}

