.stellacan-sales {
  --st-bg: #f6f8f9;
  --st-panel: #ffffff;
  --st-text: #17212b;
  --st-muted: #64707d;
  --st-line: #d9e0e6;
  --st-primary: #0f766e;
  --st-primary-dark: #0b5f59;
  --st-accent: #b7791f;
  background: var(--st-bg);
  color: var(--st-text);
  font: inherit;
  position: relative;
  z-index: 20;
}

.stellacan-sales *,
.stellacan-sales *::before,
.stellacan-sales *::after {
  box-sizing: border-box;
}

.stellacan-sales--top {
  border-bottom: 1px solid var(--st-line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
  margin: 0 auto;
  padding: 18px;
}

.stellacan-sales__hero {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(240px, .42fr) minmax(320px, .58fr);
  margin: 0 auto;
  max-width: 1180px;
}

.stellacan-sales__intro {
  display: grid;
  gap: 5px;
}

.stellacan-sales__intro span {
  color: var(--st-primary-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.stellacan-sales__intro h1 {
  color: var(--st-text);
  font-size: 28px;
  line-height: 1.15;
  margin: 0;
}

.stellacan-sales__bar {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(260px, 1fr) minmax(140px, auto);
}

.stellacan-sales__search {
  align-items: center;
  background: #fff;
  border: 1px solid #cfd8df;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 54px;
  padding: 7px 12px;
}

.stellacan-sales__search span {
  color: var(--st-primary-dark);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.stellacan-sales input[type="search"] {
  border: 0;
  color: var(--st-text);
  font: inherit;
  min-width: 0;
  outline: 0;
  width: 100%;
}

.stellacan-sales__status {
  color: var(--st-muted);
  font-size: 13px;
  min-height: 22px;
}

.stellacan-sales__loading {
  align-items: center;
  color: var(--st-muted);
  display: flex;
  font-size: 14px;
  gap: 9px;
  margin: 10px auto 0;
  max-width: 1180px;
  min-height: 28px;
}

.stellacan-sales__loading[hidden] {
  display: none;
}

.stellacan-sales__loading span,
.stellacan-sales__spinner {
  animation: stellacan-spin .75s linear infinite;
  border: 2px solid #d7e1e7;
  border-top-color: var(--st-primary);
  border-radius: 999px;
  display: inline-block;
  height: 18px;
  width: 18px;
}

.stellacan-sales__results {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 12px auto 0;
  max-width: 1180px;
}

.stellacan-sales__results[hidden],
.stellacan-sales__result-group[hidden] {
  display: none;
}

.stellacan-sales__result-group {
  background: var(--st-panel);
  border: 1px solid var(--st-line);
  border-radius: 8px;
  padding: 12px;
}

.stellacan-sales__result-group h2 {
  color: var(--st-text);
  font-size: 16px;
  margin: 0 0 10px;
}

.stellacan-sales__cards {
  display: grid;
  gap: 10px;
}

.stellacan-sales__product {
  align-items: center;
  border: 1px solid var(--st-line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  min-width: 0;
  padding: 10px;
}

.stellacan-sales__product--suggestion,
.stellacan-sales__product--quoted {
  grid-template-columns: minmax(0, 1fr) auto;
}

.stellacan-sales__product img,
.stellacan-sales__product-image {
  aspect-ratio: 1;
  background: #eef2f4;
  border: 1px solid #e2e8ee;
  border-radius: 6px;
  object-fit: contain;
  width: 72px;
}

.stellacan-sales__product-body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.stellacan-sales__product-body a,
.stellacan-sales__product-body strong {
  color: var(--st-text);
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.stellacan-sales__product-body span,
.stellacan-sales__product-body small {
  color: var(--st-muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.stellacan-sales__product-body > strong:nth-of-type(2),
.stellacan-sales__product-body > strong:last-child {
  color: var(--st-accent);
}

.stellacan-sales button {
  background: var(--st-primary);
  border: 1px solid var(--st-primary);
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 40px;
  padding: 9px 13px;
  white-space: nowrap;
}

.stellacan-sales button:hover,
.stellacan-sales button:focus {
  background: var(--st-primary-dark);
  border-color: var(--st-primary-dark);
  outline: 0;
}

.stellacan-sales button:disabled {
  cursor: wait;
  opacity: .62;
}

.stellacan-sales__select {
  color: var(--st-text);
  cursor: pointer;
  display: grid;
  gap: 3px;
  min-height: 0;
  text-align: left;
  white-space: normal;
  width: 100%;
}

.stellacan-sales__select:focus {
  outline: 2px solid rgba(15, 118, 110, .28);
  outline-offset: 3px;
}

.stellacan-sales__select[aria-disabled="true"] {
  cursor: wait;
  opacity: .62;
}

.stellacan-sales__select strong {
  color: var(--st-text);
}

.stellacan-sales__select span {
  color: var(--st-muted);
  font-size: 13px;
}

@keyframes stellacan-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 860px) {
  .stellacan-sales__hero,
  .stellacan-sales__bar,
  .stellacan-sales__results {
    grid-template-columns: 1fr;
  }

  .stellacan-sales__product,
  .stellacan-sales__product--suggestion,
  .stellacan-sales__product--quoted {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .stellacan-sales__product button:not(.stellacan-sales__select) {
    grid-column: 1 / -1;
    width: 100%;
  }

  .stellacan-sales__product img,
  .stellacan-sales__product-image {
    width: 58px;
  }
}

@media (max-width: 560px) {
  .stellacan-sales--top {
    padding: 12px 10px;
  }

  .stellacan-sales__intro h1 {
    font-size: 23px;
  }

  .stellacan-sales__search {
    grid-template-columns: 1fr;
  }

  .stellacan-sales__product,
  .stellacan-sales__product--suggestion,
  .stellacan-sales__product--quoted {
    grid-template-columns: 1fr;
  }

  .stellacan-sales__product img,
  .stellacan-sales__product-image {
    width: 100%;
  }
}


.stellacan-sales__hint {
  color: var(--st-muted);
  font-size: 13px;
  margin: 8px 0 0;
}

.stellacan-sales__hint[hidden] {
  display: none;
}

.stellacan-sales--product {
  background: transparent;
  border: 1px solid var(--st-line);
  border-radius: 8px;
  box-shadow: none;
  margin: 14px 0;
  padding: 12px;
}

.stellacan-sales__product-check {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.stellacan-sales__product-check-body {
  display: grid;
  gap: 3px;
}

.stellacan-sales__product-check-body strong {
  color: var(--st-text);
  font-weight: 800;
}

.stellacan-sales__product-check-body span {
  color: var(--st-muted);
  font-size: 13px;
}

.stellacan-sales__product-result {
  margin-top: 10px;
}

@media (max-width: 560px) {
  .stellacan-sales__product-check {
    grid-template-columns: 1fr;
  }

  .stellacan-sales__product-check button {
    width: 100%;
  }
}
