/*
Theme: ekupony
Template: page-ai-search.php
Description: Style dla strony "Wyszukiwarka AI" (/ai-search/) - widget chatu AI
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.page-ai-search {
  --orange: #E8400C;
  --orange-600: #C8350A;
  --orange-50: #FFF1EB;
  --ink: #0F1115;
  --ink-2: #1A1D23;
  --dark: #1A1A2E;
  --muted: #5C6270;
  --muted-2: #8A8F9C;
  --line: #ECECEE;
  --line-2: #E5E5E8;
  --bg-soft: #F9F9FB;
  --bg-soft-2: #FAFAFA;
  --bubble-bot: #F3F4F6;
  --green: #1E9E5A;
  --green-bg: #E8F5EE;
  --shadow-sm: 0 1px 2px rgba(15,17,21,.04), 0 1px 1px rgba(15,17,21,.02);
  --shadow-md: 0 4px 14px rgba(15,17,21,.06), 0 2px 4px rgba(15,17,21,.03);
  --shadow-lg: 0 18px 40px -12px rgba(15,17,21,.12), 0 6px 16px -8px rgba(15,17,21,.06);
  --shadow-xl: 0 32px 70px -22px rgba(232,64,12,.22), 0 14px 30px -16px rgba(15,17,21,.12);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 10px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: 'cv11','ss01','ss03';
  color: var(--ink);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

.page-ai-search * { box-sizing: border-box; }

.page-ai-search .container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.page-ai-search .container--narrow { max-width: 980px; }

/* ---------- Shared atoms ---------- */
.page-ai-search .badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--orange-50); color: var(--orange); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.page-ai-search .badge::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: var(--orange); }

.page-ai-search h1, .page-ai-search h2, .page-ai-search h3, .page-ai-search h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; color: var(--dark); }
.page-ai-search h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.06; letter-spacing: -0.028em; }
.page-ai-search h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.1; letter-spacing: -0.025em; }
.page-ai-search h3 { font-size: 18px; line-height: 1.35; color: var(--dark); }
.page-ai-search p { margin: 0; color: var(--muted); }
.page-ai-search .accent { color: var(--orange); }

.page-ai-search .section { padding: 88px 0; position: relative; }
.page-ai-search .section--soft { background: var(--bg-soft); }
.page-ai-search .section-head { max-width: 760px; margin: 0 auto; text-align: center; }
.page-ai-search .section-head .badge { margin-bottom: 18px; }
.page-ai-search .section-head h2 { margin-bottom: 14px; }
.page-ai-search .section-head p { font-size: 17px; line-height: 1.6; }

/* Fade-in on scroll */
.page-ai-search .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.page-ai-search .reveal.in { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.page-ai-search .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 12px; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease; border: 1px solid transparent; white-space: nowrap; }
.page-ai-search .btn--primary { background: var(--orange); color: #fff; box-shadow: 0 6px 16px -6px rgba(232,64,12,.45); }
.page-ai-search .btn--primary:hover { background: var(--orange-600); box-shadow: 0 10px 26px -8px rgba(232,64,12,.55); transform: translateY(-1px); }
.page-ai-search .btn--white { background: #fff; color: var(--orange); box-shadow: 0 8px 22px -8px rgba(0,0,0,.18); }
.page-ai-search .btn--white:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(0,0,0,.22); }
.page-ai-search .btn--lg { padding: 18px 28px; font-size: 16px; }

/* ---------- HERO ---------- */
.page-ai-search .hero-ai { padding: 88px 0 64px; position: relative; text-align: center; background: radial-gradient(1200px 500px at 50% -10%, rgba(232,64,12,.08), transparent 60%), radial-gradient(800px 400px at 80% 30%, rgba(232,64,12,.04), transparent 60%), #ffffff; overflow: hidden; }
.page-ai-search .hero-ai::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(15,17,21,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(15,17,21,.025) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000 30%, transparent 75%); pointer-events: none; }
.page-ai-search .hero-ai .container { position: relative; }
.page-ai-search .hero-ai .badge { margin-bottom: 22px; }
.page-ai-search .hero-ai h1 { margin: 0 auto 22px; max-width: 880px; }
.page-ai-search .hero-ai .lede { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 720px; margin: 0 auto 44px; }
.page-ai-search .mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 880px; margin: 0 auto; }
.page-ai-search .mini-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease; text-align: left; }
.page-ai-search .mini-stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(232,64,12,.25); }
.page-ai-search .mini-stat .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--orange-50); color: var(--orange); display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.page-ai-search .mini-stat .t1 { font-weight: 700; font-size: 15px; color: var(--dark); line-height: 1.2; }
.page-ai-search .mini-stat .t2 { font-size: 12.5px; color: var(--muted-2); margin-top: 3px; letter-spacing: 0.01em; }

/* ---------- CHAT ---------- */
.page-ai-search .chat-section { padding: 32px 0 96px; }
.page-ai-search .chat-wrap { max-width: 1100px; margin: 0 auto; background: #fff; border-radius: 22px; box-shadow: var(--shadow-xl); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; min-height: 550px; }
.page-ai-search .chat-header { background: var(--orange); color: #fff; padding: 20px 24px; display: flex; align-items: center; gap: 14px; }
.page-ai-search .chat-avatar { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 20px; }
.page-ai-search .chat-header .name { font-weight: 700; font-size: 16px; }
.page-ai-search .chat-header .status { font-size: 12.5px; opacity: .9; display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.page-ai-search .chat-header .status::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: #6CFFA8; box-shadow: 0 0 0 3px rgba(108,255,168,.25); }
.page-ai-search .chat-header .grow { flex: 1; }
.page-ai-search .chat-header .live { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; background: rgba(255,255,255,.16); border-radius: 999px; }
.page-ai-search .chat-body { padding: 24px; background: var(--bg-soft-2); display: flex; flex-direction: column; gap: 14px; min-height: 380px; max-height: 480px; overflow-y: auto; flex: 1; }
.page-ai-search .chat-body::-webkit-scrollbar { width: 6px; }
.page-ai-search .chat-body::-webkit-scrollbar-thumb { background: #d8d8de; border-radius: 999px; }
.page-ai-search .bubble { max-width: 80%; padding: 14px 18px; border-radius: 18px; font-size: 14.5px; line-height: 1.55; box-shadow: var(--shadow-sm); white-space: pre-wrap; word-wrap: break-word; }
.page-ai-search .bubble.bot { background: var(--bubble-bot); color: var(--ink-2); border-top-left-radius: 6px; align-self: flex-start; }
.page-ai-search .bubble.user { background: var(--orange); color: #fff; border-top-right-radius: 6px; align-self: flex-end; }
.page-ai-search .bubble.bot strong { color: var(--orange); }
.page-ai-search .quick-replies { display: flex; gap: 8px; flex-wrap: wrap; align-self: flex-start; margin-top: 2px; max-width: 100%; }
.page-ai-search .qr { border: 1.5px solid var(--orange); background: #fff; color: var(--orange); border-radius: 999px; padding: 9px 16px; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .15s ease; font-family: inherit; }
.page-ai-search .qr:hover { background: var(--orange); color: #fff; transform: translateY(-1px); }
.page-ai-search .typing { display: inline-flex; gap: 4px; align-items: center; padding: 4px 0; }
.page-ai-search .typing span { width: 7px; height: 7px; border-radius: 999px; background: var(--muted-2); animation: ai-typing 1.2s infinite; }
.page-ai-search .typing span:nth-child(2) { animation-delay: .15s; }
.page-ai-search .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes ai-typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.page-ai-search .chat-separator { display: flex; align-items: center; gap: 12px; padding: 14px 24px 6px; background: var(--bg-soft-2); color: var(--muted-2); font-size: 12px; font-weight: 500; }
.page-ai-search .chat-separator::before, .page-ai-search .chat-separator::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.page-ai-search .chat-input-wrap { padding: 16px 20px 18px; background: #fff; border-top: 1px solid var(--line); }
.page-ai-search .chat-input { display: flex; gap: 10px; align-items: stretch; }
.page-ai-search .chat-input input { flex: 1; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 14px 16px; font: inherit; font-size: 15px; outline: none; transition: border-color .15s ease, box-shadow .15s ease; color: var(--ink); background: #fff; }
.page-ai-search .chat-input input::placeholder { color: var(--muted-2); }
.page-ai-search .chat-input input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(232,64,12,.12); }
.page-ai-search .send-btn { background: var(--orange); color: #fff; border: 0; border-radius: 12px; padding: 0 22px; font-weight: 700; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-family: inherit; transition: background .15s ease, transform .15s ease, box-shadow .2s ease; box-shadow: 0 6px 16px -6px rgba(232,64,12,.45); }
.page-ai-search .send-btn:hover { background: var(--orange-600); transform: translateY(-1px); }
.page-ai-search .send-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.page-ai-search .chat-info { text-align: center; margin-top: 10px; font-size: 12px; color: var(--muted-2); }

/* ---------- HOW IT WORKS ---------- */
.page-ai-search .how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.page-ai-search .how-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; position: relative; }
.page-ai-search .how-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(232,64,12,.25); }
.page-ai-search .how-num { width: 40px; height: 40px; border-radius: 999px; background: var(--orange); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 16px; margin-bottom: 22px; box-shadow: 0 6px 16px -6px rgba(232,64,12,.45); }
.page-ai-search .how-ico { font-size: 32px; line-height: 1; margin-bottom: 14px; }
.page-ai-search .how-card h3 { font-size: 20px; margin-bottom: 8px; }
.page-ai-search .how-card p { font-size: 14.5px; line-height: 1.6; }

/* ---------- EXAMPLES ---------- */
.page-ai-search .examples-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.page-ai-search .example-card { background: var(--bg-soft); border: 1.5px solid transparent; border-radius: var(--radius); padding: 22px 22px; cursor: pointer; transition: all .2s ease; display: flex; align-items: flex-start; gap: 14px; font-family: inherit; text-align: left; width: 100%; color: var(--dark); }
.page-ai-search .example-card:hover { background: #fff; border-color: var(--orange); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.page-ai-search .example-ico { font-size: 22px; line-height: 1.2; flex-shrink: 0; }
.page-ai-search .example-text { font-size: 14.5px; line-height: 1.5; font-weight: 500; color: var(--dark); }
.page-ai-search .example-card .arrow { margin-left: auto; color: var(--muted-2); font-size: 16px; transition: transform .2s ease, color .2s ease; align-self: center; }
.page-ai-search .example-card:hover .arrow { color: var(--orange); transform: translateX(3px); }

/* ---------- CTA banner ---------- */
.page-ai-search .cta-banner { background: var(--orange); color: #fff; padding: 80px 0; position: relative; overflow: hidden; }
.page-ai-search .cta-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 300px at 20% 30%, rgba(255,255,255,.10), transparent 60%), radial-gradient(500px 250px at 80% 70%, rgba(255,255,255,.08), transparent 60%); pointer-events: none; }
.page-ai-search .cta-banner .container { position: relative; text-align: center; }
.page-ai-search .cta-banner h2 { color: #fff; margin-bottom: 14px; max-width: 820px; margin-left: auto; margin-right: auto; }
.page-ai-search .cta-banner p { color: rgba(255,255,255,.92); font-size: 17px; line-height: 1.6; max-width: 660px; margin: 0 auto 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .page-ai-search .section { padding: 64px 0; }
  .page-ai-search .container { padding: 0 20px; }
  .page-ai-search .hero-ai { padding: 64px 0 40px; }
  .page-ai-search .mini-stats { grid-template-columns: 1fr; }
  .page-ai-search .how-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
  .page-ai-search .examples-grid { grid-template-columns: 1fr; }
  .page-ai-search .chat-wrap { min-height: 500px; border-radius: 18px; }
  .page-ai-search .chat-body { max-height: 420px; }
  .page-ai-search .bubble { max-width: 88%; }
  .page-ai-search .cta-banner { padding: 56px 0; }
}
\n\n/* ---------- Formatowanie odpowiedzi AI w dymku ---------- */\n.page-ai-search .bubble .ai-h { margin: 12px 0 6px; font-size: 14px; font-weight: 800; color: var(--orange); letter-spacing: -0.01em; }\n.page-ai-search .bubble .ai-h:first-child { margin-top: 0; }\n.page-ai-search .bubble p { margin: 0 0 6px; color: inherit; }\n.page-ai-search .bubble p:last-child { margin-bottom: 0; }\n.page-ai-search .bubble a { color: var(--orange); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }\n.page-ai-search .bubble a:hover { color: var(--orange-600); }\n.page-ai-search .bubble .ai-table { width: 100%; border-collapse: collapse; margin: 6px 0 10px; font-size: 13px; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); }\n.page-ai-search .bubble .ai-table th { background: var(--orange-50); color: var(--orange); text-align: left; font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); }\n.page-ai-search .bubble .ai-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }\n.page-ai-search .bubble .ai-table tr:last-child td { border-bottom: 0; }\n.page-ai-search .bubble.bot { max-width: 92%; }\n

/* ===== AI chat markdown rendering (added) ===== */
.page-ai-search .bubble.bot .md-h{
  font-weight:700;
  font-size:15px;
  margin:14px 0 6px;
  color:#1f2937;
  display:flex;
  align-items:center;
  gap:6px;
}
.page-ai-search .bubble.bot .md-h1{ font-size:17px; }
.page-ai-search .bubble.bot .md-h:first-child{ margin-top:0; }
.page-ai-search .bubble.bot .md-p{ margin:6px 0; line-height:1.5; }
.page-ai-search .bubble.bot .md-gap{ height:8px; }
.page-ai-search .bubble.bot .md-ul{ margin:6px 0 6px 2px; padding-left:18px; }
.page-ai-search .bubble.bot .md-ul li{ margin:3px 0; line-height:1.45; }
.page-ai-search .bubble.bot a{
  color:#e6512b;
  font-weight:600;
  text-decoration:none;
  border-bottom:1px solid rgba(230,81,43,.35);
}
.page-ai-search .bubble.bot a:hover{ border-bottom-color:#e6512b; }
.page-ai-search .bubble.bot .md-table{
  width:100%;
  border-collapse:collapse;
  margin:8px 0 12px;
  font-size:13px;
  background:#fff;
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 1px 3px rgba(0,0,0,.06);
}
.page-ai-search .bubble.bot .md-table th{
  text-align:left;
  background:#fff4f0;
  color:#b23a1c;
  font-weight:700;
  padding:8px 10px;
  border-bottom:2px solid #ffe0d6;
}
.page-ai-search .bubble.bot .md-table td{
  padding:8px 10px;
  border-bottom:1px solid #f0f0f0;
  vertical-align:top;
}
.page-ai-search .bubble.bot .md-table tr:last-child td{ border-bottom:none; }
.page-ai-search .bubble.bot .md-table tr:nth-child(even) td{ background:#fafafa; }
.page-ai-search .bubble.bot.typing{ display:flex; gap:4px; align-items:center; }
.page-ai-search .bubble.bot.typing .dot{
  width:7px;height:7px;border-radius:50%;background:#c9c9c9;
  animation:ekTyping 1s infinite ease-in-out;
}
.page-ai-search .bubble.bot.typing .dot:nth-child(2){ animation-delay:.15s; }
.page-ai-search .bubble.bot.typing .dot:nth-child(3){ animation-delay:.3s; }
@keyframes ekTyping{ 0%,60%,100%{ transform:translateY(0); opacity:.5;} 30%{ transform:translateY(-4px); opacity:1;} }


/* ===== AI chat action buttons (Skorzystaj / Skopiuj) ===== */
.page-ai-search .bubble.bot .ek-btn{
  display:inline-block;
  white-space:nowrap;
  font-size:12px;
  font-weight:700;
  line-height:1;
  padding:7px 12px;
  border-radius:8px;
  border:none;
  cursor:pointer;
  text-decoration:none;
  font-family:inherit;
  transition:transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.page-ai-search .bubble.bot .ek-btn-go{
  background:#e6512b;
  color:#fff;
  box-shadow:0 2px 6px rgba(230,81,43,.3);
}
.page-ai-search .bubble.bot .ek-btn-go:hover{
  background:#cf4521;
  transform:translateY(-1px);
  box-shadow:0 4px 10px rgba(230,81,43,.4);
  border-bottom:none;
}
.page-ai-search .bubble.bot .ek-btn-copy{
  background:#fff;
  color:#e6512b;
  border:1.5px solid #e6512b;
}
.page-ai-search .bubble.bot .ek-btn-copy:hover{
  background:#fff4f0;
  transform:translateY(-1px);
}
.page-ai-search .bubble.bot .ek-btn-copy.copied{
  background:#1f9d55;
  border-color:#1f9d55;
  color:#fff;
}
.page-ai-search .bubble.bot .md-table td:last-child{
  text-align:center;
  white-space:nowrap;
}


/* ===== CTA block po ofercie ===== */
.page-ai-search .bubble.bot .ek-cta{
  margin-top:14px;
  padding:14px 16px;
  background:linear-gradient(135deg,#fff4f0,#ffe9e1);
  border:1px solid #ffd9cc;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.page-ai-search .bubble.bot .ek-cta-text{
  font-size:14px;
  font-weight:600;
  color:#1f2937;
  line-height:1.4;
}
.page-ai-search .bubble.bot .ek-cta-text a{
  color:#e6512b;
  font-weight:700;
  text-decoration:none;
  border-bottom:1px solid rgba(230,81,43,.35);
}
.page-ai-search .bubble.bot .ek-cta-btn{
  flex-shrink:0;
  display:inline-block;
  background:#e6512b;
  color:#fff;
  font-weight:700;
  font-size:13px;
  line-height:1;
  padding:11px 16px;
  border-radius:10px;
  text-decoration:none;
  white-space:nowrap;
  box-shadow:0 2px 8px rgba(230,81,43,.3);
  transition:transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.page-ai-search .bubble.bot .ek-cta-btn:hover{
  background:#cf4521;
  transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(230,81,43,.4);
  border-bottom:none;
}

/* ===== Responsywno\u015b\u0107 mobilna (<=640px) ===== */
@media (max-width:640px){
  /* Formularz: input + przycisk w kolumnie */
  .page-ai-search #chatForm.chat-input{
    flex-direction:column;
    align-items:stretch;
    gap:10px;
  }
  .page-ai-search #chatForm.chat-input #chatInput{
    width:100%;
    box-sizing:border-box;
  }
  .page-ai-search #chatForm.chat-input .send-btn{
    width:100%;
    justify-content:center;
  }

  /* Tabele jako karty */
  .page-ai-search .bubble.bot .md-table{
    box-shadow:none;
    background:transparent;
  }
  .page-ai-search .bubble.bot .md-table thead{
    display:none;
  }
  .page-ai-search .bubble.bot .md-table,
  .page-ai-search .bubble.bot .md-table tbody,
  .page-ai-search .bubble.bot .md-table tr,
  .page-ai-search .bubble.bot .md-table td{
    display:block;
    width:100%;
    box-sizing:border-box;
  }
  .page-ai-search .bubble.bot .md-table tr{
    background:#fff;
    border:1px solid #f0e3dd;
    border-radius:10px;
    margin-bottom:10px;
    padding:6px 0;
    box-shadow:0 1px 3px rgba(0,0,0,.06);
  }
  .page-ai-search .bubble.bot .md-table tr:nth-child(even) td{
    background:transparent;
  }
  .page-ai-search .bubble.bot .md-table td{
    border:none !important;
    padding:7px 14px;
    text-align:left !important;
    white-space:normal !important;
  }
  .page-ai-search .bubble.bot .md-table td[data-label]:before{
    content:attr(data-label);
    display:block;
    font-size:11px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.03em;
    color:#b23a1c;
    margin-bottom:3px;
  }
  .page-ai-search .bubble.bot .md-table td .ek-btn,
  .page-ai-search .bubble.bot .md-table td .ek-btn-go,
  .page-ai-search .bubble.bot .md-table td .ek-btn-copy{
    width:100%;
    text-align:center;
    box-sizing:border-box;
  }
  /* CTA w kolumnie na mobile */
  .page-ai-search .bubble.bot .ek-cta{
    flex-direction:column;
    align-items:stretch;
    text-align:center;
  }
  .page-ai-search .bubble.bot .ek-cta-btn{
    width:100%;
    box-sizing:border-box;
    text-align:center;
  }
}


/* === CTA button wrap fix (mobile) === */
@media (max-width: 640px){
  .page-ai-search .bubble.bot .ek-cta-btn{ white-space: normal; line-height: 1.3; padding-top: 12px; padding-bottom: 12px; }
  .page-ai-search .bubble.bot .ek-btn{ white-space: normal; line-height: 1.3; }
}


/* === Code column width fix === */
.page-ai-search .bubble.bot .md-table td[data-label="Kod"]{ white-space: nowrap; font-weight: 600; min-width: 120px; }


/* === Chat avatar portal icon === */
.page-ai-search .chat-header .chat-avatar{ background: #fff; padding: 5px; overflow: hidden; }
.page-ai-search .chat-header .chat-avatar-img{ width: 100%; height: 100%; object-fit: contain; display: block; }


/* === Send button height fix (mobile) === */
@media (max-width: 640px){
  .page-ai-search #chatForm.chat-input .send-btn{ padding: 15px 22px; font-size: 16px; border-radius: 12px; }
}


/* === Hide LIVE on mobile === */
@media (max-width: 640px){
  .page-ai-search .chat-header .live{ display: none; }
}


/* EK bubble width fix */
/* Odpowiedz AI (bot) zawsze na pelnej szerokosci - duzo tresci, tabele, malo miejsca na mobile */
.page-ai-search .bubble.bot { max-width: 100%; width: 100%; box-sizing: border-box; }
/* Pytanie klienta - wezsze, wciete, bardziej oderwane od krawedzi */
.page-ai-search .bubble.user { max-width: 80%; }
@media (max-width: 640px) {
  .page-ai-search .bubble.bot { max-width: 100%; width: 100%; }
  .page-ai-search .bubble.user { max-width: 85%; margin-left: 15%; }
}
