/**
 * AI Chat Styles
 *
 * @package AI Chat by Purethemes
 */

/* Chat Wrapper  */
.listeo-ai-chat-wrapper {
    width: 100%;
    margin: 0 auto;
}

.listeo-ai-chat-wrapper i {
    font-family: "Font Awesome 6 Free" !important;
}

/* Chat Container */
.listeo-ai-chat-container {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.1);
}

/* Chat Header */
.listeo-ai-chat-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.listeo-ai-chat-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.listeo-ai-chat-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

body .listeo-ai-chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 100px !important;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.listeo-ai-chat-status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 100px !important;
    border: 2px solid #fff;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
    box-sizing: content-box !important;
}

.listeo-ai-chat-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Chat Header Menu Dropdown */
.listeo-ai-chat-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
}

/* Menu icon buttons (shared styles) */
.listeo-ai-chat-darkmode-toggle,
.listeo-ai-chat-menu-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    color: #777;
    transition: all 0.15s ease;
}

.listeo-ai-chat-darkmode-toggle:hover,
.listeo-ai-chat-menu-trigger:hover,
.listeo-ai-chat-menu-trigger[aria-expanded="true"] {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

/* Dark Mode Toggle – icon visibility */
.listeo-ai-chat-darkmode-toggle .icon-sun { display: none; }
.listeo-ai-chat-darkmode-toggle .icon-moon { display: block; }
.dark-mode .listeo-ai-chat-darkmode-toggle .icon-sun { display: block; }
.dark-mode .listeo-ai-chat-darkmode-toggle .icon-moon { display: none; }

.listeo-ai-chat-menu-dropdown {
    position: absolute;
    top: 100%;
    margin-top: 5px;
    right: 0;
    min-width: 150px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 4px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95) translateY(-4px);
    transform-origin: top right;
    transition: all 0.15s ease;
}

html[dir="rtl"] .listeo-ai-chat-menu-dropdown {
    left: 0 !important;
    right: initial !important;
}

.listeo-ai-chat-menu-dropdown[data-state="open"] {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

.listeo-ai-chat-menu-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
    white-space: nowrap;
    line-height: 20px;
}

.listeo-ai-chat-menu-item:hover {
    background: #f5f5f5;
}

.listeo-ai-chat-menu-item svg {
    flex-shrink: 0;
    color: #666;
}

.listeo-ai-chat-menu-item:hover svg {
    color: #333;
}

/* Expanded state for floating chat popup */
@media (min-width: 992px) {
    .listeo-floating-chat-popup.is-expanded {
        width: 600px !important;
        max-width: calc(100vw - 45px) !important;
        height: 100vh !important;
        max-height: calc(100vh - 165px) !important;
    }
}

/* Hide expand icon when expanded, show collapse icon */
.listeo-floating-chat-popup.is-expanded .listeo-ai-chat-expand-btn .icon-expand {
    display: none;
}
.listeo-floating-chat-popup.is-expanded .listeo-ai-chat-expand-btn .icon-collapse {
    display: inline;
}
.listeo-ai-chat-expand-btn .icon-collapse {
    display: none;
}

/* Hide expand text when expanded, show collapse text */
.listeo-floating-chat-popup.is-expanded .listeo-ai-chat-expand-btn .text-expand {
    display: none;
}
.listeo-floating-chat-popup.is-expanded .listeo-ai-chat-expand-btn .text-collapse {
    display: inline;
}
.listeo-ai-chat-expand-btn .text-collapse {
    display: none;
}

@media (max-width: 992px) { .listeo-ai-chat-expand-btn { display: none !important;} }

/* Clear Button (shortcode only - floating widget uses menu) */
button.listeo-ai-chat-clear-btn {
    background: transparent !important;
    border: none;
    color: #888;
    font-size: 12px;
    cursor: pointer;
    padding: 0 !important;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    min-height: auto !important;
    max-height: 16px !important;
    max-width: 16px !important;
    min-width: auto !important;
}

button.listeo-ai-chat-clear-btn:hover {
    color: #333;
    transform: rotate(180deg);
}

button.listeo-ai-chat-clear-btn img {
    width: auto;
    height: auto;
    max-width: 12px;
    max-height: 12px;
    opacity: 0.4;
}

.listeo-ai-chat-send-btn { padding: 0 !important; }

/* Messages Area */
.listeo-ai-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f8f8;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scroll-behavior: smooth;
}


/* Individual Messages */
.listeo-ai-chat-message {
    line-height: 24px;
    display: flex;
    width: 100%;
}

.listeo-ai-chat-message-user {
    color: var(--ai-chat-primary-color);
    background: var(--ai-chat-primary-color-light);
    padding: 12px 16px;
    border-radius: 8px;
    max-width: 80%;
    width: fit-content;
    margin-left: auto;
}

.listeo-ai-chat-message.listeo-ai-chat-message-system,
.listeo-ai-chat-message-assistant {
    color: #444;
    background: #f6f6f6;
    padding: 12px 16px;
    border-radius: 8px;
    max-width: 100%;
    width: fit-content;
    margin-right: auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    background: #fff;
}

/* Assistant message avatar */
.listeo-ai-chat-message-assistant.has-avatar {
    position: relative;
    margin-left: 32px;
}

.listeo-ai-chat-message-avatar {
    position: absolute;
    left: -32px;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 100px !important;
    object-fit: cover;
    flex-shrink: 0;
}

.listeo-ai-chat-message-assistant.chat-message-results {
padding: 0;
    background: transparent;
    box-shadow: none;
}

.listeo-ai-chat-message-system {
    color: #666;
    /* font-size: 14px; */
    /* font-style: italic; */
}

.listeo-ai-chat-message-label {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
}

.listeo-ai-chat-message-content {
    line-height: 23px;
    font-size: 14px;
    word-break: break-word;
}

.listeo-ai-chat-message-content p {
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 23px;
    color: #666;
}

.listeo-ai-chat-message-content p
.listeo-ai-chat-message-content {
    color: #666;
}

.listeo-ai-chat-message-content p:last-child {
    margin-bottom: 0;
}

.listeo-ai-chat-message-content strong {
    font-weight: 600;
    color: #222;
}
.listeo-ai-chat-message-content a strong,
.listeo-ai-chat-message-content a {
    color: var(--ai-chat-primary-color);
    text-decoration: underline;
}

.listeo-ai-chat-message-content a:hover {
    color: #1a252f;
}
.listeo-ai-sources-list {
    display: flex;
    flex-direction: column;
}

.listeo-ai-chat-message-content ol,
.listeo-ai-chat-message-content ul { 
    display: flex; 
    flex-direction: column; 
    gap: 10px;
    padding-left: 20px;
    margin: 8px 0;
}

.listeo-ai-chat-message-content ol li,
.listeo-ai-chat-message-content ul li{ 
    margin: 0;
}

/* Listing Grid Styles */
.listeo-ai-results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 0;
}

.elementor .listeo-ai-listing-item,
.listeo-ai-listing-item {
    background: white;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: stretch;
    min-height: 90px;
    text-decoration: none !important;
    color: inherit;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
.elementor .listeo-ai-listing-item:hover,
.listeo-ai-listing-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    border-color: #d0d0d0;
}

.listeo-ai-listing-hidden {
    display: none;
}

.listeo-ai-listing-thumbnail {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    overflow: hidden;
    padding: 12px;
    margin-top: 5px;
    margin-left: 3px;
}

body .listeo-ai-listing-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.listeo-ai-listing-details {
    flex: 1;
    display: flex;
    padding: 12px 16px;
    padding-left: 0;
    align-items: stretch;
    gap: 0;
    text-decoration: none;
    word-break: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.listeo-ai-listing-title {
    margin: 0 0 4px 0;
    font-size: 15px !important;
    font-weight: 600;
    line-height: 20px;
    color: #333;
}

body p.listeo-ai-listing-excerpt {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listeo-ai-listing-meta {
    display: flex;
    gap: 0;
    font-size: 13px;
    color: #888;
    flex-wrap: wrap;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    display: flex;
    gap: 0 5px;
}

.listeo-ai-listing-meta span {
    display: flex;
    align-items: baseline;
    gap: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listeo-ai-listing-meta i {
    width: 12px;
    text-align: center;
    font-size: 11px;
    color: #b4b4b4;
}

.listeo-ai-listing-rating {
    color: #f59e0b;
    font-weight: 500;
}

/* Hidden by default — customers can opt in via custom CSS override (display: inline-flex) */
.listeo-ai-product-sku {
    display: none !important;
}

.listeo-ai-listing-rating i {
    color: #f59e0b !important;
}
.listeo-ai-listing-rating svg {
    top: 2px; position: relative;
}

/* Product-Specific Styles */
.listeo-ai-chat-wrapper .product-price {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    display: flex !important;
    gap: 0 !important;
}

.listeo-ai-chat-wrapper .product-price .regular-price {
    text-decoration: line-through;
    color: #888;
    font-weight: 400;
    margin-right: 6px;
}

.listeo-ai-chat-wrapper .product-price .sale-price {
    color: #27ae60;
    font-weight: 600;
    background-color: #fbf2d1;
    color: #8a803e;
    padding: 0px 4px;
    border-radius: 50px;
}

.listeo-ai-chat-wrapper .stock-status {
    font-size: 13px;
    font-weight: 500;
    padding: 0;
    border-radius: 54px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    display: inline-block !important;
}
.listeo-ai-chat-wrapper .stock-status svg { top: 2px; position: relative; }
.listeo-ai-chat-wrapper .stock-status.in-stock {
    color: #27ae60;
    /* background: #27ae6010; */
}

.listeo-ai-chat-wrapper .stock-status.in-stock i {
    color: #27ae60 !important;
}

.listeo-ai-chat-wrapper .stock-status.out-of-stock {
    color: #e74c3c;
    /* background: #e74c3c10; */
}

.listeo-ai-chat-wrapper .stock-status.out-of-stock i {
    color: #e74c3c !important;
}

/* Show More Button */
.listeo-ai-show-more-btn {
    display: block;
    width: auto;
    margin-top: 12px;
    padding: 6px 16px !important;
    background: white;
    border:none;
    color: var(--ai-chat-primary-color);
    background: var(--ai-chat-primary-color-light);
    border-radius: 8px;
    font-size: 14px;
    line-height: 22px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    margin: 0 auto;
    margin-top: 15px;
    border-radius: 8px;
}

.listeo-ai-show-more-btn:hover {

}

/* Loading Animation - Typing Dots */
.listeo-ai-chat-loader-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.listeo-ai-chat-typing-dots {
    display: flex;
    gap: 3px;
    align-items: center;
}

.listeo-ai-chat-typing-dots span {
    width: 6.2px;
    height: 6.2px;
    background: #777777;
    border-radius: 50%;
    opacity: 0.3;
    animation: listeoAiChatTypingDot 1.4s infinite backwards;
    transform: translateY(0px);
}

.listeo-ai-chat-typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.listeo-ai-chat-typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes listeoAiChatTypingDot {
    0%, 60%, 100% {
        opacity: 0.3;
    }
    30% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

.listeo-ai-chat-shimmer-text {
    font-size: 14px;
    display: inline-block;
    background: linear-gradient(90deg,
        #666 0%,
        #666 40%,
        #888 48%,
        #bbbbbb 52%,
        #888 56%,
        #666 62%,
        #666 100%
    );
    background-size: 300px 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: listeoAiChatShimmer 3.5s linear infinite;
}

@keyframes listeoAiChatShimmer {
    0% {
        background-position: -300px 0;
    }
    100% {
        background-position: 300px 0;
    }
}
.listeo-ai-chat-loading {
    top: 1px;
    margin-right: 2px;
    position: relative;
    display: inline-block;
    width: 14px;
    height: 14px;
    box-sizing: border-box;
    background: conic-gradient(
        from 90deg at 50% 50%,
        rgba(160, 160, 160, 0) 0deg,
        rgba(160, 160, 160, 0) 0.04deg,
        #707070 360deg
    );
    border-radius: 50%;
    animation: rotate 0.7s infinite linear;
}

.listeo-ai-chat-loading::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #fff; /* Change to your actual background color */
    border-radius: 50%;
}

.listeo-ai-chat-loading::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 2px;
    background: #a2a2a2;
    border-radius: 50%;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
div.listeo-ai-chat-message.listeo-ai-chat-message-assistant[id^="loading"] {
    background: none;
    box-shadow: none;
    padding: 0;
    font-weight: 500;
    color: #666;
    margin-left: 0;
}

div.listeo-ai-chat-message.listeo-ai-chat-message-assistant[id^="loading"] .listeo-ai-chat-message-avatar {
    display: none;
}

/* Input Area */
.listeo-ai-chat-input-wrapper {
    border-top: 1px solid #e5e5e5;
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    position: relative;
}

.listeo-ai-chat-input {
    flex: 1;
    padding: 12px 15px !important;
    border: none !important;
    border-radius: 8px;
    font-size: 15px !important;
    font-family: inherit;
    resize: none;
    min-height: 48px !important;
    min-width: auto  !important;
    height: 48px !important;
    min-width: auto;
    margin-bottom: 0;
    box-shadow: none !important;
    border-radius: 50px !important;
    padding-right: 50px !important;
    line-height: 22px !important;
    box-sizing: border-box;
}

#listeo-floating-chat-instance-input {
    margin: 0;
}

.listeo-ai-chat-input:not(.elementor-chat-style .listeo-ai-chat-input) {
    background: #f5f5f5 !important;
}

.listeo-ai-chat-input {
    background: #f5f5f5; 
    color: #666 !important;
}

.listeo-ai-chat-input::placeholder {
    color: #888 !important
}


body#dark-mode .listeo-ai-chat-input {background: #f5f5f5; color: #555;}

.listeo-ai-chat-input:focus {
    outline: none;
    border-color: #d0d0d0;
}

.listeo-ai-chat-send-btn {
    background: #222;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    flex-shrink: 0;
    font-weight: 500;
    align-self: stretch;
    transition: 0.2s;
    right: 24px;
    line-height: 24px;
    top: 50%;
    position: absolute !important;
    border-radius: 50px !important;
    height: 34px !important;
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    min-height: 34px !important;
    transform: translateY(-50%);
    margin: 0;
}

.listeo-ai-chat-send-btn img{
    width: auto;
    height: auto;
    min-width: 25px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.listeo-ai-chat-send-btn:hover {
    background: #222;
}

.listeo-ai-chat-send-btn:disabled {
    background: #555;
    cursor: not-allowed;
}

/* Best Match Badge - Simple and Clean (matches frontend) */
.match-badge.best {
    font-weight: 600;
    font-size: 12px;
    padding: 0px 8px;
    line-height: 16px;
    text-shadow: none;
    border-radius: 50px;
    background: #00b54d21;
    display: flex;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
    color: #27ae60;
    height: 21px;
    position: relative;
    top: -1px;
    display: inline-block;
}

/* Listing structure adjustments for sidebar */
.listeo-ai-listing-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.listeo-ai-listing-sidebar {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 4px;
    min-width: 100px;
}

.listeo-ai-listing-sidebar:empty {
    display: none;
}

/* Disabled State */
.listeo-ai-chat-disabled {
    background: #fff3cd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: #856404;
}
.listeo-ai-chat-disabled p { margin: 0}
/* Listing items without thumbnails */
.listeo-ai-listing-item:not(:has(.listeo-ai-listing-thumbnail)) .listeo-ai-listing-details {
    padding-left: 16px;
}

/* Listing Context Load Button */
.listeo-ai-chat-message-listing-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 15px 0;
}

.listeo-ai-listing-context-title {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    margin: 0 0 12px 0;
    text-align: center;
}
#listing-context-btn { text-align: center;}
.listeo-ai-load-listing-btn {
    background: #222;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.listeo-ai-load-listing-btn:hover {
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.listeo-ai-load-listing-btn:active {
    transform: scale(0.98);
}

.listeo-ai-load-listing-btn svg {
    flex-shrink: 0;
}

.listeo-ai-load-listing-btn.loading {
    opacity: 0.7;
    cursor: wait;
}

.listeo-ai-load-listing-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Product Context Button (WooCommerce) */
#product-context-btn {
    text-align: center;
    justify-content: center;
    margin: 15px 0;
}

.listeo-ai-product-context-title {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    margin: 0 0 12px 0;
    text-align: center;
}

.listeo-ai-load-product-btn {
    background: #222;
    color: white;
    border: none;
    border-radius: 24px;
    padding: 10px 20px;
    font-size: 14px;
    line-height: 22px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.listeo-ai-load-product-btn:hover {
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.listeo-ai-load-product-btn:active {
    transform: scale(0.98);
}

.listeo-ai-load-product-btn svg {
    flex-shrink: 0;
}

.listeo-ai-load-product-btn.loading {
    opacity: 0.7;
    cursor: wait;
}

.listeo-ai-load-product-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Context Loaded Confirmation Icon */
.context-loaded-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
    color: #222;
}


/*--------------------------------------
# Popular Searches
---------------------------------------*/
.listeo-ai-popular-searches {
    margin-top: 30px;
    padding: 0;
}

.popular-searches-header {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.popular-searches-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.popular-search-tag {
    background: var(--listeo-primary-color-light);
    border-radius: 50px;
    padding: 5px 13px;
    font-size: 13px;
    color: var(--listeo-primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    border: none;
    line-height: 22px;
}

.popular-search-tag:hover {
    background: var(--listeo-primary-color, #222);
    color: white;
    border-color: var(--listeo-primary-color, #222);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.popular-search-tag:active {
    transform: translateY(0);
}

/*--------------------------------------
# Elementor Custom Styles
---------------------------------------*/
.elementor-chat-style .listeo-ai-chat-wrapper { height: auto !important;}

.elementor-chat-style .listeo-ai-chat-wrapper .listeo-ai-chat-messages {
    max-height: 0;
    height: 400px;
    padding: 0 20px; /* Keep horizontal padding, remove vertical */
    transition: max-height 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scroll-behavior: smooth;
}

.elementor-chat-style .listeo-ai-chat-wrapper.expanded .listeo-ai-chat-messages {
    max-height: 400px;
    padding: 20px;
}
.elementor-chat-style .listeo-ai-chat-container {
    border: none;
    zoom: 1.12;
    position: relative;
}

.elementor-chat-style .listeo-ai-chat-container {border-radius: 10px; transition: 0.3s;}
.elementor-chat-style .listeo-ai-chat-wrapper.expanded .listeo-ai-chat-container {border-radius: 10px;}

.elementor-chat-style .listeo-ai-chat-messages {
    background: transparent;
}

.elementor-chat-style .listeo-ai-chat-wrapper.expanded .listeo-ai-chat-messages {

}

.elementor-chat-style .listeo-ai-chat-input {
    background: transparent;
    min-width: 0 !important;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
}

.elementor-chat-style .listeo-ai-chat-input::-webkit-scrollbar {
    display: none;
}

.elementor-chat-style .listeo-ai-chat-input-wrapper {
    border: none;
    background: transparent;
    border-radius: 10px;
    padding: 12px;
}

.elementor-chat-style .listeo-ai-chat-input-wrapper {
}

.elementor-chat-style .listeo-ai-chat-message.listeo-ai-chat-message-system,
.elementor-chat-style .listeo-ai-chat-message-assistant {
box-shadow: none;
background: transparent;
padding: 12px 0;
}

.elementor-chat-style .listeo-ai-chat-avatar-wrapper { display: none; }
.elementor-chat-style .listeo-ai-chat-message-avatar { top: 10px; }

/* Elementor style avatar adjustments */
.elementor-chat-style .listeo-ai-chat-message-assistant.has-avatar {
    margin-left: 32px;
    padding-left: 0;
}

.elementor-chat-style .listeo-ai-chat-title {
    display: none;
}

.elementor-chat-style .listeo-ai-chat-header {
    border: none;
    background: transparent;
    position: absolute;
    width: 20px;
    height: 20px;
    opacity: 0;transition: 0.3s;z-index: 111;
    left: 15px; top: 15px;
    display: none;overflow: hidden;padding: 0;
}


.elementor-chat-style .listeo-ai-chat-wrapper.expanded  .listeo-ai-chat-header{
    opacity: 1;
    display: block;
    background: transparent !important;
}

.elementor-chat-style .listeo-ai-chat-message-system { display: none; }

.elementor-chat-style .listeo-ai-chat-message-user {
    padding: 8px 15px; border-radius: 30px;
}

.elementor .elementor-chat-style  .listeo-ai-listing-item {
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.07);
}

.elementor .elementor-chat-style  .listeo-ai-listing-item:hover {
    border: 1px solid #ddd;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}
.elementor-chat-style .listeo-ai-chat-menu { position: absolute; top: 0; right: 10px; }

.elementor-chat-style .listeo-ai-chat-quick-buttons {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 15px;
    margin: 0;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease;
    background: transparent;
}

.elementor-chat-style  .listeo-ai-quick-btn { background-color: #f4f4f4; }

.elementor-chat-style .listeo-ai-chat-wrapper.expanded .listeo-ai-chat-quick-buttons {
    max-height: 100px;
    opacity: 1;
    padding: 0 20px;
    padding-top: 15px;
    margin-bottom: 0;
    pointer-events: auto;
}

.elementor .listeo-ai-listing-item.listeo-ai-listing-item.listeo-ai-listing-hidden { display: none; }

/*--------------------------------------
# Powered by PurioChat Badge
---------------------------------------*/
.listeo-ai-chat-powered-by {
    text-align: center;
    font-size: 12px;
    color: #888;
    background: transparent;
    padding: 0;
    margin: -10px 0 10px 0;
    line-height: 27px;
}

.listeo-ai-chat-powered-by a {
    color: #111;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.listeo-ai-chat-powered-by-logo {
    display: inline-block;
    position: relative;
    top: 1px;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    margin: 0px 2px 0px 2px !important;
    vertical-align: -3px;
}

.listeo-ai-chat-powered-by-name {
    font-weight: 600;
}

.listeo-ai-chat-powered-by a:hover {
    color: #111;
}

/* Elementor chat style adjustments */
.elementor-chat-style .listeo-ai-chat-powered-by {
    background: transparent;
    border: none;
    padding: 6px 12px;
}

/*--------------------------------------
# Quick Action Buttons
---------------------------------------*/
.listeo-ai-chat-quick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 20px;
    background: #f8f8f8
}

.listeo-ai-quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #ebebeb;
    line-height: 20px;
    color: #777;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08); */
}

/* Custom color buttons - show color in default state */
.listeo-ai-quick-btn.has-custom-color {
    background: var(--quick-btn-color-light);
    color: var(--quick-btn-color);
}

.listeo-ai-quick-btn.has-custom-color .listeo-ai-btn-icon {
    opacity: 1;
    stroke: var(--quick-btn-color);
}

.listeo-ai-quick-btn:hover {
    background: var(--quick-btn-color-light, var(--ai-chat-primary-color-light, rgba(0, 115, 238, 0.1)));
    border-color: var(--quick-btn-color, var(--ai-chat-primary-color, #0073ee));
    color: var(--quick-btn-color, var(--ai-chat-primary-color, #0073ee));
}

.listeo-ai-quick-btn.has-custom-color:hover {
    background: var(--quick-btn-color-light);
    background: color-mix(in srgb, var(--quick-btn-color-light) 94%, var(--quick-btn-color));
}

.listeo-ai-quick-btn:active {
    transform: scale(0.97);
}

/* Button icon styling */
.listeo-ai-btn-icon {
    flex-shrink: 0;
    opacity: 0.8;
    transition: opacity 0.2s ease, stroke 0.2s ease;
}

.listeo-ai-quick-btn:hover .listeo-ai-btn-icon {
    opacity: 1;
    stroke: var(--quick-btn-color, var(--ai-chat-primary-color, #0073ee));
}

/* ==========================================================================
   Contact Form Overlay
   ========================================================================== */

.listeo-ai-contact-form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    border-radius: inherit;
}

.listeo-ai-contact-form {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    width: 100%;
    max-width: 340px;
    max-height: 100%;
    overflow-y: auto;
}

.listeo-ai-contact-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    padding-bottom: 0;
    /* border-bottom: 1px solid #eee; */
}

.listeo-ai-contact-form-header h3 {
    margin: 0;
    font-size: 16px !important;
    font-weight: 600;
    color: #333;
}

.listeo-ai-contact-form-close {
    background: none;
    border: none;
    padding: 6px !important;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    width: 28px !important;
    height: 28px !important;
    background: #f5f5f5;
    min-width: auto !important;
    min-height: auto !important;
    box-sizing: border-box;
}

.listeo-ai-contact-form-close svg {
    stroke: #888;
    transition: stroke 0.2s ease;
}

.listeo-ai-contact-form-close:hover {
    background: #eee;
}

.listeo-ai-contact-form-close:hover svg {
    stroke: #333;
}

.listeo-ai-contact-form-body {
    padding: 20px;
}

.listeo-ai-contact-form-field {
    margin-bottom: 16px;
}

.listeo-ai-contact-form-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 6px;
}

.listeo-ai-contact-form-field label .required {
    color: #dc3545;
}

body .listeo-ai-contact-form-field input,
body .listeo-ai-contact-form-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    height: 40px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.listeo-ai-contact-form-field input:focus,
.listeo-ai-contact-form-field textarea:focus {
    outline: none !important;
    border-color: var(--ai-chat-primary-color, #0073ee) !important;
    box-shadow: 0 0 0 3px var(--ai-chat-primary-color-light, rgba(0, 115, 238, 0.1)) !important;
}

.listeo-ai-contact-form-field textarea {
    resize: vertical;
    min-height: 80px;
}

.listeo-ai-contact-form-actions {
    margin-top: 20px;
}

body .listeo-ai-contact-form-submit {
    width: 100%;
    padding: 8px 20px !important;
    background: var(--ai-chat-primary-color, #0073ee);
    color: #fff;
    border: none;
    border-radius: 8px;
    height: 42px !important;
    min-height: 42px !important;
    line-height: 20px !important;
    font-size: 14px !important;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.listeo-ai-contact-form-submit:hover {
    background: color-mix(in srgb, var(--ai-chat-primary-color, #0073ee) 85%, #000);
}

.listeo-ai-contact-form-submit:active {
    transform: scale(0.98);
}

.listeo-ai-contact-form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.listeo-ai-contact-form-submit .button-spinner {
    display: flex;
    align-items: center;
}

.listeo-ai-contact-form-message {
    margin-top: 16px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
}

.listeo-ai-contact-form-message.success {
    background: #d4edda;
    color: #155724;
}

.listeo-ai-contact-form-message.error {
    background: #f8d7da;
    color: #721c24;
}

/* ==========================================================================
   Pre-Chat Required Fields Form
   Reuses contact form field styles but positioned inline (not overlay)
   ========================================================================== */

.listeo-ai-pre-chat-form {
    position: relative;
    background: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

.listeo-ai-pre-chat-form .listeo-ai-contact-form-body {
    padding: 14px 20px 16px;
}

.elementor-chat-style .listeo-ai-pre-chat-form {
    margin-top: 40px;
    zoom: 0.9;
    max-width: 400px;
    box-shadow: none;
    background: #f8f8f8;
}

.listeo-ai-pre-chat-form .listeo-ai-contact-form-field {
    margin-bottom: 12px;
}

.listeo-ai-pre-chat-form .listeo-ai-contact-form-actions {
    margin-top: 14px;
}

/* ==========================================================================
   Image Input Button
   ========================================================================== */

.listeo-ai-chat-image-btn {
    position: absolute !important;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    border-radius: 50px !important;
    border: none;
    background: #fff !important;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0 !important;
    z-index: 2;
}

.listeo-ai-chat-image-btn:hover {
    background: var(--ai-chat-primary-color-light, rgba(0, 115, 238, 0.1)) !important;
    border-color: var(--ai-chat-primary-color, #0073ee);
    color: var(--ai-chat-primary-color, #0073ee);
}

.listeo-ai-chat-image-btn:hover svg {
    stroke: var(--ai-chat-primary-color, #0073ee);
}

.listeo-ai-chat-image-btn svg {
    flex-shrink: 0;
    transition: stroke 0.2s ease;
}

/* Image attached state */
.listeo-ai-chat-image-btn.has-image {
    background: var(--ai-chat-primary-color-light, rgba(0, 115, 238, 0.1)) !important;
    color: var(--ai-chat-primary-color, #0073ee);
}

.listeo-ai-chat-image-btn.has-image svg {
    stroke: var(--ai-chat-primary-color, #0073ee);
}

/* Image count badge */
.listeo-ai-chat-image-btn .image-count-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    background: var(--ai-chat-primary-color, #0073ee);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0 4px;
    box-sizing: border-box;
}

.listeo-ai-chat-image-btn.has-image .image-count-badge {
    display: flex;
}

/* Input padding when image button is present */
.listeo-ai-chat-input.has-image-input {
    padding-left: 50px !important;
}

/* Image Preview */
.listeo-ai-chat-image-preview {
    position: relative;
    display: inline-block;
    margin: 8px 0;
    max-width: 150px;
}

.listeo-ai-chat-image-preview img {
    max-width: 100%;
    max-height: 100px;
    border-radius: 8px;
    object-fit: cover;
}

.listeo-ai-chat-image-preview-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff4444;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    padding: 0;
}

.listeo-ai-chat-image-preview-remove:hover {
    background: #cc0000;
}

/* User message with image */
.listeo-ai-chat-message-user .listeo-ai-chat-user-image {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
    margin-bottom: 8px;
    display: block;
}

.listeo-ai-chat-message-user .listeo-ai-chat-user-image + .listeo-ai-chat-message-content {
    margin-top: 0;
}

/* ==========================================================================
   Custom Tooltips
   ========================================================================== */

.listeo-ai-tooltip {
    position: fixed;
    background: #222;
    color: #fff;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    border-radius: 8px;
    white-space: nowrap;
    z-index: 9999999;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-50%) translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.listeo-ai-tooltip.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Triangle indicator below tooltip */
.listeo-ai-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #222 transparent transparent transparent;
}

.listeo-ai-tooltip.no-arrow::after {
    display: none;
}

/* =============================================
   Typing Animation
   ============================================= */

/* Default: words are visible (for restored messages) */
.stream-word {
    display: inline;
}

/* Hidden state ONLY during active animation */
.streaming-active .stream-word {
    display: none;
}

/* Hide block elements (li, p, headings) until their content appears - ONLY during active animation */
.streaming-active .stream-block-hidden {
    display: none;
}

/* Visible state during animation - fade in smoothly */
.streaming-active .stream-word.visible {
    display: inline;
    animation: streamWordFadeIn 0.15s ease-out forwards;
}

@keyframes streamWordFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Fade trail effect - most recent words are more faded */
.streaming-active .stream-word.trail-1 {
    opacity: 0.4;
}

.streaming-active .stream-word.trail-2 {
    opacity: 0.55;
}

.streaming-active .stream-word.trail-3 {
    opacity: 0.7;
}

.streaming-active .stream-word.trail-4 {
    opacity: 0.85;
}

.streaming-active .stream-word.trail-5 {
    opacity: 0.95;
}



/* =============================================
   Chat window Header with Image
   ============================================= */
.listeo-floating-chat-popup.chat-image-header .listeo-ai-chat-header {
   height: 120px;
    position: relative;
    border-bottom: none;
}

.listeo-floating-chat-popup.chat-image-header .listeo-ai-chat-header-left {
    z-index: 100;
    align-self: flex-end;
    top: 20px;
    position: relative;
}

.listeo-floating-chat-popup.chat-image-header .listeo-ai-chat-menu {
    align-self: flex-start;
}

.listeo-floating-chat-popup.chat-image-header .listeo-ai-chat-avatar {
    height: 45px;
    width: 45px;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.4);
}

.listeo-floating-chat-popup.chat-image-header .listeo-ai-chat-header {
  background-image: var(--header-bg-image);
  background-size: cover;
  background-position: center;
  background-color: var(--header-bg-color);
}

.listeo-floating-chat-popup.chat-image-header .listeo-ai-chat-avatar-wrapper {
    top: 15px;
    position: relative;
}

.listeo-floating-chat-popup.chat-image-header .listeo-ai-chat-title {
    display: none; 
}

.listeo-floating-chat-popup.chat-image-header .listeo-ai-chat-menu-trigger,
.listeo-floating-chat-popup.chat-image-header .listeo-ai-chat-cart-toggle {
    color: #fff;
}

.listeo-floating-chat-popup.chat-image-header .listeo-ai-chat-darkmode-toggle:hover,
.listeo-floating-chat-popup.chat-image-header .listeo-ai-chat-menu-trigger:hover,
.listeo-floating-chat-popup.chat-image-header .listeo-ai-chat-menu-trigger[aria-expanded="true"],
.listeo-floating-chat-popup.chat-image-header .listeo-ai-chat-cart-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}


.chat-image-bg-welcome-text {
    padding-top: 20px;
}

.chat-image-bg-welcome-text p,
.chat-image-bg-welcome-text h3 { 
    margin: 0 !important;
    padding: 0 !important;
}

.chat-image-bg-welcome-text h3 { 
    color: #111;
    font-size: 21px !important;
    font-weight: 600;
    padding-bottom: 5px !important;
    line-height: 28px;
}

.chat-image-bg-welcome-text p { 
    color: #666;
    font-size: 17px !important;
    font-weight: 400;
    line-height: 28px !important;
}


/* Styles with image overlay */
.listeo-floating-chat-popup.chat-image-header.chat-image-header-overlay .listeo-ai-chat-header:before {
   content: "";
    background: linear-gradient(transparent 20%, #ffffff47 50%, #fff);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.listeo-floating-chat-widget:not(.dark-mode) .listeo-floating-chat-popup.chat-image-header.chat-image-header-overlay .listeo-ai-chat-messages{
    background: linear-gradient(#fff 50%, #f8f8f8);
}

.listeo-floating-chat-popup.chat-image-header.chat-image-header-overlay .listeo-ai-chat-header {
   height: 150px;
}

.listeo-floating-chat-popup.chat-image-header.chat-image-header-overlay .listeo-ai-chat-avatar-wrapper {
    top: 0;
}

.listeo-floating-chat-popup.chat-image-header.chat-image-header-overlay .chat-image-bg-welcome-text {
    padding-top: 5px;
}

.listeo-floating-chat-popup.chat-image-header .listeo-ai-chat-header-left,
.listeo-floating-chat-popup.chat-image-header .chat-image-bg-welcome-text {
    padding-left: 10px;
}


/* Dark mode adjustments */
.listeo-floating-chat-widget.dark-mode .chat-image-bg-welcome-text h3 { 
    color: #fff  !important;
}
.listeo-floating-chat-widget.dark-mode .chat-image-bg-welcome-text,
.listeo-floating-chat-widget.dark-mode  .chat-image-bg-welcome-text p { 
    color: #bbb  !important;
}
.listeo-floating-chat-popup.chat-image-header .listeo-ai-chat-darkmode-toggle svg,
.listeo-floating-chat-widget.dark-mode .listeo-floating-chat-popup.chat-image-header .listeo-ai-chat-menu-trigger,
.listeo-floating-chat-popup.chat-image-header .listeo-ai-chat-cart-toggle,
.listeo-floating-chat-widget.dark-mode .listeo-floating-chat-popup.chat-image-header .listeo-ai-chat-cart-toggle {
    color: #fff  !important;
}
.listeo-floating-chat-widget.dark-mode .listeo-floating-chat-popup.chat-image-header.chat-image-header-overlay .listeo-ai-chat-header:before {
    background: linear-gradient(transparent 20%, var(--chat-bg));
}

.listeo-floating-chat-widget.dark-mode .listeo-floating-chat-popup.chat-image-header .listeo-ai-chat-avatar {
    box-shadow: 0 0 0 3px rgba(0,0,0,0.2);
}

/* =============================================
   Animated Wave Header
   ============================================= */

.listeo-silk-wave-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    border-radius: inherit;
    will-change: transform;
}

/* --silk-blur is set inline by silk-wave-bg.js; blur lives here as a CSS
   filter because ctx.filter is not implemented in WebKit/Safari. */
.listeo-silk-wave-canvas {
    display: block;
    width: 100%;
    height: calc(100% - 1px);
    filter: blur(var(--silk-blur, 0px)) contrast(1.3);
}

.dark-mode .listeo-silk-wave-canvas {
    filter: blur(var(--silk-blur, 0px)) contrast(1.1);
}

.listeo-silk-wave-grain {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px 256px;
}

.listeo-floating-chat-popup.chat-animated-header .listeo-ai-chat-header {
    background-image: none;
    background-color: transparent;
}

.listeo-floating-chat-popup.chat-animated-header .listeo-ai-chat-header-left,
.listeo-floating-chat-popup.chat-animated-header .listeo-ai-chat-menu {
    z-index: 10;
    position: relative;
}

/* ==========================================================================
   CART TOGGLE BUTTON (Header)
   ========================================================================== */

.listeo-ai-chat-cart-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    color: #777;
    transition: all 0.15s ease;
    position: relative;
}

.listeo-ai-chat-cart-toggle > svg {
    position: relative;
    left: -1px;
}

.listeo-ai-chat-cart-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

.listeo-ai-cart-badge {
    position: absolute;
    top: 1px;
    right: 1px;
    background: var(--ai-chat-primary-color, #0073ee);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-sizing: border-box;
    pointer-events: none;
}

/* ==========================================================================
   ADD TO CART BUTTON (Product Cards)
   ========================================================================== */

/* Product card as div (when cart enabled) - match <a> card styling */
div.listeo-ai-product-card {
    cursor: default;
}

div.listeo-ai-product-card .listeo-ai-listing-title a {
    color: inherit;
    text-decoration: none;
}

div.listeo-ai-product-card .listeo-ai-listing-title a:hover {
    color: var(--ai-chat-primary-color, #0073ee);
}

div.listeo-ai-product-card .listeo-ai-listing-thumbnail a {
    display: block;
}

.listeo-ai-atc-wrapper {
    display: flex;
    margin-top: 8px;
    margin-bottom: 3px;
}

.listeo-ai-add-to-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ai-chat-primary-color, #0073ee);
    background: var(--ai-chat-primary-color-light, rgba(0, 115, 238, 0.1));
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
    white-space: nowrap;
    width: auto;
}

.listeo-ai-add-to-cart-btn:hover {
    background: var(--ai-chat-primary-color, #0073ee);
    color: #fff;
    text-decoration: none !important;
}

.listeo-ai-add-to-cart-btn.loading {
    pointer-events: none;
}

.listeo-ai-add-to-cart-btn.added {
    background: #27ae60;
    color: #fff;
}

.listeo-ai-add-to-cart-btn svg {
    flex-shrink: 0;
}

/* ==========================================================================
   CART POPUP OVERLAY
   ========================================================================== */

.listeo-ai-cart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    border-radius: inherit;
}

.listeo-ai-cart-popup {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    width: 100%;
    max-width: 360px;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.listeo-ai-cart-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.listeo-ai-cart-popup-header h3 {
    margin: 0;
    font-size: 16px !important;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
}

.listeo-ai-cart-popup-close {
    background: #f5f5f5;
    border: none;
    padding: 6px !important;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    width: 28px !important;
    height: 28px !important;
    min-width: auto !important;
    min-height: auto !important;
    box-sizing: border-box;
}

.listeo-ai-cart-popup-close svg {
    stroke: #888;
    transition: stroke 0.2s ease;
}

.listeo-ai-cart-popup-close:hover {
    background: #eee;
}

.listeo-ai-cart-popup-close:hover svg {
    stroke: #333;
}

.listeo-ai-cart-popup-body {
    overflow-y: auto;
    flex: 1;
    padding: 12px 16px;
    min-height: 60px;
}

.listeo-ai-cart-loading {
    display: flex;
    justify-content: center;
    padding: 20px;
    color: #aaa;
}

.listeo-ai-cart-spinner {
    animation: listeo-ai-cart-spin 0.8s linear infinite;
}

@keyframes listeo-ai-cart-spin {
    to { transform: rotate(360deg); }
}

.listeo-ai-cart-empty {
    text-align: center;
    padding: 24px 16px;
    color: #888;
    font-size: 14px;
}

.listeo-ai-cart-empty p {
    margin: 0;
    font-size: 14px;
}

/* Cart Item */
.listeo-ai-cart-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: opacity 0.2s ease;
}

.listeo-ai-cart-item:last-child {
    border-bottom: none;
}

.listeo-ai-cart-item-image {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.listeo-ai-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listeo-ai-cart-item-details {
    flex: 1;
    min-width: 0;
}

.listeo-ai-cart-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.listeo-ai-cart-item-title:hover {
    color: var(--ai-chat-primary-color, #0073ee);
    text-decoration: none;
}

.listeo-ai-cart-item-price {
    font-size: 13px;
    color: #666;
    margin-top: 0;
}

.listeo-ai-cart-item-qty {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin-top: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.listeo-ai-cart-qty-minus,
.listeo-ai-cart-qty-plus {
    width: 26px;
    height: 24px;
    border: none;
    background: #f8f8f8;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
    padding: 0 !important;
    min-width: auto !important;
    min-height: auto !important;
    line-height: 1;
}

.listeo-ai-cart-qty-minus:hover,
.listeo-ai-cart-qty-plus:hover {
    background: #eee;
}

.listeo-ai-cart-qty-value {
    width: 28px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    line-height: 24px;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

.listeo-ai-cart-item-remove {
    background: none;
    border: none;
    padding: 4px !important;
    cursor: pointer;
    color: #bbb;
    transition: color 0.15s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: auto !important;
    min-height: auto !important;
    width: auto !important;
    height: auto !important;
}

.listeo-ai-cart-item-remove:hover {
    color: #e74c3c;
}

/* Cart Footer */
.listeo-ai-cart-popup-footer {
    border-top: 1px solid #eee;
    padding: 14px 20px;
    flex-shrink: 0;
}

.listeo-ai-cart-subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.listeo-ai-cart-popup-actions {
    display: flex;
    gap: 8px;
}

.listeo-ai-cart-view-btn,
.listeo-ai-cart-checkout-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: center;
}

.listeo-ai-cart-view-btn {
    color: #555;
    background: #f0f0f0;
    border: none;
}

.listeo-ai-cart-view-btn:hover {
    background: #e5e5e5;
    color: #333;
    text-decoration: none;
}

.listeo-ai-cart-checkout-btn {
    color: #fff !important;
    background: var(--ai-chat-primary-color, #0073ee);
    border: 1px solid transparent;
}

.listeo-ai-cart-checkout-btn:hover {
    opacity: 0.9;
    color: #fff;
    text-decoration: none;
}/**
 * AI Chat Dark Mode Styles
 * Neutral Dark Theme
 *
 * @package AI Chat by Purethemes
 */

/* Dark mode CSS variables - neutral dark colors */
.listeo-ai-chat-wrapper.dark-mode {
    --chat-bg: #111;
    --chat-bg-secondary: #222;
    --chat-bg-tertiary: #222;
    --chat-border: #333;
    --chat-border-light: #444;
    --chat-text: #e5e5e5;
    --chat-text-secondary: #ccc;
    --chat-text-muted: #999;
    --chat-shadow: rgba(0, 0, 0, 0.4);
}

/* ===== CONTAINER ===== */
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-container {
    background: var(--chat-bg) !important;
    border-color: var(--chat-border) !important;
    box-shadow: 0 5px 20px var(--chat-shadow);
}

/* ===== HEADER ===== */
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-header {
    background-color: var(--chat-bg-secondary) !important;
    border-bottom-color: var(--chat-border) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-title {
    color: var(--chat-text) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-status-dot {
    border-color: var(--chat-bg-secondary) !important;
}

/* Menu */
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-darkmode-toggle,
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-menu-trigger {
    color: var(--chat-text-muted) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-darkmode-toggle:hover,
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-menu-trigger:hover,
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-menu-trigger[aria-expanded="true"] {
    background: rgba(0,0,0,0.2) !important;
    color: var(--chat-text) !important;
}

.elementor-chat-style .listeo-ai-chat-wrapper.dark-mode.expanded .listeo-ai-chat-quick-buttons {
        padding-bottom: 20px;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-header,
.elementor-chat-style .listeo-ai-chat-wrapper.dark-mode.expanded .listeo-ai-chat-messages { border-radius: 12px 12px 0 0; }
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-menu-dropdown {
    background: var(--chat-bg-secondary) !important;
    border-color: var(--chat-border) !important;
    box-shadow: 0 4px 16px var(--chat-shadow);
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-menu-item {
    color: var(--chat-text-secondary) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-menu-item:hover {
    background: var(--chat-bg-tertiary) !important;
    color: var(--chat-text) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-menu-item svg {
    color: var(--chat-text-muted) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-menu-item:hover svg {
    color: var(--chat-text) !important;
}

/* Clear button (shortcode) */
.listeo-ai-chat-wrapper.dark-mode button.listeo-ai-chat-clear-btn {
    color: var(--chat-text-muted) !important;
}

.listeo-ai-chat-wrapper.dark-mode button.listeo-ai-chat-clear-btn:hover {
    color: var(--chat-text) !important;
}

/* ===== MESSAGES AREA ===== */
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-messages {
    background: var(--chat-bg) !important;
}

/* User Message */
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-message-user {
    background: var(--ai-chat-primary-color, #0073ee) !important;
    color: #fff !important;
}

/* Assistant/System Message */
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-message-assistant,
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-message.listeo-ai-chat-message-system {
    background: #222 !important;
    color: var(--chat-text) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-message-assistant.chat-message-results {
    background: transparent !important;
    box-shadow: none !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-message-system {
    color: var(--chat-text-muted) !important;
}

/* Message Content */
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-message-content {
    color: var(--chat-text) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-message-content strong {
    color: var(--chat-text) !important;
}


.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-message-content p,
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-message-content {
    color:  var(--chat-text-muted);
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-message-content a,
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-message-content a strong,
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-message-content a:hover {
    color: #fff !important;
}

/* Loading Message */
.listeo-ai-chat-wrapper.dark-mode div.listeo-ai-chat-message.listeo-ai-chat-message-assistant[id^="loading"] {
    background: transparent !important;
    box-shadow: none !important;
    color: var(--chat-text-muted) !important;
}

/* ===== LOADING INDICATORS ===== */
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-typing-dots span {
    background: var(--chat-text-muted) !important;
}


.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-loading::before {
    background: var(--chat-bg) !important
}

/* ===== INPUT AREA ===== */
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-input-wrapper {
    background: var(--chat-bg-secondary) !important;
    border-top-color: var(--chat-border) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-container {
    background: var(--chat-bg-secondary) !important;
}
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-input-wrapper {
    border-radius: 0 0 12px 12px;
}
.elementor-chat-style .listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-input-wrapper {
    border-radius: 12px;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-input,
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-input:not(.elementor-chat-style .listeo-ai-chat-input) {
    background: #303030 !important;
    color: var(--chat-text) !important;
    border-color: var(--chat-border) !important;
    box-shadow: none !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-input::placeholder {
    color: var(--chat-text-muted) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-input:focus {
    border-color: var(--ai-chat-primary-color, #0073ee) !important;
    box-shadow: none;
}

/* Send Button */
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-send-btn {
    background: var(--ai-chat-primary-color, #0073ee) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-send-btn:disabled {
    background: var(--chat-border-light) !important;
}

/* Image Input Button */
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-image-btn {
    background: #242424 !important;
    color: #ccc !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-mic-btn:not(.recording):hover,
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-image-btn:hover {
    background: var(--ai-chat-primary-color, #0073ee) !important;
    color: #fff !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-image-btn:hover svg {
    stroke: #fff !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-image-btn.has-image {
    background: var(--ai-chat-primary-color-light, rgba(0, 115, 238, 0.2)) !important;
    color: var(--ai-chat-primary-color, #5fa8ff) !important;
}

/* ===== QUICK ACTION BUTTONS ===== */
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-quick-buttons {
    background: var(--chat-bg) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-quick-btn {
    background: var(--chat-bg-tertiary) !important;
    color: var(--chat-text-secondary) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-quick-btn.has-custom-color {
    background: var(--quick-btn-color) !important;
    color: #fff !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-quick-btn.has-custom-color .listeo-ai-btn-icon {
    stroke: #fff !important;
    opacity: 1;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-quick-btn:hover {
    background: var(--quick-btn-color, var(--ai-chat-primary-color, #0073ee)) !important;
    color: #fff !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-quick-btn.has-custom-color:hover {
    background: var(--quick-btn-color) !important;
    background: color-mix(in srgb, var(--quick-btn-color) 88%, #000) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-quick-btn:hover .listeo-ai-btn-icon {
    stroke: #fff !important;
}

/* ===== LISTING CARDS ===== */
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-listing-item {
    background: var(--chat-bg-secondary) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-listing-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-listing-title {
    color: var(--chat-text) !important;
}

.listeo-ai-chat-wrapper.dark-mode p.listeo-ai-listing-excerpt {
    color: var(--chat-text-muted) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-listing-meta {
    color: var(--chat-text-muted) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-listing-meta i {
    color: var(--chat-border-light) !important;
}

/* Product Price */
.listeo-ai-chat-wrapper.dark-mode .product-price {
    color: var(--chat-text) !important;
}

.listeo-ai-chat-wrapper.dark-mode .product-price .regular-price {
    color: var(--chat-text-muted) !important;
}

/* Show More Button */
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-show-more-btn {
    background: var(--ai-chat-primary-color, #0073ee) !important;
    color: #fff !important;
}

/* Best Match Badge */
.listeo-ai-chat-wrapper.dark-mode .match-badge.best {
    background: rgba(39, 174, 96, 0.2) !important;
    color: #5cd690 !important;
}

/* ===== CONTEXT BUTTONS ===== */
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-listing-context-title,
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-product-context-title {
    color: var(--chat-text) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-load-listing-btn,
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-load-product-btn {
    background: var(--chat-bg-tertiary) !important;
    color: var(--chat-text) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-load-listing-btn:hover,
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-load-product-btn:hover {
    background: var(--chat-border) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.listeo-ai-chat-wrapper.dark-mode .context-loaded-icon {
    color: var(--chat-text) !important;
}

/* ===== POPULAR SEARCHES ===== */
.listeo-ai-chat-wrapper.dark-mode .popular-searches-header {
    color: var(--chat-text) !important;
}

.listeo-ai-chat-wrapper.dark-mode .popular-search-tag {
    background: var(--chat-bg-tertiary) !important;
    color: var(--chat-text-secondary) !important;
}

.listeo-ai-chat-wrapper.dark-mode .popular-search-tag:hover {
    background: var(--ai-chat-primary-color, #0073ee) !important;
    color: #fff !important;
}

/* ===== DISABLED STATE ===== */
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-disabled {
    background: rgba(255, 193, 7, 0.15) !important;
    color: #ffc107 !important;
}

/* ===== POWERED BY ===== */
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-powered-by {
    color: var(--chat-text-muted) !important;
    margin-top: -8px !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-powered-by a {
    color: #fff !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-powered-by a:hover {
    color: #fff !important;
}

/* ===== TERMS NOTICE ===== */
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-terms-notice {
    color: var(--chat-text-muted) !important;
    background: var(--chat-bg-secondary) !important;
    padding-top: 2px;
    border-radius: 0 0 12px 12px;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-terms-notice a {
    color: #eee !important;
}

/* ===== CONTACT FORM OVERLAY ===== */
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-contact-form-overlay {
    background: rgba(0, 0, 0, 0.5) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-contact-form {
    background: var(--chat-bg-secondary) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-contact-form-header h3 {
    color: var(--chat-text) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-contact-form-close {
    background: color-mix(in srgb, var(--chat-border) 70%, transparent) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-contact-form-close svg {
    stroke: var(--chat-text-muted) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-contact-form-close:hover {
    background: var(--chat-border) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-contact-form-close:hover svg {
    stroke: var(--chat-text) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-contact-form-field label {
    color: var(--chat-text-secondary) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-contact-form-field input,
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-contact-form-field textarea {
    background: #303030 !important;
    border-color: var(--chat-border) !important;
    color: var(--chat-text) !important;
    box-shadow: none !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-contact-form-field input:focus, 
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-contact-form-field textarea:focus {
    outline: none !important;
    border-color: var(--ai-chat-primary-color, #0073ee) !important;
    box-shadow: none !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-contact-form-field input::placeholder,
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-contact-form-field textarea::placeholder {
    color: var(--chat-text-muted) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-contact-form-message.success {
    background: rgba(39, 174, 96, 0.2) !important;
    color: #5cd690 !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-contact-form-message.error {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #f87171 !important;
}

/* ===== PRE-CHAT FORM (dark mode) ===== */
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-pre-chat-form {
    background: var(--chat-bg-secondary) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-pre-chat-headline {
    color: var(--chat-text) !important;
}

/* ===== SCROLLBAR ===== */
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-messages {
    scrollbar-color: var(--chat-border) var(--chat-bg);
    scrollbar-width: thin;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-messages::-webkit-scrollbar-track {
    background: var(--chat-bg) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-messages::-webkit-scrollbar-thumb {
    background: var(--chat-border) !important;
    border-radius: 3px;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--chat-border-light) !important;
}

/* ===== ELEMENTOR STYLE OVERRIDES ===== */
.elementor-chat-style .listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-message-assistant,
.elementor-chat-style .listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-message.listeo-ai-chat-message-system {
    background: transparent !important;
    box-shadow: none !important;
}

.elementor-chat-style .listeo-ai-chat-wrapper.dark-mode .listeo-ai-quick-btn {
    background: var(--chat-bg-tertiary) !important;
}

.elementor-chat-style .listeo-ai-chat-wrapper.dark-mode .listeo-ai-listing-item {
    border: 1px solid var(--chat-border) !important;
}

.elementor-chat-style .listeo-ai-chat-wrapper.dark-mode .listeo-ai-listing-item:hover {
    border-color: var(--chat-border-light) !important;
}

/* ===== FLOATING CHAT DARK MODE ===== */

/* Welcome Bubble Dark Mode */
.listeo-floating-chat-widget.dark-mode .listeo-floating-welcome-bubble {
    background: #1a1a1a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.listeo-floating-chat-widget.dark-mode .listeo-floating-welcome-bubble-content {
    color: #e5e5e5;
}

.listeo-floating-chat-widget.dark-mode .listeo-floating-welcome-bubble-arrow {
    background: #1a1a1a;
}

/* Popup Container Dark Mode */
.listeo-floating-chat-widget.dark-mode .listeo-floating-chat-popup {
    background: transparent;
}

.listeo-floating-chat-popup .listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-container {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}


/* Shimmer */
.dark-mode .listeo-ai-chat-typing-dots,
.dark-mode .listeo-ai-chat-loading,
.dark-mode .listeo-ai-chat-shimmer-text {
    filter: brightness(1.4)
}

/* ===== CART TOGGLE BUTTON ===== */
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-cart-toggle {
    color: var(--chat-text-muted) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-chat-cart-toggle:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--chat-text) !important;
}

/* ===== PRODUCT CARD (div mode) ===== */
.listeo-ai-chat-wrapper.dark-mode div.listeo-ai-product-card .listeo-ai-listing-title a {
    color: inherit !important;
}

.listeo-ai-chat-wrapper.dark-mode div.listeo-ai-product-card .listeo-ai-listing-title a:hover {
    color: var(--ai-chat-primary-color, #4da3ff) !important;
}

/* ===== ADD TO CART BUTTON ===== */
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-add-to-cart-btn {
    color: #fff !important;
    background: var(--ai-chat-primary-color, #0073ee) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-add-to-cart-btn:hover {
    background: var(--ai-chat-primary-color, #4da3ff) !important;
    color: #fff !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-add-to-cart-btn.added {
    background: #27ae60 !important;
    color: #fff !important;
}

/* ===== CART POPUP OVERLAY ===== */
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-cart-overlay {
    background: rgba(0, 0, 0, 0.5) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-cart-popup {
    background: var(--chat-bg-secondary) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-cart-popup-header {
    border-bottom-color: var(--chat-border) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-cart-popup-header h3 {
    color: var(--chat-text) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-cart-popup-close {
    background: color-mix(in srgb, var(--chat-border) 70%, transparent) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-cart-popup-close svg {
    stroke: var(--chat-text-muted) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-cart-popup-close:hover {
    background: var(--chat-border) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-cart-popup-close:hover svg {
    stroke: var(--chat-text) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-cart-empty {
    color: var(--chat-text-muted) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-cart-item {
    border-bottom-color: var(--chat-border) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-cart-item-title {
    color: var(--chat-text) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-cart-item-title:hover {
    color: var(--ai-chat-primary-color, #4da3ff) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-cart-item-price {
    color: var(--chat-text-secondary) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-cart-item-qty {
    border-color: var(--chat-border) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-cart-qty-minus,
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-cart-qty-plus {
    background: #303030 !important;
    color: var(--chat-text) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-cart-qty-minus:hover,
.listeo-ai-chat-wrapper.dark-mode .listeo-ai-cart-qty-plus:hover {
    background: #404040 !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-cart-qty-value {
    color: var(--chat-text) !important;
    border-color: var(--chat-border) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-cart-item-remove {
    color: var(--chat-text-muted) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-cart-item-remove:hover {
    color: #e74c3c !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-cart-popup-footer {
    border-top-color: var(--chat-border) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-cart-subtotal-row {
    color: var(--chat-text) !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-cart-view-btn {
    background: #303030 !important;
    color: var(--chat-text) !important;
    border: none !important;
}

.listeo-ai-chat-wrapper.dark-mode .listeo-ai-cart-view-btn:hover {
    background: #404040 !important;
}/**
 * AI Chat Floating Widget Styles
 *
 * @package AI Chat by Purethemes
 * @since 1.0.0
 */

/* === Floating Widget Container === */
/* bottom/right/left offsets are set via inline styles from admin settings */
.listeo-floating-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
}

/* === Left Position === */
.listeo-floating-chat-widget.position-left {
    right: auto;
    left: 20px;
}

.listeo-floating-chat-widget.position-left .listeo-floating-chat-button {
    right: auto;
    left: 0;
}

.listeo-floating-chat-widget.position-left .listeo-floating-chat-popup {
    right: auto;
    left: 0;
}

.listeo-floating-chat-widget.position-left .listeo-floating-welcome-bubble-arrow {
    right: auto;
    left: 20px;
}

/* === Floating Button (60x60px circle) === */
.listeo-floating-chat-button {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    border-radius: 100px !important;
    background: #222;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease !important;
    position: absolute !important;
    z-index: 2;
    right: 0;
    bottom: 0;
    top: initial !important;
    padding: 0 !important;
}

.listeo-floating-chat-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.listeo-floating-chat-button.listeo-mini-chat-launcher-return {
    animation: listeoMiniChatLauncherReturn 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

@keyframes listeoMiniChatLauncherReturn {
    from {
        opacity: 0;
        transform: scale(0.88);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* .listeo-floating-chat-button:active {
    transform: scale(0.95);
} */

.listeo-floating-chat-button i {
    color: white;
    font-size: 24px;
    transition: all 0.2s ease;
}
.listeo-floating-chat-button i.sl-icon-arrow-down { font-size: 18px; }
/* Custom icon image styling */
.listeo-floating-custom-icon {
    max-width: 32px;
    max-height: 32px;
    width: auto;
    height: auto;
    border-radius: 100px;
    object-fit: contain;
    transition: all 0.2s ease;
}

/* Icon toggle positioning */
.listeo-floating-icon-open,
.listeo-floating-icon-close {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
}

@supports selector(:has(*)) {
    .listeo-floating-chat-button .listeo-floating-icon-open,
    .listeo-floating-chat-button .listeo-floating-icon-close {
        display: block !important;
        pointer-events: none;
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        transition: opacity 0.2s ease, transform 0.2s ease;
        will-change: opacity, transform;
    }

    .listeo-floating-chat-button .listeo-floating-icon-close {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }

    .listeo-floating-chat-widget:has(.listeo-floating-chat-popup[style*="display: block"]):not(:has(.listeo-floating-chat-popup[style*="opacity: 0"])) .listeo-floating-chat-button .listeo-floating-icon-open {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }

    .listeo-floating-chat-widget:has(.listeo-floating-chat-popup[style*="display: block"]):not(:has(.listeo-floating-chat-popup[style*="opacity: 0"])) .listeo-floating-chat-button .listeo-floating-icon-close {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* === Welcome Bubble === */
.listeo-floating-bubble-stack {
    position: absolute;
    right: 0;
    bottom: 75px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    width: 280px;
    max-width: calc(100vw - 30px);
    z-index: 1;
}

.listeo-floating-chat-widget.position-left .listeo-floating-bubble-stack {
    right: auto;
    left: 0;
    align-items: flex-start;
}

.listeo-floating-bubble-stack .listeo-floating-welcome-bubble {
    box-sizing: border-box;
    right: auto;
    left: auto;
    width: max-content;
    max-width: 100%;
    margin-bottom: 0;
    float: none;
}

.listeo-floating-bubble-stack .listeo-floating-welcome-bubble-arrow {
    display: none;
}

.listeo-floating-bubble-stack > .listeo-floating-welcome-bubble:last-of-type .listeo-floating-welcome-bubble-arrow {
    display: block;
}

.listeo-floating-welcome-bubble {
    right: 0;
    cursor: pointer;
    background: white;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    /* max-width: 280px; */
    animation: bubbleFadeIn 0.3s ease;
    z-index: 1;
    text-align: center;
    width: auto;
    margin-bottom: 75px;
    position: relative;
}

.listeo-floating-welcome-bubble-content {
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: #555;
}

.listeo-floating-welcome-bubble-arrow {
    position: absolute;
    bottom: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
}

/* Hide welcome bubble */
.listeo-floating-welcome-bubble.hidden {
    display: none;
}

.listeo-floating-mini-chat {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: block;
    visibility: hidden;
    box-sizing: border-box;
    width: 340px;
    max-width: calc(100vw - 30px);
    padding: 10px;
    border: none !important;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    opacity: 0;
    filter: blur(8px);
    pointer-events: none;
    transition:
        opacity 0.22s ease,
        filter 0.22s ease,
        visibility 0s linear 0.22s;
}

.listeo-floating-mini-chat.is-visible {
    visibility: visible;
    opacity: 1;
    filter: blur(0);
    pointer-events: auto;
    transition-delay: 0s;
}

.listeo-floating-chat-widget.position-left .listeo-floating-mini-chat {
    right: auto;
    left: 0;
}

.listeo-floating-mini-chat-identity {
    position: absolute;
    top: -42px;
    left: 0;
    display: inline-flex;
    box-sizing: border-box;
    max-width: calc(100% - 42px);
    min-height: 32px;
    margin: 0 !important;
    padding: 4px 12px !important;
    align-items: center;
    gap: 8px;
    border: 0 !important;
    border-radius: 100px !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1) !important;
    color: #222 !important;
    cursor: pointer;
    font-family: inherit;
    line-height: 24px;
    text-align: left;
}

.listeo-floating-mini-chat-identity.has-avatar {
    padding-left: 4px !important;
}

.listeo-floating-chat-widget:not(.dark-mode) .listeo-floating-mini-chat-identity {
    border: 1px solid #ffffffa1 !important;
    background: #ffffffb8 !important;
    backdrop-filter: blur(5px);
}

.listeo-floating-chat-widget.position-left .listeo-floating-mini-chat-identity {
    right: 0;
    left: auto;
}

body .listeo-floating-mini-chat-avatar {
    display: block;
    flex: 0 0 24px;
    box-sizing: border-box;
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    margin: 0;
    border-radius: 50% !important;
    object-fit: cover;
}

.listeo-floating-mini-chat-assistant-name {
    min-width: 0;
    overflow: hidden;
    font-size: 13px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.listeo-floating-mini-chat-close {
    position: absolute !important;
    top: -42px !important;
    right: 0 !important;
    display: inline-flex !important;
    box-sizing: border-box !important;
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #f0f0f0 !important;
    box-shadow: none !important;
    color: #666 !important;
    cursor: pointer !important;
    transform: none !important;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease !important;
}

.listeo-floating-chat-widget.position-left .listeo-floating-mini-chat-close {
    right: auto !important;
    left: 0 !important;
}

.listeo-floating-mini-chat-message {
    max-height: 180px;
    overflow-y: auto;
    padding: 16px;
    border-radius: 10px;
    background: #f5f5f5;
    color: #333;
    font-size: 15px;
    line-height: 24px;
    white-space: pre-wrap;
}

.listeo-floating-mini-chat-message a {
    color: var(--ai-chat-primary-color, #006aff);
    text-decoration: underline;
}

.listeo-floating-mini-chat-message a:hover,
.listeo-floating-mini-chat-message a:focus-visible {
    color: #0055cc;
}

.listeo-floating-mini-chat-quick-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 10px 0 2px !important;
    padding: 0 !important;
}

.listeo-floating-mini-chat-quick-actions[hidden] {
    display: none !important;
}

.listeo-floating-mini-chat-quick-action {
    display: inline-flex !important;
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 32px !important;
    margin: 0 !important;
    padding: 6px 12px !important;
    align-items: center !important;
    gap: 6px !important;
    border: none !important;
    border-radius: 8px !important;
    outline: 0 !important;
    background: #ebebeb !important;
    box-shadow: none !important;
    color: #777 !important;
    cursor: pointer !important;
    font: inherit !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 20px !important;
    text-align: left !important;
    text-transform: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    appearance: none !important;
    transform: none !important;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease !important;
}

.listeo-floating-mini-chat-quick-action:hover {
    background: var(--quick-btn-color-light, var(--ai-chat-primary-color-light, rgba(0, 115, 238, 0.1))) !important;
    color: var(--quick-btn-color, var(--ai-chat-primary-color, #0073ee)) !important;
}

.listeo-floating-mini-chat-quick-action:active {
    transform: scale(0.97) !important;
}

.listeo-floating-mini-chat-quick-action:focus-visible {
    outline: 2px solid var(--quick-btn-color, var(--ai-chat-primary-color, #0073ee)) !important;
    outline-offset: 2px !important;
}

.listeo-floating-mini-chat-quick-action.listeo-floating-mini-chat-quick-action-custom {
    background: var(--quick-btn-color-light) !important;
    color: var(--quick-btn-color) !important;
}

.listeo-floating-mini-chat-quick-action.listeo-floating-mini-chat-quick-action-custom:hover {
    background: var(--quick-btn-color-light) !important;
    background: color-mix(in srgb, var(--quick-btn-color-light) 94%, var(--quick-btn-color)) !important;
    color: var(--quick-btn-color) !important;
}

.listeo-floating-mini-chat-quick-action.listeo-floating-mini-chat-quick-action-custom:focus-visible {
    outline-color: var(--quick-btn-color) !important;
}

.listeo-floating-mini-chat-form {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    align-items: center;
}

.listeo-floating-mini-chat-input {
    flex: 1 1 auto !important;
    box-sizing: border-box !important;
    width: 0 !important;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #333 !important;
    font: inherit !important;
    font-size: 15px !important;
    line-height: 44px !important;
    appearance: none !important;
}

.listeo-floating-mini-chat-send {
    display: inline-flex !important;
    flex: 0 0 40px !important;
    box-sizing: border-box !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    border-radius: 50% !important;
    background: var(--ai-chat-button-color, #222) !important;
    box-shadow: none !important;
    color: #fff !important;
    cursor: pointer !important;
    appearance: none !important;
    transform: none !important;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease !important;
}

.listeo-floating-mini-chat-close:hover,
.listeo-floating-mini-chat-close:focus-visible {
    background: #dcdcdc !important;
    transform: scale(1.03) !important;
}

.listeo-floating-mini-chat-send:hover,
.listeo-floating-mini-chat-send:focus-visible {
    background: var(--ai-chat-button-color, #222) !important;
    background: color-mix(in srgb, var(--ai-chat-button-color, #222) 88%, #000) !important;
    color: #fff !important;
    transform: scale(1.03) !important;
}

.listeo-floating-mini-chat-send svg,
.listeo-floating-mini-chat-send:hover svg,
.listeo-floating-mini-chat-send:focus-visible svg {
    color: #fff !important;
    stroke: #fff !important;
}

.listeo-floating-chat-widget.dark-mode .listeo-floating-mini-chat {
    background: #1a1a1a;
    color-scheme: dark;
}

.listeo-floating-chat-widget.dark-mode .listeo-floating-mini-chat-identity {
    background: #333 !important;
    color: #e5e5e5 !important;
}

.listeo-floating-chat-widget.dark-mode .listeo-floating-mini-chat-message {
    background: #2e2e2e !important;
    color: #e5e5e5;
}

.listeo-floating-chat-widget.dark-mode .listeo-floating-mini-chat-message strong {
    color: #fff;
}

.listeo-floating-chat-widget.dark-mode .listeo-floating-mini-chat-message a,
.listeo-floating-chat-widget.dark-mode .listeo-floating-mini-chat-message a:hover,
.listeo-floating-chat-widget.dark-mode .listeo-floating-mini-chat-message a:focus-visible {
    color: #fff;
}

.listeo-floating-chat-widget.dark-mode .listeo-floating-mini-chat-send,
.listeo-floating-chat-widget.dark-mode .listeo-floating-mini-chat-send:hover,
.listeo-floating-chat-widget.dark-mode .listeo-floating-mini-chat-send:focus-visible {
    background: var(--ai-chat-primary-color, #0073ee) !important;
    color: #fff !important;
}

.listeo-floating-chat-widget.dark-mode .listeo-floating-mini-chat-quick-action {
    background: #2b2b2b !important;
    color: #e5e5e5 !important;
}

.listeo-floating-chat-widget.dark-mode .listeo-floating-mini-chat-quick-action:hover {
    background: var(--quick-btn-color, var(--ai-chat-primary-color, #0073ee)) !important;
    color: #fff !important;
}

.listeo-floating-chat-widget.dark-mode .listeo-floating-mini-chat-quick-action.listeo-floating-mini-chat-quick-action-custom {
    background: var(--quick-btn-color) !important;
    color: #fff !important;
}

.listeo-floating-chat-widget.dark-mode .listeo-floating-mini-chat-quick-action.listeo-floating-mini-chat-quick-action-custom:hover {
    background: var(--quick-btn-color) !important;
    background: color-mix(in srgb, var(--quick-btn-color) 88%, #000) !important;
}

.listeo-floating-chat-widget.dark-mode .listeo-floating-mini-chat-input {
    background: transparent !important;
    color: #e5e5e5 !important;
}

.listeo-floating-chat-widget.dark-mode .listeo-floating-mini-chat-input::placeholder {
    color: #999 !important;
    opacity: 1;
}

.listeo-floating-chat-widget.dark-mode .listeo-floating-mini-chat-close {
    background: #333 !important;
    color: #e5e5e5 !important;
}

.listeo-floating-chat-widget.dark-mode .listeo-floating-mini-chat-close:hover,
.listeo-floating-chat-widget.dark-mode .listeo-floating-mini-chat-close:focus-visible {
    background: #444 !important;
}

@media (prefers-reduced-motion: reduce) {
    .listeo-floating-mini-chat,
    .listeo-floating-mini-chat-quick-action {
        transition: none;
    }

    .listeo-floating-chat-button.listeo-mini-chat-launcher-return {
        animation: none !important;
    }
}

@keyframes bubbleFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Chat Popup (dimensions set via inline styles) === */
.listeo-floating-chat-popup {
    position: absolute;
    bottom: 75px;
    right: 0;
    /* width and height set dynamically via inline styles */
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: popupSlideIn 0.3s ease;
}

.listeo-floating-chat-popup.listeo-no-animation {
    animation: none !important;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Override chat wrapper height for popup */
.listeo-floating-chat-popup .listeo-ai-chat-wrapper {
    display: block !important;
    height: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.listeo-floating-chat-popup .listeo-ai-chat-container {
    height: 100%;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}


.listeo-floating-chat-popup { max-height: 75vh; }

@media (max-width: 768px) {
    .listeo-floating-chat-widget {
        bottom: 0;
        right: 0;
        left: auto;
        width: 100%;
    }

    .listeo-floating-chat-widget.position-left {
        left: 0;
        right: auto;
    }

    .listeo-floating-chat-popup {
        width: calc(100% - 30px) !important;
        height: calc(100vh - 100px) !important;
        bottom: 80px !important;
        right: 15px !important;
    }

    .listeo-floating-chat-widget.position-left .listeo-floating-chat-popup {
        right: auto !important;
        left: 15px !important;
    }

    .listeo-floating-chat-button {
        bottom: 20px;
        right: 20px;
        position: absolute;
        zoom: 0.8;
    }

    .listeo-floating-chat-widget.position-left .listeo-floating-chat-button {
        right: auto;
        left: 20px;
    }
    .listeo-floating-welcome-bubble {
         right: 15px;
        width: fit-content;
        float: right;
    }

    .listeo-floating-chat-widget.position-left .listeo-floating-welcome-bubble {
        float: left;
        right: auto;
        left: 15px;
    }

    .listeo-floating-bubble-stack {
        right: 15px;
    }

    .listeo-floating-chat-widget.position-left .listeo-floating-bubble-stack {
        right: auto;
        left: 15px;
    }

    .listeo-floating-chat-widget .listeo-floating-bubble-stack .listeo-floating-welcome-bubble {
        right: auto;
        left: auto;
        float: none;
    }

    .listeo-floating-mini-chat {
        right: 15px !important;
        left: 15px !important;
        bottom: 20px;
        width: auto !important;
        max-width: none !important;
    }

    .listeo-floating-chat-widget.position-left .listeo-floating-mini-chat {
        right: 15px !important;
        left: 15px !important;
    }
}

/* === Terms of Use Notice === */
.listeo-ai-chat-terms-notice {
    padding: 16px;
    padding-top: 0;
    font-size: 13px;
    line-height: 19px;
    text-align: center;
    margin-top: -5px;
    color: #666;
}

.listeo-ai-chat-terms-notice a {
    color: var(--ai-chat-primary-color);
    text-decoration: none;
}

.listeo-ai-chat-terms-notice a:hover {
    text-decoration: underline;
}

/* === Lazy Load State === */
/* Hide all chat content while scripts load, show only spinner */
.listeo-ai-chat-lazy-state .listeo-ai-chat-container {
    position: relative;
}

.listeo-ai-chat-lazy-state .listeo-ai-chat-header,
.listeo-ai-chat-lazy-state .listeo-ai-chat-messages,
.listeo-ai-chat-lazy-state .listeo-ai-chat-input-wrapper,
.listeo-ai-chat-lazy-state .listeo-ai-chat-quick-buttons,
.listeo-ai-chat-lazy-state .listeo-ai-chat-terms-notice,
.listeo-ai-chat-lazy-state .listeo-ai-chat-powered-by,
.listeo-ai-chat-lazy-state .listeo-ai-chat-menu {
    opacity: 0;
}

/* Spinner */
.listeo-ai-chat-lazy-state .listeo-ai-chat-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: #666;
    border-radius: 50%;
    animation: listeoLazyLoadSpin 0.7s linear infinite;
    z-index: 1;
}

.listeo-ai-chat-lazy-state.dark-mode .listeo-ai-chat-container::after {
    border-color: rgba(255, 255, 255, 0.15);
    border-top-color: #aaa;
}

@keyframes listeoLazyLoadSpin {
    to { transform: rotate(360deg); }
}/**
 * AI Chat - Search Styles
 *
 * @package AI Chat by Purethemes
 */

.ai-chat-search-container {
    margin: 0;
    padding: 0px;
    overflow: visible;
    position: relative;
}

/* Modern Search Form */
.ai-search-form-wrapper {
    position: relative;
    margin-bottom: 0;
    overflow: visible;
    
}


.fs-content .ai-search-form-wrapper,
.sidebar .ai-search-form-wrapper{
        position: relative;
        height: 51px;
        padding: 0 20px;
        margin: 0;
        outline: none;
        font-size: 15px;
        color: #888;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        font-weight: 500;
        opacity: 1;
        border-radius: 4px;
        transition: 0.2s;
        background-color: #fff;
        border: 1px solid #dbdbdb;
        box-shadow: 0 1px 3px 0px rgba(0, 0, 0, 0.06);
        margin-bottom: 18px;
        display: flex;
        align-items: center;
}

.ai-chat-search-form {
    margin: 0;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    /* background: white;
    border: 1px solid #e0e0e0; */
}

.search-input-wrapper input[name="ai_search_hp"] {
    position: absolute;
    left: -9999px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: transparent;
}

.search-input-wrapper {
    border-radius: 4px;
    overflow: visible;
    /* transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgb(0 0 0 / 8%);
    padding: 4px; */
    justify-content: space-between;
    width: 100%;
}

/* .search-input-wrapper:focus-within {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1), 0 4px 6px -1px rgba(0, 0, 0, 0.1);
} */

.search-input-icon {
    padding: 0 7px 0 0;
    display: flex;
    align-items: center;
}

.search-stars {
    font-size: 18px;
    opacity: 0.9;
    width: 20px;
}



.ai-btn-container {
    position: relative;
}

.ai-btn-container.ai-btn-error .ai-search-button {
    opacity: 0;
    visibility: hidden;
}

/* Clean consolidated button styles */
.ai-search-button {
    padding: 1px 12px;
    background: linear-gradient(135deg, #a98fe5, #7c3aed);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0;
    justify-content: center;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    line-height: 24px;
    transition: all 0.3s ease;
    background:linear-gradient(292deg, #8b5cf6, #ec4899, #f59e0b);
}

.ai-search-button:hover:not(:disabled) {
    /* background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transform: translateY(-1px); */
    /* box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4); */
}

.ai-search-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.ai-search-button.loading-ai {
    background: linear-gradient(135deg, #6d28d9, #5b21b6);
}

.ai-search-button.tooltip-visible .button-text {
    opacity: 0.3;
}
.ai-search-button .ai-button-icon {
    font-size: 12px;
    margin-right: 4px;
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";

}


/* Responsive button behavior - show only icon when container width < 400px */
.ai-search-form-wrapper {
    container-type: inline-size;
}

@container (max-width: 400px) {
    .ai-btn-container {
        position: absolute;
        right: 0;
        top: 0;
    }
    
    .ai-search-button {
        width: 24px;
        height: 24px;
        transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 100;
    }
    
    .ai-search-button .ai-button-icon {
        flex-shrink: 0;
        margin-right: 0;
        font-size: 11px;
    }

    body .listing-item-ai .listing-meta-ai span.address {
        max-width: 95%
    }
    
    .ai-search-button .button-text {
        max-width: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-width 0.3s ease, opacity 0.3s ease;
        white-space: nowrap;
        font-size: 13px;
        line-height: 24px;
    }

    .ai-search-button:hover {
        width: auto;
        padding: 3px 12px;
        z-index: 1000;
    }

    .ai-search-button:hover .ai-button-icon {
        margin-right: 4px;
    }

    .ai-search-button:hover .button-text {
        max-width: 120px;
        opacity: 1;
    }

    body .validation-popup {
        line-height: 25px;
        padding: 0 13px;
        font-size: 13px;
        height: 25px;
    }

/* Best Match Badge - Simple and Clean */
body .match-badge.best {
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    font-size: 11px;
    padding: 0px 6px;
    height: 18px;
}
}

/* Compact search results for narrow containers */
@container (max-width: 400px) {
    .search-results-container {
        padding: 15px !important;
    }

    
    
    .listing-thumbnail-ai {
        width: 60px !important;
        height: 60px !important;
        padding: 5px !important;
        display: none !important;
    }
    
    .listing-item-ai .listing-title-ai {
        font-size: 14px !important; /* 30% smaller than 16px */
        margin: 0 !important;
        line-height: 20px !important;
    }
    .listing-item-ai {
        flex-direction: column;
    }
    .listing-item-ai .listing-excerpt-ai {
        display: none !important; /* Hide excerpt completely */
    }
    
    .listing-details-ai {
        padding: 10px 13px !important;
        /* padding-left: 5px !important; */
        flex-direction: column;
    }

    .listing-sidebar-ai { justify-content: flex-start}
    
    .listing-sidebar-ai {
        min-width: 80px !important;
        align-items: flex-start !important;
        display: none !important;
    }
    
    /* Show compact badge inside title for narrow containers */
    .listing-title-ai .match-badge.compact {

    }
    
    .listing-item-ai .listing-meta-ai {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0 !important;
        margin-top: 2px !important;
        font-size: 13px !important;
    }
    
    .listing-item-ai .listing-meta-ai span {
        font-size: 13px !important;
    }
    .ai-results-header {
        margin-bottom: 16px !important;
    }
    
    .ai-header-title {
        font-size: 16px !important;
    }
    
    .ai-header-subtitle {
        font-size: 12px !important;
    }
}

.ai-search-button.loading-ai {
    background: linear-gradient(135deg, #6d28d9, #5b21b6);
}

.loading-spinner {
    display: inline-block;
}

.loading-spinner i {
    font-size: 14px;
}

/* Modern Search Suggestions */
.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    /* max-width: 100%; */
    width: 100%;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 4%);
    z-index: 9999;
    display: none; /* Hidden by default, JS will handle animation */
    
    /* Animation properties */
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Unique class to avoid Bootstrap conflicts */
.ai-search-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    display: block !important;
}

.search-suggestions h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suggestion-tag {
    display: inline-block;
    padding: 5px 10px;
    background: #f4f4f4;
    border-radius: 65px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    line-height: 17px;
}

.suggestion-tag:hover {
    background: #222;
    color: white;
}

/* AI Processing Status */
.ai-chat-search-container .ai-processing-status {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    /* max-width: 100%; */
    width: 100%;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: none; /* Hidden by default, JS will handle animation */
    z-index: 10000; /* Higher than search suggestions */
    
    /* Animation properties */
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.processing-step {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    position: relative;
    min-height: 28px;
    margin: 0 2px;
}

.processing-step.active {
    opacity: 1;
    position: relative;
    overflow: hidden;
    border-radius: 74px;
    min-height: 28px;
}

.processing-step.active .step-icon,
.processing-step.active .step-text {
    color: #8b5cf6;
}

.processing-step .step-timing {
    margin-left: auto;
    font-size: 13px;
    color: #8b5cf6;
    background: #f3f0fd;
    border-radius: 4px;
    padding: 2px 8px;
    font-weight: 500;
    opacity: 0.85;
    min-width: 48px;
    text-align: right;
    box-shadow: 0 1px 2px rgba(139,92,246,0.07);
    transition: background 0.2s, color 0.2s;
    margin-right: 2px;
    display: none;
}

.processing-step.completed .step-timing,
.processing-step.active .step-timing {
    display: inline-block;
}

.processing-step.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(139, 92, 246, 0.1), 
        rgba(168, 85, 247, 0.1), 
        rgba(139, 92, 246, 0.1), 
        transparent
    );
    animation: lightning 2s infinite;
    z-index: 1;
    border-radius: 4px;
}

.processing-step.active .step-icon,
.processing-step.active .step-text {
    position: relative;
    z-index: 2;
}

@keyframes lightning {
    0% {
        left: -50%;
    }
    100% {
        left: 100%;
    }
}

.processing-step.completed {
    opacity: 1;
}

.step-icon {
    font-size: 15px;
    width: 24px;
    text-align: center;
}

.step-text {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    line-height: 18px;
}

/* Results Container */
.search-results-container {
    position: absolute;
    top: calc(100% + 5px);
    left: 0px;
    right: 0;
    /* max-width: 100%; */
    width: 100%;
    min-height: auto;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 6%);
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: white;
    z-index: 9999;
    display: none; /* Hidden by default, JS will handle animation */
    container-type: inline-size;
    
    /* Animation properties */
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 480px) {
.main-search-inner .search-results-container {min-width: 320px; }
}

.results-header {
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8faff, #eef2ff);
    border: 1px solid #e0e7ff;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.results-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

/* Modern AI Results Header */
.ai-results-header {
    margin-bottom: 20px;
}

.ai-header-gradient {
    background: white;
    /* border: 1px solid #e5e7eb; */
    border-radius: 16px;
    /* padding: 24px; */
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 16px;
    /* box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); */
}

.ai-header-icon {
    font-size: 28px;
    opacity: 0.8;
}

.ai-header-content {
    flex: 1;
}

.widget .ai-header-title,
.ai-header-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    background: linear-gradient(135deg, #8b5cf6, #ec4899, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-header-subtitle {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: #6b7280;
}

.query-highlight {
    font-weight: 600;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

}

.results-count {
    font-size: 20px;
    color: #4c51bf;
    margin-bottom: 8px;
    font-weight: 600;
}

.search-explanation {
    font-size: 14px;
    color: #6b7280;
    font-style: italic;
    line-height: 1.5;
}

.fallback-notice {
    padding: 12px 16px;
    margin-bottom: 15px;
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 5px;
    color: #0c5460;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-search-input {
    height: 30px !important;
    background: transparent;
    box-shadow: none !Important;
    margin-left: 0 !important;
    width: 100%;
    padding-left: 0 !important;
    width: 100%;
    flex: 1;
    flex-grow: 1;
    padding: 0;
    border: none !important;
    outline: none;
    font-size: 16px;
    background: transparent;
    margin: 0 !important;
    font-weight: 500;
    line-height: 20px !important;
}
.ai-search-input::placeholder {
    color: #808080;
    font-weight: 500;
    font-size: 15px;
}


/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

/* Results List - New List Layout with Small Square Thumbnails (AI-SPECIFIC) */
.results-list-ai {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px;
    margin-bottom: 0;
}

/* List Item - Horizontal Layout (AI-SPECIFIC) - Now as clickable link */
.listing-item-ai {
    background: white !important;
    border-radius: 5px !important;
    /* overflow: hidden; */
    /* box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06) !important; */
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0 !important;
    display: flex !important;
    align-items: stretch !important;
    min-height: 80px !important;
    position: relative;
    width: 100% !important;
    box-shadow: none;
    /* Link-specific styles */
    text-decoration: none !important;
    color: inherit !important;
    /* align-items: center !important; */
    overflow: hidden;
}

.listing-item-ai:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

/* Small Square Thumbnail (AI-SPECIFIC) */
.listing-thumbnail-ai {
    position: relative;
    height: 100px;
    flex-shrink: 0;
    overflow: hidden;
    max-height: 100px;
    width: 100px;
    padding: 10px;
    /* border-radius: 5px; */
    /* overflow: hidden; */
}

.listing-thumbnail-ai img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.2s ease;
    border-radius: 5px !important;
}

/* No Thumbnail - Adjust layout when image is missing */
.listing-item-ai.no-thumbnail .listing-details-ai {
    padding-left: 16px;
}

.listeo-ai-listing-item.no-thumbnail .listeo-ai-listing-details {
    padding-left: 16px;
}

/* Listing Details - Flex Layout (AI-SPECIFIC) */
.listing-details-ai {
    display: flex;
    flex: 1;
    align-items: stretch;
    padding: 12px 16px;
    gap: 0;
    padding-left: 7px;
}

.listing-main-ai {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0; /* Allow text truncation */
}

.listing-sidebar-ai {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 4px;
    min-width: 100px;
}

/* List Layout Typography (AI-SPECIFIC) */
.listing-item-ai .listing-title-ai {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: #222;
    transition: 0.2s;
}

/* .listing-item-ai:hover .listing-title-ai {
    color: #8b5cf6;
} */

.listing-item-ai .listing-excerpt-ai {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1; /* Single line for list view */
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 90%;
}

.listing-item-ai .listing-meta-ai {
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: #888;
    flex-wrap: nowrap;
    align-items: center;
    margin-top: 5px;
}

.listing-item-ai .listing-meta-ai span {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 20px;
}

.listing-item-ai .listing-meta-ai span.address {
    /* display: flex; */
    /* align-items: center; */
    /* gap: 4px; */
    /* white-space: nowrap; */
    /* max-width: 335px; */
    /* white-space: nowrap; */
    overflow: hidden;
    /* text-overflow: ellipsis; */
    color: #888;
    font-size: 13px;
    line-height: 1.4;
    /* margin: 0; */
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 70%;
}


.listing-item-ai .listing-meta-ai i {
    width: 10px;
    text-align: center;
    color: #b4b4b4;
    font-size: 12px;
}

/* Rating styles when inline with meta */
.listing-item-ai .listing-meta-ai .rating-ai {
    color: #f59e0b;
    font-weight: 500;
}

.listing-item-ai .listing-meta-ai .rating-ai i {
    color: #f59e0b !important;
    font-size: 10px;
}

/* Sidebar Elements (AI-SPECIFIC) */
.listing-sidebar-ai .price {
    font-size: 14px;
    font-weight: 600;
    color: #059669;
    text-align: right;
}

/* Hide empty sidebar */
.listing-sidebar-ai:empty {
    display: none;
}

/* Hide empty sidebar */
.listing-sidebar-ai:empty {
    display: none;
}

/* Hide empty sidebar - comprehensive approach */
.listing-sidebar-ai:empty {
    display: none;
}

/* Ensure proper spacing when sidebar is present */
.listing-sidebar-ai {
    min-width: 100px;
}

.listing-sidebar-ai { display: none !important;}

/* Best Match Badge - Simple and Clean */
.match-badge.best {
    font-weight: 600;
    font-size: 12px;
    padding: 0px 8px;
    line-height: 16px;
    text-shadow: none;
    border-radius: 50px;
    background: #00b54d21;
    display: flex;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
    color: #27ae60;
    height: 21px;
    position: relative;
    top: -1px;
    display: inline-block;
    margin-top: 4px;
}



/* No Results */
.no-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0px;
    right: 0;
    max-width: 100%;
    width: 100%;
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 4px;
    z-index: 9999;
    display: none; /* Hidden by default, JS will handle animation */
    border: 1px solid #e0e0e0;
    background: #fff;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 4%);
    
    /* Animation properties */
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.no-results h3 {
    margin: 0 !important;
    color: #222;
    font-size: 18px!important;
    font-weight: 500;
}

.no-results p {
    color: #808080;
    font-size: 16px;
    margin: 0;
    line-height: 22px;
    margin-top: 5px;
}

/* Error Messages */
.search-error {
    position: absolute;
    top: calc(100% + 0px);
    left: 0px;
    right: 0;
    max-width: 100%;
    width: 100%;
    padding: 12px 16px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
    font-size: 14px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 4%);
    z-index: 9999;
    display: none; /* Hidden by default, JS will handle animation */
    
    /* Animation properties */
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Debug Panel Styles */
.search-debug-panel {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.search-debug-panel h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-family: inherit;
    font-size: 14px;
    font-weight: bold;
}

.debug-section {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
}

.debug-section strong {
    min-width: 140px;
    color: #495057;
    margin-right: 10px;
}

.debug-section span,
.debug-section pre {
    color: #212529;
    word-break: break-word;
}

.debug-raw {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.debug-raw-data {
    background: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 5px;
    padding: 10px;
    font-size: 11px;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.debug-toggle-raw {
    background: #6c757d;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 11px;
}

.debug-toggle-raw:hover {
    background: #5a6268;
}

/* AI Search Result Animations - Updated for List Layout (AI-SPECIFIC) */
.listing-item-ai {
    opacity: 0;
    transform: translateY(0px);
    animation: fadeInUp 0.4s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(0px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* AI Results Header Animation */
.results-header {
    opacity: 0;
    transform: translateY(0px);
    animation: fadeInUp 0.4s ease-out forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(0px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Validation Popup */
.ai-btn-container {position: absolute;right: 0;top: 50%;transform: translateY(-52%);}
.validation-popup {
    position: absolute;
    top: 50%;
    right: 100%;
    background: #dc3545;
    color: white;
    line-height: 20px;
    padding: 1px 13px;
    border-radius: 55px;
    font-size: 13px;
    height: 24px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-50%) translateX(-10px);
    transition: all 0.3s ease;
    z-index: 101;
    pointer-events: none;
    right: 0;
}


.validation-popup.show {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.main-search-input .search-input-wrapper {
    height: 44px;
}

.main-search-inner .ai-search-input::placeholder,
.main-search-inner .ai-search-input { font-size: 16px !important;}
body .main-search-inner .search-suggestions h4 {
    line-height: 20px;
    font-size: 14px;
    color: #666 !important;
    font-weight: 500;
    opacity: 1;
}

.main-search-inner .no-results,
.main-search-inner .ai-processing-status,
.main-search-inner .search-suggestions,
.main-search-inner .search-results-container {
    border: none;
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.08);
    padding-top: 10px;
}



.widget .no-results,
.widget .ai-processing-status,
.widget .search-suggestions,
.widget .search-results-container {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    top: calc(100% - 2px);
    border-top: none;
    border-radius: 0 0 4px 4px;
    left: -1px;
    width: calc(100% + 2px);
    padding-top: 10px;
}

.widget .search-results-container { left: 0;}
@media (max-width: 992px) {
    .main-search-inner .ai-search-form-wrapper {     background: #fff;
    padding: 5px 14px;
    border-radius: 5px;}
.main-search-inner .no-results,
.main-search-inner .ai-processing-status,
.main-search-inner .search-suggestions,
.main-search-inner .search-results-container {
    padding-top: 20px;
}

body .header-search-container  .ai-search-form-wrapper {     background: #fff;
    padding: 5px 14px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
        box-shadow: 0 1px 3px 0px rgba(0, 0, 0, 0.08);
}
body .header-search-container .search-input-wrapper {

}

}

/* Dark Mode Styles */
#dark-mode .fs-content .ai-search-form-wrapper,
#dark-mode .sidebar .ai-search-form-wrapper {
    background-color: #333;
    border: 1px solid #555;
    box-shadow: 0 1px 3px 0px rgba(0, 0, 0, 0.3);
}

#dark-mode .ai-search-input {
    color: #ddd;
}

#dark-mode .ai-search-input::placeholder {
    color: #999;
}

#dark-mode .search-suggestions {
    background: #333;
    border: 1px solid #555;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 25%);
}

#dark-mode .search-suggestions h4 {
    color: #999;
}

#dark-mode .suggestion-tag {
    background: #444;
    color: #ddd;
}

#dark-mode .suggestion-tag:hover {
    background: #555;
    color: white;
}

#dark-mode .ai-processing-status {
    background: #333;
    border: 1px solid #555;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

#dark-mode .step-text {
    color: #ddd;
}

#dark-mode .processing-step .step-timing {
    background: #444;
    color: #8b5cf6;
}

#dark-mode .search-results-container {
    background: #333;
    border: 1px solid #555;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 25%);
}

#dark-mode .ai-header-gradient {
    background: #333;
}

#dark-mode .ai-header-subtitle {
    color: #999;
}

#dark-mode .listing-item-ai {
    background: #444 !important;
    border: 1px solid #666 !important;
}

#dark-mode .listing-item-ai:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

#dark-mode .listing-item-ai .listing-title-ai {
    color: #ddd;
}

#dark-mode .listing-item-ai .listing-excerpt-ai {
    color: #999;
}

#dark-mode .listing-item-ai .listing-meta-ai {
    color: #999;
}

#dark-mode .listing-item-ai .listing-meta-ai span.address {
    color: #999;
}

#dark-mode .listing-item-ai .listing-meta-ai i {
    color: #777;
}

#dark-mode .no-results {
    background: #333;
    border: 1px solid #555;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 25%);
}

#dark-mode .no-results h3 {
    color: #ddd !important;
}

#dark-mode .no-results p {
    color: #999;
}

#dark-mode .search-error {
    background: #5a1a1a;
    border: 1px solid #7a2222;
    color: #ffb3b3;
}

#dark-mode .validation-popup {
    background: #dc2626;
}

#dark-mode .main-search-inner .search-suggestions h4 {
    color: #999 !important;
}

#dark-mode .main-search-inner .no-results,
#dark-mode .main-search-inner .ai-processing-status,
#dark-mode .main-search-inner .search-suggestions,
#dark-mode .main-search-inner .search-results-container {
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.25);
}

#dark-mode .widget .no-results,
#dark-mode .widget .ai-processing-status,
#dark-mode .widget .search-suggestions,
#dark-mode .widget .search-results-container {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@media (max-width: 992px) {
    #dark-mode .main-search-inner .ai-search-form-wrapper {
        background: #333;
        border: 1px solid #555;
        box-shadow: 0 1px 3px 0px rgba(0, 0, 0, 0.25);
    }
    
    #dark-mode .header-search-container .ai-search-form-wrapper {
        background: #333;
        border: 1px solid #555;
        box-shadow: 0 1px 3px 0px rgba(0, 0, 0, 0.25);
    }
}


@media (max-width: 992px) {.home-search-carousel .ai-search-form-wrapper {  background: #fff; padding: 3px 10px; border-radius: 5px; }}

/* =================================================================
   WooCommerce Product Cards in Search Results
   Copied 1:1 from chat.css for consistent styling
   ================================================================= */

/* Product listing item */
.results-list-ai .listeo-ai-listing-item {
    background: white;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: stretch;
    min-height: 90px;
    text-decoration: none !important;
    color: inherit;
    box-shadow: none;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.results-list-ai .listeo-ai-listing-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);

}

.results-list-ai .listeo-ai-listing-thumbnail {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    overflow: hidden;
    padding: 12px;
    margin-top: 5px;
    margin-left: 3px;
}

.results-list-ai .listeo-ai-listing-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.results-list-ai .listeo-ai-listing-details {
    flex: 1;
    display: flex;
    padding: 12px 16px;
    padding-left: 0;
    align-items: stretch;
    gap: 0;
    text-decoration: none;
    word-break: break-word;
}

.results-list-ai .listeo-ai-listing-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.results-list-ai .listeo-ai-listing-title {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
    color: #333;
}

.results-list-ai p.listeo-ai-listing-excerpt {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.results-list-ai .listeo-ai-listing-meta {
    display: flex;
    gap: 0;
    font-size: 13px;
    color: #888;
    flex-wrap: wrap;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.results-list-ai .listeo-ai-listing-meta span {
    display: flex;
    align-items: baseline;
    gap: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.results-list-ai .listeo-ai-listing-meta i {
    width: 12px;
    text-align: center;
    font-size: 11px;
    color: #b4b4b4;
}

.results-list-ai .listeo-ai-listing-rating {
    color: #f59e0b;
    font-weight: 500;
}

.results-list-ai .listeo-ai-listing-rating i {
    color: #f59e0b !important;
}

/* Product-Specific Styles */
.results-list-ai .product-price {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    display: flex !important;
}

.results-list-ai .product-price .regular-price {
    text-decoration: line-through;
    color: #888;
    font-weight: 400;
    margin-right: 6px;
}

.results-list-ai .product-price .sale-price {
    color: #27ae60;
    font-weight: 600;
    background-color: #fbf2d1;
    color: #8a803e;
    padding: 0px 4px;
    border-radius: 50px;
}

.results-list-ai .stock-status {
    font-size: 13px;
    font-weight: 500;
    padding: 0;
    border-radius: 54px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    display: inline-block !important;
    margin-bottom: -8px;
}

.results-list-ai .stock-status.in-stock {
    color: #27ae60;
}

.results-list-ai .stock-status.in-stock i {
    color: #27ae60 !important;
}

.results-list-ai .stock-status.out-of-stock {
    color: #e74c3c;
}

.results-list-ai .stock-status.out-of-stock i {
    color: #e74c3c !important;
}

/* =================================================================
   Universal Shortcode Search Submit Button
   ================================================================= */

.ai-search-submit-btn {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    background: #f0f0f0;
    border: none;
    color: #888;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.ai-search-submit-btn:hover {
    background: #222;
    color: #fff; 
}

.ai-search-submit-btn svg {
    transition: 0.3s;
}

/* Universal search field shortcode styles. */
html body .ai-chat-search-container.ai-search-field-standalone {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body .ai-chat-search-container.ai-search-field-standalone.ai-search-field-custom-width {
    width: 100% !important;
    max-width: var(--ai-search-field-max-width) !important;
}

html body .ai-chat-search-container.ai-search-field-standalone > .ai-search-form-wrapper {
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

html body .ai-chat-search-container.ai-search-field-standalone > .ai-search-form-wrapper > .search-input-wrapper {
    display: flex !important;
    width: 100% !important;
    min-height: 58px !important;
    margin: 0 !important;
    padding: var(--ai-search-field-padding, 8px) !important;
    padding-left: var(--ai-search-field-padding-left, 20px) !important;
    align-items: center !important;
    gap: 10px !important;
    border: var(--ai-search-field-border-width, 1px) solid var(--ai-search-field-border-color, #e0e0e0) !important;
    border-radius: 10px !important;
    background: var(--ai-search-field-background, #fff) !important;
    box-shadow: var(--ai-search-field-box-shadow, 0 1px 3px rgba(0, 0, 0, 0.10)) !important;
    box-sizing: border-box !important;
}

html body .ai-chat-search-container.ai-search-field-standalone .search-input-icon {
    display: flex !important;
    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    color: #666 !important;
    line-height: 1 !important;
}

html body .ai-chat-search-container.ai-search-field-standalone .search-stars {
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

html body .ai-chat-search-container.ai-search-field-standalone .ai-search-leading-icon {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    fill: none !important;
    stroke: currentColor !important;
}

html body .ai-chat-search-container.ai-search-field-standalone .ai-search-leading-icon--sparkles {
    width: 22px !important;
    height: 22px !important;
    color: #f5a623 !important;
    fill: currentColor !important;
    stroke: none !important;
}

html body .ai-chat-search-container.ai-search-field-standalone input.ai-search-input {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 1 1 auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--ai-search-field-text-color, #333) !important;
    font-family: inherit !important;
    font-size: var(--ai-search-field-font-size, 16px) !important;
    font-weight: 500 !important;
    line-height: 30px !important;
    appearance: none !important;
    box-sizing: border-box !important;
}

html body .ai-chat-search-container.ai-search-field-standalone input.ai-search-input::placeholder {
    color: var(--ai-search-field-text-color, #333) !important;
    font-size: var(--ai-search-field-font-size, 16px) !important;
    font-weight: 500 !important;
    opacity: 1 !important;
}

html body .ai-chat-search-container.ai-search-field-standalone button.ai-search-submit-btn {
    position: static !important;
    display: inline-flex !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 42px !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 9px !important;
    outline: 0 !important;
    background: var(--ai-search-field-button-color, #006aff) !important;
    box-shadow: none !important;
    color: #fff !important;
    font: inherit !important;
    letter-spacing: normal !important;
    line-height: 1 !important;
    text-decoration: none !important;
    text-transform: none !important;
    transform: none !important;
    cursor: pointer !important;
    appearance: none !important;
    box-sizing: border-box !important;
}

html body .ai-chat-search-container.ai-search-field-standalone button.ai-search-submit-btn:hover,
html body .ai-chat-search-container.ai-search-field-standalone button.ai-search-submit-btn:focus {
    background: var(--ai-search-field-button-color, #006aff) !important;
    color: #fff !important;
    filter: brightness(0.9) !important;
}

html body .ai-chat-search-container.ai-search-field-standalone button.ai-search-submit-btn svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    fill: none !important;
    stroke: currentColor !important;
}.woocommerce img.pswp__img,.woocommerce-page img.pswp__img{max-width:none}button.pswp__button{box-shadow:none!important;background-image:url(//werner-musica.com/wp-content/plugins/woocommerce/assets/css/photoswipe/default-skin/default-skin.png)!important}button.pswp__button,button.pswp__button--arrow--left::before,button.pswp__button--arrow--right::before,button.pswp__button:hover{background-color:transparent!important}button.pswp__button--arrow--left,button.pswp__button--arrow--left:hover,button.pswp__button--arrow--right,button.pswp__button--arrow--right:hover{background-image:none!important}button.pswp__button--close:hover{background-position:0 -44px}button.pswp__button--zoom:hover{background-position:-88px 0}/*! PhotoSwipe main CSS by Dmitry Semenov | photoswipe.com | MIT license */.pswp{display:none;position:absolute;width:100%;height:100%;left:0;top:0;overflow:hidden;-ms-touch-action:none;touch-action:none;z-index:1500;-webkit-text-size-adjust:100%;-webkit-backface-visibility:hidden;outline:0}.pswp *{-webkit-box-sizing:border-box;box-sizing:border-box}.pswp img{max-width:none}.admin-bar .pswp{height:calc(100% - var(--wp-admin--admin-bar--height,0px));top:var(--wp-admin--admin-bar--height,0)}.pswp--animate_opacity{opacity:.001;will-change:opacity;-webkit-transition:opacity 333ms cubic-bezier(.4, 0, .22, 1);transition:opacity 333ms cubic-bezier(.4, 0, .22, 1)}.pswp--open{display:block}.pswp--zoom-allowed .pswp__img{cursor:-webkit-zoom-in;cursor:-moz-zoom-in;cursor:zoom-in}.pswp--zoomed-in .pswp__img{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.pswp--dragging .pswp__img{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.pswp__bg{position:absolute;left:0;top:0;width:100%;height:100%;background:#000;opacity:0;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;will-change:opacity}.pswp__scroll-wrap{position:absolute;left:0;top:0;width:100%;height:100%;overflow:hidden}.pswp__container,.pswp__zoom-wrap{-ms-touch-action:none;touch-action:none;position:absolute;left:0;right:0;top:0;bottom:0}.pswp__container,.pswp__img{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}.pswp__zoom-wrap{position:absolute;width:100%;-webkit-transform-origin:left top;-ms-transform-origin:left top;transform-origin:left top;-webkit-transition:-webkit-transform 333ms cubic-bezier(.4, 0, .22, 1);transition:transform 333ms cubic-bezier(.4, 0, .22, 1)}.pswp__bg{will-change:opacity;-webkit-transition:opacity 333ms cubic-bezier(.4, 0, .22, 1);transition:opacity 333ms cubic-bezier(.4, 0, .22, 1)}.pswp--animated-in .pswp__bg,.pswp--animated-in .pswp__zoom-wrap{-webkit-transition:none;transition:none}.pswp__container,.pswp__zoom-wrap{-webkit-backface-visibility:hidden}.pswp__item{position:absolute;left:0;right:0;top:0;bottom:0;overflow:hidden}.pswp__img{position:absolute;width:auto;height:auto;top:0;left:0}.pswp__img--placeholder{-webkit-backface-visibility:hidden}.pswp__img--placeholder--blank{background:#222}.pswp--ie .pswp__img{width:100%!important;height:auto!important;left:0;top:0}.pswp__error-msg{position:absolute;left:0;top:50%;width:100%;text-align:center;font-size:14px;line-height:16px;margin-top:-8px;color:#ccc}.pswp__error-msg a{color:#ccc;text-decoration:underline}/*! PhotoSwipe Default UI CSS by Dmitry Semenov | photoswipe.com | MIT license */.pswp__button{width:44px;height:44px;position:relative;background:0 0;cursor:pointer;overflow:visible;-webkit-appearance:none;display:block;border:0;padding:0;margin:0;float:left;opacity:.75;-webkit-transition:opacity .2s;transition:opacity .2s;-webkit-box-shadow:none;box-shadow:none}.pswp__button:focus,.pswp__button:hover{opacity:1}.pswp__button:active{outline:0;opacity:.9}.pswp__button::-moz-focus-inner{padding:0;border:0}.pswp__ui--over-close .pswp__button--close{opacity:1}.pswp__button,.pswp__button--arrow--left:before,.pswp__button--arrow--right:before{background:url(//werner-musica.com/wp-content/plugins/woocommerce/assets/css/photoswipe/default-skin/default-skin.png) 0 0 no-repeat;background-size:264px 88px;width:44px;height:44px}@media (-webkit-min-device-pixel-ratio:1.1),(-webkit-min-device-pixel-ratio:1.09375),(min-resolution:105dpi),(min-resolution:1.1dppx){.pswp--svg .pswp__button,.pswp--svg .pswp__button--arrow--left:before,.pswp--svg .pswp__button--arrow--right:before{background-image:url(//werner-musica.com/wp-content/plugins/woocommerce/assets/css/photoswipe/default-skin/default-skin.svg)}.pswp--svg .pswp__button--arrow--left,.pswp--svg .pswp__button--arrow--right{background:0 0}}.pswp__button--close{background-position:0 -44px}.pswp__button--share{background-position:-44px -44px}.pswp__button--fs{display:none}.pswp--supports-fs .pswp__button--fs{display:block}.pswp--fs .pswp__button--fs{background-position:-44px 0}.pswp__button--zoom{display:none;background-position:-88px 0}.pswp--zoom-allowed .pswp__button--zoom{display:block}.pswp--zoomed-in .pswp__button--zoom{background-position:-132px 0}.pswp--touch .pswp__button--arrow--left,.pswp--touch .pswp__button--arrow--right{visibility:hidden}.pswp__button--arrow--left,.pswp__button--arrow--right{background:0 0;top:50%;margin-top:-50px;width:70px;height:100px;position:absolute}.pswp__button--arrow--left{left:0}.pswp__button--arrow--right{right:0}.pswp__button--arrow--left:before,.pswp__button--arrow--right:before{content:'';top:35px;background-color:rgba(0,0,0,.3);height:30px;width:32px;position:absolute}.pswp__button--arrow--left:before{left:6px;background-position:-138px -44px}.pswp__button--arrow--right:before{right:6px;background-position:-94px -44px}.pswp__counter,.pswp__share-modal{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.pswp__share-modal{display:block;background:rgba(0,0,0,.5);width:100%;height:100%;top:0;left:0;padding:10px;position:absolute;z-index:1600;opacity:0;-webkit-transition:opacity .25s ease-out;transition:opacity .25s ease-out;-webkit-backface-visibility:hidden;will-change:opacity}.pswp__share-modal--hidden{display:none}.pswp__share-tooltip{z-index:1620;position:absolute;background:#fff;top:56px;border-radius:2px;display:block;width:auto;right:44px;-webkit-box-shadow:0 2px 5px rgba(0,0,0,.25);box-shadow:0 2px 5px rgba(0,0,0,.25);-webkit-transform:translateY(6px);-ms-transform:translateY(6px);transform:translateY(6px);-webkit-transition:-webkit-transform .25s;transition:transform .25s;-webkit-backface-visibility:hidden;will-change:transform}.pswp__share-tooltip a{display:block;padding:8px 12px;color:#000;text-decoration:none;font-size:14px;line-height:18px}.pswp__share-tooltip a:hover{text-decoration:none;color:#000}.pswp__share-tooltip a:first-child{border-radius:2px 2px 0 0}.pswp__share-tooltip a:last-child{border-radius:0 0 2px 2px}.pswp__share-modal--fade-in{opacity:1}.pswp__share-modal--fade-in .pswp__share-tooltip{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0)}.pswp--touch .pswp__share-tooltip a{padding:16px 12px}a.pswp__share--facebook:before{content:'';display:block;width:0;height:0;position:absolute;top:-12px;right:15px;border:6px solid transparent;border-bottom-color:#fff;-webkit-pointer-events:none;-moz-pointer-events:none;pointer-events:none}a.pswp__share--facebook:hover{background:#3e5c9a;color:#fff}a.pswp__share--facebook:hover:before{border-bottom-color:#3e5c9a}a.pswp__share--twitter:hover{background:#55acee;color:#fff}a.pswp__share--pinterest:hover{background:#ccc;color:#ce272d}a.pswp__share--download:hover{background:#ddd}.pswp__counter{position:relative;left:0;top:0;height:44px;font-size:13px;line-height:44px;color:#fff;opacity:.75;padding:0 10px;margin-inline-end:auto}.pswp__caption{position:absolute;left:0;bottom:0;width:100%;min-height:44px}.pswp__caption small{font-size:11px;color:#bbb}.pswp__caption__center{text-align:left;max-width:420px;margin:0 auto;font-size:13px;padding:10px;line-height:20px;color:#ccc}.pswp__caption--empty{display:none}.pswp__caption--fake{visibility:hidden}.pswp__preloader{width:44px;height:44px;position:absolute;top:0;left:50%;margin-left:-22px;opacity:0;-webkit-transition:opacity .25s ease-out;transition:opacity .25s ease-out;will-change:opacity;direction:ltr}.pswp__preloader__icn{width:20px;height:20px;margin:12px}.pswp__preloader--active{opacity:1}.pswp__preloader--active .pswp__preloader__icn{background:url(//werner-musica.com/wp-content/plugins/woocommerce/assets/css/photoswipe/default-skin/preloader.gif) 0 0 no-repeat}.pswp--css_animation .pswp__preloader--active{opacity:1}.pswp--css_animation .pswp__preloader--active .pswp__preloader__icn{-webkit-animation:clockwise .5s linear infinite;animation:clockwise .5s linear infinite}.pswp--css_animation .pswp__preloader--active .pswp__preloader__donut{-webkit-animation:donut-rotate 1s cubic-bezier(.4,0,.22,1) infinite;animation:donut-rotate 1s cubic-bezier(.4,0,.22,1) infinite}.pswp--css_animation .pswp__preloader__icn{background:0 0;opacity:.75;width:14px;height:14px;position:absolute;left:15px;top:15px;margin:0}.pswp--css_animation .pswp__preloader__cut{position:relative;width:7px;height:14px;overflow:hidden}.pswp--css_animation .pswp__preloader__donut{-webkit-box-sizing:border-box;box-sizing:border-box;width:14px;height:14px;border:2px solid #fff;border-radius:50%;border-left-color:transparent;border-bottom-color:transparent;position:absolute;top:0;left:0;background:0 0;margin:0}@media screen and (max-width:1024px){.pswp__preloader{position:relative;left:auto;top:auto;margin:0;float:right}}@-webkit-keyframes clockwise{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes clockwise{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes donut-rotate{0%{-webkit-transform:rotate(0);transform:rotate(0)}50%{-webkit-transform:rotate(-140deg);transform:rotate(-140deg)}100%{-webkit-transform:rotate(0);transform:rotate(0)}}@keyframes donut-rotate{0%{-webkit-transform:rotate(0);transform:rotate(0)}50%{-webkit-transform:rotate(-140deg);transform:rotate(-140deg)}100%{-webkit-transform:rotate(0);transform:rotate(0)}}.pswp__ui{-webkit-font-smoothing:auto;visibility:visible;opacity:1;z-index:1550}.pswp__top-bar{position:absolute;left:0;top:0;height:44px;width:100%;display:flex;justify-content:flex-end}.pswp--has_mouse .pswp__button--arrow--left,.pswp--has_mouse .pswp__button--arrow--right,.pswp__caption,.pswp__top-bar{-webkit-backface-visibility:hidden;will-change:opacity;-webkit-transition:opacity 333ms cubic-bezier(.4, 0, .22, 1);transition:opacity 333ms cubic-bezier(.4, 0, .22, 1)}.pswp--has_mouse .pswp__button--arrow--left,.pswp--has_mouse .pswp__button--arrow--right{visibility:visible}.pswp__caption,.pswp__top-bar{background-color:rgba(0,0,0,.5)}.pswp__ui--fit .pswp__caption,.pswp__ui--fit .pswp__top-bar{background-color:rgba(0,0,0,.3)}.pswp__ui--idle .pswp__top-bar{opacity:0}.pswp__ui--idle .pswp__button--arrow--left,.pswp__ui--idle .pswp__button--arrow--right{opacity:0}.pswp__ui--hidden .pswp__button--arrow--left,.pswp__ui--hidden .pswp__button--arrow--right,.pswp__ui--hidden .pswp__caption,.pswp__ui--hidden .pswp__top-bar{opacity:.001}.pswp__ui--one-slide .pswp__button--arrow--left,.pswp__ui--one-slide .pswp__button--arrow--right,.pswp__ui--one-slide .pswp__counter{display:none}.pswp__element--disabled{display:none!important}.pswp--minimal--dark .pswp__top-bar{background:0 0}