
/*NEW ADDITIONS TO CART SEARCH*/

.cart-search-container {
    position: relative;
}

.woocommerce-product-search{
    display: flex;
    column-gap: 20px;
    flex-wrap: wrap;
}

#add-new-product-cart-search {
    height: 47.5px;
}

.search-input-container {
    flex: 1;
    position: relative;
}

#woocommerce-product-search-results {
    width: 100%;
    position: absolute;
    background-color: #fafafa;
    z-index: 99;
    margin: -25px 0 0 0;
    list-style: none;
    border: solid 2px #e3e3e3;
    border-top: none;
  }
  
#woocommerce-product-search-field {
    width: 100%;
    margin-bottom: 25px;
  }

#woocommerce-product-search-results > li:nth-child(odd) {
    background-color: #F2F2F2; 
}

#woocommerce-product-search-results > li > a {
    display: block; 
    color: #333333;
    padding: 10px;
    text-decoration: none;
    cursor: pointer;
}

#woocommerce-product-search-results > li > a:hover {
    background-color: #F2F2F2;
}

.fmw-heading-bar {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    column-gap: 50px;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 15px;
    border-radius: 10px;
    background-color: #f9f9f9;
}

.pagination {
    font-size: 20px;
    font-weight: 700;
}

.fmw-search {
    display: flex;
    align-items: center;
    column-gap: 10px;
}

.fmw-search input {
    margin-bottom: unset !important;
}

.fmw-search button {
    border-radius: 10px;
}

table.striped tbody tr:nth-of-type(odd) {
    background-color: #f9f9f9;
  }

/*////////////////////////////////////*/
.add-new-product-search-container {
    display: none;
    position: absolute;
    width: 80%;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    overflow: auto;
    max-height: 100%;
    background-color: #F2F2F2;
    z-index: 999999;
    padding: 15px;
}

.add-product-overlay {
    display: none;
    position: fixed;
    background: #0000007d;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 99999;
}

#jf-preloader {
    z-index: 99999999999 !important;
}

#fmw-update-product, #fmw-create-product {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px;
    border: 1px solid #ccc;
    background-color: #f7f7f7;
    border-radius: 10px;
    max-height: 100%;
}

label {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

input[type="text"], input[type="number"], select, .fmw-checkboxes-box, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px !important;
    border: none;
    border-radius: 5px !important;
    background-color: #fff;
    box-shadow: 0px 0px 5px rgba(0,0,0,0.3);
}

input[type="submit"] {
    background-color: #4CAF50;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.column {
    width: 48%;
}

.clear {
    clear: both;
}

.fmw-checkboxes-box {
    max-height: 24vh;
    overflow: auto;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgb(42 42 42 / 50%);
    display: none;
  }
  
  .spinner {
    position: absolute;
    top: 50%;
    left: 48%;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
  }
  
  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }

.fmw-submit {
    margin: 50px auto 10px;
    width: 200px;
    box-shadow: 0px 0px 5px rgba(0,0,0,0.3);
    font-size: 18px;
    font-weight: 700;
}

@media screen and (max-width: 768px) {
    #fmw-update-product, #fmw-create-product  {
        flex-direction: column;
    }
    .column {
        width: unset;
    }
}
