.zhchatbot-wrap { position: relative; font-family: system-ui, Arial, sans-serif; --zhchatbot-primary:#1f8f3a; --zhchatbot-bg:#ffffff; --zhchatbot-potyi:#1f8f3a; --zhchatbot-panel-height:70vh; --zhchatbot-bubble-size:56px; --zhchatbot-icon-size:28px; }
#zhchatbot-floating-root .zhchatbot-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 99999; }

.zhchatbot-bubble{
  width: var(--zhchatbot-bubble-size, 56px); height: var(--zhchatbot-bubble-size, 56px); border-radius: 999px;
  border: 0; cursor: pointer; padding: 0;
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
  display:flex; align-items:center; justify-content:center;
  background: var(--zhchatbot-potyi, var(--zhchatbot-primary)); color: #fff; font-size: 22px;
  padding:0; line-height:1;
}
.zhchatbot-bubble.has-icon{
  font-size: 0; /* make sure no text baseline affects centering */
}

/* Bubble icon (image) */
.zhchatbot-bubbleicon{
  width: var(--zhchatbot-icon-size, 28px);
  height: var(--zhchatbot-icon-size, 28px);
  display: block;
  object-fit: contain;
  transition: transform 180ms ease, opacity 180ms ease;
}

.zhchatbot-bubbleicon.zhchatbot-icon-anim-out{
  opacity: 0;
  transform: scale(0.85);
}
.zhchatbot-bubbleicon.zhchatbot-icon-anim-in{
  opacity: 1;
  transform: scale(1);
}

.zhchatbot-panel{
  position: absolute;
  right: 0;
  bottom: calc(var(--zhchatbot-bubble-size, 56px) + 14px);
  width: 340px;
  max-width: calc(100vw - 40px);
  background: var(--zhchatbot-bg, #fff);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  overflow: hidden;
  display:none;
  max-height: var(--zhchatbot-panel-height, 70vh);
  display:none;
  flex-direction: column;
}
#zhchatbot-floating-root .zhchatbot-panel { position: fixed; right: 20px; bottom: calc(20px + var(--zhchatbot-bubble-size, 56px) + 14px); }
.zhchatbot-panel.open{ display:flex; }

.zhchatbot-head{
  display:flex; align-items:center; justify-content:space-between;
  padding: 10px 12px;
  background: var(--zhchatbot-primary);
  color:#fff;
}
.zhchatbot-title{ font-weight: 600; }
.zhchatbot-sidebtn{ background: transparent; border:0; color:#fff; font-size:18px; cursor:pointer; margin-left:auto; margin-right:6px; }
.zhchatbot-close{ background: transparent; border:0; color:#fff; font-size:18px; cursor:pointer; }

/* Body layout: sidebar + main */
.zhchatbot-body{ display:flex; width:100%; min-height:0; }
.zhchatbot-main{ flex: 1 1 auto; display:flex; flex-direction:column; min-width:0; }

/* --- Bottom tabs layout (Home / Messages / Help) --- */
.zhchatbot-tabs{ flex: 1 1 auto; display:flex; flex-direction:column; min-height:0; }
.zhchatbot-tab{ flex: 1 1 auto; display:none; flex-direction:column; min-height:0; }
.zhchatbot-tabscroll{ flex: 1 1 auto; overflow-y:auto; padding: 12px; background: #f7f7f7; min-height:0; }

.zhchatbot-bottomnav{
  flex: 0 0 auto;
  display:flex;
  justify-content:space-around;
  gap: 6px;
  border-top: 1px solid #e9e9e9;
  background: #fff;
  padding: 8px 6px 10px;
}
.zhchatbot-navbtn{
  flex: 1 1 0;
  background: transparent;
  border: 0;
  padding: 6px 6px 4px;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 3px;
  border-radius: 12px;
  color: #666;
}
.zhchatbot-navbtn.active{ color: var(--zhchatbot-primary); }
.zhchatbot-navicon{ display:flex; align-items:center; justify-content:center; width:22px; height:22px; line-height:1; }
.zhchatbot-navemoji{ font-size: 18px; line-height: 1; }
.zhchatbot-navimg{ width:20px; height:20px; object-fit:contain; display:block; }
.zhchatbot-navlabel{ font-size: 12px; line-height: 1.1; }

/* Home / Help shared blocks */
.zhchatbot-home-search, .zhchatbot-help-search{
  display:flex;
  align-items:center;
  gap: 8px;
  background:#fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 12px;
}
.zhchatbot-home-search input, .zhchatbot-help-search input{
  flex: 1 1 auto;
  border: 0;
  outline: none;
  font-size: 14px;
  background: transparent;
}
.zhchatbot-home-searchbtn, .zhchatbot-help-searchbtn{
  background: transparent;
  border: 0;
  cursor:pointer;
  font-size: 18px;
  color: var(--zhchatbot-primary);
}

/* In-tab search results (clickable list) */
.zhchatbot-search-results{ margin: 0 0 12px; }
.zhchatbot-results-loading{
  font-size: 13px;
  opacity: .7;
  padding: 6px 2px;
}
.zhchatbot-results-empty{
  font-size: 13px;
  opacity: .8;
  padding: 6px 2px;
}
.zhchatbot-results-item{
  display:block;
  background:#fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 12px 12px;
  margin-bottom: 10px;
  text-decoration:none;
  color: inherit;
}
.zhchatbot-results-title{ font-weight: 700; margin-bottom: 4px; }
.zhchatbot-results-excerpt{ font-size: 13px; opacity: .85; }
.zhchatbot-results-more{
  width: 100%;
  border: 1px solid #e6e6e6;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  cursor: pointer;
}

.zhchatbot-row, .zhchatbot-helpitem{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 12px 12px;
  background:#fff;
  border: 1px solid #eee;
  border-radius: 14px;
  margin-bottom: 10px;
  text-decoration:none;
  color: inherit;
}
.zhchatbot-rowarrow{ font-size: 18px; opacity: .6; }

.zhchatbot-featured{
  display:block;
  background:#fff;
  border: 1px solid #eee;
  border-radius: 16px;
  overflow:hidden;
  text-decoration:none;
  color: inherit;
}
.zhchatbot-featured-media img{ width:100%; height:auto; display:block; }
.zhchatbot-featured-body{ padding: 12px 12px 14px; }
.zhchatbot-featured-title{ font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.zhchatbot-featured-text{ color:#555; font-size: 14px; line-height: 1.35; }

/* Home tab - structured featured article (MailerLite-like card) */
.zhchatbot-home-featured{ margin-top: 10px; }
.zhchatbot-home-featured-headline{
  font-weight: 700;
  font-size: 15px;
  margin: 6px 2px 10px;
  color: #222;
}
.zhchatbot-home-featured-card{
  display: block;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.zhchatbot-home-featured-media img{
  width: 100%;
  height: auto;
  display: block;
}
.zhchatbot-home-featured-body{
  padding: 12px 12px 14px;
}
.zhchatbot-home-featured-link{
  display: inline-block;
  font-weight: 700;
  font-size: 16px;
  color: #0b57d0;
  text-decoration: none;
  margin-bottom: 6px;
}
.zhchatbot-home-featured-link:hover{
  text-decoration: underline;
}
.zhchatbot-home-featured-desc{
  color: #555;
  font-size: 14px;
  line-height: 1.35;
}

.zhchatbot-helpitem{ border-radius: 0; border-left: 0; border-right: 0; border-top:0; margin-bottom:0; }
.zhchatbot-help-menu{ background:#fff; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.zhchatbot-helpitem-main{ flex: 1 1 auto; }
.zhchatbot-helpitem-title{ font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.zhchatbot-helpitem-text{ color:#555; font-size: 13px; margin-bottom: 6px; }
.zhchatbot-helpitem-meta{ color:#777; font-size: 12px; }
.zhchatbot-helpitem-arrow{ font-size: 18px; opacity: .6; }

.zhchatbot-sidebar{
  /*
    Important: when the sidebar is CLOSED we must not reserve space,
    otherwise the main chat stays squeezed (transform doesn't affect layout).
    Default = closed state (width: 0). Open state sets the real width.
  */
  width: 0;
  flex: 0 0 auto;
  max-width: 72vw;
  background: #fff;
  border-right: 0;
  overflow: hidden;
  min-height:0;
  transform: translateX(-100%);
  transition: width .18s ease, transform .18s ease;
}
.zhchatbot-panel.zhchatbot-sidebar-open .zhchatbot-sidebar{
  width: var(--zhchatbot-sidebar-width, 260px);
  border-right: 1px solid #eee;
  overflow-y: auto;
  transform: translateX(0);
}
.zhchatbot-sidebar-inner{ padding: 10px 10px 12px; font-size: var(--zhchatbot-sidebar-font-size, 13px); }

/* Mobile sidebar top bar (gives a clear close button when the sidebar overlays) */
.zhchatbot-sidebar-mobilebar{ display:none; align-items:center; justify-content:space-between; gap: 8px; padding: 10px 10px 12px; margin: -10px -10px 10px; border-bottom: 1px solid #eee; background:#fff; position: sticky; top: 0; z-index: 4; }
.zhchatbot-sidebar-mobiletitle{ font-weight: 700; font-size: 13px; }
.zhchatbot-sidebar-closebtn{ border: 1px solid rgba(0,0,0,.15); background: rgba(0,0,0,.03); border-radius: 10px; padding: 6px 10px; cursor:pointer; color:#111 !important; line-height: 1; }
.zhchatbot-sidebar-sticky{
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fff;
  padding: 10px 10px 12px;
  margin: -10px -10px 10px;
  border-bottom: 1px solid #eee;
}
.zhchatbot-sidebar-section{ margin-bottom: 12px; }
.zhchatbot-sidebar-title{ font-weight: 700; font-size: 12px; text-transform: uppercase; opacity: .75; margin: 4px 0 8px; }
.zhchatbot-newchat{
  width:100%;
  border: none;
  background: var(--zhchatbot-newchat-color, #2a8f3a);
  color: #fff;
  border-radius: 10px;
  padding: 9px 10px;
  cursor:pointer;
  font-weight: 600;
  box-shadow: none;
}

.zhchatbot-newchat:hover{
  background: var(--zhchatbot-newchat-hover-color, var(--zhchatbot-newchat-color, #2a8f3a));
}

.zhchatbot-newchat:focus{
  outline: 2px solid rgba(0,0,0,.18);
  outline-offset: 2px;
}

.zhchatbot-newchat:active{
  background: var(--zhchatbot-newchat-color, #2a8f3a);
  transform: none;
}

/* Show the "Új beszélgetés" button only on hover (or keyboard focus) */
.zhchatbot-sidebar-newchat{
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity .15s ease, max-height .15s ease;
}
.zhchatbot-sidebar:hover .zhchatbot-sidebar-newchat,
.zhchatbot-sidebar:focus-within .zhchatbot-sidebar-newchat{
  opacity: 1;
  max-height: 70px;
  pointer-events: auto;
}
.zhchatbot-sidebar-links,
.zhchatbot-sidebar-recitems,
.zhchatbot-sidebar-sitemapitems{ display:flex; flex-direction:column; gap: 6px; }
.zhchatbot-sidebar-link,
.zhchatbot-sidebar-recitem,
.zhchatbot-sidebar-sitemapitem{
  display:block;
  padding: 7px 8px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--zhchatbot-sidebar-btn-text, #111);
  border: 1px solid var(--zhchatbot-sidebar-btn-border, rgba(0,0,0,.08));
  background: var(--zhchatbot-sidebar-btn-bg, rgba(0,0,0,.02));
}
.zhchatbot-sidebar-link:hover,
.zhchatbot-sidebar-recitem:hover,
.zhchatbot-sidebar-sitemapitem:hover{
  opacity: .85;
  background: var(--zhchatbot-sidebar-btn-hover-bg, var(--zhchatbot-sidebar-btn-bg, rgba(0,0,0,.02)));
 }

.zhchatbot-sidebar-empty{
  font-size: 12px;
  opacity: .7;
  padding: 6px 2px;
}

/* Custom sidebar text blocks (from wp_editor) */
.zhchatbot-sidebar-customhtml{ line-height: 1.45; }
.zhchatbot-sidebar-customhtml p{ margin: 0 0 8px; }
.zhchatbot-sidebar-customhtml p:last-child{ margin-bottom: 0; }
.zhchatbot-sidebar-customhtml a{ text-decoration: underline; color: var(--zhchatbot-sidebar-linkurl-color, inherit); }

/* Mobile: sidebar overlays */
@media (max-width: 520px){
  .zhchatbot-sidebar{
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 2;
    box-shadow: 8px 0 20px rgba(0,0,0,.18);
  }
  .zhchatbot-panel{ overflow: hidden; }

  /* Backdrop behind sidebar when open (tap to close) */
  .zhchatbot-sidebar-backdrop{ position:absolute; inset:0; z-index: 1; background: rgba(0,0,0,.25); }
  .zhchatbot-panel.zhchatbot-sidebar-open .zhchatbot-sidebar-backdrop{ display:block !important; }
  .zhchatbot-panel.zhchatbot-sidebar-open .zhchatbot-sidebar-mobilebar{ display:flex; }
}

.zhchatbot-intro{
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  font-size: 13px;
  color:#222;
  /* The intro may contain images. We keep the IMAGE fully visible and only
     cap/scroll the TEXT part (see .zhchatbot-intro-text below). */
  overflow: hidden;
  transition: max-height .25s ease, padding .25s ease, border-color .25s ease, opacity .25s ease;
}

/* Image area: always fully visible (scaled down if needed) */
.zhchatbot-intro-media{
  text-align: center;
  padding: 6px 0 2px;
}
.zhchatbot-intro-media img{
  max-width: 100%;
  height: auto;
  /* Never crop: just scale down */
  max-height: 190px;
}

/* Text area: this is what can scroll */
.zhchatbot-intro-text{
  max-height: 110px;
  overflow-y: auto;
  padding-top: 6px;
}
@media (max-width: 640px){
  .zhchatbot-intro-text{ max-height: 80px; }
}

.zhchatbot-intro-head{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  margin-bottom: 6px;
}

.zhchatbot-intro-close{
  border: 1px solid #dcdcdc;
  background: #fff;
  /* Some themes force white button text globally; ensure the × is visible */
  color: #111 !important;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  line-height: 28px;
  padding: 0;
  cursor: pointer;
  font-size: 18px;
}

.zhchatbot-intro-close:hover{
  background: #f5f5f5;
}

.zhchatbot-intro-body > :first-child{ margin-top: 0; }
.zhchatbot-intro-body > :last-child{ margin-bottom: 0; }

/* Collapsed intro after the first interaction */
.zhchatbot-intro.zhchatbot-intro-collapsed{
  max-height: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  border-color: transparent;
  opacity: 0;
}
.zhchatbot-messages{
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 10px 12px;
  background: #fafafa;
  /* allow the messages area to shrink when the Top5/Ajánló block is open */
  min-height: 0;
}
.zhchatbot-msg{ margin: 8px 0; display:flex; }
.zhchatbot-user{ justify-content:flex-end; }
.zhchatbot-bot{ justify-content:flex-start; }
.zhchatbot-msg-inner{
  max-width: 85%;
  padding: 9px 10px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.35;
  white-space: pre-wrap;
}
.zhchatbot-user .zhchatbot-msg-inner{ background:var(--zhchatbot-primary); color:#fff; border-bottom-right-radius: 4px; }
.zhchatbot-bot  .zhchatbot-msg-inner{ background:#fff; color:#111; border:1px solid #e6e6e6; border-bottom-left-radius: 4px; }

/* Typing indicator */
.zhchatbot-typing .zhchatbot-msg-inner{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.zhchatbot-typing-text{ opacity: .85; font-size: 13px; }
.zhchatbot-typing-dots{ display:inline-flex; gap: 4px; align-items:center; }
.zhchatbot-typing-dots i{
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .35;
  animation: zhchatbotDot 1s infinite ease-in-out;
}
.zhchatbot-typing-dots i:nth-child(2){ animation-delay: .15s; }
.zhchatbot-typing-dots i:nth-child(3){ animation-delay: .3s; }
@keyframes zhchatbotDot{
  0%, 80%, 100% { transform: translateY(0); opacity: .25; }
  40% { transform: translateY(-3px); opacity: .75; }
}

/* Clickable links in bot messages */
.zhchatbot-bot .zhchatbot-msg-inner a.zhchatbot-link{
  color: inherit;
  text-decoration: underline;
  word-break: break-word;
}
.zhchatbot-bot .zhchatbot-msg-inner a.zhchatbot-link:hover{ opacity: .85; }

/* Clickable title (when the bot recommends a post by title) */
.zhchatbot-bot .zhchatbot-msg-inner a.zhchatbot-titlelink{
  color: inherit;
  text-decoration: underline;
}

/* Links block inserted under bot answers when only titles were listed */
.zhchatbot-titlelinks{
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  background: rgba(0,0,0,.02);
}
.zhchatbot-titlelinks-head{ font-weight: 700; margin-bottom: 8px; }
.zhchatbot-titlelinks-list{ display:flex; flex-direction:column; gap: 6px; }
.zhchatbot-titlelinks-list a{ color: inherit; text-decoration: underline; font-size: 13px; word-break: break-word; }

/* Card-style article previews */
.zhchatbot-cards{ margin-top: 10px; display:flex; flex-direction:column; gap: 8px; }
.zhchatbot-card{
  display:flex;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  overflow:hidden;
  background:#fff;
}
.zhchatbot-card-img{
  width: 92px;
  min-width: 92px;
  background-size: cover;
  background-position: center;
}
.zhchatbot-card-body{ padding: 10px; display:flex; flex-direction:column; gap: 6px; }
.zhchatbot-card-title{ font-weight: 600; font-size: 13px; line-height: 1.25; }
.zhchatbot-card-excerpt{ font-size: 12px; color:#333; line-height: 1.3; }
.zhchatbot-card-btn{
  align-self:flex-start;
  text-decoration:none;
  background: var(--zhchatbot-primary);
  color:#fff;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
}
.zhchatbot-card-btn:hover{ opacity: .9; }

.zhchatbot-input{
  display:flex; gap:8px;
  padding: 10px 12px;
  border-top: 1px solid #eee;
  background: var(--zhchatbot-bg, #fff);
}
.zhchatbot-input input{
  flex:1; padding: 10px; border-radius: 10px;
  border: 1px solid #ddd; outline:none;
  height: 40px;
  box-sizing: border-box;
  /* Allow shrinking inside flex so the send/search buttons always remain visible */
  min-width: 0;
}
.zhchatbot-input button{
  width: 44px; border-radius: 10px; border:0;
  height: 40px;
  cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  padding:0;
  line-height: 1;
}

.zhchatbot-send{
  background:var(--zhchatbot-primary);
  color:#fff;
}

.zhchatbot-searchtoggle{
  background:#f3f3f3;
  color:#222;
  border: 1px solid #ddd;
}

.zhchatbot-searchtoggle.active{
  background:var(--zhchatbot-primary);
  color:#fff;
  border-color: var(--zhchatbot-primary);
}

.zhchatbot-footnote{
  padding: 8px 12px;
  font-size: 12px;
  color:#666;
  border-top: 1px solid #f1f1f1;
  background: var(--zhchatbot-bg, #fff);
}


.zhchatbot-topbar{
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
  background: var(--zhchatbot-bg, #fff);
  display: block !important;
}
.zhchatbot-topbtn{
  width: 100%;
  background: var(--zhchatbot-primary) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  opacity: 1 !important;
  visibility: visible !important;
}

.zhchatbot-topbtn-label{
  flex: 1;
  text-align: center;
  padding-left: 16px; /* balance arrow at right */
}

.zhchatbot-topbtn-arrow{
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1;
  margin-left: 8px;
  opacity: .95;
}

.zhchatbot-topbtn-label{
  display: inline-block;
  flex: 1 1 auto;
  text-align: center;
}

.zhchatbot-topbtn-arrow{
  display: inline-block;
  flex: 0 0 auto;
  margin-left: 10px;
  font-size: 16px;
  line-height: 1;
  opacity: .95;
}

.zhchatbot-topbar.is-open .zhchatbot-topbtn{
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
.zhchatbot-toplist{
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
  background: var(--zhchatbot-bg, #fff);
  display:none;
  flex-direction: column;
  gap: 6px;
  /* No inner scrollbar: the panel can grow and the messages area will scroll instead */
  max-height: none;
  overflow: visible;
}

.zhchatbot-switch{
  display:flex;
  gap:6px;
  margin-bottom: 8px;
}
.zhchatbot-switch-btn{
  flex:1;
  padding: 6px 10px;
  /* Smaller radius for the Top5/Ajánló switch buttons */
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.15);
  background:#f5f5f5;
  /* Some themes force white button text globally; ensure readability */
  color:#111 !important;
  cursor:pointer;
  font-size: 13px;
}
.zhchatbot-switch-btn.active{
  background: var(--zhchatbot-primary);
  /* Keep white text on active (green) state even if the theme overrides button colors */
  color:#fff !important;
  border-color: transparent;
}

.zhchatbot-view{
  display:flex;
  flex-direction: column;
  gap: 6px;
}

.zhchatbot-empty{
  font-size: 13px;
  color:#666;
  padding: 6px 2px;
}

.zhchatbot-rec-link{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  border: 1px solid #eee;
  background:#fafafa;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  color:#111;
}
.zhchatbot-rec-link:hover{ background: #f2f2f2; }

.zhchatbot-rec-icon{
  width:24px;
  height:24px;
  object-fit: cover;
  border-radius: 6px;
  flex:0 0 auto;
}

/* Top 5 (Gyakori kérdések) – compact list rows (avatar + 1-line text)
   Goal: no big green "hero" blocks, just small clickable rows like:
   [○] question...
*/
.zhchatbot-toprow{
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  display: flex !important;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  padding: 8px 10px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff !important;
  color: #111 !important;
  font-size: 13px;
  line-height: 1.3;
}
.zhchatbot-toprow:hover{ background:#f6f6f6 !important; }

.zhchatbot-toprow-icon{
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  border-radius: 50% !important;
  object-fit: cover;
  flex: 0 0 auto;
  display: block;
}

.zhchatbot-toprow-text{
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* If no icon is provided, keep alignment consistent */
.zhchatbot-toprow.no-icon{
  padding-left: 12px;
}
/* Top5 (Gyakori kérdések) cards – match the recommended articles layout */
.zhchatbot-topcard{
  appearance: none;
  -webkit-appearance: none;
  text-align: left;
  border: 1px solid #eee;
  background: #fafafa !important;
  /* Some themes force white button text globally; ensure readability */
  color:#111 !important;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 13px;
  display:flex !important;
  align-items:center;
  gap:10px;
  opacity:1 !important;
  visibility:visible !important;
  width:100%;
}
.zhchatbot-topcard:hover{ background: #f2f2f2; }

.zhchatbot-topcard-icon{
  width:32px !important;
  height:32px !important;
  min-width:32px !important;
  max-width:32px !important;
  object-fit: cover;
  border-radius: 8px;
  flex:0 0 auto;
  display:block;
}

.zhchatbot-topcard-body{
  display:flex;
  flex-direction:column;
  gap:3px;
  flex: 1 1 auto;
  min-width: 0;
}

.zhchatbot-topcard-title{
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
  white-space: normal;
}

.zhchatbot-topcard-sub{
  font-size: 12px;
  color: #666;
  line-height: 1.25;
  white-space: normal;
}

/* When Top 5 entry is a link (URL provided), keep it button-like */
.zhchatbot-toplink{
  text-decoration: none;
}



@media (max-height: 700px){
  .zhchatbot-panel{
    max-height: calc(var(--zhchatbot-panel-height, 70vh) - 10vh);
  }

  /* Keep Top5/Ajánló without its own scrollbar on small viewports too */
  .zhchatbot-toplist{ max-height: none; }
}


/* Mini menu (double click on bubble) */
.zhchatbot-mini{
  position: fixed;
  right: 18px;
  bottom: calc(20px + var(--zhchatbot-bubble-size, 56px) + 20px);
  display: none;
  flex-direction: column;
  gap: 8px;
  background: var(--zhchatbot-bg, #fff);
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  z-index: 999999;
  opacity: 1;
}
.zhchatbot-mini .zhchatbot-mini-actions{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zhchatbot-mini .zhchatbot-mini-btn{
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--zhchatbot-primary, #1f8f3a);
  color: #fff;
  font: inherit;
  line-height: 1;
  white-space: nowrap;
}
.zhchatbot-mini .zhchatbot-mini-btn:hover{
  filter: brightness(.92);
}

.zhchatbot-mini .zhchatbot-mini-social{
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid rgba(0,0,0,.10);
  display: flex;
  gap: 10px;
  justify-content: center;
}

.zhchatbot-mini .zhchatbot-mini-ico{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.06);
}

.zhchatbot-mini .zhchatbot-mini-ico svg{
  width: 20px;
  height: 20px;
  fill: var(--zhchatbot-primary, #1f8f3a);
}

.zhchatbot-mini .zhchatbot-mini-ico:hover{
  background: rgba(0,0,0,.10);
}
