@keyframes wpc-spinner {
    to {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes wpc-spinner {
    to {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes woofs-spinner {
    to {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes woofs-spinner {
    to {
        -webkit-transform: rotate(360deg);
    }
}

.woofs_table .woocommerce-help-tip {
    margin: 0 !important;
    font-size: 16px;
}

.woofs_results, .woofs_selected {
    width: 100%;
}

.woofs_results {
    position: absolute;
    left: 0;
    top: 100%;
    background-color: #ffffff;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    border: 1px solid #dddddd;
    width: 100%;
    height: 100%;
    min-height: 200px;
    z-index: 9999999;
    overflow-y: auto;
}

.woofs_selected {
    display: inline-block;
}

.woofs_selected li, .woofs_results li {
    padding: 5px 0;
    margin: 0 -3px;
    border-bottom: 1px dotted #eeeeee;
    min-height: 30px;
    display: flex;
    align-items: center;
    position: relative;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.woofs_selected li.disabled, .woofs_results li.disabled {
    opacity: .5;
    pointer-events: none;
}

.woofs_selected li.out-of-stock .data, .woofs_results li.out-of-stock .data {
    text-decoration: line-through;
}

.woofs_results li {
    padding: 5px 7px;
}

.woofs_results li .type a {
    color: #999;
    text-decoration: none;
    pointer-events: none;
}

.woofs_results ul {
    margin: 0;
    padding: 0;
}

.woofs_results ul > span {
    display: block;
    padding: 5px 10px;
}

.woofs_results ul li .move, .woofs_results ul li .woofs-move, .woofs_results ul li .price, .woofs_results ul li .qty {
    display: none;
}

.woofs_selected ul {
    margin: 0;
    padding: 0;
}

.woofs_selected ul li {
    padding: 5px 0;
}

.woofs_selected ul li .move, .woofs_selected ul li .woofs-move {
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 2px;
    text-align: center;
    flex: 0 0 30px;
    background-color: #eeeeee;
    cursor: move;
}

.woofs_selected ul li .move:before, .woofs_selected ul li .woofs-move:before {
    content: '\f545';
    font-family: dashicons;
    font-size: 10px;
    color: #999999;
}

.woofs_selected ul li input {
    width: 50px !important;
}

.woofs_selected li > span, .woofs_results li > span {
    margin-left: 3px;
    margin-right: 3px;
}

.woofs_selected li:hover, .woofs_results li:hover {
    background-color: #fafafa;
}

.woofs_selected li:hover .woofs-remove, .woofs_results li:hover .woofs-remove {
    background-color: #ff6600;
    color: #ffffff;
}

.woofs_selected li span.price, .woofs_selected li span.qty {
    display: inline-block;
    width: 50px;
    flex: 0 0 50px;
}

.woofs_selected li span.img, .woofs_results li span.img {
    width: 30px;
    flex: 0 0 30px;
}

.woofs_selected li span.img img, .woofs_results li span.img img {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    display: block;
}

.woofs_selected li del, .woofs_results li del {
    opacity: .5;
}

.woofs_selected li ins, .woofs_results li ins {
    text-decoration: none;
}

.woofs_selected li span.data, .woofs_results li span.data {
    flex-grow: 1;
}

.woofs_selected li .woofs-remove, .woofs_results li .woofs-remove {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    line-height: 30px;
    border-radius: 2px;
    text-align: center;
    background-color: #eeeeee;
    cursor: pointer;
}

.woofs_selected li .woofs-remove {
    right: 0;
}

.woofs_selected li span.type, .woofs_results li span.type {
    font-size: 10px;
    padding: 0;
    color: #999;
    min-width: 40px;
    text-align: end;
}

.woofs_selected li.woofs-li-text span.tag {
    width: 106px;
    flex: 0 0 106px;
}

.woofs_selected li.woofs-li-text input, .woofs_selected li.woofs-li-text select {
    width: 100% !important;
}

.woofs_selected.woofs_selected_loading {
    position: relative;
}

.woofs_selected.woofs_selected_loading:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 10;
    display: block;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    margin-left: -15px;
    border-width: 4px;
    border-style: solid;
    border-radius: 100%;
    border-top-color: rgba(0, 0, 0, 0.5);
    border-left-color: rgba(0, 0, 0, 0.1);
    border-bottom-color: rgba(0, 0, 0, 0.1);
    border-right-color: rgba(0, 0, 0, 0.1);
    animation: woofs-spinner 1s linear infinite;
    -webkit-animation: woofs-spinner 1s linear infinite;
}

.woofs_selected.woofs_selected_loading:after {
    content: "";
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9;
    pointer-events: none;
}

#woofs_regular_price {
    min-width: 60px;
    display: inline-block;
}

/* Notice */

.woofs-notice {
    background-color: #fef9e7;
    border-left: 4px solid #f0c33c;
    padding: 8px 12px;
    margin: 5px 0 0;
    border-radius: 4px;
    font-size: 13px !important;
    line-height: 1.5;
    color: #6d5c10;
}

.woofs-notice:before {
    content: "\f348";
    font-family: dashicons;
    margin-right: 6px;
    color: #d4a017;
    font-size: 16px;
    vertical-align: text-bottom;
}

.woofs-notice a {
    color: #9a7b0a;
    font-weight: 600;
    text-decoration: underline;
}

.woofs-notice a:hover {
    color: #6d5c10;
}

/* Settings */

#woofs_settings input[type="search"], #woofs_settings input[type="text"], #woofs_settings input[type="number"] {
    font-size: 13px;
    height: 30px;
    line-height: 1;
}

#woofs_settings label {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
}

#woofs_settings .w100 {
    position: relative;
    display: inline-block;
    width: 100%;
}

#woofs_settings .w100 input {
    width: 100%;
}

#woofs_settings .loading {
    position: absolute;
    right: 10px;
    top: 5px;
    z-index: 998;
}

.woofs_table table {
    width: 100%;
    padding: 10px;
    border-spacing: 0;
    border-collapse: separate;
}

.woofs_table table tr.woofs_tr_space th, .woofs_table table tr.woofs_tr_space td {
    padding-top: 15px;
}

.woofs_table table tr th {
    font-size: 12px;
    font-weight: 400;
    text-align: start;
    width: 150px;
}

.woofs_table table tr td {
    text-align: start;
}

#woofs_set_regular_price, #woofs_set_sale_price {
    cursor: pointer;
}

.woofs-parent .woocommerce-help-tip, .woofs-child .woocommerce-help-tip {
    display: none !important;
}

.woofs_tab a:before {
    content: '\f103' !important;
}

.woofs-state {
    font-weight: normal;
    font-style: italic;
}

.wpc-premium, .wpc-premium a, .active[data-slug="wpc-force-sells"] .premium a {
    color: #c9356e;
}

.woofs_options .count {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* WPC Dialog */

.ui-dialog.wpc-dialog {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100102;
    background-color: #fff;
    border: 1px solid #dfdfdf;
    border-radius: 0;
    -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, .1);
    box-shadow: 0 5px 10px rgba(0, 0, 0, .1);
    color: #3c434a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 13px;
    line-height: 1.4em;
}

.ui-dialog.wpc-dialog .ui-dialog-titlebar {
    background: #fcfcfc;
    border-width: 0 0 1px 0;
    border-style: solid;
    border-color: #dfdfdf;
    border-radius: 0;
    height: 36px;
    font-size: 16px;
    font-weight: 600;
    line-height: 36px;
    padding: 0 36px 0 16px
}

.ui-dialog.wpc-dialog .ui-dialog-titlebar .ui-dialog-title {
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    height: 36px;
    line-height: 36px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ui-dialog.wpc-dialog .ui-dialog-titlebar .ui-dialog-titlebar-close {
    background: 0 0;
    border: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    color: #666;
    cursor: pointer;
    display: block;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 0;
    right: 0;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    outline: none;
    overflow: hidden;
    font-size: 0;
}

.ui-dialog.wpc-dialog .ui-dialog-titlebar .ui-dialog-titlebar-close:before {
    font: 400 20px/1 dashicons;
    vertical-align: top;
    speak: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 36px;
    width: 36px;
    height: 36px;
    content: '\f158';
}

.ui-dialog.wpc-dialog .ui-dialog-titlebar .ui-dialog-titlebar-close:hover {
    color: #00a0d2;
}

.ui-dialog.wpc-dialog .ui-dialog-titlebar .ui-dialog-titlebar-close span {
    display: none;
}

.ui-dialog.wpc-dialog .ui-dialog-content {
    padding: 16px;
    overflow: auto;
}

/* Search settings */

#woofs_search_settings table {
    margin-left: -5px;
    margin-right: -5px;
}

#woofs_search_settings table th, #woofs_search_settings table td {
    font-weight: 400;
    text-align: start;
    padding: 5px;
}

#woofs_search_settings input, #woofs_search_settings select {
    min-width: 70px;
}

.woofs_search_settings_updating:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 10;
    display: block;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    margin-left: -15px;
    border-width: 4px;
    border-style: solid;
    border-radius: 100%;
    border-top-color: rgba(0, 0, 0, .5);
    border-left-color: rgba(0, 0, 0, .1);
    border-bottom-color: rgba(0, 0, 0, .1);
    border-right-color: rgba(0, 0, 0, .1);
    animation: woofs-spinner 1s linear infinite;
    -webkit-animation: woofs-spinner 1s linear infinite;
}

.woofs_search_settings_updating:after {
    content: '';
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .05);
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9;
    pointer-events: none;
}