/**
 * ONS AI ChatBot – Frontend Widget Styles
 * Version: 3.4.0
 *
 * v3.4.0:
 *   - Product detail card styles (image, name, price, description, Add to Cart)
 *   - Service link card styles (icon, name, hint, "View Service" button)
 *   - Back button style for drill-down browsing
 *   - Cart link button style
 *   - Mobile responsive rules for all new components
 *   - All v3.3.0 features preserved.
 *
 * v3.3.0:
 *   - Premium SaaS visual design — layered shadows, refined spacing, Inter font
 *   - Mobile: floating panel (NOT fullscreen), proper header alignment
 *   - Pre-rendered window (visibility/opacity toggle) for sub-2ms open
 *   - Close button conflict fixed (.ons-chatbot__close no longer overrides sizing)
 *   - Responsive rules in sync with inline critical CSS
 */

.ons-chatbot {
    --ons-accent: #6c5ce7;
    --ons-accent-light: rgba(108, 92, 231, 0.08);
    --ons-accent-hover: #5b4bd5;
    --ons-bg: #ffffff;
    --ons-fg: #111827;
    --ons-muted: #9ca3af;
    --ons-border: #f0f0f5;
    --ons-radius: 20px;
    position: fixed;
    z-index: 99999;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ons-fg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ons-chatbot--bottom-right { right: 20px; bottom: 20px; }
.ons-chatbot--bottom-left  { left: 20px; bottom: 20px; }
.ons-chatbot--top-right    { right: 20px; top: 20px; }
.ons-chatbot--top-left     { left: 20px; top: 20px; }

/* ========== LAUNCHER ========== */
.ons-chatbot__launcher {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--ons-accent);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}
.ons-chatbot__launcher:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 32px rgba(108, 92, 231, 0.5);
}
.ons-chatbot__launcher-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 1;
}
.ons-chatbot__launcher-icon svg { display: block; }
.ons-chatbot__launcher-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--ons-accent);
    opacity: 0.55;
    animation: ons-pulse 2.2s ease-out infinite;
    z-index: -1;
}
@keyframes ons-pulse {
    0%   { transform: scale(1);   opacity: 0.55; }
    70%  { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ========== WINDOW ========== */
.ons-chatbot__window {
    position: absolute;
    width: 384px;
    max-width: calc(100vw - 24px);
    height: 568px;
    max-height: calc(100vh - 60px);
    background: var(--ons-bg);
    border-radius: 20px;
    box-shadow: 0 24px 80px -12px rgba(0,0,0,0.2), 0 8px 24px -4px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    contain: layout style paint;
    will-change: opacity, visibility;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
.ons-chatbot__window.ons-chatbot__window--closed {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}
.ons-chatbot--bottom-right .ons-chatbot__window,
.ons-chatbot--bottom-left  .ons-chatbot__window { bottom: 76px; }
.ons-chatbot--bottom-right .ons-chatbot__window { right: 0; }
.ons-chatbot--bottom-left  .ons-chatbot__window { left: 0; }
.ons-chatbot--top-right    .ons-chatbot__window { top: 76px; right: 0; }
.ons-chatbot--top-left     .ons-chatbot__window { top: 76px; left: 0; }

/* ========== HEADER ========== */
.ons-chatbot__header {
    background: var(--ons-accent);
    color: #fff;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.ons-chatbot__header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.ons-chatbot__header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.ons-chatbot__header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ons-chatbot__header-info { min-width: 0; }
.ons-chatbot__header-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}
.ons-chatbot__header-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1px;
}
.ons-chatbot__status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2ecc71;
    display: inline-block;
    flex-shrink: 0;
    animation: ons-status-blink 2s ease-in-out infinite;
}
@keyframes ons-status-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.ons-chatbot__header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.ons-chatbot__header-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
    vertical-align: middle;
    transition: background 0.15s;
}
.ons-chatbot__header-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}
.ons-chatbot__close {
    /* Size/layout controlled entirely by .ons-chatbot__header-btn — no overrides */
}

/* ========== PRE-CHAT LEAD CAPTURE ========== */
.ons-chatbot__pre-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    background: linear-gradient(135deg, #f8f7ff 0%, #ffffff 50%, #f3f0ff 100%);
    overflow-y: auto;
}
.ons-chatbot__pre-chat.ons-chatbot--hidden {
    display: none;
}
.ons-chatbot__pre-chat-content {
    width: 100%;
    max-width: 300px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ons-chatbot__pre-chat-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--ons-accent-light);
    color: var(--ons-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    flex-shrink: 0;
}
.ons-chatbot__pre-chat-avatar svg {
    display: block;
}
.ons-chatbot__pre-chat-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ons-fg);
    margin: 0 0 6px;
    line-height: 1.2;
}
.ons-chatbot__pre-chat-desc {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 20px;
    line-height: 1.5;
}
.ons-chatbot__pre-chat-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}
.ons-chatbot__field {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 0 14px;
    min-height: 44px;
    height: 44px;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
    text-align: left;
}
.ons-chatbot__field:focus-within {
    border-color: var(--ons-accent);
    box-shadow: 0 0 0 3px var(--ons-accent-light);
}
.ons-chatbot__field svg {
    color: var(--ons-muted);
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}
.ons-chatbot__field input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 0;
    font-size: 14px;
    font-family: inherit;
    color: var(--ons-fg);
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    line-height: 1.4;
    height: 100%;
}
.ons-chatbot__field input::placeholder {
    color: #b0b5c0;
}
.ons-chatbot__pre-chat-error {
    font-size: 12px;
    color: #ef4444;
    min-height: 0;
    padding: 0;
    transition: all 0.15s;
    line-height: 1.4;
}
.ons-chatbot__pre-chat-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: var(--ons-accent);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    box-shadow: 0 4px 14px rgba(108, 92, 231, 0.35);
    margin-top: 2px;
    box-sizing: border-box;
}
.ons-chatbot__pre-chat-submit:hover {
    background: var(--ons-accent-hover);
}
.ons-chatbot__pre-chat-submit:active {
    transform: scale(0.97);
}
.ons-chatbot__pre-chat-note {
    font-size: 10px;
    color: #9ca3af;
    margin: 6px 0 0;
    line-height: 1.4;
}

/* ========== CHAT BODY ========== */
.ons-chatbot__chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

/* ========== MESSAGES AREA ========== */
.ons-chatbot__messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    gap: 6px;
    scroll-behavior: smooth;
    min-height: 0;
}
.ons-chatbot__messages::-webkit-scrollbar { width: 5px; }
.ons-chatbot__messages::-webkit-scrollbar-track { background: transparent; }
.ons-chatbot__messages::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 10px; }
.ons-chatbot__messages::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* ========== MESSAGE BUBBLES ========== */
.ons-chatbot__msg {
    display: flex;
    flex-direction: column;
    max-width: 82%;
    animation: ons-msg-in 0.2s ease-out;
}
@keyframes ons-msg-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ons-chatbot__msg--bot { align-self: flex-start; }
.ons-chatbot__msg--visitor { align-self: flex-end; align-items: flex-end; }
.ons-chatbot__bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.5;
    word-wrap: break-word;
    white-space: pre-wrap;
}
.ons-chatbot__msg--bot .ons-chatbot__bubble {
    background: #ffffff;
    color: var(--ons-fg);
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.ons-chatbot__msg--visitor .ons-chatbot__bubble {
    background: var(--ons-accent);
    color: #fff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3);
}
.ons-chatbot__msg-time {
    font-size: 10px;
    color: var(--ons-muted);
    margin-top: 3px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.ons-chatbot__msg--visitor .ons-chatbot__msg-time { padding-right: 4px; }
.ons-chatbot__msg-status { display: inline-flex; align-items: center; }
.ons-chatbot__msg-status svg { width: 14px; height: 14px; }
.ons-chatbot__msg-status--sent { color: #9ca3af; }
.ons-chatbot__msg-status--delivered { color: #6b7280; }
.ons-chatbot__msg-status--read { color: var(--ons-accent); }

/* ========== PRODUCT CARDS ========== */
.ons-chatbot__products {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}
.ons-chatbot__product-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f5;
    cursor: pointer;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.ons-chatbot__product-card:hover {
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.12);
    border-color: var(--ons-accent-light);
}
.ons-chatbot__product-img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8f8fc;
}
.ons-chatbot__product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ons-chatbot__product-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: var(--ons-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--ons-accent);
}
.ons-chatbot__product-info { flex: 1; min-width: 0; }
.ons-chatbot__product-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--ons-fg);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ons-chatbot__product-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--ons-accent);
    margin-top: 2px;
}
.ons-chatbot__product-btn {
    background: var(--ons-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, transform 0.1s;
    flex-shrink: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.ons-chatbot__product-btn:hover {
    background: var(--ons-accent-hover);
    transform: translateY(-1px);
}

/* ========== SERVICES PANEL ========== */
.ons-chatbot__services-panel {
    display: flex;
    flex-direction: column;
    padding: 12px;
    gap: 8px;
    overflow-y: auto;
    max-height: 280px;
    background: #fafafe;
    border-bottom: 1px solid var(--ons-border);
}
.ons-chatbot__services-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px 6px;
}
.ons-chatbot__services-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ons-fg);
}
.ons-chatbot__services-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--ons-muted);
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.15s;
}
.ons-chatbot__services-close:hover { color: var(--ons-fg); }
.ons-chatbot__services-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ons-chatbot__service-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #ffffff;
    border: 1.5px solid #eef0f5;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}
.ons-chatbot__service-item:hover {
    border-color: var(--ons-accent);
    background: var(--ons-accent-light);
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.1);
}
.ons-chatbot__service-item:active {
    transform: scale(0.98);
}
.ons-chatbot__service-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.ons-chatbot__service-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: var(--ons-fg);
    line-height: 1.3;
}
.ons-chatbot__service-arrow {
    color: var(--ons-muted);
    flex-shrink: 0;
    transition: transform 0.15s;
}
.ons-chatbot__service-item:hover .ons-chatbot__service-arrow {
    transform: translateX(2px);
    color: var(--ons-accent);
}
.ons-chatbot__services-support {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.06), rgba(108, 92, 231, 0.02));
    border-radius: 12px;
    font-size: 11px;
    color: var(--ons-muted);
    line-height: 1.4;
    margin-top: 2px;
}
.ons-chatbot__services-support svg {
    color: var(--ons-accent);
    flex-shrink: 0;
}

/* ========== TYPING INDICATOR ========== */
.ons-chatbot__typing-wrap {
    align-self: flex-start !important;
    max-width: fit-content !important;
}
.ons-chatbot__typing {
    display: inline-flex;
    gap: 5px;
    padding: 14px 18px;
    background: #fff;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.ons-chatbot__typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #b8b8c8;
    animation: ons-typing 1.4s infinite ease-in-out;
}
.ons-chatbot__typing span:nth-child(2) { animation-delay: 0.15s; }
.ons-chatbot__typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes ons-typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30%           { transform: translateY(-5px); opacity: 1; }
}

/* ========== QUICK ACTIONS GRID ========== */
.ons-chatbot__quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--ons-border);
    background: #fff;
    flex-shrink: 0;
}
/* Scrollable mode — activated during product browsing */
.ons-chatbot__quick-actions--scroll {
    grid-template-columns: 1fr;
    overflow-y: auto;
    max-height: 280px;
    flex-shrink: 1;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}
.ons-chatbot__quick-actions--scroll::-webkit-scrollbar { width: 4px; }
.ons-chatbot__quick-actions--scroll::-webkit-scrollbar-track { background: transparent; }
.ons-chatbot__quick-actions--scroll::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }

/* Browse header (back + count) — spans full width in scroll mode */
.ons-chatbot__browse-header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
}
.ons-chatbot__browse-count {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
}
.ons-chatbot__quick-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f7f7fc;
    color: var(--ons-fg);
    border: 1px solid #eef0f5;
    border-radius: 10px;
    padding: 9px 10px;
    font-size: 11.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
    line-height: 1.2;
}
.ons-chatbot__quick-btn svg {
    flex-shrink: 0;
    color: var(--ons-muted);
    transition: color 0.15s;
}
.ons-chatbot__quick-btn:hover {
    background: var(--ons-accent-light);
    border-color: var(--ons-accent);
    color: var(--ons-accent);
}
.ons-chatbot__quick-btn:hover svg { color: var(--ons-accent); }
.ons-chatbot__quick-btn span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* ── Product button variant (single-column, card-style) ── */
.ons-chatbot__quick-btn--product {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #eef0f5;
    text-align: left;
    transition: all 0.15s;
}
.ons-chatbot__quick-btn--product:hover {
    border-color: var(--ons-accent);
    background: var(--ons-accent-light);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.08);
}
.ons-chatbot__quick-btn--product .ons-chatbot__quick-btn-img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
}
.ons-chatbot__quick-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #f3f4f6;
    font-size: 18px;
    flex-shrink: 0;
}
.ons-chatbot__quick-btn-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.ons-chatbot__quick-btn-text {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ons-fg);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;
}
.ons-chatbot__quick-btn-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--ons-accent);
}
/* Back button in browsing flow */
.ons-chatbot__quick-btn--back {
    background: var(--ons-accent-light);
    color: var(--ons-accent);
    border-color: var(--ons-accent);
    font-weight: 600;
}
.ons-chatbot__quick-btn--back:hover {
    background: var(--ons-accent);
    color: #fff;
}
.ons-chatbot__quick-btn--back:hover span { color: #fff; }
/* Product thumbnail inside quick action button */
.ons-chatbot__quick-btn-img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

/* ========== PRODUCT DETAIL CARD (browsing flow) ========== */
.ons-chatbot__product-detail-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--ons-border);
    max-width: 264px;
}
.ons-chatbot__product-detail-img {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #f8f8fc;
}
.ons-chatbot__product-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ons-chatbot__product-detail-body {
    padding: 12px;
}
.ons-chatbot__product-detail-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--ons-fg);
    line-height: 1.3;
    margin-bottom: 4px;
}
.ons-chatbot__product-detail-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--ons-accent);
    margin-bottom: 6px;
}
.ons-chatbot__product-detail-desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 12px;
}
.ons-chatbot__product-detail-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.ons-chatbot__product-detail-atc {
    flex: 1;
    background: var(--ons-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    font-family: inherit;
}
.ons-chatbot__product-detail-atc:hover {
    background: var(--ons-accent-hover);
    transform: scale(1.02);
}
.ons-chatbot__product-detail-atc:active { transform: scale(0.97); }
.ons-chatbot__product-detail-atc:disabled {
    opacity: 0.7;
    cursor: default;
    transform: none;
}
.ons-chatbot__product-detail-atc--success {
    background: #10b981 !important;
}
.ons-chatbot__product-detail-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--ons-accent);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.15s;
}
.ons-chatbot__product-detail-link:hover {
    opacity: 0.75;
    text-decoration: underline;
}

/* ========== SERVICE LINK CARD (browsing flow) ========== */
.ons-chatbot__service-link-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--ons-border);
    max-width: 280px;
}
.ons-chatbot__service-link-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--ons-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.ons-chatbot__service-link-info {
    flex: 1;
    min-width: 0;
}
.ons-chatbot__service-link-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--ons-fg);
    line-height: 1.3;
}
.ons-chatbot__service-link-hint {
    font-size: 11px;
    color: var(--ons-muted);
    margin-top: 2px;
}
.ons-chatbot__service-link-btn {
    display: inline-flex;
    align-items: center;
    background: var(--ons-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.1s;
}
.ons-chatbot__service-link-btn:hover {
    background: var(--ons-accent-hover);
    text-decoration: none;
    color: #fff;
    transform: scale(1.03);
}

/* ========== CART LINK (after add-to-cart success) ========== */
.ons-chatbot__cart-link {
    display: inline-block;
    background: var(--ons-accent-light);
    color: var(--ons-accent);
    border: 1.5px solid var(--ons-accent);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 4px;
    transition: background 0.15s, color 0.15s;
}
.ons-chatbot__cart-link:hover {
    background: var(--ons-accent);
    color: #fff;
    text-decoration: none;
}

/* ========== INPUT AREA ========== */
.ons-chatbot__input {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid var(--ons-border);
    background: #fff;
    flex-shrink: 0;
}
.ons-chatbot__input textarea {
    flex: 1;
    border: 1.5px solid #e5e7eb;
    border-radius: 22px;
    padding: 9px 16px;
    font-size: 13.5px;
    resize: none;
    max-height: 80px;
    outline: none;
    font-family: inherit;
    line-height: 1.4;
    color: var(--ons-fg);
    background: #f9fafb;
    transition: border-color 0.15s, background 0.15s;
}
.ons-chatbot__input textarea:focus {
    border-color: var(--ons-accent);
    background: #fff;
}
.ons-chatbot__input textarea::placeholder { color: #b0b5c0; }
.ons-chatbot__emoji-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    transition: background 0.15s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.ons-chatbot__emoji-btn:hover { background: #fef3c7; }
.ons-chatbot__send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--ons-accent);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.1s;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3);
}
.ons-chatbot__send-btn:hover {
    background: var(--ons-accent-hover);
    transform: scale(1.05);
}
.ons-chatbot__send-btn:active { transform: scale(0.95); }

/* ========== FLOATING BACK BAR (product detail view) ========== */
.ons-chatbot__product-back-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 6px 12px;
    background: #fafbfc;
    border-top: 1px solid var(--ons-border);
    flex-shrink: 0;
}
.ons-chatbot__product-back-bar-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(108, 92, 231, 0.08);
    color: var(--ons-accent);
    border: 1.5px solid rgba(108, 92, 231, 0.2);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
    white-space: nowrap;
}
.ons-chatbot__product-back-bar-btn:hover {
    background: rgba(108, 92, 231, 0.15);
    border-color: var(--ons-accent);
}

/* ========== FOOTER ========== */
.ons-chatbot__footer {
    background: #fafbfc;
    color: #c0c4cc;
    text-align: center;
    font-size: 10px;
    padding: 5px;
    border-top: 1px solid var(--ons-border);
    flex-shrink: 0;
}

/* ========== LEAD FORM (in-chat) ========== */
.ons-chatbot__lead-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    background: #fff;
    margin: 10px 12px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}
.ons-chatbot__lead-form h4 {
    margin: 0 0 4px;
    font-size: 14px;
    color: var(--ons-fg);
}
.ons-chatbot__lead-form input,
.ons-chatbot__lead-form textarea {
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
}
.ons-chatbot__lead-form input:focus,
.ons-chatbot__lead-form textarea:focus {
    border-color: var(--ons-accent);
}
.ons-chatbot__lead-form button[type="submit"] {
    background: var(--ons-accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 9px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s;
    width: 100%;
}
.ons-chatbot__lead-form button[type="submit"]:hover {
    background: var(--ons-accent-hover);
}

/* ========== EMOJI PICKER ========== */
.ons-chatbot__emoji-picker {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    width: 100%;
    max-width: 356px;
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
}
.ons-chatbot__emoji-item {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    background: none;
    transition: background 0.1s;
}
.ons-chatbot__emoji-item:hover { background: #f3f4f6; }

/* ================================================================
   RESPONSIVE — Mobile (< 600px): floating panel
   ================================================================ */
@media (max-width: 600px) {
    .ons-chatbot__window {
        position: fixed;
        left: 10px; right: 10px; bottom: 76px; top: auto;
        width: auto;
        height: 460px;
        max-width: 400px;
        max-height: calc(100vh - 96px);
        border-radius: 20px;
        box-shadow: 0 20px 60px -10px rgba(0,0,0,0.25), 0 8px 24px -4px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
    }

    .ons-chatbot__header { padding: 12px 14px; }
    .ons-chatbot__header-left { gap: 9px; }
    .ons-chatbot__header-title { font-size: 14px; }
    .ons-chatbot__header-avatar { width: 36px; height: 36px; }
    .ons-chatbot__header-status { font-size: 10px; }
    .ons-chatbot__header-actions { gap: 4px; }
    .ons-chatbot__header-btn { width: 32px; height: 32px; }

    /* Pre-chat */
    .ons-chatbot__pre-chat { padding: 16px 16px; justify-content: flex-start; }
    .ons-chatbot__pre-chat-content { max-width: 100%; }
    .ons-chatbot__pre-chat-avatar { width: 56px; height: 56px; margin-bottom: 10px; }
    .ons-chatbot__pre-chat-avatar svg { width: 32px; height: 32px; }
    .ons-chatbot__pre-chat-title { font-size: 18px; margin-bottom: 3px; }
    .ons-chatbot__pre-chat-desc { font-size: 12px; margin-bottom: 14px; }
    .ons-chatbot__pre-chat-form { gap: 7px; }
    .ons-chatbot__field { height: 42px; min-height: 42px; padding: 0 12px; gap: 8px; }
    .ons-chatbot__field svg { flex-shrink: 0; }
    .ons-chatbot__field input {
        font-size: 16px;
        padding: 0;
        min-width: 0; width: 100%;
    }
    .ons-chatbot__pre-chat-error { font-size: 12px; }
    .ons-chatbot__pre-chat-submit { padding: 11px; font-size: 14px; height: 42px; }
    .ons-chatbot__pre-chat-note { font-size: 9px; margin-top: 4px; }

    /* Chat */
    .ons-chatbot__messages { padding: 10px; }
    .ons-chatbot__msg { max-width: 85%; }
    .ons-chatbot__bubble { font-size: 14px; padding: 10px 13px; }
    .ons-chatbot__msg-time { font-size: 10px; }

    /* Quick actions */
    .ons-chatbot__quick-actions {
        grid-template-columns: 1fr 1fr;
        gap: 5px; padding: 8px 10px;
    }
    .ons-chatbot__quick-actions--scroll {
        grid-template-columns: 1fr;
        max-height: 200px;
        overflow-y: auto;
    }
    .ons-chatbot__quick-btn {
        padding: 8px 10px; font-size: 11px; gap: 5px;
        border-radius: 10px;
    }
    .ons-chatbot__quick-btn--product { padding: 8px 10px; gap: 8px; }
    .ons-chatbot__quick-btn--product .ons-chatbot__quick-btn-img { width: 36px; height: 36px; }
    .ons-chatbot__quick-btn-icon { width: 36px; height: 36px; }
    .ons-chatbot__quick-btn-text { font-size: 11.5px; }

    /* Input */
    .ons-chatbot__input { padding: 8px 10px; gap: 6px; }
    .ons-chatbot__input textarea {
        font-size: 16px;
        padding: 10px 14px;
        border-radius: 20px;
    }
    .ons-chatbot__emoji-btn { width: 34px; height: 34px; }
    .ons-chatbot__send-btn { width: 38px; height: 38px; }

    /* Emoji picker */
    .ons-chatbot__emoji-picker { max-height: 140px; max-width: calc(100% - 20px); margin: 0 auto; }
    .ons-chatbot__emoji-item { width: 34px; height: 34px; font-size: 17px; }

    /* Product cards (AI-suggested, small inline) */
    .ons-chatbot__product-card { padding: 8px 10px; gap: 8px; }
    .ons-chatbot__product-img, .ons-chatbot__product-icon { width: 44px; height: 44px; }
    .ons-chatbot__product-name { font-size: 12px; }
    .ons-chatbot__product-btn { padding: 5px 10px; font-size: 10px; }
    /* Product detail card (browsing) */
    .ons-chatbot__product-detail-card { max-width: 240px; }
    .ons-chatbot__product-detail-img { height: 130px; }
    .ons-chatbot__product-detail-name { font-size: 13px; }
    .ons-chatbot__product-detail-price { font-size: 14px; }
    .ons-chatbot__product-detail-desc { font-size: 11px; margin-bottom: 8px; }
    .ons-chatbot__product-detail-atc { padding: 7px 10px; font-size: 11px; }
    .ons-chatbot__product-detail-link { font-size: 11px; }
    /* Product back bar */
    .ons-chatbot__product-back-bar { padding: 4px 10px; }
    .ons-chatbot__product-back-bar-btn { padding: 5px 10px; font-size: 11px; }
    /* Service link card */
    .ons-chatbot__service-link-card { padding: 10px; gap: 10px; }
    .ons-chatbot__service-link-icon { width: 38px; height: 38px; font-size: 18px; }
    .ons-chatbot__service-link-name { font-size: 13px; }
    .ons-chatbot__service-link-btn { padding: 5px 12px; font-size: 10px; }
    .ons-chatbot__cart-link { padding: 5px 12px; font-size: 11px; }
    /* Services panel */
    .ons-chatbot__services-panel { max-height: 220px; padding: 10px; }
    .ons-chatbot__service-item { padding: 8px 10px; gap: 10px; }
    .ons-chatbot__service-icon { width: 34px; height: 34px; font-size: 16px; }
    .ons-chatbot__service-name { font-size: 12px; }
    /* Quick action button image */
    .ons-chatbot__quick-btn-img { width: 18px; height: 18px; }
}

/* ================================================================
   RESPONSIVE — Tablet (600px – 768px): slightly wider, taller
   ================================================================ */
@media (min-width: 601px) and (max-width: 768px) {
    .ons-chatbot__window {
        width: 340px !important;
        height: 520px !important;
    }
}

/* ================================================================
   RESPONSIVE — Landscape on small screens
   ================================================================ */
@media (max-width: 600px) and (orientation: landscape) {
    .ons-chatbot__window {
        height: 360px;
        max-height: calc(100vh - 96px);
    }
    .ons-chatbot__header { padding: 10px 14px; }
    .ons-chatbot__pre-chat {
        padding: 12px 18px; justify-content: flex-start;
    }
    .ons-chatbot__pre-chat-avatar { width: 44px; height: 44px; margin-bottom: 8px; }
    .ons-chatbot__pre-chat-avatar svg { width: 26px; height: 26px; }
    .ons-chatbot__pre-chat-title { font-size: 16px; margin-bottom: 2px; }
    .ons-chatbot__pre-chat-desc { font-size: 12px; margin-bottom: 10px; }
    .ons-chatbot__pre-chat-form { gap: 6px; }
    .ons-chatbot__field { height: 38px; min-height: 38px; padding: 0 10px; gap: 8px; }
    .ons-chatbot__field input { font-size: 14px; padding: 0; }
    .ons-chatbot__pre-chat-submit { padding: 10px; font-size: 14px; height: 38px; }
    .ons-chatbot__pre-chat-note { display: none; }
    .ons-chatbot__quick-actions { gap: 4px; padding: 6px 8px; }
    .ons-chatbot__quick-actions--scroll { max-height: 140px; }
    .ons-chatbot__quick-btn { padding: 6px 8px; font-size: 10px; gap: 4px; }
    .ons-chatbot__quick-btn--product .ons-chatbot__quick-btn-img { width: 32px; height: 32px; }
    .ons-chatbot__quick-btn-icon { width: 32px; height: 32px; font-size: 14px; }
    .ons-chatbot__quick-btn svg { width: 14px; height: 14px; }
}

/* ================================================================
   RESPONSIVE — Very small screens (< 360px)
   ================================================================ */
@media (max-width: 360px) {
    .ons-chatbot__window { height: 420px; }
    .ons-chatbot__pre-chat { padding: 16px 14px; }
    .ons-chatbot__pre-chat-avatar { width: 56px; height: 56px; }
    .ons-chatbot__pre-chat-avatar svg { width: 34px; height: 34px; }
    .ons-chatbot__pre-chat-title { font-size: 18px; }
    .ons-chatbot__pre-chat-desc { font-size: 12px; }
    .ons-chatbot__field { height: 40px; min-height: 40px; padding: 0 10px; }
    .ons-chatbot__field input { font-size: 15px; padding: 0; }
    .ons-chatbot__pre-chat-submit { padding: 11px; font-size: 14px; height: 40px; }
    .ons-chatbot__quick-btn span { font-size: 10px; }
    .ons-chatbot__header-avatar { width: 32px; height: 32px; }
    .ons-chatbot__header-title { font-size: 13px; }
    .ons-chatbot__header-status { font-size: 9px; }
}

/* ========== INLINE LAUNCHER (shortcode) ========== */
.ons-chatbot-inline-launcher {
    background: var(--ons-accent, #6c5ce7);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    cursor: pointer;
}
.ons-chatbot-inline-launcher:hover { opacity: 0.92; }

/* ========== PRICING SHORTCODE STYLES ========== */
.ons-pricing-wrap { max-width: 1200px; margin: 0 auto; padding: 20px; }
.ons-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.ons-pricing-card {
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}
.ons-pricing-card--popular {
    border-color: #6c5ce7;
    border-width: 2px;
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(108, 92, 231, 0.18);
}
.ons-pricing-card--active { border-color: #10b981; }
.ons-pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #6c5ce7;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 999px;
}
.ons-pricing-card__head h3 { margin: 0; font-size: 22px; color: #111827; }
.ons-pricing-card__subtitle { color: #6b7280; margin: 4px 0 14px; font-size: 14px; }
.ons-pricing-card__price { font-size: 36px; font-weight: 800; color: #111827; line-height: 1; }
.ons-pricing-card__price .cur { font-size: 22px; vertical-align: top; }
.ons-pricing-card__price .cycle { font-size: 14px; font-weight: 400; color: #6b7280; }
.ons-pricing-card__desc { color: #4b5563; margin: 14px 0; font-size: 14px; min-height: 40px; }
.ons-pricing-card__features,
.ons-pricing-card__exclusions { list-style: none; padding: 0; margin: 14px 0 0; font-size: 13px; }
.ons-pricing-card__features li,
.ons-pricing-card__exclusions li { padding: 6px 0; display: flex; align-items: center; gap: 8px; }
.ons-pricing-card__features .dashicons { color: #10b981; }
.ons-pricing-card__exclusions .dashicons { color: #ef4444; }
.ons-pricing-card__exclusions { color: #6b7280; }
.ons-pricing-card__cta { margin-top: auto; padding-top: 18px; }
.ons-pricing-btn {
    display: block;
    width: 100%;
    background: #6c5ce7;
    color: #fff;
    text-align: center;
    text-decoration: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 14px;
    letter-spacing: 0.04em;
}
.ons-pricing-btn:hover { background: #5b4bd5; }
.ons-pricing-btn--disabled {
    background: #e5e7eb !important;
    color: #6b7280 !important;
    cursor: not-allowed;
}

/* ========== AI PACK FEATURES (v3.4.0) ========== */

/* AI Badge in header */
.ons-chatbot__ai-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-left: 6px;
    vertical-align: middle;
    line-height: 1.4;
}

/* Export button in header */
.ons-chatbot__export-btn { position: relative; }
.ons-chatbot__export-btn svg { width: 16px; height: 16px; }
.ons-chatbot__export-menu {
    position: absolute;
    right: 0;
    top: 40px;
    background: #fff;
    border: 1px solid var(--ons-border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 4px;
    z-index: 10;
    min-width: 150px;
}
.ons-chatbot__export-menu button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    border: none;
    background: none;
    font-size: 12px;
    color: var(--ons-fg);
    cursor: pointer;
    border-radius: 6px;
    font-family: inherit;
    transition: background 0.1s;
}
.ons-chatbot__export-menu button:hover { background: var(--ons-accent-light); }

/* Intent detection badge */
.ons-chatbot__intent-badge {
    display: inline-block;
    background: var(--ons-accent-light);
    color: var(--ons-accent);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 999px;
    margin: 4px auto 8px;
    text-align: center;
    animation: ons-fade-in 0.3s ease;
}

/* Voice message button */
.ons-chatbot__voice-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    color: var(--ons-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
    padding: 0;
}
.ons-chatbot__voice-btn:hover { background: var(--ons-accent-light); color: var(--ons-accent); }
.ons-chatbot__voice-btn--recording {
    background: #ef4444 !important;
    color: #fff !important;
    animation: ons-pulse-voice 1s ease infinite;
}
@keyframes ons-pulse-voice {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

/* Product recommendation card (AI Pack) */
.ons-chatbot__reco-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px;
    margin-top: 8px;
}
.ons-chatbot__reco-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--ons-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.ons-chatbot__reco-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ons-chatbot__reco-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #fff;
    border: 1px solid #f0f0f5;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    text-decoration: none;
    color: inherit;
}
.ons-chatbot__reco-item:hover {
    border-color: var(--ons-accent);
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.1);
}
.ons-chatbot__reco-img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
    background: #f3f4f6;
    flex-shrink: 0;
}
.ons-chatbot__reco-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.ons-chatbot__reco-info strong {
    font-size: 12px;
    color: var(--ons-fg);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ons-chatbot__reco-price {
    font-size: 11px;
    color: var(--ons-accent);
    font-weight: 600;
    margin-top: 1px;
}

/* Mobile responsive for AI Pack */
@media (max-width: 480px) {
    .ons-chatbot__ai-badge { font-size: 8px; padding: 1px 5px; }
    .ons-chatbot__voice-btn { width: 34px; height: 34px; }
    .ons-chatbot__export-btn svg { width: 14px; height: 14px; }
    .ons-chatbot__export-menu { right: 4px; top: 36px; }
    .ons-chatbot__export-menu button { font-size: 11px; padding: 6px 10px; }
    .ons-chatbot__intent-badge { font-size: 10px; padding: 3px 10px; }
    .ons-chatbot__reco-card { padding: 8px; gap: 6px; }
    .ons-chatbot__reco-item { padding: 6px; gap: 6px; }
    .ons-chatbot__reco-img { width: 36px; height: 36px; border-radius: 6px; }
    .ons-chatbot__reco-info strong { font-size: 11px; }
    .ons-chatbot__reco-price { font-size: 10px; }
}