#loaderProductSearch {
    z-index: 100;
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.product-search-widget h2 {
    margin-bottom: 15px;
}

.product-search-widget #search-form {
    float: left;
    margin-bottom: 40px;
    width: 100%;
}

.product-search-widget #search_input {
    border-radius: 0;
    border: 2px solid lightgrey;
    border-right: 0;
    color: black;
    height: 50px;
    max-width: 500px;
    width: 75%;
    float: left;
    display: block;
}

.product-search-widget .search-button{
    float: left;
    display: block;
    height: 50px;
    width: 50px;
    padding: 10px;
    font-size: 24px;
    color: #ffffff;
    background-color: #000000;
}
.product-search-widget .search-button:hover{
    color: #000000;
    background-color: #ffffff;
}

#productTable {
    border-collapse: collapse;
    border: 0;
    margin-bottom: 0;
}

.table-container .notice {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

#productTable.hidden tbody{
    display: none;
}

#productTable th {
    font-family: "plume", sans-serif;
    font-size: 1.5rem;
}

#productTable tr.separator td{
    height: 0;
    padding: 0;
}

#productTable th,
#productTable td {
    border: 1px solid transparent;
    border-spacing: 0;
    padding: 10px 20px;
}

#productTable  .separator td {
    border-bottom: 2px solid black;
}

#productTable tbody {
    font-size: 20px;
}

#productTable tbody td {
    border-right: 2px solid white;
}

#productTable tbody tr:nth-child(even) {
    background-color: lightgrey;
}

#productTable .quantity {
    text-align: center;
}


#productTable .fas {
    margin-left: 2px;
    margin-right: 2px;
    font-size: 18px;
}
#productTable .fas.color-grey {
    color: grey;
}
#productTable .fas.color-red {
    color: red;
}
#productTable .fas.color-green {
    color: green;
}


/* style checkbox */
#productTable input[type="checkbox"],
#mail-form input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
#productTable .checkbox-container {
    /*display: block;*/
    position: relative;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 22px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    width: 20px;
    float: left;
}

#mail-form .checkbox-container {
    position: relative;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 22px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    float: left;
}


#productTable .checkmark {
    position: absolute;
    top: -5px;
    height: 20px;
    width: 20px;
    background-color: #eee;
}

#mail-form .checkmark {
    position: absolute;
    top: 5px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
}

#mail-form .text-container {
    padding-left: 30px;
    float: left;
}

#productTable .checkbox-container:hover input ~ .checkmark,
#mail-form .checkbox-container:hover input ~ .checkmark {
    background-color: #ccc;
}

#productTable .checkbox-container input:checked ~ .checkmark,
#mail-form .checkbox-container input:checked ~ .checkmark {
    background-color: #000000;
}

#productTable .checkmark:after,
#mail-form .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

#productTable .checkbox-container input:checked ~ .checkmark:after,
#mail-form .checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

#productTable .checkbox-container .checkmark:after,
#mail-form .checkbox-container .checkmark:after {
    left: 8px;
    top: 4px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.product-search-widget #mail-form {
    margin-top: 30px;
}


.product-search-widget .contact-products {
    float: left;
    width: 45%;
    margin-right: 5%;
}

.product-search-widget .contact-details {
    float: left;
    width: 50%;
}

.product-search-widget .contact-products input[type="number"] {
    color: #000000;
    border-radius: 0;
    background-color: #ffffff;
    font-size: 14px;
    width: 100px;
    margin-right: 25px;
}

ul.product-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

ul.product-list li {
    border-collapse: collapse;
    background-color: lightgrey;
    padding: 10px;
    text-decoration: none;
    font-size: 16px;
    color: black;
    display: block;
    position: relative;
    margin-bottom: 2px;
}

#selected_products {
    border-bottom: 3px solid black;
    margin-bottom: 1em;
}

.removeBtn {
    background-color: black;
    color: white;
    border: 2px solid black;
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translate(0%, -50%);
    height: 20px;
    text-align: center;
    width: 20px;
}

.removeBtn .fas {
    float: left;
    width: 100%;
}

.removeBtn:hover {
    background-color: white;
    color: black;
}

.contact-products h3,
.contact-details h3 {
    margin-bottom: 1rem;
}

.contact-details input,
.contact-details textarea {
    width: 100%;
    border: none;
    border-bottom: 2px solid black;
    background-color: white;
    padding-left: 0;
    padding-bottom: 10px;
}

.contact-details .input-container {
    margin-bottom: 30px;
}


#mail-form .contact-details input:focus,
#mail-form .contact-details input:active,
#mail-form .contact-details textarea:focus,
#mail-form .contact-details textarea:active {
    outline: none !important;
    border-bottom: 2px solid black;
}

#mail-form .error {
    display: none;
    color: red;
    font-size: 14px;
}

.solicomp-contact-details {
    margin-top: 70px;
    float: left;
    width: 100%;
}

.solicomp-contact-details .phone,
.solicomp-contact-details .fax,
.solicomp-contact-details .mail,
.solicomp-contact-details .address {
    width: 25%;
    float: left;
}

#mail-form .calc {
    margin-bottom: 30px;
    margin-top: 20px;
    float: left;
}
#mail-form .calc span {
    float: left;
}
#mail-form .calc input {
    width: 100px;
    padding-top: 0;
    margin-left: 10px;
    font-size: 24px;
}
#mail-form .calc #result-error {
    width: 100%;
}

.product-search-widget .table-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    margin-bottom: 2.5em;
}


.product-search-widget #success-modal {
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.25);
    position: fixed;
    z-index: 1000;
    display: none;
}


.product-search-widget .modal-content {
    background-color: white;
    border: 2px solid black;
    padding: 2rem;
    margin: 15% auto;
    width: 60%;
    box-shadow: 5px 5px rgba(0,0,0,0.2);
    position: relative;
    min-width: 300px;
}

.modal-content .close {
    color: #000000;
    position: absolute;
    float: right;
    font-size: 40px;
    font-weight: bold;
    right: 1rem;
    top: 1rem;
    width: 40px;
    height: 40px;
    text-align: center;
}

.modal-content .close:hover,
.modal-content .close:focus {
    color: grey;
    text-decoration: none;
    cursor: pointer;
}

@media all and (max-width: 767px) {
    .product-search-widget .table-container {
        overflow-x: scroll;
        max-width: unset;
    }

    .product-search-widget .contact-products,
    .product-search-widget .contact-details {
        width: 100%;
        margin-right: 0;
    }

    .product-search-widget .contact-details {
        margin-top: 50px;
    }
}

@media all and (max-width: 1024px) {
    #to_the_form .text {
        display: none;
    }
}

#to_the_form {
    display: none;
    z-index: 100;
    border: 2px solid black;
    position: fixed;
    right: 0;
    top: 30%;
    color: white;
    background-color: black;
    padding: .5em 1em;
    box-shadow: 4px 4px rgba(0,0,0,0.2);
    transition: background-color 0.2s, color 0.2s;
}
#to_the_form .text {
    margin-left: 10px;
}

#to_the_form:hover {
    color: black;
    background-color: white;
}
