.carex-smart-results {
  position: fixed;
  z-index: 99999;
  box-sizing: border-box;
  max-height: 70vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e0e8ed;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(17,40,60,.18);
  padding: 10px;
  color: #203447;
}

.carex-smart-title {
  padding: 12px 10px 8px;
  font-size: 13px;
  font-weight: 700;
  color: #778895;
  border-bottom: 1px solid #edf1f3;
}

.carex-smart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 9px;
  text-decoration: none !important;
  color: #203447 !important;
}

.carex-smart-item:hover,
.carex-smart-category:hover {
  background: #f0f8f8;
}

.carex-smart-img {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #edf1f3;
}

.carex-smart-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.carex-smart-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.carex-smart-code {
  color: #87939e;
  font-size: 12px;
}

.carex-smart-price {
  color: #132f43;
  font-size: 16px;
  white-space: nowrap;
}

.carex-smart-category {
  display: block;
  padding: 11px;
  border-radius: 8px;
  color: #203447 !important;
  text-decoration: none !important;
  font-size: 14px;
}

.carex-smart-all {
  display: block;
  margin-top: 10px;
  padding: 13px;
  border-radius: 9px;
  text-align: center;
  background: #087f89;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
}

.carex-smart-all:hover {
  background: #066c74;
}

.carex-smart-empty {
  padding: 18px;
  color: #87939e;
  text-align: center;
}

@media(max-width: 700px) {
  .carex-smart-results {
    max-height: 65vh;
    padding: 6px;
  }

  .carex-smart-img {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .carex-smart-name {
    font-size: 13px;
  }

  .carex-smart-price {
    font-size: 13px;
  }

  .carex-smart-item {
    gap: 8px;
  }
}

/* CAREX SMART SEARCH V2 COMPACT */
.carex-smart-results {
  width: 650px !important;
  max-width: calc(100vw - 20px) !important;
  max-height: min(70vh, 620px);
  padding: 8px;
  border-radius: 12px;
}

.carex-smart-item {
  padding: 7px 9px;
  gap: 10px;
}

.carex-smart-img {
  width: 50px;
  height: 50px;
  flex-basis: 50px;
}

.carex-smart-name {
  font-size: 13px;
  line-height: 1.35;
}

.carex-smart-code {
  font-size: 11px;
}

.carex-smart-price {
  font-size: 14px;
}

.carex-smart-title {
  padding: 8px 9px;
}

.carex-smart-category {
  padding: 8px 9px;
}

.carex-smart-all {
  padding: 11px;
  margin-top: 7px;
}

@media (max-width: 700px) {
  .carex-smart-results {
    width: calc(100vw - 20px) !important;
    max-height: 65vh;
  }

  .carex-smart-item {
    gap: 8px;
  }

  .carex-smart-price {
    font-size: 12px;
  }
}
