@keyframes woocr-spinner {
    to {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes woocr-spinner {
    to {
        -webkit-transform: rotate(360deg);
    }
}

.woocr_results, .woocr_selected {
    width: 100%;
}

.woocr_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;
}

.woocr_selected {
    display: inline-block;
}

.woocr_selected ul, .woocr_results ul {
    margin: 0;
    padding: 0;
}

.woocr_results ul > span {
    display: block;
    padding: 5px 10px;
}

.woocr_selected ul li .move {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    line-height: 30px;
    border-radius: 2px;
    margin-right: 5px;
    text-align: center;
    background-color: #eee;
    cursor: move;
}

.woocr_selected ul li .move:before {
    content: '\f545';
    font-family: dashicons;
    font-size: 10px;
    color: #999999;
}

.woocr_results li .move {
    display: none;
}

.woocr_selected ul li input {
    width: 50px !important;
}

.woocr_selected li, .woocr_results li {
    padding: 5px 10px;
    margin: 0;
    border-bottom: 1px dotted #eee;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.woocr_selected li {
    padding: 5px 0;
}

.woocr_selected li .name, .woocr_results li .name {
    flex-grow: 1;
}

.woocr_selected li .price, .woocr_results li .price {
    opacity: .5;
    font-style: italic;
}

.woocr_selected ul li.woocr_default {
    padding: 5px 3px;
    height: 30px;
    line-height: 30px;
    display: block;
}

.woocr_results a {
    color: #999999;
    pointer-events: none;
}

.woocr_selected li:last-child, .woocr_results li:last-child {
    border-bottom: none;
}

.woocr_selected li.out-of-stock .name, .woocr_results li.out-of-stock .name {
    text-decoration: line-through;
}

.woocr_selected li:hover, .woocr_results li:hover {
    background-color: #fafafa;
}

.woocr_selected li span.amount, .woocr_results li span.amount {
    display: inline-block;
}

.woocr_selected li:hover .woocr-remove, .woocr_results li:hover .woocr-remove {
    background-color: #ff6600;
    color: #fff;
}

.woocr_selected li span.type, .woocr_results li span.type {
    font-size: 10px;
    background-color: #fafafa;
    padding: 0 6px;
    border-radius: 2px;
    color: #999;
    text-align: right;
}

.woocr_selected li span.type {
    right: 35px;
}

.woocr_selected li span.qty {
    display: inline-block;
    margin-right: 10px;
    float: left;
}

.woocr_selected li del, .woocr_results li del {
    opacity: .5;
}

.woocr_selected li ins, .woocr_results li ins {
    text-decoration: none;
}

.woocr_selected li .woocr-remove, .woocr_results li .woocr-remove {
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 2px;
    text-align: center;
    background-color: #eee;
    cursor: pointer;
}

#woocr_settings input[type="search"], #woocr_settings input[type="text"], #woocr_settings input[type="number"] {
    font-size: 13px;
    height: 30px;
    line-height: 1;
}

#woocr_settings .w100 {
    position: relative;
    display: inline-block;
    width: 100%;
}

#woocr_settings .w100 input {
    width: 100%;
}

#woocr_settings textarea {
    width: 100%;
    font-size: 13px !important;
}

#woocr_settings .loading {
    position: absolute;
    right: 10px;
    top: 5px;
    z-index: 998;
}

#woocr_settings select {
    font-size: 13px;
}

.woocr_table table {
    width: 100%;
    padding: 10px;
    border-spacing: 0;
}

.woocr_table table tr.woocr_tr_space th, .woocr_table table tr.woocr_tr_space td {
    padding-top: 15px;
}

.woocr_table table tr th {
    font-size: 12px;
    font-weight: 400;
    text-align: left;
    width: 150px;
}

.woocr_table table tr td {
    text-align: left;
}

.woocr_table table tr td label {
    float: none;
    margin: 0;
    width: auto;
}

/* Smart Related */

.woocr_rules {
    box-sizing: border-box;
    padding: 10px 10px 0 10px;
    background-color: #f7f7f7;
    border-bottom: 1px solid #eee;
    position: relative;
}

.woocr_rules.woocr_rules_loading:before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .05);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9;
}

.woocr_rules.woocr_rules_loading:after {
    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: woocr-spinner 1s linear infinite;
    -webkit-animation: woocr-spinner 1s linear infinite;
}

.woocr_disabled {
    cursor: not-allowed;
    opacity: .5;
    pointer-events: none;
    filter: grayscale(100%);
}

.woocr_rules * {
    box-sizing: border-box;
}

.woocr_rules input[type="search"], .woocr_rules input[type="text"], .woocr_rules input[type="number"], .woocr_rules select {
    box-shadow: none;
    border-radius: 4px;
    height: 30px;
    line-height: 28px;
    padding: 0 10px;
    margin: 0 5px 0 0;
    border: 1px solid #ddd;
    box-sizing: border-box;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: left center;
    cursor: pointer;
    outline: none;
    -webkit-transition: all .2s;
    transition: all .2s;
    -webkit-appearance: none;
}

.woocr_rules select {
    display: inline-block;
    margin-right: 5px !important;
    padding-right: 30px;
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4ka1VAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAK6wAACusBgosNWgAAABZ0RVh0Q3JlYXRpb24gVGltZQAwMS8yOC8xNvemAy8AAAAcdEVYdFNvZnR3YXJlAEFkb2JlIEZpcmV3b3JrcyBDUzbovLKMAAAASklEQVQImW3MQQ2AMADF0DcMIAELSEACcibhy0ICEkACDrgAWcJ6bdOS5MCkzzlgxdWRF9YCSWZsGBu51Fr38uZN5JW/Z5L5CT9uO00UkFukHloAAAAASUVORK5CYII=") !important;
    background-size: auto;
    background-repeat: no-repeat !important;
    background-position: right 10px center;
}

.woocr_rules .select2-container {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    box-sizing: border-box !important;
    display: inline-block !important;
}

.woocr_rules .select2-search__field {
    width: auto !important;
    min-height: 24px !important;
    height: 24px !important;
    line-height: 24px !important;
    max-width: 100% !important;
    margin-top: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.woocr_rules .select2-container--default .select2-selection--multiple {
    border: 1px solid #dddddd;
}

.woocr_rules .select2-selection__rendered {
    padding: 0 2px !important;
    display: block !important;
}

.woocr_rules .select2-selection__rendered li {
    height: 24px !important;
    line-height: 22px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 2px !important;
    margin-bottom: 2px !important;
    margin-right: 2px !important;
}

.woocr_rules .select2-selection__rendered li:last-child {
    margin-bottom: 0;
}

.woocr_rules .woocr_rule {
    display: block;
    width: 100%;
    padding: 0;
    margin-bottom: 10px;
    background-color: #ffffff;
    border: 1px solid #eee;
    position: relative;
}

.woocr_rules .woocr_rule:hover {
    border: 1px solid #2271b1;
}

.woocr_rule_heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
    line-height: 40px;
    padding: 0 40px 0 0;
    border: none;
    cursor: pointer;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.woocr_rule_heading:after {
    content: "\f140";
    display: inline-block;
    width: 40px;
    height: 40px;
    text-align: center;
    font: normal 16px/40px dashicons;
    position: absolute;
    top: 0;
    right: 0;
    speak: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-decoration: none !important;
}

.woocr_rule.active .woocr_rule_heading:after {
    content: "\f142";
}

.woocr_rule_heading .woocr_rule_move {
    cursor: move;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    text-align: center;
}

.woocr_rule_heading .woocr_rule_move:before {
    content: "\f545";
    display: inline-block;
    width: 40px;
    height: 40px;
    text-align: center;
    font: normal 12px/40px dashicons;
    speak: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-decoration: none !important;
}

.woocr_rule_heading .woocr_rule_label {
    font-weight: 700;
    flex-grow: 1;
    text-overflow: ellipsis;
}

.woocr_rule_heading .woocr_rule_label span {
    font-weight: 400;
    font-size: 12px;
    line-height: 1;
    background-color: rgba(0, 0, 0, .07);
    padding: 4px 8px;
    margin: 0 5px;
    border-radius: 3px;
}

.woocr_rule_heading .woocr_rule_duplicate, .woocr_rule_heading .woocr_rule_remove {
    text-decoration: underline;
    margin: 0 5px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
}

.woocr_rule_heading .woocr_rule_remove {
    color: #ff4f3b;
}

.woocr_rule:hover .woocr_rule_duplicate, .woocr_rule:hover .woocr_rule_remove {
    opacity: 1;
    visibility: visible;
}

.woocr_rule_content {
    padding: 10px;
    display: none;
    border-top: 1px solid #eee;
}

.woocr_rule_content input[type="number"] {
    max-width: 80px;
}

.woocr_rule.active .woocr_rule_content {
    display: block;
}

.woocr_rule_content p.description {
    padding: 0 !important;
    margin: 0 !important;
    font-size: 12px !important;
    font-style: italic !important;
}

.woocr_rules .woocr_rule .woocr_tr {
    display: flex;
    align-items: center;
    border-bottom: 1px dashed #dddddd;
}

.woocr_rules .woocr_rule .woocr_tr:last-child {
    border-bottom: none;
}

.woocr_rules .woocr_rule .woocr_tr .woocr_th {
    width: 150px;
    flex: 0 0 150px;
    font-weight: 500;
}

.woocr_rules .woocr_rule .woocr_tr .woocr_th.woocr_th_full {
    width: 100%;
    flex: 0 0 100%;
    background-color: #fafafa;
}

.woocr_rules .woocr_rule .woocr_tr .woocr_td {
    flex-grow: 1;
}

.woocr_add_rule {
    padding: 10px 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.woocr_add_rule > div {
    display: flex;
    align-items: center;
}

.woocr_add_rule a {
    margin: 0 5px !important;
}

.woocr_rules .woocr_rule .woocr_hide {
    display: none;
}

.woocr_rules .woocr_rule .woocr_tr .woocr_th, .woocr_rules .woocr_rule .woocr_tr .woocr_td {
    padding: 10px 5px;
    text-align: start;
}

.woocr_rules .woocr_rule .woocr_tr .woocr_td div {
    display: inline-block;
    width: 100%;
}

.woocr_rules .woocr_conditional_remove {
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    position: absolute;
    top: 50%;
    right: 0;
    margin-top: -10px;
    cursor: pointer;
}

.woocr_rules .woocr_conditional_remove:hover {
    color: #e14d43;
}

.woocr_rules .woocr_conditionals {
    margin-bottom: 5px;
}

.woocr_rules .woocr_conditionals .woocr_conditional_item {
    padding: 5px 30px 5px 0;
    display: flex !important;
    align-items: center !important;
    position: relative;
}

.woocr_rules .woocr_conditionals .woocr_conditional_item:nth-child(2n+2) {
    background-color: #fafafa;
}

.woocr_rules .woocr_conditionals .woocr_conditional_item:first-child .woocr_conditional_remove {
    display: none;
}

.woocr_combinations {
    margin-bottom: 5px;
}

.woocr_combinations .woocr_combination {
    margin: 0;
    padding: 5px 30px 5px 0;
    display: flex !important;
    align-items: center !important;
    position: relative;
}

.woocr_combinations .woocr_combination > span:last-child {
    flex-grow: 1;
}

.woocr_combinations .woocr_combination:nth-child(2n+1) {
    background-color: #fafafa;
}

.woocr_combinations .woocr_combination .woocr_combination_remove {
    position: absolute;
    right: 0;
    top: 50%;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    display: inline-block;
    margin-top: -10px;
    cursor: pointer;
}

.woocr_combinations .woocr_combination .woocr_combination_remove:hover {
    color: #e14d43;
}

.hide_apply, .hide_get {
    display: none;
}

body.rtl .woocr_rules .woocr_rule .woocr_rule_remove {
    left: 0;
    right: auto;
}

body.rtl .woocr_rules .woocr_rule:hover {
    border-left: 1px dashed transparent;
    border-right: 1px solid #0073aa;
}

body.rtl .woocr_rules select {
    padding-left: 30px;
    padding-right: 10px;
    background-position: left 10px center;
}