/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.custom-product-list .pagination {
    text-align: center;
    margin: 20px 0;
}

.custom-product-list .pagination a,
.custom-product-list .pagination span {
    margin: 0 5px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
}

.custom-product-list .pagination .current {
    background-color: #333;
    color: #fff;
}

.loading {
    border: 2px solid #f3f3f3;
    /* Light grey */
    border-top: 3px solid #3498db;
    /* Blue */
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 2s linear infinite;
}

.loading2 {
    border: 2px solid #fff;
    border-top-width: 2px;
    border-top-style: solid;
    border-top-color: rgb(255, 255, 255);
    border-top: 2px solid #b7b7b7;
    border-radius: 61%;
    width: 20px;
    height: 20px;
    animation: spin 2s linear infinite;
    margin-right: 10px;
}




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

    100% {
        transform: rotate(360deg);
    }
}



.custom-product-list .products .product-item .product-thumbnail {
    height: 100px;
    width: 100px;
}


.custom-product-list .products .product-item .quantity {
    display: flex;
}





.custom-product-list .products .product-item .quantity input[type="button"]:hover {
    color: #fff;
    background-color: var(--wd-primary-color);
    border-color: var(--wd-primary-color);
}

.custom-product-list .products .product-item .quantity input[type="button"] {
    padding: 0 5px;
    min-width: 25px;
    min-height: unset;
    height: 42px;
    border: var(--wd-form-brd-width) solid var(--wd-form-brd-color);
    background: var(--wd-form-bg);
    box-shadow: none;
}


.custom-product-list .products .product-item .quantity input[type="number"] {
    border-radius: 0;
    border-right: 0;
    border-left: 0;
}



.custom-product-list .products .product-item .quantity .minus {
    border-start-start-radius: var(--wd-form-brd-radius);
    border-end-start-radius: var(--wd-form-brd-radius);
}

.custom-product-list .products .product-item .quantity .plus {
    border-end-end-radius: var(--wd-form-brd-radius);
    border-start-end-radius: var(--wd-form-brd-radius);
}

.custom-product-list .products .product-item td {
    padding: 0;
}

.custom-product-list .products .product-item .change_to_cart_button {
    flex: 0 0 auto;
    border-radius: var(--btn-accented-brd-radius);
    color: var(--btn-accented-color);
    box-shadow: var(--btn-accented-box-shadow);
    background-color: var(--btn-accented-bgcolor);
    text-transform: var(--btn-accented-transform, var(--btn-transform));
    font-weight: var(--btn-accented-font-weight, var(--btn-font-weight));
    font-family: var(--btn-accented-font-family, var(--btn-font-family));
    font-style: var(--btn-accented-font-style, var(--btn-font-style));
    margin-right: 10px;
    width: 160px;
}

.custom-product-list .products .product-item .change_to_cart_button.change {
    background-color: var(--notices-warning-bg);
}





.custom-product-list .products .product-item .product-quantity>div {
    display: flex;
    justify-content: end;
}

.custom-product-list {
    width: 100%;
}

.custom-product-list .products .product-item .current-qty {
    padding: 5px;
    width: fit-content;
    border-radius: 5px;
    min-width: 40px;
    text-align: center;
    background-color: #f0f0f0;
}


.custom-product-list .products .product-item .current-qty.in-cart {
    background-color: black;
    color: white;
}

.custom-product-list form .product-search {
    display: flex;
    align-items: center;
}

.custom-product-list form #product-search {
    width: unset;
    flex-grow: 1;
}

.custom-product-list form .loading {
    position: absolute;
    right: 10px;
    border: 2px solid white;
    border-top: 3px solid #3498db;
}

.custom-product-list form button {
    position: relative;
    width: 200px;
    border-radius: 5px;
    margin-right: 10px;
}

.custom-product-list form label {
    margin-right: 10px;
    margin-left: 10px;
}

.custom-product-list form {
    margin-bottom: 70px;
}

.wd-my-account-links .report-page-link a::before {
    content: "\f138" !important;
    ;
}

.pacc-stock-shortage-box {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 16px;
    border-radius: 6px;
    font-size: 15px;
    flex-grow: 1;
}
.pacc-stock-shortage-box table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.pacc-stock-shortage-box th, .pacc-stock-shortage-box td {
    border: 1px solid #ffeeba;
    padding: 6px 10px;
}
.pacc-stock-shortage-box th {
    background: #ffeeba;
    font-weight: bold;
}


@media only screen and (max-width: 600px) {
    .custom-product-list .products thead {
        display: none;
    }

    .custom-product-list .products .product-item {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        border: 1px solid #e1e1e1;
        border-radius: 5px;
        margin-bottom: 15px;
        padding: 12px;
        background-color: #f2f2f2;
    }

    .custom-product-list .products .product-item td {
        border: 0;
    }

    .custom-product-list .products .product-item .product-thumbnail {
        width: 100%;
    }

    .custom-product-list .products .product-item .pacc-product-title {
        width: 100%;
        font-size: 1.6rem;
    }

    .custom-product-list .products .product-item .pacc-product-title h3 {
        margin-bottom: 0;
    }

    .custom-product-list .products .product-item .product-price {
        width: 100%;
        padding: 10px 0 10px 0;
        font-size: 24px;
    }

    .custom-product-list .products .product-item .product-current-qty {
        width: 20%;
        display: flex;
        justify-content: start;
        align-items: start;
    }

    .custom-product-list .products .product-item .product-current-qty .current-qty {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .custom-product-list .products .product-item .product-quantity {
        width: 80%;
    }

    .custom-product-list form .product-search {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .custom-product-list form .product-search #product-search {
        width: 100%;
        margin-bottom: 15px;
    }
}


/** 
 * Dashicons spin animation
 */
.dashicons-spin {
    animation: dashicons-spin 1s infinite linear;
    display: inline-block;
    vertical-align: middle;
}

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