.meshekmeller-ai-chat-wrap { --mm-ai-green: #3f5d36; --mm-ai-green-dark: #2f4728; --mm-ai-cream: #f7f4ed; color: #283025; font-family: inherit; text-align: right; }
.meshekmeller-ai-chat { background: #fff; border: 1px solid rgba(63, 93, 54, .14); border-radius: 20px; box-shadow: 0 18px 55px rgba(31, 45, 27, .16); display: flex; flex-direction: column; margin: 24px auto; max-width: 820px; overflow: hidden; }
.meshekmeller-ai-chat__header { align-items: center; background: linear-gradient(135deg, var(--mm-ai-green-dark), var(--mm-ai-green)); color: #fff; display: flex; gap: 11px; min-height: 68px; padding: 12px 16px; }
.meshekmeller-ai-chat__header > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; line-height: 1.25; }
.meshekmeller-ai-chat__header strong { color: inherit; font-size: 16px; }
.meshekmeller-ai-chat__header small { color: rgba(255, 255, 255, .78); font-size: 12px; margin-top: 4px; }
.meshekmeller-ai-chat__avatar { align-items: center; background: rgba(255, 255, 255, .17); border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%; display: flex; flex: 0 0 42px; font-size: 19px; font-weight: 700; height: 42px; justify-content: center; }
.meshekmeller-ai-chat__dismiss { background: transparent; border: 0; border-radius: 50%; color: #fff; cursor: pointer; font-size: 28px; height: 38px; line-height: 1; padding: 0; width: 38px; }
.meshekmeller-ai-chat__dismiss:hover { background: rgba(255, 255, 255, .12); }
.meshekmeller-ai-chat__messages { background: var(--mm-ai-cream); display: flex; flex: 1; flex-direction: column; gap: 10px; max-height: 520px; min-height: 180px; overflow-y: auto; overscroll-behavior: contain; padding: 16px; }
.meshekmeller-ai-chat__message { border-radius: 16px 16px 4px; box-shadow: 0 2px 10px rgba(35, 47, 31, .06); font-size: 14px; line-height: 1.55; max-width: 86%; padding: 10px 13px; white-space: pre-line; }
.meshekmeller-ai-chat__message--assistant { align-self: flex-start; background: #fff; }
.meshekmeller-ai-chat__message--user { align-self: flex-end; background: #dfead9; border-radius: 16px 16px 16px 4px; }
.meshekmeller-ai-chat__form { align-items: center; background: #fff; border-top: 1px solid #ecece7; display: flex; gap: 9px; margin: 0; padding: 12px; }
.meshekmeller-ai-chat__form textarea { background: #f7f7f4; border: 1px solid #deded8; border-radius: 16px; box-shadow: none; box-sizing: border-box; color: #283025; flex: 1; font: inherit; line-height: 1.45; max-height: 110px; min-height: 46px; padding: 12px 14px; resize: none; }
.meshekmeller-ai-chat__form textarea:focus { border-color: var(--mm-ai-green); box-shadow: 0 0 0 3px rgba(63, 93, 54, .1); outline: 0; }
.meshekmeller-ai-chat__form button, .meshekmeller-ai-chat__product button { background: var(--mm-ai-green); border: 0; border-radius: 13px; color: #fff; cursor: pointer; }
.meshekmeller-ai-chat__form button { align-items: center; display: flex; flex: 0 0 46px; height: 46px; justify-content: center; padding: 0; }
.meshekmeller-ai-chat__form button svg { fill: currentColor; height: 21px; transform: scaleX(-1); width: 21px; }
.meshekmeller-ai-chat__form button:hover, .meshekmeller-ai-chat__product button:hover { background: var(--mm-ai-green-dark); }
.meshekmeller-ai-chat__form button:disabled, .meshekmeller-ai-chat__product button:disabled { cursor: wait; opacity: .6; }
.meshekmeller-ai-chat__status { background: #fff; color: #657060; font-size: 12px; margin: 0; min-height: 0; padding: 0 16px; }
.meshekmeller-ai-chat__status:not(:empty) { padding-bottom: 9px; }
.meshekmeller-ai-chat__products { display: grid; gap: 9px; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
.meshekmeller-ai-chat__product { background: #fff; border: 1px solid #e3e3dd; border-radius: 13px; display: flex; flex-direction: column; gap: 7px; overflow: hidden; padding: 8px; }
.meshekmeller-ai-chat__product img { aspect-ratio: 1; border-radius: 8px; object-fit: cover; width: 100%; }
.meshekmeller-ai-chat__product > a { color: inherit; font-size: 13px; font-weight: 700; line-height: 1.35; }
.meshekmeller-ai-chat__product button { font-size: 12px; padding: 8px; }
.meshekmeller-ai-chat__price { font-size: 13px; margin-top: auto; }
.meshekmeller-ai-chat-wrap--floating { bottom: 24px; direction: rtl; left: auto; position: fixed; right: 24px; z-index: 99998; }
.meshekmeller-ai-chat-wrap--floating .meshekmeller-ai-chat { bottom: 76px; height: min(620px, calc(100vh - 125px)); margin: 0; opacity: 0; pointer-events: none; position: absolute; right: 0; transform: translateY(14px) scale(.97); transform-origin: bottom right; transition: opacity .2s ease, transform .2s ease, visibility .2s; visibility: hidden; width: min(390px, calc(100vw - 32px)); }
.meshekmeller-ai-chat-wrap--floating.is-open .meshekmeller-ai-chat { opacity: 1; pointer-events: auto; transform: none; visibility: visible; }
.meshekmeller-ai-chat-wrap--floating .meshekmeller-ai-chat__messages { max-height: none; }
.meshekmeller-ai-chat__launcher { align-items: center; background: var(--mm-ai-green); border: 0; border-radius: 50%; box-shadow: 0 10px 28px rgba(35, 55, 30, .3); color: #fff; cursor: pointer; display: flex; height: 62px; justify-content: center; padding: 0; transition: transform .2s ease, background .2s ease; width: 62px; }
.meshekmeller-ai-chat__launcher:hover { background: var(--mm-ai-green-dark); transform: translateY(-2px); }
.meshekmeller-ai-chat__launcher:focus-visible { outline: 3px solid rgba(63, 93, 54, .3); outline-offset: 4px; }
.meshekmeller-ai-chat__launcher svg { fill: currentColor; height: 31px; width: 31px; }
.meshekmeller-ai-chat__launcher-close { display: none; font-size: 34px; font-weight: 300; line-height: 1; }
.meshekmeller-ai-chat-wrap--floating.is-open .meshekmeller-ai-chat__launcher svg { display: none; }
.meshekmeller-ai-chat-wrap--floating.is-open .meshekmeller-ai-chat__launcher-close { display: block; }
@media (max-width: 600px) {
    .meshekmeller-ai-chat-wrap--floating { bottom: 16px; right: 16px; }
    .meshekmeller-ai-chat-wrap--floating .meshekmeller-ai-chat { bottom: 72px; height: min(560px, calc(100dvh - 105px)); width: calc(100vw - 32px); }
    .meshekmeller-ai-chat__launcher { height: 58px; width: 58px; }
    .meshekmeller-ai-chat__message { max-width: 92%; }
}
@media (prefers-reduced-motion: reduce) {
    .meshekmeller-ai-chat-wrap--floating .meshekmeller-ai-chat, .meshekmeller-ai-chat__launcher { transition: none; }
}
