/* ŁapDeal — globalny widget Halinki Łap-Pomoc */
#ldh-widget, #ldh-widget * { box-sizing: border-box; }
#ldh-widget {
  --ldh-accent: var(--ld-brand, #ff5a1f);
  --ldh-accent-dark: #df4310;
  --ldh-ink: #20242a;
  --ldh-muted: #68717d;
  --ldh-line: #e7e9ed;
  --ldh-paper: #fff;
  --ldh-soft: #fff6f1;
  font-family: inherit;
  color: var(--ldh-ink);
}
#ldh-widget button, #ldh-widget input { font: inherit; }
#ldh-widget button { cursor: pointer; }
#ldh-widget [hidden] { display: none !important; }

.ldh-launcher {
  position: fixed;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 2400;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  color: var(--ld-white, #fff);
  background: linear-gradient(145deg, #ff7b3f 0%, var(--ldh-accent) 58%, #e84715 100%);
  box-shadow: 0 8px 26px rgba(197, 66, 19, .32), 0 2px 8px rgba(24, 29, 35, .16);
  transition: transform .18s ease, box-shadow .18s ease;
}
.ldh-launcher:hover { transform: translateY(-2px); box-shadow: 0 11px 30px rgba(197,66,19,.38), 0 2px 8px rgba(24,29,35,.18); }
.ldh-launcher:focus-visible, .ldh-close:focus-visible, .ldh-send:focus-visible,
.ldh-suggestion:focus-visible, .ldh-quick:focus-visible { outline: 3px solid #20242a; outline-offset: 3px; }
.ldh-launcher-face { display: grid; place-items: center; width: 100%; height: 100%; font-size: 28px; line-height: 1; }
.ldh-launcher-dot { position: absolute; top: 2px; right: 0; width: 15px; height: 15px; border: 3px solid #fff; border-radius: 50%; background: #28a568; }
.ldh-launcher-label {
  position: absolute;
  right: 73px;
  padding: 9px 12px;
  color: var(--ld-white, #fff);
  background: #242830;
  border-radius: var(--ld-radius-md, 8px);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,.14);
  opacity: 0;
  transform: translateX(4px);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.ldh-launcher:hover .ldh-launcher-label, .ldh-launcher:focus-visible .ldh-launcher-label { opacity: 1; transform: translateX(0); }

.ldh-panel {
  position: fixed;
  z-index: 2399;
  right: 22px;
  bottom: calc(98px + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(390px, calc(100vw - 32px));
  height: min(620px, calc(100dvh - 120px));
  min-height: 350px;
  overflow: hidden;
  border: 1px solid rgba(32,36,42,.11);
  border-radius: var(--ld-radius-lg, 10px);
  background: var(--ldh-paper);
  box-shadow: 0 20px 60px rgba(22,28,36,.25), 0 4px 14px rgba(22,28,36,.10);
  opacity: 1;
  transform-origin: bottom right;
  animation: ldh-pop-in .16s ease-out;
}
.ldh-topbar {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 76px;
  padding: 14px 16px;
  color: var(--ld-white, #fff);
  background: linear-gradient(115deg, #ff7138, #f4511e 75%, #dc4213);
}
.ldh-avatar { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border: 2px solid rgba(255,255,255,.8); border-radius: 50%; color: var(--ldh-accent-dark); background: #fff7ed; font-size: 22px; font-weight: 900; box-shadow: 0 2px 7px rgba(0,0,0,.12); }
.ldh-brand { flex: 1; min-width: 0; }
.ldh-brand-title { margin: 0; font-size: 16px; font-weight: 850; line-height: 1.2; letter-spacing: -.2px; }
.ldh-brand-sub { display: flex; align-items: center; gap: 6px; margin-top: 5px; color: rgba(255,255,255,.93); font-size: 11px; line-height: 1.2; }
.ldh-online-dot { width: 7px; height: 7px; border-radius: 50%; background: #c6f6d5; box-shadow: 0 0 0 2px rgba(198,246,213,.18); }
.ldh-close { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid rgba(255,255,255,.38); border-radius: var(--ld-radius-md, 8px); color: var(--ld-white, #fff); background: rgba(255,255,255,.12); font-size: 24px; line-height: 1; }
.ldh-close:hover { background: rgba(255,255,255,.23); }
.ldh-main { min-height: 0; overflow: auto; padding: 16px 14px 12px; background: linear-gradient(180deg, #fff 0%, #fffdfc 100%); scroll-behavior: smooth; }
.ldh-message { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 0 0 13px; }
.ldh-message.is-user { align-items: flex-end; }
.ldh-bubble { max-width: 91%; padding: 11px 13px; border: 1px solid #f0e7e2; border-radius: 4px var(--ld-radius-lg, 10px) var(--ld-radius-lg, 10px) var(--ld-radius-lg, 10px); color: #30343a; background: #fff7f2; font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.ldh-message.is-user .ldh-bubble { border-color: #ff7138; border-radius: var(--ld-radius-lg, 10px) 4px var(--ld-radius-lg, 10px) var(--ld-radius-lg, 10px); color: var(--ld-white, #fff); background: var(--ldh-accent); }
.ldh-stamp { padding: 0 4px; color: #9097a1; font-size: 10px; }
.ldh-links { display: flex; flex-direction: column; align-items: stretch; gap: 7px; width: min(100%, 320px); margin: -3px 0 14px; }
.ldh-result-link { display: block; padding: 10px 11px; border: 1px solid var(--ldh-line); border-radius: var(--ld-radius-md, 8px); color: #30343a; background: var(--ld-white, #fff); text-decoration: none; transition: border-color .15s, background .15s; }
.ldh-result-link:hover { border-color: #ffc2a9; background: #fff8f4; }
.ldh-result-title { display: block; font-size: 12px; font-weight: 800; line-height: 1.4; }
.ldh-result-summary { display: block; margin-top: 3px; color: var(--ldh-muted); font-size: 11px; line-height: 1.45; }
.ldh-contact-link { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; padding: 8px 11px; border-radius: var(--ld-radius-md, 8px); color: var(--ldh-accent-dark); background: #fff0e8; font-size: 12px; font-weight: 800; text-decoration: none; }
.ldh-contact-link:hover { background: #ffe3d5; }
.ldh-typing { display: inline-flex; align-items: center; gap: 4px; padding: 12px 14px; border: 1px solid #f0e7e2; border-radius: 4px var(--ld-radius-lg, 10px) var(--ld-radius-lg, 10px) var(--ld-radius-lg, 10px); background: #fff7f2; }
.ldh-typing span { width: 5px; height: 5px; border-radius: 50%; background: #d77b59; animation: ldh-bounce .9s infinite ease-in-out; }
.ldh-typing span:nth-child(2) { animation-delay: .12s; }
.ldh-typing span:nth-child(3) { animation-delay: .24s; }
.ldh-compose-wrap { padding: 10px 12px 11px; border-top: 1px solid var(--ldh-line); background: var(--ld-white, #fff); }
.ldh-suggestions { display: flex; flex-direction: column; gap: 5px; max-height: 168px; overflow-y: auto; margin: 0 0 9px; }
.ldh-suggestion { display: block; width: 100%; padding: 8px 10px; border: 1px solid #f0e5df; border-radius: var(--ld-radius-md, 8px); color: #30343a; background: #fffaf7; text-align: left; }
.ldh-suggestion:hover { border-color: #ffb08d; background: #fff1e8; }
.ldh-suggestion-title { display: block; font-size: 12px; font-weight: 800; line-height: 1.35; }
.ldh-suggestion-summary { display: block; margin-top: 2px; color: var(--ldh-muted); font-size: 10px; line-height: 1.35; }
.ldh-compose { display: flex; align-items: center; gap: 8px; }
.ldh-input { display: block; flex: 1; min-width: 0; width: 0; height: 42px; padding: 0 12px; border: 1px solid #dce0e5; border-radius: var(--ld-radius-md, 8px); outline: none; color: #242830; background: var(--ld-white, #fff); font-size: 13px !important; }
.ldh-input:focus { border-color: #ff8957; box-shadow: 0 0 0 3px rgba(255,90,31,.12); }
.ldh-input::placeholder { color: #9299a3; }
.ldh-send { display: grid; flex: 0 0 42px; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: var(--ld-radius-md, 8px); color: var(--ld-white, #fff); background: var(--ldh-accent); box-shadow: 0 3px 8px rgba(255,90,31,.22); }
.ldh-send:hover { background: var(--ldh-accent-dark); }
.ldh-send:disabled { opacity: .55; cursor: wait; }
.ldh-send svg { width: 19px; height: 19px; }
.ldh-note { margin: 7px 2px 0; color: #9299a3; font-size: 10px; line-height: 1.35; text-align: center; }
.ldh-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

@keyframes ldh-pop-in { from { opacity: .25; transform: translateY(7px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes ldh-bounce { 0%,60%,100% { transform: translateY(0); opacity: .55; } 30% { transform: translateY(-4px); opacity: 1; } }

@media (max-width: 600px) {
  .ldh-launcher { right: 13px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: 58px; height: 58px; }
  .ldh-launcher-face { font-size: 25px; }
  .ldh-launcher-label { display: none; }
  .ldh-panel {
    right: 8px;
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    width: calc(100vw - 16px);
    height: min(76dvh, 620px);
    min-height: min(380px, calc(100dvh - 100px));
    max-height: calc(100dvh - 96px - env(safe-area-inset-bottom, 0px));
    border-radius: var(--ld-radius-lg, 10px);
  }
  .ldh-topbar { min-height: 69px; padding: 12px; }
  .ldh-avatar { flex-basis: 40px; width: 40px; height: 40px; }
  .ldh-main { padding: 13px 11px 10px; }
  .ldh-compose-wrap { padding: 9px 9px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .ldh-launcher, .ldh-launcher-label, .ldh-panel { transition: none !important; animation: none !important; }
  .ldh-main { scroll-behavior: auto; }
  .ldh-typing span { animation: none !important; }
}

/* Kreator zgłoszeń Halinki */
.ldh-report-topics { display:flex; flex-direction:column; gap:7px; margin:8px 0 10px 4px; }
.ldh-report-topic { width:100%; text-align:left; cursor:pointer; border:1px solid #ffd7c8; background:#fff8f4; color:#76391f; border-radius:var(--ld-radius-md, 8px); padding:10px 12px; font:inherit; font-size:13px; font-weight:700; }
.ldh-report-topic:hover, .ldh-report-topic:focus-visible { background:#ffede4; border-color:#f5a17e; outline:2px solid transparent; }
