/* Maatilatukku.fi AI-chat (Maajussi): puhelinnäkymän korjaus 4.12.2026.
   Lisätiedosto: Zen Cart lataa sen automaattisesti stylesheet_ai_chat.css:n jälkeen. Alkuperäiseen tiedostoon ei tarvitse koskea.
   Puhelimessa chat avautuu alapaneelina, joten otsikko ja ×-nappi näkyvät aina. */
.mtt-ac-backdrop{display:none}
@media (max-width:600px){
  .mtt-ac-backdrop.mtt-ac-open{display:block;position:fixed;inset:0;z-index:9998;background:rgba(0,0,0,.45)}
  html.mtt-ac-lock,html.mtt-ac-lock body{overflow:hidden}
  #mtt-aichat.mtt-ac-open{left:0;right:0;bottom:0;top:auto;height:88vh;height:88dvh}
  #mtt-aichat.mtt-ac-open .mtt-ac-panel{height:100%;border-radius:16px 16px 0 0}
  #mtt-aichat .mtt-ac-head{position:relative;padding:12px 8px 10px 12px}
  #mtt-aichat .mtt-ac-head::before{content:"";position:absolute;top:5px;left:50%;width:40px;height:4px;margin-left:-20px;border-radius:2px;background:rgba(255,255,255,.55)}
  #mtt-aichat .mtt-ac-head .mtt-ac-avatar{width:42px;height:42px;flex-basis:42px}
  #mtt-aichat .mtt-ac-head button{width:44px;height:44px;border-radius:50%;margin-left:6px;padding:0}
  #mtt-aichat .mtt-ac-head .mtt-ac-close{font-size:32px;background:rgba(255,255,255,.2)}
  #mtt-aichat .mtt-ac-head .mtt-ac-reset{font-size:22px}
  #mtt-aichat .mtt-ac-form{padding-bottom:max(8px,env(safe-area-inset-bottom))}
  #mtt-aichat .mtt-ac-foot{padding-bottom:max(8px,env(safe-area-inset-bottom))}
}
