/* =========================================
   DEDICATED MOBILE SEARCH BAR STYLES
   ========================================= */

/* The Overlay Container */
#new-mobile-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  background-color: #ffffff;
  z-index: 999999; /* Top level Z-index */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  /* Animation State */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* Active State */
#new-mobile-search-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Search Form Container */
.new-mobile-search-form {
  flex-grow: 1;
  display: flex;
  align-items: center;
  background-color: #f5f5f5;
  border-radius: 50px;
  padding: 5px 15px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.new-mobile-search-form:focus-within {
  background-color: #ffffff;
  border-color: var(--ul-primary);
  box-shadow: 0 0 0 3px rgba(239, 40, 83, 0.1);
}

/* Search Input */
.new-mobile-search-input {
  flex-grow: 1;
  border: none;
  background: transparent;
  height: 45px;
  font-size: 16px;
  color: var(--black);
  padding: 0 10px;
  outline: none;
  width: 100%; /* Ensure full width */
}

/* Search Button (Icon) */
.new-mobile-search-btn {
  background: none;
  border: none;
  color: var(--ul-primary);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

/* Close Button */
.new-mobile-search-close {
  background: #f0f0f0;
  border: none;
  width: 40px; /* Large touch target */
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #666;
  cursor: pointer;
  flex-shrink: 0; /* Prevent shrinking */
}

.new-mobile-search-close:active {
  background-color: #e0e0e0;
}
