.cryptrr-help-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1800;

  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.cryptrr-help-toggle {
  width: 54px;
  height: 54px;

  border: 0;
  border-radius: 999px;

  display: grid;
  place-items: center;

  background: #212529;
  color: #fff;

  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.24);

  font-size: 1.35rem;
  cursor: pointer;
}

.cryptrr-help-toggle:hover {
  background: #000;
}

.cryptrr-help-panel {
  width: min(340px, calc(100vw - 92px));

  padding: 14px;

  border-radius: 22px;
  background: #fff;

  border: 1px solid rgba(15, 23, 42, 0.1);

  box-shadow:
    0 24px 70px rgba(15, 23, 42, 0.22),
    0 8px 24px rgba(15, 23, 42, 0.12);
}

.cryptrr-help-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;

  margin-bottom: 12px;
}

.cryptrr-help-title {
  font-size: 0.98rem;
  font-weight: 900;
  color: #111827;
}

.cryptrr-help-subtitle {
  margin-top: 2px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #6c757d;
}

.cryptrr-help-close {
  width: 30px;
  height: 30px;

  border: 0;
  border-radius: 999px;

  display: grid;
  place-items: center;

  background: #f1f3f5;
  color: #495057;
}

.cryptrr-help-close:hover {
  background: #e9ecef;
  color: #111827;
}

.cryptrr-help-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.cryptrr-help-form textarea {
  flex: 1;
  min-width: 0;

  min-height: 42px;
  max-height: 110px;

  resize: none;

  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.14);

  padding: 10px 12px;

  outline: none;

  font-size: 0.9rem;
  font-weight: 650;
}

.cryptrr-help-form textarea:focus {
  border-color: rgba(33, 37, 41, 0.45);
  box-shadow: 0 0 0 0.18rem rgba(33, 37, 41, 0.08);
}

.cryptrr-help-form button {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;

  border: 0;
  border-radius: 999px;

  display: grid;
  place-items: center;

  background: #212529;
  color: #fff;
}

.cryptrr-help-form button:hover {
  background: #000;
}

.cryptrr-help-form button:disabled {
  opacity: 0.6;
  cursor: default;
}

.cryptrr-help-status {
  min-height: 18px;
  margin-top: 8px;

  color: #6c757d;

  font-size: 0.78rem;
  font-weight: 700;
}

.cryptrr-help-status.is-success {
  color: #198754;
}

.cryptrr-help-status.is-error {
  color: #dc3545;
}

.cryptrr-help-open-full {
  display: inline-flex;
  margin-top: 8px;

  color: #495057;
  text-decoration: none;

  font-size: 0.8rem;
  font-weight: 800;
}

.cryptrr-help-open-full:hover {
  color: #111827;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .cryptrr-help-widget {
    right: 14px;
    bottom: 14px;
  }

  .cryptrr-help-panel {
    width: calc(100vw - 84px);
  }

  .cryptrr-help-toggle {
    width: 52px;
    height: 52px;
  }
}

.cryptrr-help-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cryptrr-help-attach {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;

  border: 0;
  border-radius: 999px;

  display: grid;
  place-items: center;

  background: #212529;
  color: #fff;

  cursor: pointer;
}

.cryptrr-help-attach:hover {
  background: #000;
}

.cryptrr-help-attachment-preview {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
}

.cryptrr-help-attachment-preview.has-files {
  display: flex;
}

.cryptrr-help-attachment-pill {
  max-width: 210px;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 6px 8px;
  border-radius: 999px;

  background: #f1f3f5;
  color: #212529;

  font-size: 0.78rem;
  font-weight: 800;
}

.cryptrr-help-attachment-pill span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cryptrr-help-attachment-pill button {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;

  border: 0;
  border-radius: 999px;

  display: grid;
  place-items: center;

  background: rgba(0, 0, 0, 0.08);
  color: #212529;

  padding: 0;
  cursor: pointer;
}

.cryptrr-help-attachment-pill button:hover {
  background: rgba(0, 0, 0, 0.16);
}

.cryptrr-help-attach:has(input:disabled) {
  opacity: 0.55;
  pointer-events: none;
}