.elementor-9612 .elementor-element.elementor-element-434a948{--display:flex;--min-height:0px;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--overlay-opacity:0.5;--margin-top:0px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-9612 .elementor-element.elementor-element-434a948:not(.elementor-motion-effects-element-type-background), .elementor-9612 .elementor-element.elementor-element-434a948 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#FFFFFF;}.elementor-9612 .elementor-element.elementor-element-434a948::before, .elementor-9612 .elementor-element.elementor-element-434a948 > .elementor-background-video-container::before, .elementor-9612 .elementor-element.elementor-element-434a948 > .e-con-inner > .elementor-background-video-container::before, .elementor-9612 .elementor-element.elementor-element-434a948 > .elementor-background-slideshow::before, .elementor-9612 .elementor-element.elementor-element-434a948 > .e-con-inner > .elementor-background-slideshow::before, .elementor-9612 .elementor-element.elementor-element-434a948 > .elementor-motion-effects-container > .elementor-motion-effects-layer::before{background-color:#FFFFFF;--background-overlay:'';}.elementor-9612 .elementor-element.elementor-element-11dc5ac{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--margin-top:0px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-9612 .elementor-element.elementor-element-11dc5ac:not(.elementor-motion-effects-element-type-background), .elementor-9612 .elementor-element.elementor-element-11dc5ac > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#FFFFFF;}.elementor-9612 .elementor-element.elementor-element-96dd0b6{width:100%;max-width:100%;}.elementor-theme-builder-content-area{height:400px;}.elementor-location-header:before, .elementor-location-footer:before{content:"";display:table;clear:both;}@media(min-width:768px){.elementor-9612 .elementor-element.elementor-element-434a948{--content-width:1600px;}}/* Start custom CSS for html, class: .elementor-element-96dd0b6 *//* --- CORE VARIABLES --- */
:root {
    --lux-primary: #0066ff; /* Blue */
    --lux-secondary: #6A5ACD; /* Blueish */
    --lux-text: #333333;
    --lux-bg: #f5f5f5;
    --lux-radius: 100px;
    --lux-chat-user: #8A2BE2;
    --lux-chat-bot: #ffffff;
}

.luxav-search-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1000px;
    height: 60px;
    border-radius: var(--lux-radius);
    cursor: pointer;
    background: transparent; 
    z-index: 1;
    overflow: hidden;
    direction: rtl;
    padding: 0 4px;
}

/* --- THE TEXT --- */
.luxav-text {
    color: var(--lux-text);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
    text-align: right;
    margin-right: 15px;
    z-index: 3;
    pointer-events: none;
}

/* --- THE ICON (GIF) --- */
.luxav-icon-wrapper {
    width: 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    margin-left: 8px; /* Fixed typo here */
}

.luxav-gif-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 50%;
}

/* --- SNAKE BORDER ANIMATION --- */
.luxav-border-snake {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent, 
        transparent, 
        transparent, 
        var(--lux-primary)
    );
    animation: rotate-border 3s linear infinite;
    z-index: 1;
}

.luxav-inner-bg {
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: var(--lux-bg);
    border-radius: calc(var(--lux-radius) - 2px);
    z-index: 2;
}

@keyframes rotate-border {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- POPUP OVERLAY --- */
.luxav-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dim background layer */
    z-index: 9999;
    display: none; /* Controlled by your 'active' class */
    padding: 20px; /* Gives spacing around the box on smaller screens */
    box-sizing: border-box;
}

/* When active class is added by JS */
.luxav-modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- MESSAGE BUBBLES --- */
.luxav-message {
    max-width: 80%;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    animation: slideUp 0.3s ease-out forwards;
    opacity: 0;
    transform: translateY(10px);
}

@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}

/* User Message */
.luxav-message.user {
    align-self: flex-end; /* Right side */
    background: linear-gradient(135deg, var(--lux-primary), var(--lux-secondary));
    color: white;
    border-radius: 18px 18px 2px 18px;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.2);
    text-align: right;
}

/* Bot Message */
.luxav-message.bot {
    align-self: flex-start; /* Left side */
    background: white;
    color: #333;
    border-radius: 18px 18px 18px 2px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    text-align: left; /* RTL text */
}

/* --- TYPING INDICATOR --- */
.luxav-typing {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: white;
    border-radius: 18px;
    align-self: flex-start;
    width: fit-content;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.luxav-dot {
    width: 6px;
    height: 6px;
    background: #ccc;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}
.luxav-dot:nth-child(1) { animation-delay: -0.32s; }
.luxav-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* --- PRODUCT CARD RECOMMENDATION --- */
.luxav-product-card {
    align-self: flex-start;
    background: white;
    border-radius: 16px;
    padding: 12px;
    width: 220px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    margin-top: 5px;
    animation: fadeInProduct 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(10px);
    direction: rtl;
    text-align: right;
}

@keyframes fadeInProduct {
    to { opacity: 1; transform: translateY(0); }
}

.luxav-product-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    background: #eee;
    margin-bottom: 10px;
}

.luxav-product-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 4px;
    color: #333;
}

.luxav-product-price {
    font-size: 13px;
    color: var(--lux-primary);
    font-weight: 600;
    margin-bottom: 10px;
}

.luxav-product-btn {
    display: block;
    width: 100%;
    padding: 8px;
    background: var(--lux-primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
}
.luxav-product-btn:hover {
    background: var(--lux-secondary);
}

/* --- CHAT INPUT AREA --- */
.luxav-chat-footer {
    padding: 15px;
    background: white;
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    gap: 10px;
    align-items: center;
}

.luxav-chat-input {
    flex-grow: 1;
    padding: 12px 15px;
    border-radius: 25px;
    border: 1px solid #eee;
    background: #f9f9f9;
    font-family: inherit;
    outline: none;
    direction: rtl;
    transition: border 0.3s;
}

.luxav-chat-input:focus {
    border-color: var(--lux-primary);
    background: white;
}

.luxav-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--lux-primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.3s;
}

.luxav-send-btn:hover {
    transform: scale(1.05);
    background: var(--lux-secondary);
}

.luxav-send-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
    transform: rotate(180deg); /* Adjust arrow for RTL */
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 600px) {
    .luxav-chat-ui {
        width: 100%;
        height: 100%;
        max-width: none;
        border-radius: 0;
        transform: translateY(100%);
    }
    
    .luxav-modal-overlay.active .luxav-chat-ui {
        transform: translateY(0);
    }
    
    .luxav-chat-header {
        padding-top: 20px; /* Safe area for status bar */
    }
}

/* CLOSE BUTTON STYLE */
/* --- NEW CONTENT BOX WRAPPER --- */
.luxav-modal-content {
    position: relative; /* Acts as the absolute anchor point for the close button */
    width: 100%;
    max-width: 800px; /* Adjust this to match your desired desktop width */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- CLOSE BUTTON STYLE --- */
.luxav-close-btn {
    position: absolute;
    top: -20px;   /* Positions it slightly floating above the iframe box */
    right: -20px; /* Positions it slightly off the right edge */
    background: #fff;
    border: none;
    color: #333;
    font-size: 28px;
    line-height: 1;
    width: 40px;  /* Uses explicit equal width & height for a perfect circle */
    height: 40px;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 10000; /* Keeps it layered cleanly on top */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background-color 0.2s;
}

.luxav-close-btn:hover {
    transform: scale(1.1);
    background-color: #f5f5f5;
}

/* --- RESPONSIVE MOBILE ADJUSTMENTS --- */
@media (max-width: 768px) {
    .luxav-modal-overlay {
        padding: 10px; /* Tighter padding on mobile viewports */
    }
    
    .luxav-close-btn {
        /* On small screens, pull the button inside the boundary so it doesn't clip off-screen */
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 24px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }
}/* End custom CSS */