.shaysport-help-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shaysport-help-trigger {
  appearance: none;
  border: 0;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0;
  margin: 0;
  cursor: pointer;
  line-height: 0;
}

.shaysport-help-trigger:hover,
.shaysport-help-trigger:focus,
.shaysport-help-trigger:active {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.shaysport-help-icon {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 0 !important;
}

.shaysport-help-icon-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #111827;
}

.shaysport-help-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.38);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}

.shaysport-help-modal-overlay.is-open {
  display: flex;
}

.shaysport-help-modal {
  width: min(var(--shaysport-help-modal-width, 680px), calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.shaysport-help-modal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.shaysport-help-modal .shaysport-help-body {
  padding: 16px;
}

.shaysport-help-close {
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.shaysport-help-top,
.shaysport-help-bottom {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
}

.shaysport-help-bottom {
  margin-top: 16px;
}

.shaysport-help-context-caption {
  font-size: 12px;
  opacity: 0.75;
  margin-bottom: 6px;
}

.shaysport-help-context-title {
  margin: 0 0 8px;
}

.shaysport-help-context-summary {
  margin: 0 0 10px;
}

.shaysport-help-section {
  margin-top: 12px;
}

.shaysport-help-section h4 {
  margin: 0 0 8px;
}

.shaysport-help-mode-switch {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.shaysport-help-mode {
  appearance: none;
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.shaysport-help-mode.is-active {
  font-weight: 700;
}

.shaysport-help-pane {
  display: none;
}

.shaysport-help-pane.is-active {
  display: block;
}

.shaysport-help-inline-options {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.shaysport-help-feedback-input,
.shaysport-help-question,
.shaysport-help-generated-prompt {
  width: 100%;
  box-sizing: border-box;
}

.shaysport-help-prompts {
  margin-bottom: 10px;
}

.shaysport-help-chip {
  display: inline-block;
  margin: 4px 6px 0 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  border: 0;
  cursor: pointer;
}

.shaysport-help-answer,
.shaysport-help-feedback-result {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.shaysport-help-json {
  white-space: pre-wrap;
  word-break: break-word;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px;
  overflow: auto;
}

.shaysport-help-note {
  margin-top: 0;
}

@media (max-width: 640px) {
  .shaysport-help-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .shaysport-help-modal {
    width: 100vw;
    max-height: 92vh;
    border-radius: 16px 16px 0 0;
  }

  .shaysport-help-mode-switch,
  .shaysport-help-inline-options {
    flex-direction: column;
    gap: 10px;
  }
}


.shaysport-help-header-text {
  flex: 1;
}

.shaysport-help-title {
  display: block;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
}

.shaysport-help-context-title {
  font-size: 18px;
  line-height: 1.3;
}

.shaysport-help-close {
  font-size: 30px;
}

.shaysport-help-feedback-attachment {
  margin: 12px 0;
}

.shaysport-help-attachment-dropzone {
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 12px;
  background: #f8fafc;
}

.shaysport-help-attachment-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}

.shaysport-help-attachment-preview {
  margin-top: 10px;
}

.shaysport-help-attachment-preview[hidden] {
  display: none !important;
}

.shaysport-help-attachment-preview img {
  display: block;
  max-width: 100%;
  max-height: 220px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.shaysport-help-attachment-status {
  margin-top: 8px;
  font-size: 13px;
}


.shaysport-help-direct-trigger,
.shaysport-help-tab-trigger,
button.shaysport-help-trigger {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.shaysport-help-title {
  font-size: 24px;
}

.shaysport-help-context-title {
  font-size: 20px;
}

.shaysport-help-icon {
  width: 34px;
  height: 34px;
}

.shaysport-help-plugin-target {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin: 12px 0;
}

.shaysport-help-plugin-target label {
  font-weight: 600;
  margin-top: 4px;
}

.shaysport-help-plugin-target select,
.shaysport-help-plugin-target input {
  width: 100%;
}
