/* MenuPrg súgóablak formája. Szín: Fotohub kék #1f6feb. */
.fh-help-launcher {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 99998;
  padding: 0;
  border: none;
  border-radius: 50px;
  background: #1f6feb;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  width: 55px;
  height: 55px;
}

.fh-help-launcher:hover,
.fh-help-launcher:focus {
  background: #1858c0;
  outline: none;
}

.fh-help-launcher-icon {
  min-width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fh-help-launcher-icon svg {
  width: 30px;
  height: 30px;
}

.fh-help-launcher-text {
  font-weight: 700;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  max-width: 0;
  transition: opacity 0.3s ease, max-width 0.3s ease;
  pointer-events: none;
}

@media (min-width: 601px) {
  .fh-help-launcher:hover {
    width: 160px;
    justify-content: flex-start;
  }

  .fh-help-launcher:hover .fh-help-launcher-text {
    opacity: 1;
    max-width: 120px;
    padding-right: 18px;
  }
}

@media (max-width: 600px) {
  .fh-help-launcher {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }

  .fh-help-launcher-icon {
    min-width: 50px;
  }

  .fh-help-launcher-text {
    display: none;
  }
}

/* Vevő / megosztott rendelő: bal alsó sarok, a „fel a tetejére” labda mellett. */
.fh-help-dock-left .fh-help-launcher {
  right: auto;
  left: 25px;
}

.fh-help-dock-left .fh-help-window {
  right: auto;
  left: 25px;
}

@media (max-width: 600px) {
  .fh-help-dock-left .fh-help-launcher {
    right: auto;
    left: 20px;
  }

  .fh-help-dock-left .fh-help-window {
    right: auto;
    left: 10px;
  }
}

.fh-help-window {
  position: fixed;
  bottom: 90px;
  right: 25px;
  width: 450px;
  height: 580px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 120px);
  background: #fdfdfd;
  border-radius: 15px;
  display: none;
  flex-direction: column;
  z-index: 99999;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.28);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.fh-help-window.is-open {
  display: flex;
}

.fh-help-root.is-open .fh-help-launcher {
  display: none;
}

@media (max-width: 600px) {
  .fh-help-window {
    bottom: 10px;
    right: 10px;
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    max-width: none;
    max-height: none;
    border-radius: 10px;
  }

  .fh-help-rsz {
    display: none !important;
  }
}

.fh-help-header {
  color: #fff;
  background: #1f6feb;
  padding: 12px 15px;
  cursor: move;
  border-radius: 15px 15px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.fh-help-h-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
}

.fh-help-online-dot {
  width: 8px;
  height: 8px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 5px #34d399;
}

.fh-help-h-right button {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  margin-left: 10px;
  opacity: 0.85;
  line-height: 1;
  padding: 0;
}

.fh-help-h-right button:hover {
  opacity: 1;
}

.fh-help-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
}

.fh-help-row {
  display: flex;
  width: 100%;
}

.fh-help-row-user {
  justify-content: flex-end;
}

.fh-help-row-ai {
  justify-content: flex-start;
}

.fh-help-bubble {
  max-width: 85%;
  padding: 12px;
  border-radius: 15px;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.05);
}

.fh-help-bubble-user {
  color: #fff;
  background: #1f6feb;
  border-radius: 15px 15px 0 15px;
}

.fh-help-bubble-ai {
  background: #fff;
  color: #334155;
  border: 1px solid #e2e8f0;
  border-radius: 15px 15px 15px 0;
}

.fh-help-bubble-system {
  background: transparent;
  color: #64748b;
  border: 0;
  box-shadow: none;
  font-style: italic;
  padding-left: 0;
}

.fh-help-msg-info {
  display: block;
  font-size: 10px;
  margin-bottom: 4px;
  opacity: 0.7;
  font-weight: 700;
}

.fh-help-typing {
  padding: 4px 15px;
  font-size: 12px;
  color: #94a3b8;
  font-style: italic;
}

.fh-help-input-area {
  padding: 15px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 10px;
}

.fh-help-input-area textarea {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px;
  outline: none;
  resize: none;
  font-size: 14px;
  height: 40px;
  font-family: inherit;
}

.fh-help-send {
  color: #fff;
  background: #1f6feb;
  border: none;
  padding: 0 15px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.fh-help-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.fh-help-rsz {
  position: absolute;
  background: transparent;
  z-index: 10;
}

.fh-help-rsz.r-n {
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  cursor: n-resize;
}

.fh-help-rsz.r-w {
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  cursor: w-resize;
}

.fh-help-rsz.r-e {
  right: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  cursor: e-resize;
}

.fh-help-rsz.r-se {
  bottom: 0;
  right: 0;
  width: 15px;
  height: 15px;
  cursor: se-resize;
}

.fh-help-link {
  color: #1f6feb;
  font-weight: 700;
  text-decoration: underline;
}
