@keyframes wpc-spinner {
    to {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes wpc-spinner {
    to {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes woosg-spinner {
    to {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes woosg-spinner {
    to {
        -webkit-transform: rotate(360deg);
    }
}

.woosg_results, .woosg_selected {
    width: 100%;
}

.woosg_results {
    position: absolute;
    left: 0;
    top: calc(100% - 1px);
    background-color: #fff;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    border: 1px solid #ddd;
    width: 100%;
    height: 100%;
    min-height: 196px;
    z-index: 9999999;
    overflow-y: auto;
}

.woosg_selected {
    display: inline-block;
}

.woosg_selected ul, .woosg_results ul {
    margin: 0;
    padding: 0;
}

.woosg_results ul > span {
    display: block;
    padding: 5px 10px;
}

.woosg_selected ul li {
    padding: 5px 0;
}

.woosg_selected li, .woosg_results li {
    padding: 5px 10px;
    margin: 0 -3px;
    border-bottom: 1px dotted #eee;
    display: flex;
    align-items: center;
    min-height: 30px;
    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;
}

.woosg_selected ul li.disabled, .woosg_results ul li.disabled {
    opacity: .5;
}

.woosg_selected ul li .move {
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    flex: 0 0 30px;
    border-radius: 2px;
    background-color: #eee;
    cursor: move;
}

.woosg_selected ul li .move:before {
    content: '\f545';
    font-family: dashicons;
    font-size: 10px;
    color: #999999;
}

.woosg_results li .move, .woosg_results li .qty {
    display: none;
}

.woosg_selected li span.img, .woosg_results li span.img {
    width: 30px;
    flex: 0 0 30px;
}

.woosg_selected li span.img img, .woosg_results li span.img img {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    display: block;
}

.woosg_selected li span.qty, .woosg_selected li span.tag {
    width: 70px;
    flex: 0 0 70px;
}

.woosg_selected ul li input, .woosg_selected ul li select {
    width: 100%;
}

.woosg_selected li > span, .woosg_results li > span {
    margin-left: 3px;
    margin-right: 3px;
}

.woosg_selected li:last-child, .woosg_results li:last-child {
    border-bottom: none;
}

.woosg_selected li.out-of-stock .name, .woosg_results li.out-of-stock .name {
    text-decoration: line-through;
}

.woosg_selected li:hover, .woosg_results li:hover {
    background-color: #fafafa;
}

.woosg_selected li span.amount, .woosg_results li span.amount {
    display: inline-block;
}

.woosg_selected li span.type, .woosg_results li span.type {
    font-size: 10px;
    min-width: 50px;
    color: #999;
    text-align: end;
    text-decoration: none;
}

.woosg_selected li span.data, .woosg_results li span.data {
    flex-grow: 1;
}

.woosg_selected li span.info, .woosg_results li span.info {
    font-size: 12px;
    font-style: italic;
    height: 18px;
    line-height: 18px;
    color: #999;
    background-color: #fafafa;
    text-decoration: none;
    padding: 0 6px;
    border-radius: 2px;
}

.woosg_results li span.type a {
    font-size: 10px;
    color: #999;
    text-decoration: none;
    pointer-events: none;
}

.woosg_selected li del, .woosg_results li del {
    opacity: .5;
}

.woosg_selected li del .amount, .woosg_results li del .amount {
    text-decoration: line-through;
}

.woosg_selected li ins, .woosg_results li ins {
    text-decoration: none;
}

.woosg_selected li .woosg-remove, .woosg_results li .woosg-remove {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    line-height: 30px;
    border-radius: 2px;
    text-align: center;
    background-color: #eee;
    cursor: pointer;
}

.woosg_selected li:hover .woosg-remove, .woosg_results li:hover .woosg-remove {
    background-color: #ff6600;
    color: #fff;
}

.woosg_selected.woosg_selected_loading {
    position: relative;
}

.woosg_selected.woosg_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: woosg-spinner 1s linear infinite;
    -webkit-animation: woosg-spinner 1s linear infinite;
}

.woosg_selected.woosg_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;
}

/* Settings */

#woosg_settings input[type="search"], #woosg_settings input[type="text"], #woosg_settings input[type="number"] {
    font-size: 13px;
    height: 30px;
    line-height: 1;
    float: none;
}

#woosg_settings .w100 {
    position: relative;
    display: inline-block;
    width: 100%;
}

#woosg_settings .w100 input {
    width: 100%;
}

#woosg_settings textarea {
    width: 100%;
    font-size: 13px !important;
}

#woosg_settings .loading {
    position: absolute;
    right: 10px;
    top: 5px;
    z-index: 998;
}

#woosg_settings select {
    font-size: 13px;
}

.woosg_table table {
    width: 100%;
    padding: 10px;
    border-spacing: 0;
    border-collapse: separate;
}

.woosg_table table tr.woosg_tr_space th, .woosg_table table tr.woosg_tr_space td {
    padding-top: 15px;
}

.woosg_table table tr th {
    font-size: 12px;
    font-weight: 400;
    text-align: start;
    width: 150px;
}

.woosg_table table tr td {
    text-align: start;
}

.woosg_table table tr td label {
    float: none;
    margin: 0;
    width: auto;
}

#woosg_set_regular_price, #woosg_set_sale_price, #woosg_set_shipping_class {
    cursor: pointer;
}

.woosg-parent .woocommerce-help-tip, .woosg-child .woocommerce-help-tip {
    display: none !important;
}

.woosg_tab a:before {
    content: '\f480' !important;
}

#woosg_meta_box .inside {
    max-height: 400px;
    overflow-y: auto;
}

#woosg_meta_box .inside ul {
    list-style: circle;
    margin-left: 18px;
}

.woosg-state {
    font-weight: normal;
    font-style: italic;
}

.wpc-premium, .wpc-premium a, .active[data-slug="wpc-grouped-product"] .premium a {
    color: #c9356e;
}

/* 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 */

#woosg_search_settings table {
    margin-left: -5px;
    margin-right: -5px;
}

#woosg_search_settings table th, #woosg_search_settings table td {
    font-weight: 400;
    text-align: start;
    padding: 5px;
}

#woosg_search_settings input, #woosg_search_settings select {
    min-width: 70px;
}

.woosg_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: woosg-spinner 1s linear infinite;
    -webkit-animation: woosg-spinner 1s linear infinite;
}

.woosg_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;
}