/* MenkulEX v1.3.26 — Asistan mobil üst bölüm stabilizasyonu.
   Yalnız mobil/tablet header yüzeyleri; masaüstü, konuşma motoru ve değerleme çekirdeği etkilenmez. */

/* Floating mini panel: eski grid/header katmanlarının dar ekranda birbirini sıkıştırmasını sonlandır. */
@media (max-width:1024px){
  body:not(.xan-customer-ai-standalone-v196) .xan-customer-ai-v180.is-floating .xcai-head,
  body:not(.xan-customer-ai-standalone-v251) .xan-customer-ai-v180.is-floating .xcai-head{
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    min-height:64px!important;
    padding:10px 12px!important;
    display:grid!important;
    grid-template-columns:40px minmax(0,1fr) auto!important;
    align-items:center!important;
    column-gap:9px!important;
    overflow:hidden!important;
  }
  body:not(.xan-customer-ai-standalone-v196) .xan-customer-ai-v180.is-floating .xcai-avatar,
  body:not(.xan-customer-ai-standalone-v251) .xan-customer-ai-v180.is-floating .xcai-avatar{
    box-sizing:border-box!important;
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
    min-height:40px!important;
    max-width:40px!important;
    max-height:40px!important;
    flex:0 0 40px!important;
    border-radius:12px!important;
  }
  body:not(.xan-customer-ai-standalone-v196) .xan-customer-ai-v180.is-floating .xcai-head-copy-v200,
  body:not(.xan-customer-ai-standalone-v251) .xan-customer-ai-v180.is-floating .xcai-head-copy-v200{
    min-width:0!important;
    width:auto!important;
    display:block!important;
    text-align:left!important;
    overflow:hidden!important;
  }
  body:not(.xan-customer-ai-standalone-v196) .xan-customer-ai-v180.is-floating .xcai-head-copy-v200 strong,
  body:not(.xan-customer-ai-standalone-v251) .xan-customer-ai-v180.is-floating .xcai-head-copy-v200 strong{
    display:block!important;
    min-width:0!important;
    margin:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:14px!important;
    line-height:1.2!important;
    font-weight:600!important;
  }
  body:not(.xan-customer-ai-standalone-v196) .xan-customer-ai-v180.is-floating .xcai-head-copy-v200 small,
  body:not(.xan-customer-ai-standalone-v251) .xan-customer-ai-v180.is-floating .xcai-head-copy-v200 small{
    display:block!important;
    min-width:0!important;
    margin-top:3px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:10.5px!important;
    line-height:1.2!important;
  }
  body:not(.xan-customer-ai-standalone-v196) .xan-customer-ai-v180.is-floating .xcai-head-actions-v231,
  body:not(.xan-customer-ai-standalone-v251) .xan-customer-ai-v180.is-floating .xcai-head-actions-v231{
    min-width:0!important;
    margin:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    flex-wrap:nowrap!important;
    gap:6px!important;
    position:relative!important;
    z-index:3!important;
  }
  body:not(.xan-customer-ai-standalone-v196) .xan-customer-ai-v180.is-floating .xcai-head-fullpage-icon-v233,
  body:not(.xan-customer-ai-standalone-v251) .xan-customer-ai-v180.is-floating .xcai-head-fullpage-icon-v233,
  body:not(.xan-customer-ai-standalone-v196) .xan-customer-ai-v180.is-floating .xcai-head>[data-xcai-close],
  body:not(.xan-customer-ai-standalone-v251) .xan-customer-ai-v180.is-floating .xcai-head>[data-xcai-close]{
    box-sizing:border-box!important;
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
    min-height:36px!important;
    max-width:36px!important;
    max-height:36px!important;
    flex:0 0 36px!important;
    margin:0!important;
    padding:0!important;
  }
}

@media (max-width:390px){
  body:not(.xan-customer-ai-standalone-v196) .xan-customer-ai-v180.is-floating .xcai-head,
  body:not(.xan-customer-ai-standalone-v251) .xan-customer-ai-v180.is-floating .xcai-head{
    grid-template-columns:36px minmax(0,1fr) auto!important;
    column-gap:7px!important;
    padding:9px 10px!important;
  }
  body:not(.xan-customer-ai-standalone-v196) .xan-customer-ai-v180.is-floating .xcai-avatar,
  body:not(.xan-customer-ai-standalone-v251) .xan-customer-ai-v180.is-floating .xcai-avatar{
    width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;max-width:36px!important;max-height:36px!important;flex-basis:36px!important;
  }
  body:not(.xan-customer-ai-standalone-v196) .xan-customer-ai-v180.is-floating .xcai-head-copy-v200 strong,
  body:not(.xan-customer-ai-standalone-v251) .xan-customer-ai-v180.is-floating .xcai-head-copy-v200 strong{font-size:13px!important;}
  body:not(.xan-customer-ai-standalone-v196) .xan-customer-ai-v180.is-floating .xcai-head-copy-v200 small,
  body:not(.xan-customer-ai-standalone-v251) .xan-customer-ai-v180.is-floating .xcai-head-copy-v200 small{display:none!important;}
  body:not(.xan-customer-ai-standalone-v196) .xan-customer-ai-v180.is-floating .xcai-head-fullpage-icon-v233,
  body:not(.xan-customer-ai-standalone-v251) .xan-customer-ai-v180.is-floating .xcai-head-fullpage-icon-v233,
  body:not(.xan-customer-ai-standalone-v196) .xan-customer-ai-v180.is-floating .xcai-head>[data-xcai-close],
  body:not(.xan-customer-ai-standalone-v251) .xan-customer-ai-v180.is-floating .xcai-head>[data-xcai-close]{
    width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;max-width:34px!important;max-height:34px!important;flex-basis:34px!important;
  }
}

/* Canonical /menkulex-asistan/: koyu appbar ve açık sohbet header'ını küçük ekranlarda ayrı ayrı stabilize et. */
@media (max-width:820px){
  body.xan-customer-ai-standalone-v251 .mxa-appbar-v1251{
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    min-height:60px!important;
    padding:8px 10px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:0!important;
    overflow:hidden!important;
    padding-top:max(8px,env(safe-area-inset-top,0px))!important;
  }
  body.xan-customer-ai-standalone-v251 .mxa-nav-v1251{display:none!important;}
  body.xan-customer-ai-standalone-v251 .mxa-brand-v1251,
  body.xan-customer-ai-standalone-v251 .mxa-brand-logo-mode-v1259{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    overflow:hidden!important;
  }
  body.xan-customer-ai-standalone-v251 .mxa-surface-logo-v1259{
    width:104px!important;
    max-width:34vw!important;
    max-height:34px!important;
    flex:0 0 auto!important;
  }
  body.xan-customer-ai-standalone-v251 .mxa-brand-logo-mode-v1259>span{
    min-width:0!important;
    flex:1 1 auto!important;
    overflow:hidden!important;
  }
  body.xan-customer-ai-standalone-v251 .mxa-brand-logo-mode-v1259 strong{
    display:block!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:14px!important;
    line-height:1.2!important;
  }
  body.xan-customer-ai-standalone-v251 .mxa-brand-logo-mode-v1259 small{display:none!important;}

  body.xan-customer-ai-standalone-v251 .mxa-workspace-v1251{
    height:calc(100dvh - 60px - env(safe-area-inset-top,0px))!important;
  }
  body.xan-customer-ai-standalone-v251 .mxa-center-v1251 .mxa-chat-head-v1251{
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    min-height:56px!important;
    padding:8px 10px!important;
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    overflow:hidden!important;
  }
  body.xan-customer-ai-standalone-v251 .mxa-center-v1251 .mxa-chat-head-v1251 .xcai-brand{
    width:100%!important;
    min-width:0!important;
    gap:8px!important;
    overflow:hidden!important;
  }
  body.xan-customer-ai-standalone-v251 .mxa-center-v1251 .xcai-avatar-logo-v1259{
    box-sizing:border-box!important;
    width:72px!important;
    height:38px!important;
    min-width:72px!important;
    max-width:72px!important;
    flex:0 0 72px!important;
    padding:5px 6px!important;
    border-radius:10px!important;
  }
  body.xan-customer-ai-standalone-v251 .mxa-center-v1251 .mxa-chat-head-v1251 .xcai-brand>div{
    min-width:0!important;
    flex:1 1 auto!important;
    overflow:hidden!important;
  }
  body.xan-customer-ai-standalone-v251 .mxa-center-v1251 .mxa-chat-head-v1251 .xcai-brand b,
  body.xan-customer-ai-standalone-v251 .mxa-center-v1251 .mxa-chat-head-v1251 .xcai-brand strong{
    display:block!important;
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:14px!important;
    line-height:1.2!important;
  }
  body.xan-customer-ai-standalone-v251 .mxa-center-v1251 .mxa-chat-head-v1251 .xcai-brand small{
    display:block!important;
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:10.5px!important;
    line-height:1.2!important;
    margin-top:2px!important;
  }
}

@media (max-width:390px){
  body.xan-customer-ai-standalone-v251 .mxa-surface-logo-v1259{width:92px!important;max-width:31vw!important;}
  body.xan-customer-ai-standalone-v251 .mxa-brand-logo-mode-v1259 strong{font-size:13px!important;}
  body.xan-customer-ai-standalone-v251 .mxa-center-v1251 .xcai-avatar-logo-v1259{
    width:62px!important;min-width:62px!important;max-width:62px!important;flex-basis:62px!important;height:36px!important;
  }
  body.xan-customer-ai-standalone-v251 .mxa-center-v1251 .mxa-chat-head-v1251 .xcai-brand b,
  body.xan-customer-ai-standalone-v251 .mxa-center-v1251 .mxa-chat-head-v1251 .xcai-brand strong{font-size:13px!important;}
  body.xan-customer-ai-standalone-v251 .mxa-center-v1251 .mxa-chat-head-v1251 .xcai-brand small{display:none!important;}
}
