/* Container for the filter form */
#ymi-product-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem;
    align-items: flex-end;
    max-width: 100%;
  }

  .ymi-product-filters-wrapper .overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 10;
    align-items: center;
    justify-content: center;
    display: none;
  }

  .ymi-product-filters-wrapper.loading .overlay {
    display: flex;
  }

  .ymi-product-filters-wrapper .overlay .loading-icon svg {
    width: 40px;
    -webkit-animation:spin 1s linear infinite;
    -moz-animation:spin 1s linear infinite;
    animation:spin 1s linear infinite;
  }
  
  /* Group each filter element */
  .ymi-filter-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 180px;
  }
  
  /* Style labels */
  #ymi-product-filters label {
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    display: none;
  }
  
  /* Style select elements */
  #ymi-product-filters select {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
  }
  
  /* Focus state for select elements */
  #ymi-product-filters select:focus {
    outline: none;
    border-color: #0073e6;
    box-shadow: 0 0 5px rgba(0, 115, 230, 0.4);
  }
  
  /* Style the submit button */
  #ymi-product-filters button {
    background-color: #0AA650;
    color: #fff;
    padding: 0.65rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 1rem;
    font-weight: bold;
  }
  
  /* Hover and active state for the button */
  #ymi-product-filters button:hover {
    background-color: #088540;
    transform: translateY(-2px);
  }
  
  #ymi-product-filters button:active {
    transform: translateY(0);
  }

  #ymi-image-wrapper img {
    height: auto;
    width: 100%;
  }

@-moz-keyframes spin { 
    100% { -moz-transform: rotate(360deg); } 
}
@-webkit-keyframes spin { 
    100% { -webkit-transform: rotate(360deg); } 
}
@keyframes spin { 
    100% { 
        -webkit-transform: rotate(360deg); 
        transform:rotate(360deg); 
    } 
}