/* Průvodce objednávkou – plovoucí AI průvodce */
#guideBubble {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147483646;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 8px 18px 8px 8px;
  border: 0;
  border-radius: 26px 26px 8px 26px;
  background: #9BEF9B;
  color: #06220A;
  font: 800 14px/1.15 Inter, system-ui, sans-serif;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .32), 0 0 0 0 rgba(155, 239, 155, .55);
  cursor: pointer;
  animation: guidePulse 2.8s ease-out infinite;
  transition: transform .2s ease, box-shadow .2s ease;
}
#guideBubble:hover { transform: translateY(-2px); }
#guideBubble:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
#guideBubble .gb-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #06220A;
  color: #9BEF9B;
}
#guideBubble .gb-icon svg { width: 18px; height: 18px; }
#guideBubble .gb-text { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
#guideBubble .gb-sub { font-size: 10.5px; font-weight: 700; opacity: .72; letter-spacing: .02em; text-transform: uppercase; }
body.guide-open #guideBubble { opacity: 0; pointer-events: none; transform: scale(.9); }

@keyframes guidePulse {
  0% { box-shadow: 0 12px 30px rgba(0,0,0,.32), 0 0 0 0 rgba(155,239,155,.5); }
  70% { box-shadow: 0 12px 30px rgba(0,0,0,.32), 0 0 0 14px rgba(155,239,155,0); }
  100% { box-shadow: 0 12px 30px rgba(0,0,0,.32), 0 0 0 0 rgba(155,239,155,0); }
}

#guidePanel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147483647;
  display: flex;
  flex-direction: column;
  width: min(400px, calc(100vw - 36px));
  height: min(640px, calc(100vh - 36px));
  height: min(640px, calc(100dvh - 36px));
  border: 1px solid rgba(155, 239, 155, .22);
  border-radius: 24px;
  background: #06140f linear-gradient(180deg, #0a2118, #05120d);
  isolation: isolate;
  color: #f1fff8;
  font: 400 14.5px/1.5 Inter, system-ui, sans-serif;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(.98);
  transform-origin: bottom right;
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
}
body.guide-open #guidePanel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .22s ease, transform .22s ease, visibility 0s;
}
#guidePanel * { box-sizing: border-box; }

.gp-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  border-bottom: 1px solid rgba(155, 239, 155, .14);
  background: rgba(155, 239, 155, .06);
}
.gp-avatar {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  height: 40px;
  border-radius: 14px;
  background: #9BEF9B;
  color: #06220A;
}
.gp-avatar svg { width: 22px; height: 22px; }
.gp-avatar::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 11px;
  height: 11px;
  border: 2px solid #0a2118;
  border-radius: 50%;
  background: #42e889;
}
.gp-title { flex: 1; min-width: 0; }
.gp-title strong { display: block; font-size: 15px; font-weight: 800; }
.gp-title span { display: block; font-size: 12px; color: rgba(218, 246, 232, .7); }
.gp-iconbtn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(241, 255, 248, .8);
  cursor: pointer;
}
.gp-iconbtn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.gp-iconbtn svg { width: 18px; height: 18px; }

.gp-progress { height: 3px; background: rgba(155, 239, 155, .1); }
.gp-progress span { display: block; height: 100%; width: 0; background: #9BEF9B; transition: width .35s ease; }

.gp-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px 8px;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}
.gp-msg {
  max-width: 88%;
  margin: 0 0 10px;
  padding: 10px 13px;
  border-radius: 16px 16px 16px 5px;
  background: rgba(255, 255, 255, .07);
  white-space: pre-line;
  animation: gpIn .25s ease both;
}
.gp-msg.user {
  margin-left: auto;
  border-radius: 16px 16px 5px 16px;
  background: #9BEF9B;
  color: #06220A;
  font-weight: 600;
}
.gp-msg.error { background: rgba(255, 120, 120, .14); border: 1px solid rgba(255, 140, 140, .3); }
@keyframes gpIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.gp-typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.gp-typing i { width: 7px; height: 7px; border-radius: 50%; background: rgba(241, 255, 248, .6); animation: gpDot 1.1s infinite ease-in-out; }
.gp-typing i:nth-child(2) { animation-delay: .15s; }
.gp-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes gpDot { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-4px); opacity: 1; } }

.gp-quote {
  margin: 4px 0 12px;
  padding: 14px;
  border: 1px solid rgba(155, 239, 155, .28);
  border-radius: 18px;
  background: rgba(155, 239, 155, .07);
  animation: gpIn .3s ease both;
}
.gp-quote.alt { border-color: rgba(116, 214, 255, .35); background: rgba(116, 214, 255, .07); }
.gp-quote h4 { margin: 0 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: rgba(218, 246, 232, .75); }
.gp-quote .gp-price { margin: 0 0 10px; font-size: 28px; font-weight: 800; color: #9BEF9B !important; letter-spacing: -.02em; -webkit-text-fill-color: currentColor; }
.gp-quote.alt .gp-price { color: #9fe2ff !important; }
.gp-quote ul { margin: 0; padding: 0; list-style: none; font-size: 13px; }
.gp-quote li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-top: 1px dashed rgba(255, 255, 255, .1); }
.gp-quote li span:last-child { white-space: nowrap; color: rgba(218, 246, 232, .8); }
.gp-quote .gp-changes { margin: 8px 0 0; font-size: 12.5px; color: rgba(218, 246, 232, .8); }
.gp-quote .gp-fine { margin: 10px 0 0; font-size: 12px; color: rgba(218, 246, 232, .65); }

.gp-foot {
  padding: 10px 14px 14px;
  border-top: 1px solid rgba(155, 239, 155, .12);
  background: rgba(0, 0, 0, .15);
}
.gp-foot:empty { display: none; }
.gp-options { display: flex; flex-wrap: wrap; gap: 8px; }
.gp-opt {
  padding: 9px 13px;
  border: 1px solid rgba(155, 239, 155, .35);
  border-radius: 999px;
  background: transparent;
  color: #f1fff8;
  font: 600 13.5px/1.2 Inter, system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.gp-opt:hover { background: rgba(155, 239, 155, .12); border-color: #9BEF9B; }
.gp-opt[aria-pressed="true"] { background: #9BEF9B; border-color: #9BEF9B; color: #06220A; }
.gp-opt small { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 500; opacity: .7; }
.gp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gp-btn {
  flex: 1 1 auto;
  padding: 11px 16px;
  border: 0;
  border-radius: 14px;
  background: #9BEF9B;
  color: #06220A;
  font: 800 14px/1.2 Inter, system-ui, sans-serif;
  cursor: pointer;
}
.gp-btn:hover { background: #b6f5b6; }
.gp-btn:disabled { opacity: .5; cursor: default; }
.gp-btn.secondary { background: rgba(255, 255, 255, .08); color: #f1fff8; font-weight: 700; }
.gp-btn.secondary:hover { background: rgba(255, 255, 255, .14); }
.gp-btn.alt { background: #9fe2ff; color: #04202c; }
.gp-back {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(218, 246, 232, .65);
  font: 600 12.5px Inter, system-ui, sans-serif;
  cursor: pointer;
}
.gp-back:hover { color: #fff; text-decoration: underline; }

.gp-input, .gp-textarea {
  width: 100%;
  margin: 0 0 8px;
  padding: 11px 13px;
  border: 1px solid rgba(155, 239, 155, .25);
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  color: #f1fff8;
  font: 400 14px/1.4 Inter, system-ui, sans-serif;
}
.gp-textarea { min-height: 84px; resize: vertical; }
.gp-input:focus, .gp-textarea:focus { outline: none; border-color: #9BEF9B; box-shadow: 0 0 0 3px rgba(155, 239, 155, .18); }
.gp-input::placeholder, .gp-textarea::placeholder { color: rgba(218, 246, 232, .45); }
.gp-hint { margin: -2px 0 8px; font-size: 12px; color: rgba(218, 246, 232, .6); }
.gp-hp { position: absolute !important; left: -9999px !important; }

@media (max-width: 560px) {
  #guideBubble { right: 12px; bottom: 12px; }
  #guidePanel {
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    border: 0;
  }
  .gp-msg { max-width: 92%; }
}
@media (prefers-reduced-motion: reduce) {
  #guideBubble { animation: none; }
  #guidePanel, .gp-msg, .gp-quote { transition: none; animation: none; }
}
