.eligible-items-form-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  max-width: 700px;
  margin: auto;
  background-color: #fff;
}

.eligible-items-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.toggle-group {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toggle-input {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
}

.submit-btn {
  background-color: #0073aa;
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}

.submit-btn:hover {
  background-color: #005b8c;
}

.results-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.result-item {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fafafa;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

#search-result-set .result-image {
  flex: 0 0 250px;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

#search-result-set .result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.result-details {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.75rem 1rem;
}

.result-details .product-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: #1c2642;
}

.result-details .location {
  color: #555;
  font-size: 0.95rem;
}

.result-details .price {
  font-weight: 500;
  font-size: 1rem;
}

.result-details .agent {
  font-weight: 500;
  font-size: 1rem;
  color: #1c2642;
}

.add-to-cart-btn {
  align-self: flex-end;
  margin-top: 0.5rem;
  background-color: #009eb7;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95rem;
}

.add-to-cart-btn:hover {
  background-color: #f18f1f;
}

.woocommerce-additional-fields {
  display: none !important;
}

#eligible-items-form .search-input-button {
  display: flex;
  justify-content: space-around;
}

#eligible-items-form h3.search-heading {
  text-align: center;
}

.search-input-button
  .sc_button.sc_button_shadow.sc_button_default.sc_button_size_normal.sc_button_icon_left.woo-extender-style-color-james-1 {
  border-color: #1c2642;
  background-color: #1c2642;
  box-shadow: none;
}

.search-input-button
  .sc_button.sc_button_shadow.sc_button_default.sc_button_size_normal.sc_button_icon_left.woo-extender-style-color-james-1:hover {
  border-color: #016c99;
  background-color: #016c99;
  box-shadow: none;
}

.search-input-button
  .sc_button.sc_button_shadow.sc_button_default.sc_button_size_normal.sc_button_icon_left.woo-extender-style-color-james-2 {
  border-color: #009eb7;
  background-color: #009eb7;
  box-shadow: none;
}

.search-input-button
  .sc_button.sc_button_shadow.sc_button_default.sc_button_size_normal.sc_button_icon_left.woo-extender-style-color-james-2:hover {
  border-color: #5aa4a9;
  background-color: #5aa4a9;
  box-shadow: none;
}

@media (max-width: 600px) {
  .result-item {
    flex-direction: column;
  }

  #search-result-set .result-image {
    flex: 0 0 auto;
    width: 100%;
    height: 200px;
  }

  .result-details {
    padding: 0.75rem;
  }
}
