#bundle-hunt-root,
#bundle-hunt-root * {
  box-sizing: border-box;
}

#bundle-hunt-root {
  --bh-ink: #1f2d2d;
  --bh-muted: #667675;
  --bh-teal: #007782;
  --bh-teal-dark: #005c64;
  --bh-cream: #fbfaf7;
  --bh-line: #dce4e2;
  --bh-warn: #8a4b10;
  color: var(--bh-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: fixed;
  inset: 0 0 0 auto;
  width: min(450px, 100vw);
  z-index: 2147483646;
  pointer-events: none;
}

#bundle-hunt-root .bh-panel {
  background: var(--bh-cream);
  box-shadow: -14px 0 40px rgba(24, 46, 45, 0.19);
  display: flex;
  flex-direction: column;
  height: 100%;
  pointer-events: auto;
  transform: translateX(102%);
  transition: transform 180ms ease;
}

#bundle-hunt-root.bh-open .bh-panel {
  transform: translateX(0);
}

#bundle-hunt-root .bh-header {
  align-items: flex-start;
  background: #fff;
  border-bottom: 1px solid var(--bh-line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 20px 20px 16px;
}

#bundle-hunt-root .bh-eyebrow {
  color: var(--bh-teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 5px;
  text-transform: uppercase;
}

#bundle-hunt-root h1,
#bundle-hunt-root h2,
#bundle-hunt-root h3,
#bundle-hunt-root p {
  margin-block: 0;
}

#bundle-hunt-root h1 {
  font-size: 23px;
  line-height: 1.12;
}

#bundle-hunt-root .bh-subtitle {
  color: var(--bh-muted);
  font-size: 13px;
  line-height: 1.45;
  margin-top: 7px;
  max-width: 340px;
}

#bundle-hunt-root button,
#bundle-hunt-root input,
#bundle-hunt-root select {
  font: inherit;
}

#bundle-hunt-root button {
  cursor: pointer;
}

#bundle-hunt-root .bh-icon-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--bh-muted);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 22px;
  height: 36px;
  justify-content: center;
  padding: 0;
  width: 36px;
}

#bundle-hunt-root .bh-icon-button:hover,
#bundle-hunt-root .bh-icon-button:focus-visible {
  background: #eef4f3;
  color: var(--bh-ink);
  outline: none;
}

#bundle-hunt-root .bh-body {
  overflow-y: auto;
  padding: 18px 20px 28px;
}

#bundle-hunt-root .bh-section-title {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

#bundle-hunt-root .bh-section-title h2 {
  font-size: 15px;
}

#bundle-hunt-root .bh-section-title span {
  color: var(--bh-muted);
  font-size: 12px;
}

#bundle-hunt-root .bh-targets {
  display: grid;
  gap: 10px;
}

#bundle-hunt-root .bh-target {
  background: #fff;
  border: 1px solid var(--bh-line);
  border-radius: 12px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 142px 36px;
  padding: 10px;
}

#bundle-hunt-root .bh-field {
  min-width: 0;
}

#bundle-hunt-root .bh-field label {
  color: var(--bh-muted);
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 0 0 5px 2px;
  text-transform: uppercase;
}

#bundle-hunt-root input,
#bundle-hunt-root select {
  background: #fff;
  border: 1px solid #becdca;
  border-radius: 8px;
  color: var(--bh-ink);
  height: 38px;
  min-width: 0;
  padding: 0 10px;
  width: 100%;
}

#bundle-hunt-root input:focus,
#bundle-hunt-root select:focus {
  border-color: var(--bh-teal);
  box-shadow: 0 0 0 3px rgba(0, 119, 130, 0.12);
  outline: none;
}

#bundle-hunt-root .bh-remove {
  align-self: end;
  border: 1px solid transparent;
  font-size: 18px;
}

#bundle-hunt-root .bh-remove[hidden] {
  display: none;
}

#bundle-hunt-root .bh-row-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 16px;
}

#bundle-hunt-root .bh-secondary,
#bundle-hunt-root .bh-primary,
#bundle-hunt-root .bh-stop {
  border-radius: 9px;
  font-weight: 750;
  min-height: 40px;
  padding: 0 14px;
  overflow-wrap: anywhere;
  white-space: normal;
}

#bundle-hunt-root .bh-secondary {
  background: #fff;
  border: 1px solid var(--bh-teal);
  color: var(--bh-teal);
}

#bundle-hunt-root .bh-secondary:hover {
  background: #f0f8f7;
}

#bundle-hunt-root .bh-primary {
  background: var(--bh-teal);
  border: 1px solid var(--bh-teal);
  color: #fff;
  flex: 1;
}

#bundle-hunt-root .bh-stop {
  background: #fff;
  border: 1px solid #b63e35;
  color: #9b3028;
  flex: 1;
}

#bundle-hunt-root .bh-stop:hover {
  background: #fff0ee;
}

#bundle-hunt-root .bh-stop[hidden],
#bundle-hunt-root .bh-continue[hidden] {
  display: none;
}

#bundle-hunt-root .bh-primary:hover {
  background: var(--bh-teal-dark);
  border-color: var(--bh-teal-dark);
}

#bundle-hunt-root .bh-primary:disabled,
#bundle-hunt-root .bh-secondary:disabled,
#bundle-hunt-root .bh-stop:disabled {
  cursor: wait;
  opacity: 0.6;
}

#bundle-hunt-root .bh-categories {
  background: #fff;
  border: 1px solid var(--bh-line);
  border-radius: 10px;
  margin-bottom: 16px;
  overflow: hidden;
}

#bundle-hunt-root .bh-categories summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  list-style: none;
  padding: 11px 13px;
}

#bundle-hunt-root .bh-categories summary::-webkit-details-marker {
  display: none;
}

#bundle-hunt-root .bh-categories summary::after {
  content: "+";
  float: right;
}

#bundle-hunt-root .bh-categories[open] summary::after {
  content: "−";
}

#bundle-hunt-root .bh-category-copy {
  border-top: 1px solid var(--bh-line);
  color: var(--bh-muted);
  font-size: 11px;
  line-height: 1.45;
  padding: 10px 13px;
}

#bundle-hunt-root .bh-status {
  border-radius: 10px;
  display: none;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 14px;
  padding: 11px 12px;
}

#bundle-hunt-root .bh-status.bh-show {
  display: block;
}

#bundle-hunt-root .bh-status[data-kind="info"] {
  background: #edf7f6;
  color: #315e5d;
}

#bundle-hunt-root .bh-status[data-kind="warning"] {
  background: #fff0df;
  color: var(--bh-warn);
}

#bundle-hunt-root .bh-status[data-kind="error"] {
  background: #fdebea;
  color: #8c2d27;
}

#bundle-hunt-root .bh-export-actions {
  display: flex;
  justify-content: flex-end;
  margin: -3px 0 14px;
}

#bundle-hunt-root .bh-results {
  display: grid;
  gap: 12px;
}

#bundle-hunt-root .bh-http-errors {
  background: #fff4f2;
  border: 1px solid #e8b7b1;
  border-radius: 10px;
  color: #7d2e28;
  margin-bottom: 14px;
  overflow: hidden;
}

#bundle-hunt-root .bh-http-errors[hidden] {
  display: none;
}

#bundle-hunt-root .bh-http-errors summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 10px 12px;
}

#bundle-hunt-root .bh-http-error-list {
  border-top: 1px solid #e8b7b1;
  display: grid;
  gap: 8px;
  padding: 10px 12px;
}

#bundle-hunt-root .bh-http-error {
  display: grid;
  font-size: 11px;
  gap: 4px;
}

#bundle-hunt-root .bh-http-error code,
#bundle-hunt-root .bh-http-error pre {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

#bundle-hunt-root .bh-http-error pre {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 6px;
  margin: 0;
  max-height: 72px;
  overflow: auto;
  padding: 6px;
}

#bundle-hunt-root .bh-single-results {
  max-height: 660px;
  overflow-y: auto;
}

#bundle-hunt-root .bh-debug {
  background: #f2f6f5;
  border: 1px solid var(--bh-line);
  border-radius: 10px;
  margin-bottom: 14px;
  overflow: hidden;
}

#bundle-hunt-root .bh-debug summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 10px 12px;
}

#bundle-hunt-root .bh-debug-toolbar {
  align-items: center;
  border-top: 1px solid var(--bh-line);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 9px 10px;
}

#bundle-hunt-root .bh-debug-toolbar span {
  color: var(--bh-muted);
  font-size: 10px;
  line-height: 1.35;
}

#bundle-hunt-root .bh-copy-debug {
  flex: 0 0 auto;
  font-size: 11px;
  min-height: 32px;
  padding-inline: 10px;
}

#bundle-hunt-root .bh-debug-report {
  background: #142120;
  color: #d8efeb;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  line-height: 1.45;
  margin: 0;
  max-height: 360px;
  overflow: auto;
  padding: 11px;
  white-space: pre-wrap;
}

#bundle-hunt-root .bh-result-heading {
  font-size: 15px;
  margin-top: 2px;
}

#bundle-hunt-root .bh-seller-card,
#bundle-hunt-root .bh-inventory-group,
#bundle-hunt-root .bh-empty {
  background: #fff;
  border: 1px solid var(--bh-line);
  border-radius: 12px;
  padding: 13px;
}

#bundle-hunt-root .bh-seller-head {
  align-items: center;
  display: flex;
  gap: 9px;
  justify-content: space-between;
  margin-bottom: 11px;
}

#bundle-hunt-root .bh-seller-link {
  color: var(--bh-teal-dark);
  font-size: 14px;
  font-weight: 800;
  overflow: hidden;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#bundle-hunt-root .bh-total {
  color: var(--bh-muted);
  flex: 0 0 auto;
  font-size: 12px;
  max-width: 58%;
  overflow-wrap: anywhere;
  text-align: right;
}

#bundle-hunt-root .bh-match-list,
#bundle-hunt-root .bh-inventory-list {
  display: grid;
  gap: 8px;
}

#bundle-hunt-root .bh-target-match {
  border-top: 1px solid var(--bh-line);
  padding-top: 10px;
}

#bundle-hunt-root .bh-target-match:first-child {
  border-top: 0;
  padding-top: 0;
}

#bundle-hunt-root .bh-target-match h3 {
  color: var(--bh-teal-dark);
  font-size: 12px;
  margin: 0 0 8px;
}

#bundle-hunt-root .bh-target-match-items {
  display: grid;
  gap: 8px;
}

#bundle-hunt-root .bh-item {
  align-items: center;
  border-top: 1px solid #edf1f0;
  display: grid;
  gap: 9px;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  padding-top: 8px;
}

#bundle-hunt-root .bh-item:first-child {
  border-top: 0;
  padding-top: 0;
}

#bundle-hunt-root .bh-item img,
#bundle-hunt-root .bh-photo-placeholder {
  background: #edf1f0;
  border-radius: 7px;
  height: 46px;
  object-fit: cover;
  width: 46px;
}

#bundle-hunt-root .bh-item-copy {
  min-width: 0;
}

#bundle-hunt-root .bh-item-copy a {
  color: var(--bh-ink);
  display: block;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#bundle-hunt-root .bh-item-copy small {
  color: var(--bh-muted);
  display: block;
  font-size: 10px;
  margin-top: 2px;
}

#bundle-hunt-root .bh-price {
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

#bundle-hunt-root .bh-inventory-group h3 {
  font-size: 13px;
  margin-bottom: 9px;
}

#bundle-hunt-root .bh-empty {
  color: var(--bh-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

#bundle-hunt-root .bh-footnote {
  color: var(--bh-muted);
  font-size: 10px;
  line-height: 1.45;
  margin-top: 16px;
  text-align: center;
}

@media (max-width: 380px) {
  #bundle-hunt-root .bh-target {
    grid-template-columns: minmax(0, 1fr) 36px;
  }

  #bundle-hunt-root .bh-target .bh-field:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  #bundle-hunt-root .bh-remove {
    grid-column: 2;
    grid-row: 1;
  }
}
