.epd-search-wrapper {
  width: 100%;
  position: relative;
  z-index: 100;
}

.epd-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.epd-filter-btn {
  padding: 0.5rem 1rem;
  border: 2px solid #ddd;
  background: #fff;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.epd-filter-btn:hover {
  border-color: #999;
}

.epd-filter-btn.active {
  background: #0073aa;
  color: #fff;
  border-color: #0073aa;
}

.epd-search-container {
  position: relative;
  margin-bottom: 1rem;
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

#epd-product-search {
  flex: 1;
  padding: 0.75rem;
  font-size: 1rem;
  border: 2px solid #ddd;
  border-radius: 4px;
  background-image: none !important;
}

#epd-product-search:focus {
  outline: none;
  border-color: #0073aa;
}

.epd-search-btn {
  padding: 0.75rem 1.5rem;
  background: #0073aa;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  white-space: nowrap;
  transition: background 0.2s;
}

.epd-search-btn:before {
  content: "\1F50D";
  margin-right: 0.5rem;
}

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

.epd-loading {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 0.875rem;
}

.epd-results-container {
  margin-bottom: 1.5rem;
  border: 2px solid #ddd;
  border-radius: 4px;
  background: #fff;
}

.epd-results-list {
  max-height: 400px;
  min-height: 250px;
  overflow-y: auto;
}

.epd-result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
}

.epd-result-item:hover {
  background: #f5f5f5;
}

.epd-result-item:last-child {
  border-bottom: none;
}

.epd-back-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #999;
  color: #fff !important;
  text-decoration: none;
  border-radius: 4px;
  margin-bottom: 1rem;
  transition: background 0.2s;
  font-family: Muli;
  text-transform: none !important;
  font-size: 15px;
  font-weight: 900;
}

.epd-back-btn:hover {
  background: #777;
  color: #fff !important;
}

.epd-form-view h3 {
  margin: 1rem 0;
}

.epd-product-image {
  margin: 1.5rem 0;
}

.epd-product-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.epd-result-image {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 2px;
  overflow: hidden;
}

.epd-result-name {
  flex: 1;
}

.epd-asset-counts {
  display: flex;
  gap: 0.25rem;
  margin-right: 0.5rem;
}

.epd-asset-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: #f0f0f1;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1c1c1c;
}

.epd-asset-count {
  background: #0073aa;
  color: #fff;
  padding: 0.125rem 0.375rem;
  border-radius: 2px;
  font-size: 0.7rem;
}

.epd-category-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.epd-badge-automated-cutting {
  background: #73b7ef;
  color: #011d3d;
}

.epd-badge-manual-cutting {
  background: #b45340;
  color: #fff;
}

.epd-badge-material-handling {
  background: #011d3d;
  color: #fff;
}

.epd-badge-software {
  background: #dddddd;
  color: #1c1c1c;
}

.epd-no-results {
  padding: 1rem;
  text-align: center;
  color: #666;
}

.epd-form-container {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f9f9f9;
  border-radius: 4px;
}

.epd-form-container h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.epd-error {
  color: #d63638;
  padding: 1rem;
  background: #fff;
  border-left: 4px solid #d63638;
}

.epd-form-view div#gform_wrapper_26 .gfield--type-checkbox .gfield_checkbox {
  text-align: left;
}

.epd-form-view .gform_required_legend {
  display: none;
}

[x-cloak] {
  display: none !important;
}
