/* Algolia Custom Autocomplete - Final Working Version */

/* Hide the autocomplete's internal input */
.aa-Input {
  display: none !important;
}

/* Hide browser's native autocomplete dropdown */
input::-webkit-contacts-auto-fill-button,
input::-webkit-credentials-auto-fill-button {
  visibility: hidden;
  display: none !important;
  pointer-events: none;
  position: absolute;
  right: 0;
}

/* Hide browser autocomplete suggestions */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
}

/* Hide any Algolia autocomplete datasets that might show before our panel */
.aa-Dataset,
.aa-Datasets,
.aa-dataset-0,
.aa-dataset-1,
.aa-dataset-2 {
  display: none !important;
}

/* Ensure panel is hidden by default */
.aa-Panel[style*="display: none"],
.aa-Panel:not([style*="display: block"]):not([style*="display: flex"]) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Wrapper container */
.algolia-autocomplete-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

/* Search input focus styles */
.algolia-autocomplete-wrapper input:focus,
#woocommerce-product-search-field-0:focus,
#woocommerce-product-search-field-1:focus {
  outline: none !important;
  border-color: #0067a2 !important;
  box-shadow: inset 0 0 0 2px #0067a2 !important;
}

/* Clear (X) button for the input */
.algolia-autocomplete-wrapper .aca-clear-button {
  position: absolute;
  top: 50%;
  right: -11px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  background: transparent;
  color: #9aa0a6;
  font-size: 18px;
  line-height: 20px;
  cursor: pointer;
  display: none;
  z-index: 10;
  text-align: center;
}

.algolia-autocomplete-wrapper .aca-clear-button:hover {
  color: #666;
}

.algolia-autocomplete-wrapper .aca-clear-button:focus {
  outline: none;
  box-shadow: none;
}

/* Main autocomplete container */
.aa-Autocomplete {
  position: relative;
  z-index: 1000;
  width: 100%;
}

/* Panel container */
.aa-Panel {
  position: absolute;
  top: 100%;
  left: -100px !important;
  right: 0;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-height: 500px;
  overflow-y: hidden;
  z-index: 9999;
  width: auto;
  min-width: 400px;
  max-width: 95vw;
  overflow-x: hidden;
}

/* Hide scrollbar but keep scrollable */
.aa-Panel::-webkit-scrollbar {
  display: none;
}

.aa-Panel {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Multi-column layout */
.aa-List {
  display: flex;
  min-height: 200px;
}

/* Left column (suggestions + categories) */
.aa-List[data-source-id="suggestions"],
.aa-List[data-source-id="categories"] {
  flex: 0 0 50%;
  border-right: 1px solid #eee;
  background: #f8f9fa;
}

/* Right column (products) */
.aa-List[data-source-id="products"] {
  flex: 0 0 50%;
  background: white;
}

/* Hide scrollbar in products list */
#products-list {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  transition: none !important;
}

#products-list::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Section headers */
.aca-section-header {
  font-weight: 600;
  padding: 10px 16px;
  font-size: 11px;
  text-transform: uppercase;
  color: #666;
  background: #fafafa;
  border-bottom: 1px solid #e0e0e0;
  margin: 0;
  letter-spacing: 0.5px;
}

/* Products header with Shop All button */
.aca-products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  font-size: 12px;
  text-transform: uppercase;
  color: #666;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
  margin: 0;
  letter-spacing: 0.5px;
}

.aca-shop-all {
  color: #007cba;
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
}

.aca-shop-all:hover {
  text-decoration: underline;
}

/* Suggestions */
.aca-suggestion {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
  font-size: 14px;
}

.aca-suggestion:hover,
.aca-suggestion.aca-active {
  background: #e9ecef;
  text-decoration: none;
  color: #333;
}

.aca-suggestion.aca-active {
  background: #e9ecef !important;
}

.aca-suggestion strong,
.aca-suggestion em {
  font-weight: 700;
  color: #000;
  font-style: normal;
}

.aca-suggestion:last-child {
  border-bottom: none;
}

/* User's query suggestion (first item) */
.aca-suggestion-user-query {
  background: #f8f9fa;
  border-left: 3px solid #007bff;
}

.aca-suggestion-user-query:hover,
.aca-suggestion-user-query.aca-active {
  background: #e9ecef;
  border-left: 3px solid #0056b3;
}

/* Categories */
.aca-category {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
  font-size: 14px;
  line-height: 1.4;
}

.aca-category:hover,
.aca-category.aca-active {
  background: #e9ecef;
  text-decoration: none;
  color: #333;
}

.aca-category strong,
.aca-category em {
  font-weight: 700;
  color: #000;
  font-style: normal;
}

.aca-category:last-child {
  border-bottom: none;
}

/* Product items */
.aca-product-item {
  display: grid;
  grid-template-columns: 60px 420px 260px;
  column-gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #eaeaea;
  align-items: start;
  min-height: 72px;
}

.aca-product-item:last-child {
  border-bottom: none;
}

.aca-product-item.aca-active {
  background-color: #f8f9fa;
  border-left: 3px solid #007bff;
}

.aca-product-item:hover {
  background-color: #f5f5f5;
  cursor: pointer;
}

/* Product image */
.aca-product-image {
  flex: 0 0 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0e0e0;
  cursor: pointer;
}

/* Grid placement */
.aca-product-image { grid-column: 1; }
.aca-product-details { grid-column: 2; }
.aca-product-controls { grid-column: 3; }

.aca-product-image.loading {
  background: linear-gradient(90deg, #f1f3f5 25%, #e9ecef 37%, #f1f3f5 63%);
  background-size: 400% 100%;
  animation: aca-shimmer 1.2s ease-in-out infinite;
}

@keyframes aca-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.aca-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aca-no-image {
  width: 100%;
  height: 100%;
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 12px;
}

button.aca-select-options, button.aca-add-to-cart {
    padding: 0px !important;
    padding-top: 3px !important;
}
button.aca-select-options {
  margin-top: 1px;
}

/* Product details */
.aca-product-details {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  width: 680px;
  min-width: 0; /* allow title truncation */
}

.aca-product-title {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
  color: #000000;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  transition: none !important;
  will-change: auto;
}

.aca-product-title a { color: inherit; text-decoration: none; }
.aca-product-title a:hover { text-decoration: none; }

.aca-product-sku {
  font-size: 12px;
  color: #666;
  font-family: monospace;
  margin: 0;
}

.aca-product-sku a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.aca-product-sku a:hover {
  color: #007cba;
  text-decoration: underline;
}

/* SKU and Price container - displays them on the same line */
.aca-product-sku-price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
  margin-bottom: 4px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

/* Ensure SKU and price don't wrap to separate lines */
.aca-product-sku-price .aca-product-sku {
  flex-shrink: 0;
  white-space: nowrap;
  width: auto; /* Dynamic width based on content */
}

.aca-product-sku-price .aca-product-price {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Price styling */
.aca-product-price {
  font-size: 12px;
  font-weight: 600;
  color: #444444;
  margin: 0;
}

/* Hide description in compact view */
.aca-product-description {
  display: block;
  color: #6c757d;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 2px;
  max-height: 2.7em;
  overflow: hidden;
  cursor: pointer;
}

/* Hide price in compact view to reduce clutter */
/* .aca-product-price { display: none; } */

.aca-product-title strong,
.aca-product-description strong,
.aca-product-title em,
.aca-product-description em {
  font-weight: 700;
  color: #000;
  font-style: normal;
}

/* Product controls */
.aca-product-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  width: 100%;
}

.aca-qty-control {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.aca-recent {
  height: 35px;
}

.aca-product-controls {
  margin-top: 10px;
}
button.aca-add-to-cart {
  margin-top: 1px;
}

.aca-qty-control label {
  display: none; /* Hide label if present */
}

.aca-qty-input {
  width: 50px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid #cfd4da;
  border-radius: 4px;
  font-size: 13px;
  text-align: center;
  flex-shrink: 0;
  box-sizing: border-box;
}

.aca-qty-input:focus {
  outline: none !important;
  border-color: #0067a2 !important;
  box-shadow: inset 0 0 0 2px #0067a2 !important;
}

/* Add to cart button */
.aca-add-to-cart {
  background: #fff !important;
  color: #0a66c2 !important;
  border: 2px solid #0a66c2 !important;
  padding: 8px 16px !important;
  height: 36px !important;
  border-radius: 4px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: none !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  letter-spacing: 0 !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

/* Select options button for variable products */
.aca-select-options {
  background: #fff !important;
  color: #0a66c2 !important;
  border: 2px solid #0a66c2 !important;
  padding: 8px 16px !important;
  height: 36px !important;
  border-radius: 4px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: none !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  letter-spacing: 0 !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

.aca-add-to-cart:hover:not(:disabled),
.aca-select-options:hover:not(:disabled) {
  background: #0067a2 !important;
  color: white !important;
  border-color: #0067a2 !important;
}

.aca-add-to-cart:active {
  background: #0056b3;
  border-color: #0056b3;
  color: white;
}

/* Empty states */
.aca-empty {
  padding: 16px;
  font-size: 14px;
  color: #666;
  text-align: center;
}

/* Mobile-specific styles for clean single-column design */
.aca-mobile-container {
  background: white !important;
  min-height: 100vh !important;
  display: block !important;
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  height: auto !important;
  overflow-y: auto !important;
}

.aca-mobile-header {
  background: black;
  padding: 2px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative !important;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  min-height: 60px;
  border-bottom: 1px solid #e0e0e0;
}

.aca-mobile-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.aca-mobile-close:hover {
  background: rgba(0, 0, 0, 0.05);
}

.aca-mobile-search-input {
  flex: 1;
  display: flex;
  align-items: center;
  background: white;
  border-radius: 6px;
  padding: 10px 14px;
  gap: 10px;
  box-shadow: none;
  border: 1px solid #ddd;
  min-height: 40px;
}

.aca-mobile-search-input input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: #000;
  background: transparent;
  font-weight: 400;
  padding: 0;
}

.aca-mobile-search-input input:focus {
  outline: none !important;
}

.aca-mobile-search-input:focus-within {
  border-color: #0067a2 !important;
  box-shadow: inset 0 0 0 2px #0067a2 !important;
}

input#mobile-search-input:focus {
  outline: none !important;
  box-shadow: inset 0 0 0 2px #0067a2 !important;
}

input#mobile-search-input {
  margin: 0;
}

.aca-mobile-search-btn {
  background: #dc3545;
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.aca-mobile-search-btn:hover {
  background: #005a87;
}

.aca-mobile-content {
  overflow-y: visible;
  padding: 0;
}

.aca-mobile-section {
  border-bottom: 1px solid #f0f0f0;
}

.aca-mobile-section:last-child {
  border-bottom: none;
}

.aca-mobile-section-title {
  background: #fafafa;
  padding: 10px 20px;
  font-size: 11px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #e0e0e0;
  margin: 0;
}

.aca-mobile-suggestion,
.aca-mobile-category,
.aca-mobile-recent {
  display: block;
  padding: 14px 20px;
  text-decoration: none;
  color: #212529;
  border-bottom: 1px solid #f1f3f4;
  font-size: 15px;
  line-height: 1.4;
  transition: background-color 0.15s ease;
  font-weight: 400;
}

.aca-mobile-category {
  font-weight: 600;
}

.aca-mobile-suggestion:hover,
.aca-mobile-category:hover,
.aca-mobile-recent:hover {
  background: #f8f9fa;
  text-decoration: none;
  color: #212529;
}

.aca-mobile-suggestion:last-child,
.aca-mobile-category:last-child,
.aca-mobile-recent:last-child {
  border-bottom: none;
}

.aca-mobile-product-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  grid-template-rows: auto auto;
  padding: 16px 20px;
  border-bottom: 1px solid #f1f3f4;
  gap: 12px;
  transition: background-color 0.15s ease;
}

.aca-mobile-product-item:hover {
  background: #f8f9fa;
}

.aca-mobile-product-item:last-child {
  border-bottom: none;
}

.aca-mobile-product-image {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 70px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.aca-mobile-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aca-mobile-product-info {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.aca-mobile-product-title {
  font-size: 14px;
  font-weight: 500;
  color: #212529;
  margin-bottom: 6px;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
  transition: none !important;
  will-change: auto;
}

.aca-mobile-product-title a {
  color: inherit;
  text-decoration: none;
}

.aca-mobile-product-sku {
  font-size: 11px;
  color: #666;
  font-family: monospace;
  margin-bottom: 2px;
}

.aca-mobile-product-price {
  font-size: 14px;
  font-weight: 600;
  color: #000;
}

.aca-mobile-product-controls {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 24px;
}

.aca-mobile-product-controls .aca-add-to-cart,
.aca-mobile-product-controls .aca-select-options {
  background: #007cba;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  white-space: nowrap;
}

.aca-mobile-product-controls .aca-add-to-cart:hover,
.aca-mobile-product-controls .aca-select-options:hover {
  background: #0067a2 !important;
  color: white !important;
}

.aca-mobile-product-action {
  flex: 0 0 auto;
}

.aca-mobile-add-to-cart,
.aca-mobile-select-options {
  background: #007cba;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  min-width: 80px;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.aca-mobile-add-to-cart:hover,
.aca-mobile-select-options:hover {
  background: #0067a2 !important;
  color: white !important;
}

.aca-mobile-clear {
  background: none;
  border: none;
  color: #007cba;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 0;
  margin: 8px 16px;
  border-radius: 0;
  transition: none;
  text-align: left;
  display: block;
  width: auto;
}

.aca-mobile-clear:hover {
  background-color: transparent;
  color: #007cba;
}

/* Mobile responsiveness - fallback for existing desktop styles */
@media (max-width: 1024px) {
  .aa-Panel {
    min-width: 100% !important;
    max-height: 100vh !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 999999 !important;
    background: white !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: 100vw !important;
    height: 100vh !important;
    overflow: hidden !important;
  }
  
  /* Hide body scroll when mobile search is open */
  body.aca-mobile-search-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
  }
  
  /* Ensure mobile panel covers everything */
  .aa-Panel.aca-mobile-active {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    background: white !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }
  
  .aa-List {
    flex-direction: column;
  }
  
  .aa-List[data-source-id="suggestions"],
  .aa-List[data-source-id="categories"] {
    flex: none;
    border-right: none;
    border-bottom: 1px solid #eee;
  }
  
  .aa-List[data-source-id="products"] {
    flex: none;
  }
  
  .aca-product-item {
    display: flex;
    padding: 12px;
    gap: 10px;
  }
  
  .aca-product-image {
    flex: 0 0 50px;
    height: 50px;
  }
  
  .aca-product-title {
    font-size: 13px;
  }
  
  .aca-product-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .aca-add-to-cart {
    padding: 10px 16px;
  }
}

@media (max-width: 480px) {
  .aa-Panel {
    max-height: 350px;
  }
  
  .aca-product-item {
    padding: 10px;
    gap: 8px;
  }
  
  .aca-product-image {
    flex: 0 0 40px;
    height: 40px;
  }
  
  .aca-product-title {
    font-size: 12px;
  }
  
  .aca-product-sku {
    font-size: 11px;
  }
  
  .aca-qty-input {
    width: 40px;
    padding: 3px 4px;
    font-size: 11px;
  }
  
  .aca-add-to-cart {
    font-size: 11px;
    padding: 8px 12px;
  }
}


.aca-product-description, .aca-product-sku, .aca-product-description, .aca-product-title {
  width: 450px;
}
.aca-product-controls {
  gap: 12px;
}
.aca-qty-control {
  width: 60px;
}

/* Loading state for add-to-cart */
.aca-add-to-cart.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.aca-add-to-cart.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(10,102,194,0.25);
  border-top-color: #0a66c2;
  border-radius: 50%;
  animation: aca-spin 0.7s linear infinite;
}
@keyframes aca-spin {
  to { transform: rotate(360deg); }
}

/* Success flash */
.aca-add-to-cart.is-success {
  background: #28a745 !important;
  border-color: #28a745 !important;
  color: #fff !important;
}

button#recent-clear {
  text-transform: capitalize;
  font-size: 12px;
  background: none;
  border: none;
  color: #007cba;
  cursor: pointer;
  padding: 8px 0;
  margin: 8px 16px;
  border-radius: 0;
  transition: none;
  text-align: left;
  display: block;
  width: auto;
}

button#recent-clear:hover {
  background-color: transparent;
  color: #007cba;
}

/* Recent searches styling - match suggestions */
.aca-recent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 16px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
  font-size: 14px;
  cursor: pointer;
}

.aca-recent:hover,
.aca-recent.aca-active {
  background: #e9ecef;
  text-decoration: none;
  color: #333;
}

.aca-recent strong,
.aca-recent em {
  font-weight: 700;
  color: #000;
  font-style: normal;
}

.aca-recent:last-child {
  border-bottom: none;
}

.aca-recent-link {
  color: inherit;
  text-decoration: none;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 8px;
  pointer-events: none; /* Make link non-clickable since parent div handles clicks */
}

.aca-recent-remove {
  background: none;
  border: none;
  color: #999;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  transition: all 0.2s ease;
  font-weight: bold;
  pointer-events: auto; /* Ensure remove button is always clickable */
  z-index: 1; /* Ensure remove button is above parent */
}

.aca-recent-remove:hover {
  color: #ff4444;
  background-color: transparent;
}

.aca-product-description {
  display: none;
}

div#wide-nav {
  background-color: black;
}

/* Hide all Algolia autocomplete datasets by default */
.aa-dataset-1,
.aa-dataset-0,
.aa-dataset-2,
.aa-Dataset,
.aa-Datasets {
    display: none !important;
}

@media (min-width: 768px) {
    .aa-dataset-1 {
        display: none !important;
    }
}

/* Hide any browser autocomplete dropdowns */
input::-webkit-calendar-picker-indicator {
    display: none !important;
}

/* Ensure no autocomplete suggestions show before our panel */
input[list],
datalist {
    display: none !important;
}

button.aca-select-options {
  margin-left: 0; /* Remove unnecessary margin */
}

button.aca-add-to-cart, button.aca-select-options {
  min-width: 140px; /* Use min-width instead of fixed width for flexibility */
}

button.aca-recent-remove {
  margin-right: 20px;
}

.aca-mobile-search-input {
  border: none;
  padding: 0px;
}
button#mobile-close-btn {
  margin-right: 0px;
  margin-bottom: 0px !important;
}

button.aca-add-to-cart {
  margin-bottom: 2px !important;
}

button#mobile-search-btn {
  display: none;
}

@media (max-width: 1024px) {
  button.aca-select-options, button.aca-add-to-cart {
    margin-top: -30px;
  }
}