/* Body lock when overlay open */
.site-ai-locked { overflow: hidden; }

/* Floating Action Button (comment icon) */
.site-ai-fab{
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: none;
  background: #111;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  cursor: pointer;
  z-index: 99998;
}
.site-ai-fab svg{ fill: currentColor; }

/* Fullscreen overlay */
.site-ai-overlay{
  position: fixed;
  inset: 0;
  background: rgba(17,17,17,.65);
  z-index: 99999;
  display: none;
}
.site-ai-overlay.open{ display: block; }

.site-ai-overlay-inner{
  position: fixed;
  inset: 0;
  background: #fff;
  max-height: 100vh;
  overflow: auto; 
}

/* Header row */
.site-ai-overlay-header{
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 12px;
  border-bottom: 1px solid #eee;
}
.site-ai-input-wrap{
  display: flex;
  gap: .5rem;
  flex: 1;
}
.site-ai-input{
  flex: 1;
  padding: .75rem .9rem;
  border: 1px solid #ddd;
  border-radius: .5rem;
  font-size: 16px;
}
.site-ai-send{
  padding: .75rem 1rem;
  border: 0;
  border-radius: .5rem;
  background: #111;
  color: #fff;
  cursor: pointer;
}
.site-ai-close{
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: .5rem;
  background: #f2f2f2;
  color: #111;
  cursor: pointer;
}

/* Content area (answer + results) */
.site-ai-chat-answers{
  padding: 12px 12px 0 12px;
  white-space: pre-wrap;
  font-size: 15px;
}
.site-ai-results{
  padding: 12px;
  overflow: auto; /* scroll when long */
  gap: 25px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}

/* Cards */
.site-ai-card{
  border: 1px solid #eee;
  border-radius: .75rem;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.site-ai-card img, .site-ai-card .ph{
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #f2f2f2;
}
.site-ai-card .body{ padding: .75rem; }
.site-ai-card .title{ font-weight: 600; margin-bottom: .25rem; }
.site-ai-card .excerpt{ font-size: .92rem; color: #444; margin-bottom: .5rem; }
.site-ai-card .meta{ font-size: .82rem; color: #666; }
.site-ai-card .actions{
  padding: .75rem;
  border-top: 1px solid #f0f0f0;
  margin-top: auto;
}
.site-ai-card .btn{
  display: inline-block;
  padding: .5rem .75rem;
  border-radius: .5rem;
  background: #111;
  color: #fff;
  text-decoration: none;
}

/* Inline legacy block (if someone still uses the shortcode) */
.site-ai-inline{
  max-width: 860px; margin: 1rem auto;
}
.site-ai-empty{ color:#555; }
