/* Supersports Theme - Nunito Sans Font */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700;800&display=swap');

:root {
  /* Supersports Theme Colors */
  --main-color: #000000;
  --main-dark: #000000;
  --accent-color: #334fb4;
  --accent-light: #4a66c7;
  --accent-dark: #263d8f;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --info-color: #334fb4;
  --border-radius: 0px;
  --border-radius-small: 0px;
  --border-radius-pill: 40px;
  --transition: all 0.2s ease;
  --shadow-light: none;
  --shadow-medium: none;
  --shadow-heavy: 0 4px 12px rgba(0, 0, 0, 0.15);
  --text-primary: #001A2D;
  --text-secondary: rgba(0, 0, 0, 0.6);
  --text-light: rgba(0, 0, 0, 0.45);
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --border-color: rgba(0, 0, 0, 0.1);
  /* Supersports Font */
  --font-family: "Nunito Sans", "NotoSansThai", sans-serif;
}

/* Override any inherited styles from parent elements */
#ai-chat-widget-root {
  height: auto !important;
  padding: 0 !important;
  min-height: auto !important;
  position: static !important;
  display: block !important;
  flex-direction: unset !important;
  justify-content: unset !important;
  align-items: unset !important;
  color: unset !important;
  text-align: unset !important;
}

#ai-chat-header-main{
    display: none !important;
}

/* body {
    background-image: url("static/img.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: 50%;
    background-color: #fff;
} */

table:not([class]) td, table:not([class]) th{
    border: 0;
}

#login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}

.ai-chatbot-login-box {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow-heavy);
    font-family: var(--font-family);
}

body.authenticated #login-overlay {
    display: none;
}

/* FAB Button */
#ai-chat-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--main-color);
    color: #fff;
    font-size: 24px;
    border: none;
    box-shadow: var(--shadow-heavy);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 2px solid #fff;
}

/* Embedded mode styles */
.ai-chatbot-embedded-mode #ai-chat-fab {
    display: none;
}

.ai-chatbot-embedded-mode #ai-chat-window {
    position: static;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: var(--border-radius);
    box-shadow: none;
    border: 1px solid var(--border-color);
}

.ai-chatbot-embedded-mode {
    height: 70vh;
    width: 100%;
}

.ai-chatbot-embedded-mode #ai-chat-sidebar {
    border-radius: var(--border-radius);
}

.ai-chatbot-embedded-mode #ai-chat-content {
    border-radius: var(--border-radius);
}

#ai-chat-fab:hover {
    background: var(--main-dark);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 20px 40px rgba(0, 26, 45, 0.4);
}

#ai-chat-fab:active {
    transform: translateY(-2px) scale(1.05);
}


/* Main Header */
#ai-chat-header-main {
    background: var(--bg-primary);
    padding: 20px 40px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: none;
    position: relative;
    z-index: 10;
}

#ai-chat-header-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    text-align: center;
    flex: 1;
    letter-spacing: 0.06rem;
}

#ai-chat-header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    position: absolute;
    right: 40px;
}

/* Chat Window - Mobile First (Full Screen) */
#ai-chat-window {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    background: var(--bg-primary);
    border-radius: 0;
    box-shadow: none;
    z-index: 10000;
    overflow: hidden;
    font-family: var(--font-family);
    transition: var(--transition);
    border: none;
}

#ai-chat-window.show {
    display: flex;
}

/* Main Content Container */
#ai-chat-main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
    max-width: 1440px;
    margin: auto;
    min-height: 500px;
}

/* Sidebar */
#ai-chat-sidebar {
    width: 300px;
    background-color: white;
    /* background: var(--bg-secondary); */
    /* border-right: 1px solid var(--border-color); */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition);
    height: inherit;
}

.ai-chatbot-sidebar-header {
    padding: 0 10px;
    border-bottom: 1px solid rgba(166, 166, 166, 1);
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    box-sizing: border-box;
    gap: 6px;
}
.ai-chatbot-sidebar-ico-in{
    width: 20px;
    height: 20px;
}

.ai-chatbot-sidebar-title {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 20px;
    text-transform: uppercase;
    margin: 0;
    padding: 20px 0px;
    background: var(--bg-primary);
}


.ai-chatbot-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.ai-chatbot-new-session-btn {
    width: 100%;
    padding: 14px;
    background: #001a2d;
    color: #ffffff;
    border: 1px solid var(--main-color);
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: var(--transition);
    box-shadow: none;
    font-family: var(--font-family);
}

.ai-chatbot-new-session-btn:hover {
    background: #333333;
    border-color: #333333;
    transform: none;
    box-shadow: none;
}

.ai-chatbot-session-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
    background: var(--bg-primary);
}

.ai-chatbot-session-item {
    /* padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.4;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px; */

    position: relative;
    box-shadow: 4px 4px 10px 0px rgba(0, 0, 0, 0.1);
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    gap: 2px;
    flex-direction: column;
    align-items: flex-start;
}

.ai-chatbot-session-item .session-title {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
    letter-spacing: 0.5px;
}
.ai-chatbot-session-item .session-meta .svg-ico-time{
    padding-top: 1px;
}
.ai-chatbot-session-item .session-meta {
    font-family: var(--font-family);
    font-size: 12px;
    line-height: 20px;
    font-weight: 400;
    letter-spacing: 0.5px;
    display: flex;
    gap: 5px;
}
.ai-chatbot-session-item:hover {
    background-color: var(--bg-secondary);
}

.ai-chatbot-session-item.active {
    background-color: var(--bg-secondary);
    border-left: 3px solid rgba(0, 26, 45, 1);
}

.ai-chatbot-session-item:last-child {
    border-bottom: none;
}

.ai-chatbot-session-item-title {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-chatbot-session-item-date {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
}



.ai-chatbot-session-title {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 4px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-chatbot-session-meta {
    font-size: 12px;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-chatbot-session-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: none;
    gap: 4px;
}

.ai-chatbot-session-item:hover .ai-chatbot-session-actions {
    display: flex;
}

.ai-chatbot-session-action-btn {
    background: none;
    border: none;
    font-size: 12px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
    color: #666;
}

.ai-chatbot-session-action-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.ai-chatbot-session-action-btn.delete:hover {
    background: #ffe6e6;
    color: #d32f2f;
}

/* Chat Content */
#ai-chat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    height: inherit;
    overflow: auto;
}

/* Right Sidebar */
#ai-chat-right-sidebar {
    width: 300px;
    background-color: white;
    height: inherit;
    overflow: scroll;
    /* background: var(--bg-secondary); */
    /* border-left: 1px solid var(--border-color); */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ai-chatbot-right-sidebar-header {
    padding: 20px 20px 20px 0px;
    border-bottom: 1px solid rgba(166, 166, 166, 1);
    /* border-bottom: 1px solid var(--border-color); */
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    gap: 5px;
}
.ai-chatbot-right-sidebar-ico svg{
    width: 20px;
    height: 20px;
}

.ai-chatbot-right-sidebar-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin: 0;
    font-family: var(--font-family);
}

.ai-chatbot-right-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 20px 20px 0px;
}

.ai-chatbot-trending-item {
    box-shadow: 4px 4px 10px 0px rgba(0, 0, 0, 0.1);
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    /* border-radius: var(--border-radius); */
    margin-bottom: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-chatbot-trending-item:hover {
    /* background: var(--bg-secondary); */
    border-color: var(--main-color);
    transform: none;
    /* box-shadow: none; */
}

.ai-chatbot-trending-item-text {
    flex: 1;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    font-weight: 400;
    font-family: var(--font-family);
}
.ai-chatbot-trending-item-text-no-text{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 25% 0;
}
.ai-chatbot-trending-item-text-no-header-text{
    text-align: center;
    font-weight: 700;
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 30px;
    letter-spacing: 0.5px;
    color: rgba(0, 26, 45, 1);
    margin-top: 15px;
}

.dark .ai-chatbot-trending-item-text {
    color: white;
}

.ai-chatbot-trending-item-icon {
    color: var(--main-color);
    font-size: 18px;
    font-weight: bold;
}

/* Collapsed Sidebar */
#ai-chat-window.sidebar-collapsed #ai-chat-sidebar {
    width: 0;
    overflow: hidden;
    border-right: none;
}

#ai-chat-window.sidebar-collapsed #ai-chat-content {
    width: 100%;
}

/* Header */
#ai-chat-header {
    background: var(--main-color);
    color: white;
    padding: 16px 20px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 60px;
    box-sizing: border-box;
}

#session-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 12px;
}

#ai-chat-header span:last-child {
    flex-shrink: 0;
    display: flex;
    gap: 6px;
}

#ai-chat-header button {
    width: 36px;
    height: 36px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
    flex-shrink: 0;
}

#ai-chat-header button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* AI Assistant Profile */
.ai-assistant-profile {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 40px;
    background: var(--bg-primary);
    /* border-bottom: 1px solid var(--border-color); */
    text-align: center;
}

.ai-assistant-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--main-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: none;
    overflow: hidden;
    position: relative;
}

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

.ai-assistant-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--main-color);
    border-radius: 50%;
}

.ai-assistant-info h3 {
    margin: 0 0 4px 0;
    font-size: 20px;
    line-height: 20px;
    letter-spacing: 0.5px;
    font-weight: 500;
    color: var(--text-primary);
    font-family: var(--font-family);
}

.ai-assistant-info p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 300px;
    font-family: var(--font-family);
}

/* Body */
#ai-chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#ai-chat-body.ai-chat-empty-state-mode {
    justify-content: flex-end;
}

.ai-chatbot-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 34px;
}

.ai-chatbot-empty-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.ai-chatbot-empty-star {
    width: 51px;
    height: 51px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-chatbot-empty-title {
    margin: 0;
    text-align: center;
    font-size: 24px;
    line-height: 30px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #a6a6ab;
}

.ai-chatbot-empty-bot-row {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
}

.ai-chatbot-empty-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    margin-top: 6px;
    background: #001a2d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-chatbot-empty-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ai-chatbot-empty-avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #001a2d;
    color: #ffffff;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-chatbot-empty-bot-card {
    background: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 10px;
    padding: 10px;
    font-size: 14px;
    line-height: 1.45;
    color: #001a2d;
    letter-spacing: 0.5px;
    font-weight: 400;
    font-family: var(--font-family);
}

.ai-chatbot-empty-prompts {
    width: 100%;
    max-width: 600px;
    gap: 15px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.ai-chatbot-empty-prompt {
    border: 1px solid #55ff06;
    border-radius: 10px;
    background: #ffffff;
    color: #001a2d;
    font-family: var(--font-family);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 400;
    letter-spacing: 0.3px;
    padding: 12px 12px 10px 12px;
    width: auto;
    white-space: normal;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
}

.ai-chatbot-empty-prompt:hover {
    background: #f8fff3;
}

.ai-chatbot-ai-msg {
    max-width: 85%;
    margin: 0;
    padding: 12px 16px;
    border-radius: 4px;
    /* line-height: 1.5; */
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 20px;
    box-shadow: none;
    word-wrap: break-word;
    white-space: normal;
    transition: var(--transition);
    font-family: var(--font-family);
}

.ai-chatbot-ai-msg.ai-user {
    background: rgba(85, 255, 6, 0.2);
    /* background: var(--main-color); */
    color: rgba(0, 26, 45, 1) !important;
    align-self: flex-end;
    border-radius: 10px;
    border-bottom-right-radius: 0px;
    box-shadow: none;
    border: 1px solid rgba(85, 255, 6, 0.2);
    max-width: 90%;
}

.ai-chatbot-ai-msg.ai-user p,
.ai-chatbot-ai-msg.ai-user div,
.ai-chatbot-ai-msg.ai-user span {
    color: #ffffff !important;
}

/* Explicitly exclude input field from user message styling */
#ai-chat-input,
#ai-chat-input-bar,
#ai-chat-input-bar * {
    color: #2d3748 !important;
}

/* Message wrapper for assistant messages */
.ai-chatbot-ai-msg-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

.ai-chatbot-ai-bot {
    /* background: var(--bg-secondary); */
    background-color: white;
    color: var(--text-primary);
    align-self: flex-start;
    border-radius: 10px;
    border-top-left-radius: 0px;
    border: 1px solid #D8D7D7;
    /* border: 1px solid var(--border-color); */
    box-shadow: none;
    padding: 10px;
    max-width: 90%;
}
.ai-chatbot-ai-bot p{
    margin: 0 0 8px 0;
}
.ai-chatbot-ai-bot p:last-child{
    margin-bottom: 0;
}

.ai-chatbot-ai-msg-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--main-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    margin-top: 4px;
}

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

.ai-chatbot-ai-msg-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--main-color);
    border-radius: 50%;
    font-size: 14px;
}

/* Typing Indicator / Loading State */
.ai-chatbot-typing-indicator {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

.ai-chatbot-typing-indicator .ai-chatbot-ai-msg-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--main-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.ai-chatbot-typing-indicator .ai-chatbot-ai-msg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.ai-chatbot-typing-bubble {
    background-color: white;
    border: 1px solid #D8D7D7;
    border-radius: 10px;
    border-top-left-radius: 0;
    box-shadow: none;
    padding: 16px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90%;
}

.ai-chatbot-loading-dots {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ai-chatbot-loading-dot {
    width: 8px;
    height: 8px;
    background: var(--text-light);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.ai-chatbot-loading-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.ai-chatbot-loading-dot:nth-child(2) {
    animation-delay: -0.16s;
}

.ai-chatbot-loading-dot:nth-child(3) {
    animation-delay: 0s;
}

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Carousel */
.ai-chatbot-ai-carousel {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 0px;
    box-sizing: unset;
    /* margin: 16px 0; */
    min-height: 278px;
    background: transparent;
    box-shadow: none;
    align-self: stretch;
    max-width: 100%;
    scroll-behavior: smooth;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(130, 130, 130, 0.7) transparent;
}
.comparison-table-container table{
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 20px;
    word-wrap: break-word;
    font-family: var(--font-family);
    min-width: 400px;
}
.order-outer-html{
    background:#ffffff;
    border-radius:12px;
    padding:20px;
    box-shadow:0 2px 8px rgba(0,0,0,0.1);
    margin:10px 0;
    white-space: normal;
}
.order-outer-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:15px;
    margin-bottom:20px;
}
.order-outer-title{
    margin:0 0 15px 0;
    color:#001a2d;
    border-bottom:2px solid #001a2d;
    padding-bottom:10px;
}
.order-meta-row{
    margin:5px 0;
}
.order-address-label{
    margin:5px 0 10px 0;
}
.order-status-pill{
    display:inline-block;
    padding:3px 8px;
    border-radius:4px;
    font-size:12px;
    line-height:1.4;
}
.order-status-pill--payment{
    background:#fef3c7;
}
.order-status-pill--fulfillment{
    background:#dbeafe;
}
.order-status-pill--return{
    background:#fecaca;
}
.order-total-value{
    font-size:18px;
    font-weight:600;
    color:#10b981;
}
.order-section{
    margin-bottom:20px;
}
.order-address{
    margin:0;
    padding:10px;
    background:#f8f9fa;
    border-radius:6px;
    color:#666;
}
.order-section-title{
    margin:0 0 10px 0;
    color:#001a2d;
}
.order-table{
    width:100%;
    border-collapse:collapse;
    border:1px solid #e5e5e5;
    border-radius:8px;
    overflow:hidden;
}
.order-table-head{
    background:#f8f9fa;
}
.order-table-row{
    border-bottom:1px solid #e5e5e5;
}
.order-table-row:last-child{
    border-bottom:none;
}
.order-table-cell{
    padding:12px;
}
.order-table-cell--divider{
    border-right:1px solid #e5e5e5;
}
.order-table-cell--center{
    text-align:center;
}
.order-table-cell--right{
    text-align:right;
}
.order-table-cell--image{
    width:60px;
}
.order-table-cell--qty{
    width:80px;
}
.order-table-cell--price{
    width:100px;
}
.order-item-image{
    width:50px;
    height:50px;
    object-fit:cover;
    border-radius:6px;
    border:1px solid #e5e5e5;
}
.order-item-variant{
    font-size:11px;
    color:#888;
}
.order-item-sku{
    font-size:11px;
    color:#aaa;
}
.order-tracking-card{
    margin-top:10px;
    padding:10px;
    background:#f0f9ff;
    border-radius:8px;
    border-left:3px solid #3b82f6;
}
.order-tracking-link{
    color:#3b82f6;
    text-decoration:none;
}
.order-muted{
    color:#666;
}

.ai-chatbot-ai-msg.ai-chatbot-ai-bot ul li{
    white-space: pre-line;
    margin-bottom: 5px;
}

.ai-chatbot-ai-carousel::-webkit-scrollbar {
    height: 8px;
}

.ai-chatbot-ai-carousel::-webkit-scrollbar-track {
    background: transparent;
}

.ai-chatbot-ai-carousel::-webkit-scrollbar-thumb {
    background: rgba(130, 130, 130, 0.7);
    border-radius: 999px;
}

.ai-chatbot-ai-carousel::-webkit-scrollbar-thumb:hover {
    background: rgba(95, 95, 95, 0.85);
}
.img-full-outer{
    width: 140px;
    height: 120px;
    overflow: hidden;
    max-height: 120px;
    min-height: 120px;
}
.ai-chatbot-ai-carousel-card .card-img-top{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.ai-chatbot-ai-carousel-card:first-child {
    margin-left: 50px;
}
.ai-chatbot-ai-carousel-card {
    min-width: 145px;
    /* flex: 0 0 320px; */
    background: var(--bg-primary);
    border: 1px solid rgba(239, 239, 239, 1);
    /* border-radius: var(--border-radius); */
    overflow: hidden;
    box-shadow: 4px 4px 10px 0px rgba(0, 0, 0, 0.1);
    /* margin-right: 16px; */
    /* margin-bottom: 16px; */
    transition: var(--transition);
    position: relative;
    display: flex;
    /* flex-direction: row; */
    height: max-content !important;
    flex-direction: column;
    height: auto;
    max-width: 145px;
    border-radius: 10px;
    align-items: center;
    padding: 10px;
}

.ai-chatbot-ai-carousel-card:hover {
    transform: none;
    /* box-shadow: none; */
    border-color: var(--main-color);
}

.ai-carousel-card img {
    width: 140px;
    height: 180px;
    object-fit: cover;
    background: var(--bg-secondary);
    transition: var(--transition);
    flex-shrink: 0;
}

/* Make "No Image" placeholder smaller to not cover product details */
.ai-carousel-card img[src*="data:image/svg+xml"] {
    height: 100px;
    width: 100px;
}

/* Fix card-img-top class for "No Image" placeholders */
.card-img-top[src*="data:image/svg+xml"] {
    /* height: 100px !important;
    width: 100px !important; */
}

.ai-chatbot-ai-carousel-card:hover .ai-carousel-card img {
    transform: scale(1.02);
}

.ai-carousel-card div.card-body {
    padding: 20px 16px;
    font-size: 14px;
    background: var(--bg-primary);
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-left: 5px;
    font-family: var(--font-family);
}

.ai-chatbot-ai-carousel-card .card-title {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.3;
    margin-bottom: 8px;
}

.ai-chatbot-ai-carousel-card .brand-name {
    font-weight: 700;
    color: rgba(0, 26, 45, 1);
    font-size: 12px;
    /* line-height: 20px; */
    letter-spacing: 0.5px;
    /* margin-bottom: 6px; */
    text-transform: uppercase;
    /* letter-spacing: 0.06rem; */

    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 20px;
    max-height: 16px;
}

.ai-chatbot-ai-carousel-card .product-name {
    font-weight: 400;
    color: rgba(0, 26, 45, 1);
    font-size: 12px;
    line-height: 20px;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ai-chatbot-ai-carousel-card .price-container {
    /* margin-bottom: 20px; */
}

.ai-chatbot-ai-carousel-card .current-price {
    font-weight: 700;
    color: rgba(0, 26, 45, 1);
    font-size: 13px;
    /* margin-bottom: 6px; */
    line-height: 22px;
    letter-spacing: 0.5px;
}

.ai-chatbot-ai-carousel-card .original-price {
    font-weight: 400;
    color: rgba(166, 166, 166, 1);
    font-size: 13px;
    line-height: 22px;
    letter-spacing: 0.5px;
    text-decoration: line-through;
}

.card-body {
    margin-top: 10px;
}
.arrow-mobile-history{
    display: none;
}

.ai-chatbot-ai-carousel-card .discount-badge {
    color: rgba(208, 19, 69, 1);
    font-weight: 700;
    font-size: 13px;
    line-height: 22px;
    letter-spacing: 0.5px;
}
.to-cart-container{
    display: flex;
    flex-direction: column;
}

.ai-chatbot-ai-carousel-card .view-button {
    background: rgba(0, 26, 45, 1);
    color: #ffffff;
    border: 1px solid rgba(0, 26, 45, 1);
    padding: 4px 16px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06rem;
    transition: var(--transition);
    box-shadow: none;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin-top: 8px;
    cursor: pointer;
    line-height: 20px;
    letter-spacing: 0px;
    font-family: var(--font-family);
}

.ai-chatbot-ai-carousel-card .buy-now-btn {
    background-color: rgba(85, 255, 6, 1);
    color: rgba(0, 26, 45, 1);
    border: 1px solid rgba(85, 255, 6, 1);
}

/* Voucher Carousel */
.ai-chatbot-voucher-carousel {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 8px 0 16px 0;
    min-height: 230px;
    background: transparent;
    align-self: stretch;
    max-width: 100%;
    scroll-behavior: smooth;
}

.ai-chatbot-voucher-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    width: 140px;
    min-width: 140px;
    height: 208px;
    background: #FFFFFF;
    border: 1px solid #EFEFEF;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    flex-shrink: 0;
    overflow: hidden;
}

.ai-chatbot-voucher-card:first-child {
    margin-left: 50px;
}

/* Green header section */
.voucher-header {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
    gap: 5px;
    width: 100%;
    height: 71px;
    background: #55FF06;
    border-radius: 9px 9px 0 0;
}

.voucher-coupon-icon {
    flex: none;
}

.voucher-code-box {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 120px;
    height: 30px;
    border: 1px solid #55FF06;
    overflow: hidden;
}

.voucher-code {
    color: #001A2D;
    font-weight: 700;
    font-size: 16px;
    line-height: 30px;
    font-family: var(--font-family);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.5px;
}

/* Detail section */
.voucher-detail {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
    gap: 5px;
    width: 100%;
    height: 142px;
    box-sizing: border-box;
}

.voucher-value {
    color: #18273D;
    font-weight: 700;
    font-size: 12px;
    line-height: 20px;
    font-family: var(--font-family);
    letter-spacing: 0.5px;
}

.voucher-condition {
    color: #001A2D;
    font-weight: 500;
    font-size: 10px;
    line-height: 14px;
    letter-spacing: 0.5px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 120px;
    font-family: var(--font-family);
}

.voucher-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 120px;
    margin-top: auto;
}

.voucher-copy-btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 4px 10px;
    gap: 10px;
    width: 120px;
    height: 28px;
    background: #001A2D;
    border: none;
    border-radius: 4px;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 12px;
    line-height: 20px;
    letter-spacing: 0.0015em;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    font-family: var(--font-family);
    box-sizing: border-box;
}

.voucher-copy-btn:hover {
    background: #0d2a40;
}

.voucher-copy-btn.voucher-copied {
    background: #55ff06;
    color: #001A2D;
}

.voucher-terms {
    width: 120px;
    font-weight: 400;
    font-size: 6px;
    line-height: 14px;
    text-align: center;
    text-decoration: underline;
    color: #8F8F8F;
    cursor: pointer;
    letter-spacing: 0.5px;
    font-family: var(--font-family);
}

/* Dark mode voucher carousel */
body.dark .ai-chatbot-voucher-card {
    background: #1e2a38;
    border-color: #333d4a;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
}

body.dark .voucher-header {
    background: #55FF06;
}

body.dark .voucher-code {
    color: #001A2D;
}

body.dark .voucher-value {
    color: #FFFFFF;
}

body.dark .voucher-condition {
    color: rgba(255, 255, 255, 0.6);
}

body.dark .voucher-copy-btn {
    background: #FFFFFF;
    color: #001A2D;
}

body.dark .voucher-copy-btn:hover {
    background: #e0e0e0;
}

body.dark .voucher-copy-btn.voucher-copied {
    background: #55ff06;
    color: #001A2D;
}

body.dark .voucher-terms {
    color: #666666;
}

/* Voucher T&C Popup */
.voucher-terms-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.voucher-terms-popup {
    background: #fff;
    border-radius: 12px;
    width: 85%;
    max-width: 340px;
    max-height: 70%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    font-family: var(--font-family);
}
.voucher-terms-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
}
.voucher-terms-popup-title {
    font-weight: 600;
    font-size: 14px;
    color: #001A2D;
}
.voucher-terms-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    padding: 0 4px;
    line-height: 1;
}
.voucher-terms-popup-body {
    padding: 16px;
    overflow-y: auto;
    font-size: 12px;
    line-height: 1.6;
    letter-spacing: 0.5px;
    color: #333;
}
.voucher-terms-code {
    font-weight: 600;
    font-size: 13px;
    color: #001A2D;
    margin-bottom: 4px;
}
.voucher-terms-title {
    color: #555;
    margin-bottom: 12px;
}
.voucher-terms-popup-body ul {
    margin: 0 0 12px 0;
    padding-left: 18px;
}
.voucher-terms-popup-body ul li {
    margin-bottom: 6px;
}
.voucher-terms-validity {
    font-size: 11px;
    color: #888;
    margin-bottom: 6px;
}
.voucher-terms-applies {
    font-size: 11px;
    color: #888;
}

/* Dark mode T&C popup */
body.dark .voucher-terms-popup {
    background: #1e2a38;
}
body.dark .voucher-terms-popup-header {
    border-bottom-color: #333d4a;
}
body.dark .voucher-terms-popup-title {
    color: #fff;
}
body.dark .voucher-terms-close {
    color: #aaa;
}
body.dark .voucher-terms-popup-body {
    color: #ccc;
}
body.dark .voucher-terms-code {
    color: #55FF06;
}
body.dark .voucher-terms-title {
    color: #aaa;
}
body.dark .voucher-terms-validity,
body.dark .voucher-terms-applies {
    color: #777;
}

/* Input */
#ai-chat-input-bar {
    display: flex;
    gap: 12px;
    margin: 20px 20px;
    background: var(--bg-primary);
    /* border-top: 1px solid var(--border-color); */
    flex-shrink: 0;
    box-shadow: none;
    position: relative;
    align-items: center;
}

#ai-chat-input-bar.is-disabled {
    opacity: 0.65;
    pointer-events: none;
}

#ai-chat-input {
    background-color: rgba(239, 239, 239, 1) !important;
    border-radius: 10px;
    border: 0 !important;
    font-weight: 400;
    font-size: 14px;
    color: rgba(0, 26, 45, 1) !important;

    flex: 1;
    padding: 12px 80px 12px 16px !important;
    outline: none;
    transition: var(--transition);
    font-family: var(--font-family);
}

#ai-chat-input,
#ai-chat-input *,
body:not(.dark) #ai-chat-input,
body:not(.dark) #ai-chat-input * {
    color: var(--text-primary) !important;
}

#ai-chat-input::placeholder {
    color: var(--text-light) !important;
}

#ai-chat-input:disabled {
    cursor: not-allowed;
}

#ai-chat-input:focus {
    border-color: var(--main-color);
    box-shadow: none;
    background: var(--bg-primary);
}

#ai-chat-clear-input {
    cursor: pointer;
    transition: var(--transition);
    height: 32px !important;
    width: 32px !important;
    border: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute !important;
    right: 42px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 6px !important;
    opacity: 0.5;
}

#ai-chat-clear-input:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.05) !important;
}

#ai-chat-clear-input:disabled,
#ai-chat-send:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

#ai-chat-send {
    cursor: pointer;
    transition: var(--transition);
    height: 36px !important;
    border: 0 !important;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute !important;
    right: 3px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10;
    font-family: var(--font-family);
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

#ai-chat-send,
#ai-chat-send * {
    color: #ffffff !important;
}

#ai-chat-send:hover {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

#ai-chat-send:active {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

/* Light/Dark Theme */
body.dark #ai-chat-window {
    background: #181920;
}

body.dark #ai-chat-body {
    background: #21222c;
}

body.dark #ai-chat-body.ai-chat-empty-state-mode {
    background: #2a2b31;
}

body.dark .ai-chatbot-empty-title {
    color: #9aa0aa;
}

body.dark .ai-chatbot-empty-bot-card {
    background: #30323a;
    border-color: #5e616d;
    color: #f0f3f8;
}

body.dark .ai-chatbot-empty-prompt {
    background: #24262c;
    color: #f0f3f8;
    border-color: #55ff06;
}

/* Dark Theme Styles */
body.dark {
    background: #1a1a1a;
    color: #ffffff;
}

body.dark #ai-chat-window {
    background: #2d2d2d;
    color: #ffffff;
}

body.dark #ai-chat-header-main {
    background: #3a3a3a;
    border-bottom: none;
}

body.dark #ai-chat-header-title {
    color: #ffffff;
}

body.dark #ai-chat-sidebar {
    background: #3a3a3a;
    border-right: 1px solid #4a4a4a;
}

body.dark .ai-chatbot-sidebar-header {
    background: #4a4a4a;
    border-bottom: 1px solid #5a5a5a;
}

body.dark .ai-chatbot-sidebar-title {
    color: #ffffff;
    background: #4a4a4a;
    border-bottom: 1px solid #34495e;
}

body.dark .ai-chatbot-session-list {
    background: #3a3a3a;
}

body.dark .ai-chatbot-session-item {
    color: #ffffff;
    border-bottom: none;
}

body.dark .ai-chatbot-session-item:hover {
    background-color: #4a4a4a;
}

body.dark .ai-chatbot-session-item.active {
    background-color: #4a5a6d;
    border-left: none;
}

body.dark .ai-chatbot-session-item-title {
    color: #ffffff;
}

body.dark .ai-chatbot-session-item-date {
    color: #cccccc;
}

/* Analysis classes */
.ai-chatbot-ai-comparison-analysis {
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px;
    margin: 10px 0;
}

.ai-chatbot-ai-guidance-analysis {
    background: #f0f8ff;
    border: 1px solid #b3d9ff;
    border-radius: 12px;
    padding: 20px;
    margin: 10px 0;
}

/* Hide all scrollbars */
/* ::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    background: transparent;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
}

::-webkit-scrollbar-corner {
    background: transparent;
} */

/* Firefox - hide scrollbars */
* {
    scrollbar-width: none;
}

/* Ensure scrolling still works */
#ai-chat-body,
.ai-chatbot-sidebar-content,
.ai-chatbot-right-sidebar-content {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

body.dark .ai-assistant-profile {
    background: #3a3a3a;
    border-bottom: none;
}

body.dark .ai-assistant-info h3 {
    color: #ffffff;
}

body.dark .ai-assistant-info p {
    color: #cccccc;
}

body.dark #ai-chat-body {
    background: #2d2d2d;
}

body.dark .ai-chatbot-ai-msg.ai-user {
    /* background: #4a5d4a; */
    color: #ffffff;
    border: none;
}

body.dark .ai-msg.ai-chatbot-ai-bot {
    background: #4a5a6d;
    color: #ffffff;
    border: none;
}

body.dark #ai-chat-right-sidebar {
    background: #3a3a3a;
    border-left: 1px solid #4a4a4a;
}

body.dark .ai-chatbot-right-sidebar-header {
    background: #4a4a4a;
    border-bottom: 1px solid #5a5a5a;
}

body.dark .ai-chatbot-right-sidebar-title {
    color: #ffffff;
}

body.dark .ai-chatbot-trending-item {
    background: #4a4a4a;
    border: none;
    color: #ffffff;
}

body.dark .ai-chatbot-trending-item:hover {
    background: #5a5a5a;
}

body.dark #ai-chat-input-bar {
    background: #3a3a3a;
    border-top: 1px solid #4a4a4a;
}

body.dark #ai-chat-input {
    background: #4a4a4a;
    color: #ffffff;
    border: none;
}

body.dark #ai-chat-input::placeholder {
    color: #aaaaaa;
}

body.dark #ai-chat-send {
    background: #2c3e50;
    color: #ffffff;
}

body.dark #ai-chat-send:hover {
    background: #34495e;
}

body.dark #ai-chat-clear-input svg path {
    fill: #cccccc !important;
}

body.dark #ai-chat-clear-input:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

body.dark .ai-chatbot-ai-carousel-card {
    background: #2d3748;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

body.dark .ai-chatbot-ai-carousel-card:hover {
    background: #374151;
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark .ai-carousel-card img {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
}

body.dark .ai-carousel-card div.card-body {
    background: #2d3748;
}

body.dark .ai-chatbot-ai-carousel-card .brand-name {
    color: #ffffff;
}

body.dark .ai-chatbot-ai-carousel-card .product-name {
    color: #a0aec0;
}

body.dark .ai-chatbot-ai-carousel-card .current-price {
    color: #68d391;
}

body.dark .ai-chatbot-ai-carousel-card .original-price {
    color: #a0aec0;
}

body.dark .ai-chatbot-ai-carousel-card .view-button {
    background: #4a5568;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark .ai-chatbot-ai-carousel-card .view-button:hover {
    background: #2d3748;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    color: white;
}

body.dark .ai-carousel-card .card-body .price {
    color: #ffffff;
}

/* iOS-style Theme Toggle Switch */
.ai-chatbot-theme-toggle {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 4px;
}

.ai-chatbot-theme-toggle-track {
    width: 50px;
    height: 28px;
    background: #e0e0e0;
    border-radius: 14px;
    position: relative;
    transition: background-color 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ai-chatbot-theme-toggle-thumb {
    width: 24px;
    height: 24px;
    background: #ffffff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ai-chatbot-theme-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.ai-chatbot-theme-toggle-icon svg {
    width: 16px;
    height: 16px;
}

/* Dark mode theme toggle icons */
body.dark .ai-chatbot-theme-toggle-icon svg {
    fill: #ffffff !important;
    color: #ffffff !important;
}

body.dark .theme-toggle-sun svg {
    fill: #ffffff !important;
    color: #ffffff !important;
}

body.dark .theme-toggle-moon svg {
    fill: #ffffff !important;
    color: #ffffff !important;
}

body.dark .ai-chatbot-theme-toggle-icon svg path {
    fill: #ffffff !important;
}

/* Clear button SVG styling */
#ai-chat-clear {
    border: none;
    background: none;
}

#ai-chat-clear svg {
    width: 16px;
    height: 16px;
}

/* Dark mode clear button SVG styling */
body.dark #ai-chat-clear svg {
    fill: #ffffff !important;
    color: #ffffff !important;
}

body.dark #ai-chat-clear svg path {
    fill: #ffffff !important;
}

.ai-chatbot-theme-toggle.active .ai-chatbot-theme-toggle-track {
    background: #4CAF50;
}

.ai-chatbot-theme-toggle.active .ai-chatbot-theme-toggle-thumb {
    transform: translateX(22px);
}

.ai-chatbot-theme-toggle:hover .ai-chatbot-theme-toggle-track {
    background: #d0d0d0;
}

.ai-chatbot-theme-toggle.active:hover .ai-chatbot-theme-toggle-track {
    background: #45a049;
}

/* Dark theme toggle styles */
body.dark .ai-chatbot-theme-toggle-track {
    background: #555;
}

body.dark .ai-chatbot-theme-toggle-thumb {
    background: #ffffff;
}

body.dark .ai-chatbot-theme-toggle.active .ai-chatbot-theme-toggle-track {
    background: #4CAF50;
}

body.dark .ai-chatbot-theme-toggle:hover .ai-chatbot-theme-toggle-track {
    background: #666;
}

body.dark .ai-chatbot-theme-toggle.active:hover .ai-chatbot-theme-toggle-track {
    background: #45a049;
}




.ai-chatbot-text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3em;
    max-height: 2.6em;
}

/* Order Results Styling */
.ai-chatbot-order-results {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-chatbot-order-card {
    background: #fff;
    border: none;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
}

.ai-chatbot-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.ai-chatbot-order-header h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.ai-chatbot-status-badges {
    display: flex;
    gap: 4px;
}

.ai-chatbot-order-status, .ai-chatbot-financial-status {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ai-chatbot-order-summary {
    margin-bottom: 16px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.ai-chatbot-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.ai-chatbot-summary-row:last-child {
    margin-bottom: 0;
}

.ai-chatbot-label {
    font-weight: 600;
    color: #666;
    font-size: 15px;
}

.ai-chatbot-value {
    font-weight: 500;
    color: #333;
    font-size: 15px;
}

.ai-chatbot-customer-section, .ai-chatbot-shipping-section, .ai-chatbot-items-section, .ai-chatbot-fulfillment-section {
    margin-bottom: 16px;
    padding: 12px;
    background: #fafafa;
    border-radius: 8px;
    border-left: 4px solid #55ff06;
}

.ai-chatbot-customer-section h5, .ai-chatbot-shipping-section h5, .ai-chatbot-items-section h5, .ai-chatbot-fulfillment-section h5 {
    margin: 0 0 12px 0;
    font-size: 17px;
    font-weight: 600;
    color: #333;
}

.ai-chatbot-customer-details, .ai-chatbot-address-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ai-chatbot-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-chatbot-address-line {
    font-size: 15px;
    color: #555;
    line-height: 1.4;
}

.ai-chatbot-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ai-chatbot-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.ai-chatbot-item-info {
    flex: 1;
}

.ai-chatbot-item-title {
    font-weight: 500;
    color: #333;
    font-size: 15px;
    margin-bottom: 2px;
}

.ai-chatbot-item-quantity {
    font-size: 13px;
    color: #666;
}

.ai-chatbot-item-price {
    font-weight: 600;
    color: #55ff06;
    font-size: 15px;
}

.ai-chatbot-fulfillment-item {
    padding: 10px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    margin-bottom: 8px;
}

.ai-chatbot-fulfillment-item:last-child {
    margin-bottom: 0;
}

.ai-chatbot-fulfillment-status {
    font-weight: 600;
    color: #333;
    font-size: 15px;
    margin-bottom: 4px;
}

.ai-chatbot-fulfillment-date {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.ai-chatbot-tracking-info {
    margin-top: 8px;
}

.ai-chatbot-tracking-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.ai-chatbot-tracking-company {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.ai-chatbot-tracking-number {
    font-family: monospace;
    color: #666;
    font-size: 14px;
}

.ai-chatbot-tracking-link {
    color: #55ff06;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.ai-chatbot-tracking-link:hover {
    text-decoration: underline;
}

/* Custom green theme overrides */
.ai-chatbot-btn-danger {
    background-color: #55ff06 !important;
    border-color: #55ff06 !important;
    color: #000 !important;
}

.btn-danger:hover {
    background-color: #4ae605 !important;
    border-color: #4ae605 !important;
    color: #000 !important;
}

 /* --- Desktop Styles (using Bootstrap 'md' breakpoint) --- */
 @media (min-width: 768px) {
     #ai-chat-window {
         /* Override mobile full-screen to be a floating box on desktop */
         top: auto;
         left: auto;
         right: 24px;
         bottom: 24px;
         width: 900px;
         height: 100vh;
         max-width: 90vw;
         max-height: 85vh;
         border-radius: var(--border-radius);
         box-shadow: var(--shadow-heavy);
         border: 1px solid var(--border-color);
     }

     #ai-chat-sidebar {
         width: 320px;
         border-radius: var(--border-radius);
     }

     #ai-chat-content {
         border-radius: var(--border-radius);
     }

     #ai-chat-fab {
         right: 32px;
         bottom: 32px;
     }

     /* Hide mobile sidebar buttons on desktop */
     .mobile-sidebar-buttons {
         display: none;
     }
 }

/* Mobile sidebar buttons - hidden by default on desktop */
.mobile-header-hide {
    display: none;
}
.ai-chatbot-trending-item-arrow,
.mobile-sidebar-buttons {
    display: none;
}
@media (max-width: 1440px) {
    #ai-chat-main-container{
        max-width: 100%;
    }
}

@media (max-width: 1140px) {
    #ai-chat-sidebar,
    #ai-chat-right-sidebar{
        width: 20%;
    }

    .ai-chatbot-trending-item-text{
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .ai-chatbot-session-item .session-meta span{
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* Mobile styles */
@media (max-width: 850px) {
    .history-design #ai-chat-sidebar{
        display: flex !important;
    }
    .history-design #ai-chat-content{
        display: none !important;
    }
    .history-design #ai-chat-right-sidebar{
        display: none !important;
    }

    .trending-design #ai-chat-sidebar{
        display: none !important;
    }
    .trending-design #ai-chat-content{
        display: none !important;
    }
    .trending-design #ai-chat-right-sidebar{
        display: flex !important;
    }
    
    .chat-design #ai-chat-sidebar{
        display: none !important;
    }
    .chat-design #ai-chat-content{
        display: flex !important;
    }
    .chat-design #ai-chat-right-sidebar{
        display: none !important;
    }

    .chat-design .mobile-header-tabs #tab-chat span{
        color: rgba(0, 26, 45, 1)
    }
    .chat-design .mobile-header-tabs #tab-chat svg{
        stroke: rgba(0, 26, 45, 1)
    }
    .chat-design .mobile-header-tabs #tab-chat{
        border-bottom-color: rgba(85, 255, 6, 1);
    }
    .history-design .mobile-header-tabs #tab-history span{
        color: rgba(0, 26, 45, 1)
    }
    .history-design .mobile-header-tabs #tab-history svg{
        stroke: rgba(0, 26, 45, 1)
    }
    .history-design .mobile-header-tabs #tab-history{
        border-bottom-color: rgba(85, 255, 6, 1);
    }
    .trending-design .mobile-header-tabs #tab-trending span{
        color: rgba(0, 26, 45, 1)
    }
    .trending-design .mobile-header-tabs #tab-trending svg{
        stroke: rgba(0, 26, 45, 1)
    }
    .trending-design .mobile-header-tabs #tab-trending{
        border-bottom-color: rgba(85, 255, 6, 1);
    }
    .order-outer-grid{
        grid-template-columns: 1fr;
    }
    .order-items-html {
        font-size: 14px;
        font-weight: 400;
        letter-spacing: 0.5px;
        line-height: 20px;
        word-wrap: break-word;
        font-family: var(--font-family);
        overflow: auto;
    }
    .order-items-html table{
        width: 500px;
        font-size: 14px;
        font-weight: 400;
        letter-spacing: 0.5px;
        line-height: 20px;
        word-wrap: break-word;
        font-family: var(--font-family);
    }

    /* .mobile-header-tabs .mobile-tab.active span{
        color: rgba(0, 26, 45, 1)
    }
    .mobile-header-tabs .mobile-tab.active svg{
        stroke: rgba(0, 26, 45, 1)
    }
    .mobile-header-tabs .mobile-tab.active{
        border-bottom-color: rgba(85, 255, 6, 1);
    } */

    /* #ai-chat-content{
        display: none;
    } */
    .arrow-mobile-history{
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        padding: 0 15px;
    }
    #ai-chat-sidebar {
        /* display: none; */
        display: flex;
        width: 100%;
    }
    #ai-chat-right-sidebar {
        /* display: none; */
        display: flex;
        width: 100%;
    }
    .ai-chatbot-session-item:hover .arrow-mobile-history{
        display: none;
    }

    #ai-chat-window {
        flex-direction: column;
    }

    #ai-chat-main-container {
        /* flex-direction: column; */
        margin: unset;
    }
    .ai-chatbot-sidebar-content{
        padding: 0px 20px 20px 20px;
    }
    .ai-chatbot-trending-item-arrow{
        display: flex;
    }
    .ai-chatbot-sidebar-ico-in{
        display: none;
    }
    .ai-chatbot-sidebar-header{
        padding: 20px;
        border-bottom: 0px;
    }
    .ai-chatbot-sidebar-title{
        padding: 0;
    }

    #ai-chat-content {
        flex: 1;
        height: 100%;
    }
    #ai-chat-window{
        border: 0px !important;
    }
    
    .ai-chatbot-right-sidebar-header{
        border-bottom: 0px;
        padding: 20px;
    }
    .ai-chatbot-right-sidebar-content{
        padding: 0px 20px 20px 20px;
    }
    .ai-chatbot-right-sidebar-header .ai-chatbot-right-sidebar-ico{
        display: none;
    }

    #ai-chat-header-main {
        padding: 15px 20px;
    }

    #ai-chat-header-title {
        font-size: 16px;
    }

    .ai-assistant-profile {
        padding: 15px 20px;
        display: none;
    }
    .mobile-header-hide {
        display: flex;
        flex-direction: column;
        padding: 20px 0px 0px 0px;
        gap: 5px;
    }
    .mobile-header-tabs{
        display: flex;
        width: 100%;
        padding-top: 10px;
    }
    .mobile-header-tabs .mobile-tab svg{
        width: 20px;
        height: 20px;
        stroke: rgba(0, 26, 45, 0.5);;
    }
    .mobile-header-tabs .mobile-tab span{
        font-family: var(--font-family);
        font-size: 16px;
        font-weight: 700;
        line-height: 22px;
        letter-spacing: 0.5px;
        color: rgba(0, 26, 45, 0.5);
        text-transform: uppercase;
    }

    .mobile-header-tabs .mobile-tab{
        width: 33.33%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 5px;
        cursor: pointer;
        border-bottom: 4px solid white;
        padding-bottom: 8px;
    }

    .ai-assistant-info h3 {
        font-size: 14px;
    }

    .ai-assistant-info p {
        font-size: 12px;
    }

    #ai-chat-body {
        padding: 15px 20px;
    }

    #ai-chat-body.ai-chat-empty-state-mode {
        padding: 16px 10px 22px;
    }

    .ai-chatbot-empty-state {
        gap: 18px;
    }

    .ai-chatbot-empty-star {
        width: 52px;
        height: 52px;
    }

    .ai-chatbot-empty-title {
        font-size: 20px;
        line-height: 30px;
    }

    .ai-chatbot-empty-bot-row {
        gap: 10px;
        max-width: 100%;
    }

    .ai-chatbot-empty-avatar {
        width: 32px;
        height: 32px;
        margin-top: 4px;
    }

    .ai-chatbot-empty-bot-card {
        padding: 10px;
        border-radius: 10px;
        font-size: 14px;
        border-top-left-radius: 0px;
    }

    .ai-chatbot-empty-prompts {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 15px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .ai-chatbot-empty-prompt {
        font-size: 13px;
        font-weight: 400;
        border-width: 1px;
        padding: 10px 14px;
        width: auto;
    }

    #ai-chat-input {
        font-size: 14px;
    }

    .ai-chatbot-ai-msg {
        max-width: 90%;
        font-size: 13px;
        padding: 10px 14px;
    }

    .ai-chatbot-ai-msg.ai-user {
        max-width: 85%;
    }

    .ai-chatbot-ai-bot {
        max-width: 85%;
    }

    /* .ai-chatbot-ai-carousel {
        padding: 12px 0;
        margin: 12px 0;
        min-height: 280px;
    }

    .ai-chatbot-ai-carousel-card {
        min-width: 280px;
        flex: 0 0 280px;
        height: 150px;
        margin-right: 12px;
        margin-bottom: 12px;
    } */
    
    .ai-carousel-card img {
        width: 120px;
        height: 150px;
    }

    /* Make "No Image" placeholder smaller on mobile too */
    .ai-carousel-card img[src*="data:image/svg+xml"] {
        height: 80px;
        width: 80px;
    }

    /* Fix card-img-top class for "No Image" placeholders on mobile */
    .card-img-top[src*="data:image/svg+xml"] {
        height: 80px !important;
        width: 80px !important;
    }

    .card-body {
        /* margin-left: 5px; */
    }
    
    .ai-carousel-card div.card-body {
        padding: 16px 12px;
    }
    
    /* .ai-chatbot-ai-carousel-card .brand-name {
        font-size: 13px;
        margin-bottom: 5px;
    }
    
    .ai-chatbot-ai-carousel-card .product-name {
        font-size: 12px;
        margin-bottom: 14px;
    }
    
    .ai-chatbot-ai-carousel-card .current-price {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .ai-chatbot-ai-carousel-card .price-container {
        margin-bottom: 16px;
    } 
    
    .ai-chatbot-ai-carousel-card .view-button {
        padding: 8px 14px;
        font-size: 11px;
        margin-top: 6px;
        border-radius: var(--border-radius);
    } */

    /* Hide theme toggle and clear button on mobile */
    #ai-theme-toggle {
        display: none;
    }

    #ai-chat-clear {
        display: none;
    }

    /* Mobile Sidebar Buttons - show on mobile */
    .mobile-sidebar-buttons {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-top: 12px;
        gap: 20px;
    }

    .mobile-sidebar-btn {
        flex: 1;
        padding: 8px 12px;
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        color: var(--text-primary);
        cursor: pointer;
        transition: var(--transition);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 600;
        font-family: var(--font-family);
    }

    .mobile-sidebar-btn:hover {
        background: var(--main-color);
        border-color: var(--main-color);
        color: #ffffff;
    }

    .mobile-sidebar-btn svg {
        margin-right: 4px;
    }

    /* Mobile Sidebar Overlays */
    .mobile-sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 10001;
        display: none;
    }

    .mobile-sidebar-overlay.show {
        display: block;
    }

    .mobile-sidebar-panel {
        position: fixed;
        top: 0;
        width: 280px;
        height: 100%;
        background: var(--bg-primary);
        z-index: 10002;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: none;
        border-right: 1px solid var(--border-color);
    }

    .mobile-sidebar-panel.right {
        right: 0;
        left: auto;
        transform: translateX(100%);
        border-right: none;
        border-left: 1px solid var(--border-color);
    }

    .mobile-sidebar-panel.show {
        transform: translateX(0);
    }

    .mobile-sidebar-header {
        padding: 16px 20px;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: var(--bg-secondary);
    }

    .mobile-sidebar-title {
        font-size: 16px;
        font-weight: 700;
        color: var(--text-primary);
        margin: 0;
        font-family: var(--font-family);
    }

    .mobile-sidebar-close {
        background: none;
        border: none;
        font-size: 20px;
        color: var(--text-secondary);
        cursor: pointer;
        padding: 4px;
    }

    .mobile-sidebar-content {
        padding: 20px;
        height: calc(100% - 60px);
        overflow-y: auto;
    }

    /* Mobile-specific input bar changes */
    #ai-chat-input {
        padding: 12px 50px 12px 16px;
    }

}






/* START CSS for chatbot button in header */
.chatbot-pill {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #1a2333, #2c3e50); /* deep gradient */
  color: #fff;
  border-radius: 9999px;       /* pill */
  padding: 6px 14px 6px 8px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3); /* soft shadow */
  position: relative;
  transition: transform 0.2s ease, background 0.3s ease;
}

.chatbot-pill:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #22344d, #3a536e); /* hover brighter */
}

.chatbot-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin-right: 8px;
  border: 2px solid #00ffb3;   /* neon accent border */
}

.chatbot-text {
  line-height: 1;
  letter-spacing: 0.3px;
}

/* Pulsing glowing status dot */
.chatbot-status {
  width: 10px;
  height: 10px;
  background: #00ff88;
  border-radius: 50%;
  margin-left: 10px;
  box-shadow: 0 0 8px #00ff88, 0 0 12px #00ff88;
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}
/* END CSS for chatbot button in header */
