/* Search Component CSS */
/* Created: 2025-12-16 - Part of Nicepage removal migration */

/* ==========================================================================
   Search Form Container
   ========================================================================== */

.aci-search {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  border: 1px solid #e0e6ec;
  border-radius: 4px;
  background-color: #ffffff;
  overflow: hidden;
  max-width: 400px;
}

/* ==========================================================================
   Search Button
   ========================================================================== */

.aci-search-button {
  background: none;
  border: none;
  padding: 2px 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.aci-search-button:hover {
  opacity: 0.7;
}

.aci-search-button:focus {
  outline: none;
}

/* ==========================================================================
   Search Icon
   ========================================================================== */

.aci-search-icon {
  display: block;
  width: 14px;
  height: 14px;
  margin: 4px;
}

.aci-icon-svg,
.aci-icon-svg-content {
  width: 100%;
  height: 100%;
  display: block;
  fill: #111111;
}

/* ==========================================================================
   Search Input
   ========================================================================== */

.aci-search-input {
  flex: 1;
  border: none;
  padding: 6px 10px;
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  background: transparent;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: #111111;
  min-width: 0;
}

.aci-search-input::placeholder {
  color: #666666;
  opacity: 1;
}

.aci-search-input:focus {
  outline: none;
}

/* Remove default search input styling */
.aci-search-input[type="search"]::-webkit-search-cancel-button,
.aci-search-input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

/* ==========================================================================
   Responsive Visibility
   ========================================================================== */

/* Hide search on medium and smaller screens (tablets and phones) */
@media (max-width: 991px) {
  .aci-search.aci-hidden-md {
    display: none !important;
  }
}
