/* Hide separate ai chat icon, keep chat box usable */
#ai-chat,
.ai-chat-icon {
    display: none !important;
}

/* Unified floating GIF launcher - bottom right */
.floating-request-btn {
    position: fixed !important;
    left: 22px !important;
    right: auto !important;
    right: auto !important;
    bottom: 92px !important;
    width: 68px !important;
    height: 68px !important;
    background: #fff7ea !important;
    border: 2px solid rgba(255, 186, 62, 0.75) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 2147483600 !important;
    box-shadow: 0 8px 22px rgba(255, 138, 0, 0.30) !important;
    overflow: hidden !important;
}

.floating-request-btn .smsm-request-icon-img {
    width: 64px !important;
    height: 64px !important;
    object-fit: contain !important;
    display: block !important;
    pointer-events: none !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.10)) !important;
}

/* Launcher menu above icon */
.smsm-launcher-menu {
    position: fixed !important;
    left: 22px !important;
    right: auto !important;
    right: auto !important;
    bottom: 168px !important;
    z-index: 2147483601 !important;
    display: none !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 12px !important;
    direction: rtl !important;
}

.smsm-launcher-menu.show {
    display: flex !important;
}

.smsm-launcher-option {
    min-width: 225px !important;
    height: 58px !important;
    border: 0 !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, #ffbd47, #ff8a00) !important;
    color: #fff !important;
    box-shadow: 0 8px 22px rgba(255, 138, 0, 0.28) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 22px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

.smsm-launcher-option i {
    color: #fff !important;
    font-size: 20px !important;
}

.smsm-launcher-close {
    width: 58px !important;
    height: 58px !important;
    border-radius: 18px !important;
    border: 0 !important;
    background: linear-gradient(135deg, #ffbd47, #ff8a00) !important;
    color: #fff !important;
    font-size: 32px !important;
    line-height: 1 !important;
    box-shadow: 0 8px 22px rgba(255, 138, 0, 0.28) !important;
    cursor: pointer !important;
}

/* Request modal */
.request-modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    z-index: 2147483605;
    overflow-y: auto;
    padding: 20px 0;
}

.modal-content {
    background: #fff;
    margin: 4vh auto;
    padding: 30px;
    border-radius: 22px;
    max-width: 800px;
    width: calc(100% - 34px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.22);
    position: relative;
    direction: rtl;
}

.close-modal {
    position: absolute;
    top: 18px;
    left: 22px;
    font-size: 30px;
    cursor: pointer;
    color: #FF6F00;
    background: transparent;
    border: 0;
}

.request-header {
    text-align: center;
    margin-bottom: 26px;
}

.request-header h2 {
    font-size: 32px;
    color: #FF6F00;
    margin-bottom: 12px;
    font-weight: 800;
}

.request-header p {
    font-size: 17px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.request-options {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.request-btn {
    background: #fff;
    border: none;
    padding: 15px 28px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 15px rgba(255, 111, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 12px;
    color: #FF6F00;
}

.request-btn.active,
.request-btn:hover {
    background: #FF6F00;
    color: #fff;
    transform: translateY(-2px);
}

.request-form {
    display: none;
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}

.request-form.active {
    display: block;
}

.form-title {
    font-size: 24px;
    color: #FF6F00;
    margin-bottom: 22px;
    text-align: center;
    font-weight: 800;
}

/* Category fields */
.smsm-category-row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
    margin-bottom: 18px !important;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.form-group {
    min-width: 0;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #374151;
    font-size: 14px;
}

.form-group select,
.form-group input,
.form-group textarea {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
    color: #374151;
    line-height: 1.4;
    text-align: right;
    box-sizing: border-box;
}

.form-group select {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-inline-end: 34px;
}

.form-group textarea {
    height: 82px;
    padding-top: 12px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
}

.form-actions button {
    min-width: 118px;
    height: 50px;
    padding: 0 24px;
    border: none;
    border-radius: 18px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}

.submit-btn {
    background: linear-gradient(135deg, #FFB33E, #FF8F00);
    color: #fff;
    box-shadow: 0 8px 18px rgba(255, 138, 0, 0.25);
}

.close-btn {
    background: transparent;
    color: #df6464;
}

/* Colors and images */
.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-color-btn,
.upload-btn-style {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFB33E, #FF8F00);
    color: #fff;
    font-weight: 700;
    border-radius: 12px;
    padding: 10px 22px;
    border: 0;
    cursor: pointer;
}

.color-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #FF6F00;
    display: inline-block;
    cursor: pointer;
    margin: 4px;
}

.selected-images-preview {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.selected-images-preview img {
    width: 78px;
    height: 78px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #ddd;
}

/* Basket link style like app */
#basket-form {
    background: #f4f8ff;
    box-shadow: none;
    border-radius: 22px;
}

.smsm-basket-panel {
    max-width: 430px;
    margin: 0 auto;
    text-align: center;
}

.smsm-basket-input-wrap {
    margin: 10px auto 16px;
}

#basket-link-input {
    width: 100%;
    height: 58px;
    text-align: center;
    background: #eeeeee;
    border: 0;
    border-radius: 0;
    font-size: 16px;
    color: #222;
}

#basket-link-input::placeholder {
    color: #222;
}

.smsm-basket-help {
    color: #111;
    font-size: 15px;
    line-height: 1.7;
    font-weight: 600;
    margin: 10px auto 16px;
    max-width: 420px;
}

.smsm-basket-image-wrap {
    display: flex;
    justify-content: center;
    margin: 12px auto 20px;
}

.smsm-basket-help-image {
    max-width: 100%;
    width: 360px;
    max-height: 260px;
    object-fit: contain;
    border-radius: 12px;
}

.smsm-basket-actions {
    justify-content: center;
    align-items: center;
    gap: 22px;
}

/* Mobile app-like modal */
@media (max-width: 768px) {
    .floating-request-btn {
        left: 22px !important;
        right: auto !important;
        bottom: 92px !important;
    }

    .smsm-launcher-menu {
        left: 22px !important;
        right: auto !important;
        bottom: 168px !important;
    }

    .modal-content {
        max-width: 430px;
        width: calc(100% - 36px);
        margin: 7vh auto;
        padding: 28px 26px 24px;
        border-radius: 32px;
        background: #f4f8ff;
    }

    .close-modal {
        display: none;
    }

    .request-header {
        margin-bottom: 18px;
    }

    .request-header h2 {
        font-size: 20px;
        color: #f6ad3c;
        margin-bottom: 8px;
    }

    .request-header p {
        color: #111;
        font-size: 16px;
        line-height: 1.7;
        font-weight: 600;
    }

    .request-options {
        flex-wrap: nowrap;
        gap: 0;
        margin: 18px 0 24px;
        border-bottom: 2px solid #222;
    }

    .request-btn {
        flex: 1;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        color: #b7b7b7;
        padding: 12px 4px 13px;
        font-size: 15px;
        justify-content: center;
        border-bottom: 3px solid transparent;
        transform: none;
    }

    .request-btn.active,
    .request-btn:hover {
        color: #f6ad3c;
        background: transparent;
        border-bottom-color: #f6ad3c;
        box-shadow: none;
        transform: none;
    }

    .request-btn i {
        display: none;
    }

    .request-form {
        background: transparent;
        box-shadow: none;
        padding: 0;
        border-radius: 0;
    }

    .form-title {
        display: none;
    }

    .smsm-category-row {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .form-group label {
        display: none;
    }

    .form-group select,
    .form-group input,
    .form-group textarea {
        height: 58px;
        background: #eeeeee;
        border: 0;
        border-radius: 0;
        font-size: 16px;
        padding: 0 18px;
    }

    .form-group textarea {
        height: 84px;
        padding-top: 16px;
    }

    .form-actions {
        justify-content: flex-start;
        gap: 22px;
        margin-top: 18px;
    }

    #basket-form {
        background: transparent;
    }
}

/* =========================================================
   SMSM launcher left side + X toggle + close button border
========================================================= */

/* رجوع الأيقونة للجهة اليسار حتى لا تغطي واتساب */
.floating-request-btn {
    left: 22px !important;
    right: auto !important;
    bottom: 92px !important;
}

/* القائمة تظهر فوق الأيقونة من جهة اليسار */
.smsm-launcher-menu {
    left: 22px !important;
    right: auto !important;
    bottom: 174px !important;
    align-items: flex-end !important;
}

/* عند فتح القائمة: نفس الأيقونة تتحول إلى X */
.floating-request-btn.is-open {
    background: linear-gradient(135deg, #ffbd47, #ff8a00) !important;
    border: 0 !important;
    box-shadow: 0 10px 28px rgba(255, 138, 0, 0.35) !important;
    overflow: hidden !important;
}

.floating-request-btn.is-open .smsm-request-icon-img {
    display: none !important;
}

.floating-request-btn.is-open::before {
    content: "×" !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    color: #ffffff !important;
    font-size: 46px !important;
    line-height: 1 !important;
    font-weight: 300 !important;
}

/* لا نحتاج زر X منفصل داخل القائمة، لأن الأيقونة نفسها أصبحت X */
.smsm-launcher-close,
#smsm-close-launcher-menu {
    display: none !important;
}

/* تحسين زر إغلاق داخل المودال: يكون واضح الحواف */
.form-actions .close-btn,
.close-btn {
    min-width: 118px !important;
    height: 50px !important;
    border: 1.5px solid #f0b4b4 !important;
    border-radius: 18px !important;
    background: #fff7f7 !important;
    color: #df6464 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(223, 100, 100, 0.10) !important;
}

.form-actions .close-btn:hover,
.close-btn:hover {
    background: #ffecec !important;
    border-color: #df6464 !important;
    color: #c94d4d !important;
}

/* في الجوال كذلك تبقى يسار */
@media (max-width: 768px) {
    .floating-request-btn {
        left: 22px !important;
        right: auto !important;
        bottom: 92px !important;
    }

    .smsm-launcher-menu {
        left: 22px !important;
        right: auto !important;
        bottom: 174px !important;
        align-items: flex-end !important;
    }
}


/* =========================================================
   FINAL OVERRIDE - position, close button, color add button
========================================================= */

/* 1) إجبار الأيقونة تكون يسار وليس يمين */
html body #floatingRequestBtn.floating-request-btn,
body #floatingRequestBtn,
#floatingRequestBtn {
    position: fixed !important;
    left: 22px !important;
    right: auto !important;
    
    
    bottom: 92px !important;
    transform: none !important;
}

/* القائمة تتبع الأيقونة في اليسار */
html body #smsmLauncherMenu.smsm-launcher-menu,
body #smsmLauncherMenu,
#smsmLauncherMenu {
    position: fixed !important;
    left: 22px !important;
    right: auto !important;
    
    
    bottom: 174px !important;
    align-items: flex-end !important;
    transform: none !important;
}

/* في الجوال أيضًا */
@media (max-width: 768px) {
    html body #floatingRequestBtn.floating-request-btn,
    body #floatingRequestBtn,
    #floatingRequestBtn {
        left: 22px !important;
        right: auto !important;
        
        
        bottom: 92px !important;
    }

    html body #smsmLauncherMenu.smsm-launcher-menu,
    body #smsmLauncherMenu,
    #smsmLauncherMenu {
        left: 22px !important;
        right: auto !important;
        
        
        bottom: 174px !important;
    }
}

/* 2) زر إغلاق بجانب إرسال يكون واضح ومؤطر */
.request-modal .form-actions button.close-btn,
.request-modal .form-actions .close-btn,
#manual-form .form-actions .close-btn,
#basket-form .form-actions .close-btn,
button.close-btn {
    min-width: 118px !important;
    height: 50px !important;
    padding: 0 24px !important;
    border: 1.5px solid #efb7b7 !important;
    border-radius: 18px !important;
    background: #fff5f5 !important;
    color: #d95b5b !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(217, 91, 91, 0.12) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.request-modal .form-actions button.close-btn:hover,
button.close-btn:hover {
    background: #ffe9e9 !important;
    border-color: #d95b5b !important;
    color: #bf4848 !important;
}

/* 3) تصغير زر إضافة اللون وتحسين شكله */
.request-modal .color-picker-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.request-modal .color-picker-wrapper input[type="color"] {
    flex: 1 1 auto !important;
    height: 48px !important;
    padding: 4px !important;
}

.request-modal .add-color-btn,
.request-modal .color-picker-wrapper .add-color-btn {
    width: auto !important;
    min-width: 72px !important;
    height: 48px !important;
    padding: 0 14px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
}


/* FORCE SMSM FLOATING ICON TO LEFT SIDE */
html body div#floatingRequestBtn,
html body #floatingRequestBtn.floating-request-btn,
html body .floating-request-btn#floatingRequestBtn {
    position: fixed !important;
    left: 22px !important;
    right: auto !important;
    
    
    bottom: 92px !important;
    z-index: 2147483600 !important;
}

/* القائمة تكون فوق الأيقونة في اليسار */
html body div#smsmLauncherMenu,
html body #smsmLauncherMenu.smsm-launcher-menu,
html body .smsm-launcher-menu#smsmLauncherMenu {
    position: fixed !important;
    left: 22px !important;
    right: auto !important;
    
    
    bottom: 174px !important;
    z-index: 2147483601 !important;
    align-items: flex-end !important;
}

@media (max-width: 768px) {
    html body div#floatingRequestBtn,
    html body #floatingRequestBtn.floating-request-btn,
    html body .floating-request-btn#floatingRequestBtn {
        left: 22px !important;
        right: auto !important;
        
        
        bottom: 92px !important;
    }

    html body div#smsmLauncherMenu,
    html body #smsmLauncherMenu.smsm-launcher-menu,
    html body .smsm-launcher-menu#smsmLauncherMenu {
        left: 22px !important;
        right: auto !important;
        
        
        bottom: 174px !important;
    }
}


/* FINAL RTL FIX: physical LEFT, no logical RTL start */
html[dir="rtl"] body #floatingRequestBtn,
html body #floatingRequestBtn {
    left: 22px !important;
    right: auto !important;
    
    
    bottom: 92px !important;
}

html[dir="rtl"] body #smsmLauncherMenu,
html body #smsmLauncherMenu {
    left: 22px !important;
    right: auto !important;
    
    
    bottom: 174px !important;
    align-items: flex-end !important;
}

@media (max-width: 768px) {
    html[dir="rtl"] body #floatingRequestBtn,
    html body #floatingRequestBtn {
        left: 22px !important;
        right: auto !important;
        
        
        bottom: 92px !important;
    }

    html[dir="rtl"] body #smsmLauncherMenu,
    html body #smsmLauncherMenu {
        left: 22px !important;
        right: auto !important;
        
        
        bottom: 174px !important;
    }
}


/* AI chat product cards */
.ai-product-cards {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin: 10px 0 14px !important;
}

.ai-product-card {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
    background: #fff !important;
    border: 1px solid rgba(255, 160, 20, 0.28) !important;
    border-radius: 14px !important;
    padding: 8px !important;
    text-decoration: none !important;
    color: #222 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
}

.ai-product-card:hover {
    border-color: #ff9f1a !important;
    box-shadow: 0 6px 18px rgba(255, 138, 0, 0.16) !important;
}

.ai-product-card-img {
    width: 64px !important;
    height: 64px !important;
    border-radius: 12px !important;
    background: #fff7ea !important;
    overflow: hidden !important;
    flex: 0 0 64px !important;
}

.ai-product-card-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.ai-product-card-body {
    flex: 1 !important;
    min-width: 0 !important;
    text-align: right !important;
}

.ai-product-card-name {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #222 !important;
    line-height: 1.5 !important;
    max-height: 40px !important;
    overflow: hidden !important;
}

.ai-product-card-price {
    color: #ff8a00 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    margin-top: 2px !important;
}

.ai-product-card-link {
    display: inline-block !important;
    margin-top: 4px !important;
    color: #777 !important;
    font-size: 12px !important;
}


/* AI product cards from EasyPeasy product links */
.ai-product-cards {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin: 10px 0 14px !important;
}

.ai-product-card {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
    background: #fff !important;
    border: 1px solid rgba(255, 160, 20, 0.28) !important;
    border-radius: 14px !important;
    padding: 8px !important;
    text-decoration: none !important;
    color: #222 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
}

.ai-product-card:hover {
    border-color: #ff9f1a !important;
    box-shadow: 0 6px 18px rgba(255, 138, 0, 0.16) !important;
}

.ai-product-card-img {
    width: 64px !important;
    height: 64px !important;
    border-radius: 12px !important;
    background: #fff7ea !important;
    overflow: hidden !important;
    flex: 0 0 64px !important;
}

.ai-product-card-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.ai-product-card-body {
    flex: 1 !important;
    min-width: 0 !important;
    text-align: right !important;
}

.ai-product-card-name {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #222 !important;
    line-height: 1.5 !important;
    max-height: 40px !important;
    overflow: hidden !important;
}

.ai-product-card-price {
    color: #ff8a00 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    margin-top: 2px !important;
}

.ai-product-card-link {
    display: inline-block !important;
    margin-top: 4px !important;
    color: #777 !important;
    font-size: 12px !important;
}


/* FINAL FORCE: SMSM icon physical left, not RTL start */
html body #floatingRequestBtn,
html[dir="rtl"] body #floatingRequestBtn {
    position: fixed !important;
    left: 22px !important;
    right: auto !important;
    
    
    bottom: 92px !important;
}

html body #smsmLauncherMenu,
html[dir="rtl"] body #smsmLauncherMenu {
    position: fixed !important;
    left: 22px !important;
    right: auto !important;
    
    
    bottom: 174px !important;
    align-items: flex-end !important;
}


/* FINAL LEFT LOCK */
html body #floatingRequestBtn,
html[dir="rtl"] body #floatingRequestBtn {
    position: fixed !important;
    left: 22px !important;
    right: auto !important;
    
    
    bottom: 92px !important;
}

html body #smsmLauncherMenu,
html[dir="rtl"] body #smsmLauncherMenu {
    position: fixed !important;
    left: 22px !important;
    right: auto !important;
    
    
    bottom: 174px !important;
}


/* ABSOLUTE FINAL: physical left regardless of RTL */
html body #floatingRequestBtn,
html[dir="rtl"] body #floatingRequestBtn {
    position: fixed !important;
    inset: auto 22px 92px auto !important;
    left: 22px !important;
    right: auto !important;
    inset-inline: auto !important;
    direction: ltr !important;
    transform: none !important;
}

html body #smsmLauncherMenu,
html[dir="rtl"] body #smsmLauncherMenu {
    position: fixed !important;
    inset: auto 22px 174px auto !important;
    left: 22px !important;
    right: auto !important;
    inset-inline: auto !important;
    direction: ltr !important;
    transform: none !important;
    align-items: flex-end !important;
}


/* Final clean AI product cards inside chat bubble */
.ai-chat-message.ai .ai-product-cards {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 12px !important;
    width: 100% !important;
}

.ai-chat-message.ai .ai-product-card {
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    min-height: 82px !important;
    padding: 8px 10px !important;
    border: 1px solid rgba(255, 150, 0, 0.45) !important;
    border-radius: 14px !important;
    background: #fff !important;
    color: #222 !important;
    text-decoration: none !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.04) !important;
    overflow: hidden !important;
}

.ai-chat-message.ai .ai-product-card-img {
    width: 68px !important;
    height: 68px !important;
    flex: 0 0 68px !important;
    border-radius: 12px !important;
    background: #fff7ea !important;
    overflow: hidden !important;
}

.ai-chat-message.ai .ai-product-card-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.ai-chat-message.ai .ai-product-card-body {
    flex: 1 !important;
    min-width: 0 !important;
    text-align: right !important;
}

.ai-chat-message.ai .ai-product-card-name {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #111 !important;
    line-height: 1.5 !important;
    max-height: 40px !important;
    overflow: hidden !important;
}

.ai-chat-message.ai .ai-product-card-price {
    margin-top: 2px !important;
    color: #ff7a00 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

.ai-chat-message.ai .ai-product-card-link {
    display: inline-block !important;
    margin-top: 3px !important;
    font-size: 12px !important;
    color: #777 !important;
}


/* FINAL compact product cards in AI chat */
.ai-chat-message.ai {
    width: calc(100% - 18px) !important;
    max-width: calc(100% - 18px) !important;
    box-sizing: border-box !important;
    white-space: normal !important;
}

.ai-chat-message.ai .ai-product-cards {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-top: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
}

.ai-chat-message.ai .ai-product-card {
    display: grid !important;
    grid-template-columns: 74px minmax(0, 1fr) !important;
    direction: rtl !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    min-height: 82px !important;
    padding: 8px !important;
    border: 1px solid rgba(255, 150, 0, 0.45) !important;
    border-radius: 14px !important;
    background: #fff !important;
    color: #222 !important;
    text-decoration: none !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.04) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    white-space: normal !important;
}

.ai-chat-message.ai .ai-product-card-img {
    grid-column: 1 !important;
    width: 74px !important;
    height: 74px !important;
    border-radius: 12px !important;
    background: #fff7ea !important;
    overflow: hidden !important;
}

.ai-chat-message.ai .ai-product-card-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.ai-chat-message.ai .ai-product-card-body {
    grid-column: 2 !important;
    min-width: 0 !important;
    text-align: right !important;
    display: block !important;
    white-space: normal !important;
}

.ai-chat-message.ai .ai-product-card-name {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #111 !important;
    line-height: 1.45 !important;
    max-height: 38px !important;
    overflow: hidden !important;
    white-space: normal !important;
}

.ai-chat-message.ai .ai-product-card-price {
    margin-top: 3px !important;
    color: #ff7a00 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

.ai-chat-message.ai .ai-product-card-link {
    display: inline-block !important;
    margin-top: 3px !important;
    font-size: 12px !important;
    color: #777 !important;
    line-height: 1.2 !important;
}


/* FINAL OVERRIDE: clean compact AI product cards */
.ai-chat-message.ai .ai-product-cards {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-top: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.ai-chat-message.ai .ai-product-card {
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    min-height: 86px !important;
    padding: 8px !important;
    border: 1px solid rgba(255, 150, 0, 0.45) !important;
    border-radius: 14px !important;
    background: #fff !important;
    color: #222 !important;
    text-decoration: none !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.04) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    direction: rtl !important;
}

.ai-chat-message.ai .ai-product-card-img {
    width: 74px !important;
    height: 74px !important;
    min-width: 74px !important;
    max-width: 74px !important;
    flex: 0 0 74px !important;
    border-radius: 12px !important;
    background: #fff8ef !important;
    border: 1px solid rgba(255, 160, 20, 0.18) !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.ai-chat-message.ai .ai-product-card-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
}

.ai-chat-message.ai .ai-product-card-body {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    text-align: right !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-end !important;
    gap: 3px !important;
    direction: rtl !important;
}

.ai-chat-message.ai .ai-product-card-name {
    width: 100% !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #111 !important;
    line-height: 1.45 !important;
    max-height: 38px !important;
    overflow: hidden !important;
    text-align: right !important;
}

.ai-chat-message.ai .ai-product-card-price {
    width: 100% !important;
    color: #ff7a00 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    text-align: right !important;
    margin: 0 !important;
}

.ai-chat-message.ai .ai-product-card-link {
    width: 100% !important;
    display: block !important;
    font-size: 12px !important;
    color: #777 !important;
    line-height: 1.25 !important;
    text-align: right !important;
    margin: 0 !important;
}


/* REAL FINAL: force SMSM launcher to physical left using calculated right */
html body #floatingRequestBtn,
html[dir="rtl"] body #floatingRequestBtn,
body #floatingRequestBtn.floating-request-btn {
    position: fixed !important;
    right: auto !important;
    right: calc(100vw - 90px) !important;
    top: auto !important;
    bottom: 92px !important;
    inset: auto calc(100vw - 90px) 92px auto !important;
    inset-inline: auto !important;
    direction: ltr !important;
    transform: none !important;
    z-index: 2147483600 !important;
}

/* align launcher menu to physical left too */
html body #smsmLauncherMenu,
html[dir="rtl"] body #smsmLauncherMenu,
body #smsmLauncherMenu.smsm-launcher-menu {
    position: fixed !important;
    right: auto !important;
    right: calc(100vw - 272px) !important;
    top: auto !important;
    bottom: 174px !important;
    inset: auto calc(100vw - 272px) 174px auto !important;
    inset-inline: auto !important;
    direction: rtl !important;
    transform: none !important;
    z-index: 2147483601 !important;
}

/* warmer white card background */
.ai-chat-message.ai .ai-product-card {
    background: #fffdf8 !important;
}

.ai-chat-message.ai .ai-product-card-img {
    background: #fff6e8 !important;
}


/* FINAL: keep SMSM launcher and X button on physical left in all states */
html body #floatingRequestBtn,
html body #floatingRequestBtn.floating-request-btn,
html body #floatingRequestBtn.floating-request-btn.is-open,
html[dir="rtl"] body #floatingRequestBtn,
html[dir="rtl"] body #floatingRequestBtn.floating-request-btn,
html[dir="rtl"] body #floatingRequestBtn.floating-request-btn.is-open {
    position: fixed !important;
    top: auto !important;
    left: 22px !important;
    right: auto !important;
    bottom: 92px !important;
    inset: auto 22px 92px auto !important;
    
    
    direction: ltr !important;
    transform: none !important;
    z-index: 2147483600 !important;
}

/* menu above the icon, also physical left */
html body #smsmLauncherMenu,
html body #smsmLauncherMenu.smsm-launcher-menu,
html body #smsmLauncherMenu.smsm-launcher-menu.show,
html[dir="rtl"] body #smsmLauncherMenu,
html[dir="rtl"] body #smsmLauncherMenu.smsm-launcher-menu,
html[dir="rtl"] body #smsmLauncherMenu.smsm-launcher-menu.show {
    position: fixed !important;
    top: auto !important;
    left: 22px !important;
    right: auto !important;
    bottom: 174px !important;
    inset: auto 22px 174px auto !important;
    
    
    direction: rtl !important;
    transform: none !important;
    z-index: 2147483601 !important;
}


/* TRUE FINAL CSS: no inset-inline */
html body #floatingRequestBtn,
html body #floatingRequestBtn.floating-request-btn,
html body #floatingRequestBtn.floating-request-btn.is-open,
html[dir="rtl"] body #floatingRequestBtn,
html[dir="rtl"] body #floatingRequestBtn.floating-request-btn,
html[dir="rtl"] body #floatingRequestBtn.floating-request-btn.is-open {
    position: fixed !important;
    inset: auto 22px 92px auto !important;
    top: auto !important;
    left: 22px !important;
    right: auto !important;
    bottom: 92px !important;
    direction: ltr !important;
    transform: none !important;
    z-index: 2147483600 !important;
}

html body #smsmLauncherMenu,
html body #smsmLauncherMenu.smsm-launcher-menu,
html body #smsmLauncherMenu.smsm-launcher-menu.show,
html[dir="rtl"] body #smsmLauncherMenu,
html[dir="rtl"] body #smsmLauncherMenu.smsm-launcher-menu,
html[dir="rtl"] body #smsmLauncherMenu.smsm-launcher-menu.show {
    position: fixed !important;
    inset: auto 22px 174px auto !important;
    top: auto !important;
    left: 22px !important;
    right: auto !important;
    bottom: 174px !important;
    direction: rtl !important;
    transform: none !important;
    z-index: 2147483601 !important;
}


/* =========================================
   FINAL FIX: FORCE RIGHT POSITION ALWAYS
   (Prevents jumping when clicked in RTL/LTR)
   ========================================= */
html body #floatingRequestBtn,
html body #floatingRequestBtn.is-open,
html[dir="rtl"] body #floatingRequestBtn,
html[dir="rtl"] body #floatingRequestBtn.is-open,
html[dir="ltr"] body #floatingRequestBtn,
html[dir="ltr"] body #floatingRequestBtn.is-open {
    position: fixed !important;
    right: auto !important;
    left: 22px !important;
    
    
    bottom: 92px !important;
    transform: none !important;
}

html body #smsmLauncherMenu,
html body #smsmLauncherMenu.show,
html[dir="rtl"] body #smsmLauncherMenu,
html[dir="rtl"] body #smsmLauncherMenu.show,
html[dir="ltr"] body #smsmLauncherMenu,
html[dir="ltr"] body #smsmLauncherMenu.show {
    position: fixed !important;
    right: auto !important;
    left: 22px !important;
    
    
    bottom: 174px !important;
    align-items: flex-end !important;
    transform: none !important;
}

/* =========================================
   ABSOLUTE FINAL FIX: FORCE LEFT POSITION ALWAYS
   ========================================= */
html body #floatingRequestBtn,
html body #floatingRequestBtn.is-open,
html[dir="rtl"] body #floatingRequestBtn,
html[dir="rtl"] body #floatingRequestBtn.is-open,
html[dir="ltr"] body #floatingRequestBtn,
html[dir="ltr"] body #floatingRequestBtn.is-open {
    position: fixed !important;
    right: auto !important;
    left: 22px !important;
    inset-inline-start: auto !important;
    inset-inline-end: auto !important;
    bottom: 92px !important;
    transform: none !important;
}

html body #smsmLauncherMenu,
html body #smsmLauncherMenu.show,
html[dir="rtl"] body #smsmLauncherMenu,
html[dir="rtl"] body #smsmLauncherMenu.show,
html[dir="ltr"] body #smsmLauncherMenu,
html[dir="ltr"] body #smsmLauncherMenu.show {
    position: fixed !important;
    right: auto !important;
    left: 22px !important;
    inset-inline-start: auto !important;
    inset-inline-end: auto !important;
    bottom: 174px !important;
    align-items: flex-start !important;
    transform: none !important;
}

/* FORCE LEFT OVERRIDE */
html body #floatingRequestBtn, html body #floatingRequestBtn.is-open, html[dir='rtl'] body #floatingRequestBtn, html[dir='rtl'] body #floatingRequestBtn.is-open { left: 22px !important; right: auto !important; inset-inline-start: auto !important; inset-inline-end: auto !important; bottom: 92px !important; }
html body #smsmLauncherMenu, html body #smsmLauncherMenu.show, html[dir='rtl'] body #smsmLauncherMenu, html[dir='rtl'] body #smsmLauncherMenu.show { left: 22px !important; right: auto !important; inset-inline-start: auto !important; inset-inline-end: auto !important; bottom: 174px !important; }
