.bcas {
  position: relative;
  width: 100%;
}

.bcas-suggestions[hidden],
.bcas-results[hidden] {
  display: none !important;
}

.bcas-form {
  position: relative;
}

.bcas-icon {
  position: absolute;
  top: 50%;
  left: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  transform: translateY(-50%);
  pointer-events: none;
}

.bcas-input {
  width: 100%;
  height: 48px;
  padding: 12px 20px 12px 54px;
  border: 1px solid #d1d5db;
  border-radius: 0;
  background: #fff;
  color: #111827;
  font-size: 18px;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bcas-input:focus {
  outline: none;
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.bcas-suggestions {
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
}

.bcas-suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111827;
  text-align: left;
  cursor: pointer;
}

.bcas-suggestion:hover,
.bcas-suggestion.is-active {
  background: #f8fafc;
}

.bcas-suggestion-title {
  font-size: 16px;
  line-height: 1.4;
}

.bcas-suggestion-type {
  flex-shrink: 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.3;
}

.bcas-results {
  margin-top: 36px;
}

.bcas-results-head {
  padding-bottom: 18px;
  border-bottom: 1px solid #e5e7eb;
}

.bcas-results-count {
  color: #1f2937;
  font-size: 18px;
  line-height: 1.4;
}

.bcas-results-list {
  display: grid;
  gap: 28px;
  margin-top: 28px;
}

.bcas-result-item {
  color: #111827;
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.14;
  text-decoration: none;
}

.bcas-result-item:hover .bcas-result-title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.bcas-highlight {
  padding: 0 2px;
  background: #ffe3ea;
  color: inherit;
}

.bcas-empty {
  margin-top: 28px;
  color: #6b7280;
  font-size: 16px;
  line-height: 1.5;
}

.bcas.is-loading .bcas-input {
  background-image: linear-gradient(90deg, rgba(243, 244, 246, 0.6), rgba(255, 255, 255, 0.95), rgba(243, 244, 246, 0.6));
  background-size: 200% 100%;
  animation: bcas-loading 1.2s linear infinite;
}

@keyframes bcas-loading {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -200% 0;
  }
}

@media (max-width: 767px) {
  .bcas-input {
    min-height: 52px;
    padding: 14px 18px 14px 48px;
    font-size: 16px;
  }

  .bcas-icon {
    left: 16px;
  }

  .bcas-results {
    margin-top: 28px;
  }

  .bcas-results-list {
    gap: 20px;
    margin-top: 22px;
  }
}
