/* loading css */

#wpd_product_loader {
    display: none;
    text-align: center;
    width: 100%;
    padding: 100px;
}

#product-loading-text {
    display: block;
    margin-bottom: 10px;
}

.show-product-loader #wpd_production_option_footer, .show-product-loader #wpd_production_option_body, .show-product-loader #cart_drawer_main_container, .show-product-loader #wpd_product_quick_view_main_container, .show-product-loader #wpd-grid-content-wrapper, .show-product-loader #showMoreRow, .show-no-product-section #wpd-grid-content-wrapper, .show-no-product-section #showMoreRow {
    display: none;
}

.show-product-loader #wpd_product_loader {
    display: block;
}

#wpd_product_loader_progress::-webkit-progress-bar {
    background-color: white;
}

#wpd_product_loader_progress {
    color: black;
    background-color: white;
    border: 1px solid black;
    height: 5px;
    border-radius: 3px;
    width: 250px;
    border-style: outset;
    display: inline-block;
}

#wpd_product_loader_progress {
    color: black;
}

#desc_loader #wpd_product_loader_progress {
    width: 90%;
}

/* No products found section */

#wpd_no_product_found {
    display: none;
    text-align: center;
    width: 100%;
    padding: 100px;
}

#no_product_found_message {
    max-width: 280px;
    margin: 0 auto;
}

#no_product_found_header {
    display: block;
    margin-bottom: 5px;
    margin-top: 15px;
    font-weight: bold;
}

.show-no-product-section table, .show-no-product-section .table-wrapper {
    display: none;
}

.show-no-product-section #wpd_no_product_found {
    display: block;
}

/* Toast */

#add_to_cart_toast_wrapper {
    display: none;
    position: fixed;
    background: #00a47c;
    width: auto;
    bottom: 20px;
    left: 51%;
    transform: translate(-50%, 0);
    color: white;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    padding: 12px 32px;
    z-index: 9999999999;
    font-weight: bold;
}

#wpd_cart_item_added {
    margin-right: 5px;
}

#cart_link {
    color: #FFFFFF80;
}

.wpd-error-toast #cart_link {
    display: none;
}

#add_to_cart_toast_wrapper.wpd-error-toast {
    background: #FF0000CC !important;
}

/* General */

.wpd-relative-position {
    position: relative;
}

#add_to_cart_toast_wrapper.wpd-error-toast {
    background: #FF0000CC !important;
}

button {
    cursor: pointer;
}

#MainContent, #PageContainer {
    transform: none !important;
    will-change: op !important;
    overflow: unset;
}

main.main-content {
    max-width: 100%;
    padding: 0;
}

@keyframes loadingSpinner {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes loadingSpinner {
    from {
        -webkit-transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
    }
}

#wpd_main_container {
    width: 90%;
    margin: 35px auto;
}

#showMoreRow td, #noMoreProductsToShow td {
    text-align: center !important;
}

input[type="text"],
input[type="number"] {
    font-family: inherit;
}

.wpd-quantity-minus, .wpd-quantity-plus {
    width: 16px;
    height: 16px;
}

.wpd-back-button:hover {
    box-shadow: 0px 0px 0px 1px #808080;
}

/* Minimal theme css */

#wpd-grid-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    column-gap: 48px;
    row-gap: 40px;
}

.wpd-grid-item {
    cursor: pointer;
    width: calc(25% - 48px * 3/ 4);
    max-width: calc(25% - 48px * 3/ 4);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.wpd-mini-layout .wpd-grid-item {
    width: calc(50% - 5px);
    max-width: calc(50% - 5px);
}

.wpd-mini-layout #wpd-grid-content-wrapper {
    column-gap: 10px;
}

.loader-wrapper {
    display: none;
    position: absolute;
    left: 50%;
}

.show-loader-spinner {
    display: block !important;
    border: 4px solid black;
    border-top-color: rgba(0, 0, 0, 0);
    border-left-color: rgba(0, 0, 0, 0);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    animation: loadingSpinner 0.7s infinite linear;
    -webkit-animation: loadingSpinner 0.7s infinite linear;
    position: relative;
    left: -50%;
}

.button-loading .loader-wrapper {
    display: block !important;
}

.button-loading .button-text {
    opacity: 0;
}


@keyframes loadingSpinner {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes loadingSpinner {
    from {
        -webkit-transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
    }
}

/* hide theme cart drawer */
#ajaxifyModal, #ajaxifyCart-overlay, cart-drawer, #CartDrawer, form#cart, form#mini-cart {
    display: none !important;
}

#wpd-grid-product-sku-wrapper:empty, .wpd-grid-product-sku-wrapper:empty, .wpd-cart-item-sku-wrapper:empty{
    display: none;
}

/* mobile css */
@media only screen and (max-width: 600px) {
    #wpd-grid-content-wrapper {
        column-gap: 10px;
    }

    .wpd-grid-item {
        width: calc(50% - 5px);
        max-width: calc(50% - 5px);
    }

    #cart_drawer_popup {
        width: 100% !important;
    }

    #wpd_product_loader {
        padding: 0;
    }
}