/* Poradce HIFI MEDIA 1.0.1 (11. 11. 2026, Petr 442: všem; mezikroky čekání) – 1.0.0 PROTOTYP – okénko vpravo dole, na mobilu přes celou obrazovku. */
.hpo-launcher, .hpo-panel, .hpo-ask { --hpo-red: #e30613; --hpo-red-dark: #b8050f; --hpo-ink: #1f2937; --hpo-muted: #5b6472;
  --hpo-line: #e5e7eb; --hpo-bg: #ffffff; --hpo-soft: #f3f4f6; --hpo-ok: #11752f; font-family: inherit; }
.hpo-launcher { position: fixed; right: 20px; bottom: 20px; z-index: 9998; display: inline-flex; align-items: center; gap: 8px;
  min-height: 52px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; background: var(--hpo-red); color: #fff;
  font-size: 16px; font-weight: 700; letter-spacing: .01em; cursor: pointer; box-shadow: 0 8px 24px rgba(17, 24, 39, .28); }
.hpo-launcher:hover { background: var(--hpo-red-dark); }
.hpo-launcher:focus-visible, .hpo-panel :focus-visible, .hpo-ask:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
html.hpo-open .hpo-launcher { display: none; }

.hpo-panel { position: fixed; right: 20px; bottom: 20px; z-index: 9999; width: 400px; height: min(720px, calc(100vh - 40px));
  display: flex; flex-direction: column; background: var(--hpo-bg); color: var(--hpo-ink); border-radius: 16px; overflow: hidden;
  box-shadow: 0 18px 48px rgba(17, 24, 39, .30); font-size: 15px; line-height: 1.5; }
.hpo-panel[hidden] { display: none; }
.hpo-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 16px 12px;
  border-top: 5px solid var(--hpo-red); border-bottom: 1px solid var(--hpo-line); }
.hpo-head h2 { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 800; color: var(--hpo-ink); }
.hpo-head p { margin: 2px 0 0; font-size: 13px; color: var(--hpo-muted); }
.hpo-close { flex: none; width: 40px; height: 40px; margin: -4px -6px 0 0; border: 0; border-radius: 10px; background: transparent;
  color: var(--hpo-ink); font-size: 28px; line-height: 1; cursor: pointer; }
.hpo-close:hover { background: var(--hpo-soft); }

.hpo-log { flex: 1; overflow-y: auto; padding: 14px 14px 6px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.hpo-msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; word-wrap: break-word; }
.hpo-msg p { margin: 0 0 6px; } .hpo-msg p:last-child { margin-bottom: 0; }
.hpo-msg ul { margin: 4px 0 6px; padding-left: 18px; } .hpo-msg li { margin: 2px 0; }
.hpo-bot { align-self: flex-start; background: var(--hpo-soft); border-bottom-left-radius: 4px; }
.hpo-me { align-self: flex-end; background: var(--hpo-ink); color: #fff; border-bottom-right-radius: 4px; }
.hpo-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hpo-chip { border: 1px solid #d1d5db; background: #fff; color: var(--hpo-ink); border-radius: 999px; padding: 7px 12px;
  font-size: 13.5px; line-height: 1.3; text-align: left; cursor: pointer; }
.hpo-chip:hover { border-color: var(--hpo-red); color: var(--hpo-red); }
.hpo-typing span { animation: hpo-dot 1.2s infinite; opacity: .2; } .hpo-typing span:nth-child(2) { animation-delay: .2s; } .hpo-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes hpo-dot { 50% { opacity: 1; } }

.hpo-tiles { display: flex; flex-direction: column; gap: 8px; }
.hpo-tile { display: flex; gap: 12px; padding: 10px; border: 1px solid var(--hpo-line); border-radius: 12px; background: #fff; }
.hpo-tile img, .hpo-noimg { flex: none; width: 72px; height: 72px; object-fit: contain; border-radius: 8px; background: #fff; }
.hpo-noimg { background: var(--hpo-soft); }
.hpo-tile-body { min-width: 0; flex: 1; }
.hpo-tile h3 { margin: 0 0 2px; font-size: 14.5px; line-height: 1.3; font-weight: 700; }
.hpo-tile h3 a { color: var(--hpo-ink); text-decoration: none; } .hpo-tile h3 a:hover { text-decoration: underline; }
.hpo-price { margin: 0; font-size: 16px; font-weight: 800; }
.hpo-avail { margin: 0 0 6px; font-size: 13px; color: var(--hpo-muted); } .hpo-avail.hpo-ok { color: var(--hpo-ok); font-weight: 600; }
.hpo-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.hpo-buy, .hpo-detail { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 8px; font-size: 13.5px;
  font-weight: 700; text-decoration: none; cursor: pointer; }
.hpo-buy { border: 0; background: var(--hpo-red); color: #fff; } .hpo-buy:hover { background: var(--hpo-red-dark); color: #fff; }
.hpo-buy[disabled] { opacity: .7; cursor: default; }
.hpo-detail { border: 1px solid #d1d5db; background: #fff; color: var(--hpo-ink); } .hpo-detail:hover { border-color: var(--hpo-ink); color: var(--hpo-ink); }
.hpo-in-cart { background: var(--hpo-ok); }
.hpo-human { padding: 10px 12px; border: 1px dashed #cbd5e1; border-radius: 12px; background: #fafafa; }
.hpo-human p { margin: 0 0 8px; }

.hpo-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 6px; border-top: 1px solid var(--hpo-line); }
.hpo-form textarea { flex: 1; min-height: 44px; max-height: 120px; padding: 11px 12px; border: 1px solid #cbd5e1; border-radius: 12px;
  font: inherit; font-size: 16px; line-height: 1.35; color: var(--hpo-ink); resize: none; background: #fff; }
.hpo-form textarea:focus { border-color: var(--hpo-ink); outline: none; box-shadow: 0 0 0 3px rgba(31, 41, 55, .12); }
.hpo-send { flex: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--hpo-red); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; }
.hpo-send[disabled] { opacity: .5; cursor: default; }
.hpo-note { margin: 0; padding: 0 14px 10px; font-size: 11.5px; line-height: 1.4; color: var(--hpo-muted); }
.hpo-note a { color: inherit; }
.hpo-sr, .hpo-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.hpo-ask { display: inline-flex; align-items: center; gap: 6px; margin: 14px 0 0; padding: 8px 14px; border: 1px solid #d1d5db;
  border-radius: 8px; background: #fff; color: #1f2937; font-size: 14px; font-weight: 700; cursor: pointer; }
.hpo-ask:hover { border-color: #e30613; color: #e30613; }

/* Šablona Opál stylizuje button/form globálně (černé široké tlačítko) – vlastní prvky poradce proto s !important */
.hpo-launcher, .hpo-panel button, .hpo-ask { min-width: 0 !important; text-transform: none !important; letter-spacing: normal !important;
  box-shadow: none; font-family: inherit !important; }
.hpo-panel .hpo-send { width: 44px !important; height: 44px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important;
  border-radius: 12px !important; background: var(--hpo-red) !important; color: #fff !important; }
.hpo-panel .hpo-send[disabled] { opacity: .5; }
.hpo-panel .hpo-close { width: 40px !important; height: 40px !important; padding: 0 !important; border: 0 !important; background: transparent !important; color: var(--hpo-ink) !important; }
.hpo-panel .hpo-close:hover { background: var(--hpo-soft) !important; }
.hpo-panel .hpo-chip { height: auto !important; min-height: 0 !important; padding: 7px 12px !important; border: 1px solid #d1d5db !important;
  border-radius: 999px !important; background: #fff !important; color: var(--hpo-ink) !important; font-size: 13.5px !important; font-weight: 400 !important; }
.hpo-panel .hpo-chip:hover { border-color: var(--hpo-red) !important; color: var(--hpo-red) !important; }
.hpo-panel .hpo-buy { height: auto !important; min-height: 36px !important; padding: 0 12px !important; border: 0 !important; border-radius: 8px !important;
  background: var(--hpo-red) !important; color: #fff !important; font-size: 13.5px !important; }
.hpo-panel .hpo-buy:hover { background: var(--hpo-red-dark) !important; }
.hpo-panel .hpo-in-cart { background: var(--hpo-ok) !important; }
.hpo-launcher { height: auto !important; min-height: 52px !important; padding: 0 20px 0 16px !important; border: 0 !important; border-radius: 999px !important;
  background: var(--hpo-red) !important; color: #fff !important; font-size: 16px !important; box-shadow: 0 8px 24px rgba(17, 24, 39, .28) !important; }
.hpo-launcher:hover { background: var(--hpo-red-dark) !important; }
button.hpo-ask { width: auto !important; height: auto !important; min-height: 40px !important; padding: 8px 14px !important; border: 1px solid #d1d5db !important;
  border-radius: 8px !important; background: #fff !important; color: #1f2937 !important; font-size: 14px !important; font-weight: 700 !important; }
button.hpo-ask:hover { border-color: #e30613 !important; color: #e30613 !important; }

@media (max-width: 600px) {
  .hpo-launcher { right: 12px; bottom: 12px; min-height: 48px !important; padding: 0 16px 0 13px !important; font-size: 15px !important; }
  .hpo-panel { inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; }
  html.hpo-open, html.hpo-open body { overflow: hidden; }
  .hpo-msg { max-width: 92%; }
}
@media (prefers-reduced-motion: reduce) { .hpo-typing span { animation: none; opacity: 1; } }
.hpo-typing .hpo-krok { font-weight: 400; }
