/* Fitproduktai help widget — local, no third-party chat service */
.fp-help {
  position: fixed;
  z-index: 40;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  font-family: "Sora", "Segoe UI", sans-serif;
  color: #1c1b19;
  line-height: 1.45;
}

.fp-help *,
.fp-help *::before,
.fp-help *::after {
  box-sizing: border-box;
}

.fp-help-launcher {
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  background: #c52407;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(197, 36, 7, 0.42);
  padding: 0;
}

.fp-help-launcher:hover,
.fp-help-launcher:focus-visible {
  background: #a81e06;
  outline: none;
}

.fp-help-launcher:focus-visible {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #c52407, 0 8px 24px rgba(197, 36, 7, 0.42);
}

.fp-help-open {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.fp-help-label {
  background: #fff;
  color: #1c1b19;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(28, 22, 16, 0.14);
  white-space: nowrap;
  max-width: min(240px, calc(100vw - 108px));
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-help-open:hover .fp-help-label,
.fp-help-open:focus-visible .fp-help-label {
  box-shadow: 0 8px 24px rgba(28, 22, 16, 0.2);
}

.fp-help-open:focus-visible {
  outline: none;
}

.fp-help-open:focus-visible .fp-help-launcher {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #c52407, 0 8px 24px rgba(197, 36, 7, 0.42);
}

.fp-help-launcher {
  flex: 0 0 auto;
  pointer-events: none;
}

.fp-help.is-open .fp-help-open {
  display: none;
}

.fp-help-panel {
  width: min(360px, calc(100vw - 24px));
  max-height: min(640px, calc(100vh - 24px));
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(20, 16, 12, 0.24);
}

.fp-help-panel[hidden] {
  display: none;
}

.fp-help-head {
  background: #c52407;
  color: #fff;
  padding: 14px 44px 14px 14px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.fp-help-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.fp-help-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.fp-help-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.95;
}

.fp-help-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #37d067;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
  display: inline-block;
}

.fp-help-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.fp-help-close:hover,
.fp-help-close:focus-visible {
  background: rgba(255, 255, 255, 0.3);
  outline: none;
}

.fp-help-body {
  padding: 14px 14px 16px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #f7f6f4;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fp-help-greet {
  align-self: flex-start;
  max-width: 95%;
  background: #fff;
  border-radius: 4px 16px 16px 16px;
  padding: 10px 12px;
  font-size: 13.5px;
  box-shadow: 0 1px 2px rgba(20, 16, 12, 0.06);
}

.fp-help-greet p {
  margin: 0;
}

.fp-help-greet a {
  color: #c52407;
  text-decoration: underline;
  font-weight: 600;
}

.fp-help-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.fp-help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 14px;
  border: 1.5px solid #c52407;
  border-radius: 999px;
  background: #fff;
  color: #c52407;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}

.fp-help-btn:hover,
.fp-help-btn:focus-visible {
  background: #fff1ea;
  outline: none;
}

.fp-help-btn.is-active {
  background: #c52407;
  color: #fff;
}

.fp-help-reply {
  background: #fff;
  border-radius: 16px 16px 16px 4px;
  padding: 10px 12px;
  font-size: 13.5px;
  box-shadow: 0 1px 2px rgba(20, 16, 12, 0.06);
}

.fp-help-reply[hidden] {
  display: none;
}

.fp-help-reply p {
  margin: 0 0 8px;
}

.fp-help-reply p:last-child {
  margin-bottom: 0;
}

.fp-help-reply a {
  color: #c52407;
  text-decoration: underline;
  font-weight: 600;
}

.fp-help-reply-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.fp-help-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px 16px;
  margin-top: 4px;
  border-radius: 999px;
  background: #c52407;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
}

.fp-help-cta:hover,
.fp-help-cta:focus-visible {
  background: #a81e06;
  outline: none;
}

.fp-help-form {
  display: grid;
  gap: 8px;
  margin: 0;
}

.fp-help-form label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
}

.fp-help-form input,
.fp-help-form textarea {
  width: 100%;
  border: 1px solid #e6e1d9;
  border-radius: 10px;
  padding: 8px 10px;
  background: #faf9f7;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  color: #1c1b19;
}

.fp-help-form textarea {
  min-height: 84px;
  resize: vertical;
}

.fp-help-form input:focus,
.fp-help-form textarea:focus {
  outline: 2px solid rgba(197, 36, 7, 0.35);
  outline-offset: 1px;
  background: #fff;
}

.fp-help-err {
  display: block;
  color: #d01040;
  font-weight: 500;
  font-size: 12px;
  min-height: 0;
}

.fp-help-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.fp-help-send {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: #c52407;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.fp-help-send:hover,
.fp-help-send:focus-visible {
  background: #a81e06;
  outline: none;
}

.fp-help-send:disabled {
  opacity: 0.65;
  cursor: progress;
}

.fp-help-form-error {
  margin: 0;
  color: #d01040;
  font-size: 13px;
}

.fp-help-thanks {
  margin: 0;
  font-size: 14px;
}

@media (max-width: 480px) {
  .fp-help {
    right: 10px;
    bottom: 10px;
  }

  .fp-help-panel {
    width: min(100vw - 16px, 360px);
    max-height: calc(100vh - 20px);
  }

  .fp-help-launcher {
    width: 56px;
    height: 56px;
  }

  .fp-help-label {
    font-size: 13px;
    padding: 8px 12px;
    max-width: min(170px, calc(100vw - 96px));
  }

  .fp-help-open {
    gap: 6px;
  }
}
