.sales-api-intro {
  max-width: 760px;
  margin: 0 auto 25px;
  text-align: center;
}

.sales-api-intro > span {
  color: #ad7616;
  font-size: 13px;
  font-weight: 800;
}

.sales-api-intro h2 {
  margin: 6px 0 8px;
  color: #321640;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
}

.sales-api-intro p {
  margin: 0;
  color: #817386;
  font-size: 13px;
}

.sales-api-intro strong {
  display: inline-flex;
  margin-top: 13px;
  padding: 7px 12px;
  border: 1px solid #e5d9e9;
  border-radius: 999px;
  background: #fff;
  color: #63317b;
  font-size: 11px;
  box-shadow: 0 6px 16px #3210430a;
}

.sales-api-search {
  display: grid;
  width: min(760px, 100%);
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 0 auto;
}

.sales-api-search label {
  display: flex;
  height: 54px;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid #dfd3e4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px #3210430c;
  transition: border-color .2s, box-shadow .2s;
}

.sales-api-search label:focus-within {
  border-color: #895b9e;
  box-shadow: 0 0 0 4px #6f37870d, 0 12px 30px #32104312;
}

.sales-api-search svg {
  width: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: #704682;
  stroke-width: 1.8;
}

.sales-api-search input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #38243f;
  font: inherit;
  font-size: 13px;
}

.sales-api-search label > span {
  padding: 4px 7px;
  border: 1px solid #e5dce8;
  border-radius: 7px;
  color: #9a8c9f;
  font-size: 9px;
}

.sales-api-search > button {
  min-width: 90px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, #4f2269, #75408d);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px #4f226928;
}

.sales-api-results {
  justify-content: center;
  min-height: 48px;
}

.sales-api-card {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.sales-api-card .sales-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.sales-api-card .sales-actions {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, 38px);
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-top: auto;
}

.sales-api-card .sales-actions a {
  width: 38px;
  height: 38px;
  min-width: 38px;
  margin: 0;
}

.sales-api-card .sales-actions > span {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  min-width: 38px;
  place-items: center;
  border: 1px solid #e7dfea;
  border-radius: 11px;
  background: #f7f4f8;
  color: #b7acbb;
}

.sales-api-card .sales-actions .is-disabled {
  cursor: not-allowed;
  opacity: .72;
}

.sales-api-card .sales-actions .location-action { grid-column: 1; }
.sales-api-card .sales-actions .whatsapp { grid-column: 2; }
.sales-api-card .sales-actions .call { grid-column: 3; }

.sales-api-card .sales-card-visual {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  min-height: 118px;
}

.sales-api-card .sales-card-visual > img {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.002);
  transition: transform .45s ease;
}

.sales-api-card .sales-card-visual.has-image > img { display: block; }
.sales-api-card .sales-card-visual.has-image > span { display: none; }
.sales-api-card:hover .sales-card-visual.has-image > img { transform: scale(1.045); }

.sales-api-card .sales-card-visual.has-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  border: 0;
  border-radius: 0;
  background: linear-gradient(transparent, rgba(26, 10, 35, .35));
}

.sales-api-state {
  grid-column: 1 / -1;
  display: grid;
  min-height: 260px;
  place-items: center;
  align-content: center;
  gap: 11px;
  padding: 38px;
  border: 1px solid #e5dbe9;
  border-radius: 20px;
  background: #fff;
  text-align: center;
  box-shadow: 0 10px 30px #3210430b;
}

.sales-api-state h3 { color: #321640; font-size: 20px; }
.sales-api-state p { margin: 0; color: #786b7e; font-size: 13px; }

.sales-api-state.is-loading > span {
  width: 42px;
  height: 42px;
  border: 4px solid #eee5f1;
  border-top-color: #6f3787;
  border-radius: 50%;
  animation: salesApiSpin .8s linear infinite;
}

@keyframes salesApiSpin { to { transform: rotate(360deg); } }

@media (max-width: 800px) {
  .sales-api-card .sales-card-visual {
    aspect-ratio: 3 / 2;
    min-height: 145px;
  }
}

@media (max-width: 540px) {
  .sales-api-search { grid-template-columns: 1fr; }
  .sales-api-search > button { min-height: 48px; }
  .sales-api-card .sales-card-visual {
    aspect-ratio: 16 / 9;
    min-height: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sales-api-card .sales-card-visual > img { transition: none; }
}
