:root {
    --primary: #095098;
    --primary-dk: #037f00;
    --primary-lt: #59bc33;
    --secondary: #ff7300;
    --secondary-dk: #fc0a03;
    --secondary-lt: #ff8f28;
    --link: #0087cd;
    --link-hover: #fa8128;
    --white: #fff;
    --light: #f5f5f5;
    --flash: #e1e1e1;
    --gray: #a1a1a1;
    --dark: #999;
    --darkness: #444;
    --black: #111;
    --shadow: rgba(11, 11, 11, 0.1);
    --trans: all 350ms ease-in-out;
    --s-number: 6px;
    --m-number: 12px;
    --l-number: 24px;
}

.scrollbar {
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-color: #999 #d1d1d1;
    scrollbar-width: thin;
}

.scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.scrollbar::-webkit-scrollbar-thumb {
    width: 8px;
    border-radius: 4px;
    background-color: #c1c1c1;
}

.scrollbar::-webkit-scrollbar-track {
    padding: 6px;
}

*,
:before,
:after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.content {
    padding: 12px;
}
.module-title {
    display: block;
    font-weight: 600;
    font-size: calc(var(--m-number) + 2);
    margin-bottom: calc(var(--s-number));
}
.interaction-filter {
    padding: var(--m-number);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    grid-gap: var(--s-number) var(--l-number);
}

.interaction-filter label {
    font-weight: normal;
    font-size: 1.3rem;
    line-height: 1.1;
}

.md-ink-ripple {
    display: none;
}
.md-button.md-icon-button md-icon,
button.md-button.md-fab md-icon {
    display: none;
}

.form-input {
    display: block;
    width: 100%;
    padding: var(--s-number) var(--m-number);
    font-size: var(--m-number);
    line-height: 1.2857143;
    background-color: var(--white);
    background-image: none;
    border: 1px solid var(--flash);
    border-radius: 3px;
    -webkit-transition: border-color ease-in-out 0.15s, -webkit-box-shadow ease-in-out 0.15s;
    transition: border-color ease-in-out 0.15s, -webkit-box-shadow ease-in-out 0.15s;
    transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
    transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s, -webkit-box-shadow ease-in-out 0.15s;
}

.form-input:focus {
    color: #495057;
    background-color: #fff;
    outline: 0;
    border: 1px solid var(--primary);
}

.form-input::-webkit-input-placeholder {
    color: var(--gray);
    opacity: 1;
}

.form-input::-moz-placeholder {
    color: var(--gray);
    opacity: 1;
}

.form-input::-ms-input-placeholder {
    color: var(--gray);
    opacity: 1;
}

.form-input::placeholder {
    color: var(--gray);
    opacity: 1;
}

a {
    color: var(--link);
    text-decoration: none;
    border: none;
    outline: 0;
    cursor: pointer;
    transition: var(--trans);
    display: initial;
}

a:hover {
    color: var(--link-hover);
}

img {
    max-width: 100%;
    object-fit: contain;
    border: none;
    font-size: 11px;
    color: var(--gray);
    display: block;
}

.button {
    display: inline-block;
    vertical-align: middle;
    margin: 0;
    padding: var(--s-number) var(--m-number);
    border: 1px solid transparent;
    border-radius: 3px;
    -webkit-transition: background-color 0.25s ease-out, color 0.25s ease-out;
    transition: background-color 0.25s ease-out, color 0.25s ease-out;
    font-family: inherit;
    -webkit-appearance: none;
    line-height: 1;
    cursor: pointer;
    outline: none;
    user-select: none;
    background-color: var(--white);
    color: var(--dark);
    font-weight: 400;
}

.button:hover {
    outline: none;
}

.button-outline {
    border-color: var(--flash);
    color: var(--link);
}

.primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.primary:hover {
    color: #fff;
    background-color: #0069d9;
    border-color: #0062cc;
}

.secondary {
    color: #fff;
    background-color: #28a745;
    border-color: #28a745;
}

.secondary:hover {
    color: #fff;
    background-color: #218838;
    border-color: #1e7e34;
}

.danger,
.danger:hover {
    color: var(--white);
    background-color: #ff3f3f;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.warning {
    color: var(--white);
    background-color: #ffa800;
    border-color: #ffa800;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.warning:hover {
    color: var(--white);
    background-color: #e69700;
    border-color: #e69700;
}

.dark {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.dark:hover {
    color: var(--white);
    background-color: #5a6268;
    border-color: #545b62;
}

select {
    background-color: var(--white);
    border: 1px solid var(--flash);
    border-radius: 4px;
    display: inline-block;
    font: inherit;
    padding: var(--s-number) var(--m-number);
    width: 100%;
    margin: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, gray 50%), linear-gradient(135deg, gray 50%, transparent 50%), linear-gradient(to right, #ccc, #ccc);
    background-position: calc(100% - 12px) calc(1em + 2px), calc(100% - 7px) calc(1em + 2px), calc(100% - 2em) 0.5em;
    background-size: 5px 5px, 5px 5px, 1px 1.5em;
    background-repeat: no-repeat;
}

select:focus {
    background-image: linear-gradient(45deg, green 50%, transparent 50%), linear-gradient(135deg, transparent 50%, green 50%), linear-gradient(to right, #ccc, #ccc);
    background-position: calc(100% - 15px) 1em, calc(100% - 20px) 1em, calc(100% - 2.5em) 0.5em;
    background-size: 5px 5px, 5px 5px, 1px 1.5em;
    background-repeat: no-repeat;
    outline: 0;
    border-color: #80bdff;
    outline: 0;
    -webkit-box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #000;
}

.flex-b {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
}

.flex-w {
    flex-wrap: wrap;
}

.flex-dc {
    flex-direction: column;
}

.flex-dc-re {
    flex-direction: column-reverse;
}

.flex-dr-re {
    flex-direction: row-reverse;
}

.flex-c {
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.flex-e {
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
}

.flex-s {
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.align-c {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.align-l {
    text-align: left;
}

.align-s {
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
}

.column {
    flex-direction: column;
}

.action-group .button svg {
    margin-right: var(--s-number);
}
.action-group .button + .button {
    margin-left: var(--m-number);
}

.md-datepicker-input-container {
    position: initial;
    display: block;
}

.w-label {
    width: 70px;
}

.w-label + .form-input,
.w-label + select {
    width: calc(100% - 80px);
    margin-left: 10px;
}

/* .interaction-module-list-wrapper */
.interaction-module-list-wrapper {
    margin-top: 25px;
}

.interaction-module-list-table {
    border: none;
    border-collapse: collapse;
    width: 100%;
}

.interaction-module-list-table tbody,
.product-advertise-head {
    background: #f6f6f6;
}

.interaction-module-list-table tbody tr {
    border: 1px solid #e1e1e1;
    vertical-align: top;
}

.interaction-module-list-table tbody tr + tr {
    border-top: 1px solid #e1e1e1;
}

.interaction-module-list-table tbody th,
.product-advertise-head th {
    text-align: center;
    padding: calc(var(--s-number) / 2) var(--s-number);
    vertical-align: middle;
}
.interaction-module-list-table tbody th + th {
    border-left: 1px solid #e1e1e1;
}

/* pagination */
.pagination-box {
    margin: var(--m-number) auto var(--m-number);
    padding-top: var(--m-number);
    display: flex;
    justify-content: flex-start;
    align-content: center;
}

.pagination {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.pagination li {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: var(--s-number);
    background-color: #efefef;
    border-radius: 3px;
    user-select: none;
    cursor: pointer;
    padding: calc(var(--m-number) - 4px) var(--m-number);
    line-height: 1;
}

.pagination li:hover {
    color: var(--primary);
}

.pagination .disable {
    display: none;
}

.pagination .active {
    color: var(--dark);
    cursor: pointer;
    pointer-events: none;
}

.pagination .disable {
    background-color: var(--dark);
    color: var(--white);
    cursor: default;
    pointer-events: none;
}

.radio-input,
.checkbox-input {
    opacity: 0;
    visibility: hidden;
    position: absolute;
}

.input-type-radio {
    width: 18px;
    height: 18px;
    display: block;
    border-radius: 16px;
    border: 2px solid var(--dark);
    position: relative;
    transition: var(--trans);
}

.input-type-checkbox {
    width: 18px;
    height: 18px;
    display: block;
    border: 2px solid var(--dark);
    position: relative;
    transition: var(--trans);
}

.checkbox-label {
    display: flex;
    align-items: center;
    margin-right: 5px;
}

.checkbox-label span {
    padding-left: 7px;
    padding-right: 7px;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 5px;
}

.input-type-radio::before {
    content: "";
    display: block;
    position: absolute;
    top: calc(50% - 4px);
    left: calc(50% - 4px);
    width: 8px;
    height: 8px;
    border-radius: 8px;
    opacity: 0;
    background-color: var(--dark);
}

.input-type-checkbox::after,
.input-type-checkbox::before {
    content: "";
    width: 2px;
    height: 10px;
    display: block;
    background-color: var(--primary);
    position: absolute;
    opacity: 0;
}

.input-type-checkbox::after {
    transform: rotate(45deg);
    top: 3px;
    left: 8px;
}

.input-type-checkbox::before {
    transform: rotate(-45deg);
    top: 7px;
    left: 4px;
    height: 5px;
}

.checkbox-input:checked ~ .input-type-checkbox {
    border-color: var(--primary);
}

.checkbox-input:checked ~ .input-type-checkbox::after,
.checkbox-input:checked ~ .input-type-checkbox::before {
    opacity: 1;
}

.radio-input:checked ~ .input-type-radio {
    border-color: var(--primary);
}

.radio-input:checked ~ .input-type-radio::before {
    background-color: var(--primary);
    opacity: 1;
}

.product-advertise-body tr,
.product-advertise-body td {
    background: var(--white);
}
.product-advertise-body td {
    padding: var(--s-number) var(--m-number);
}

.product-advertise-body tr:nth-child(even) td {
    background: var(--light);
}

.col-w30 {
    width: 30px;
    min-width: 30px;
}

.col-w40 {
    width: 40px;
    min-width: 40px;
}

.col-w60 {
    width: 60px;
    min-width: 60px;
}

.col-w70 {
    width: 70px;
    min-width: 70px;
}

.col-w80 {
    width: 80px;
    min-width: 80px;
}
.col-w100 {
    width: 100px;
    min-width: 100px;
}
.col-w140 {
    width: 140px;
    min-width: 140px;
}

.item-key {
    width: 105px;
    min-width: 105px;
}
.item-value {
    width: calc(100% - 105px);
    padding-left: var(--m-number);
    max-width: 200px;
}

/** Loading */
.loading {
    position: absolute;
    /* top: 50%; */
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 98%;
    height: 100%;
}

.loading_line_wrapper {
    width: 100%;
    height: 1px;
    position: relative;
    top: 0px;
    left: 0px;
    bottom: auto;
    right: auto;
}

.loading_line {
    position: relative;
    top: 0px;
    left: 0px;
    bottom: auto;
    right: auto;
    width: 100%;
    height: 100%;
    transform-origin: 100% 0%;
    animation: kf_loading_line 2s cubic-bezier(0.645, 0.045, 0.355, 1) 0s infinite;
}
.loading_line .loading_line_inner {
    position: absolute;
    top: 0px;
    left: 0px;
    bottom: auto;
    right: auto;
    width: 100%;
    height: 100%;
    background: #007bff;
    transform-origin: 0% 0%;
}

.loading_line_inner--1 {
    opacity: 0;
    animation: kf_loading_line_inner--1 2s cubic-bezier(0.645, 0.045, 0.355, 1) 0s infinite;
}

.loading_line_inner--2 {
    opacity: 1;
    animation: kf_loading_line_inner--2 2s cubic-bezier(0.645, 0.045, 0.355, 1) 0s infinite;
}

.loading_line_inner {
    position: absolute;
    top: 0px;
    left: 0px;
    bottom: auto;
    right: auto;
    width: 100%;
    height: 100%;
    background-color: red;
    transform-origin: 0% 0%;
}

@keyframes kf_loading_line {
    0% {
        transform: scaleX(1);
    }
    50% {
        transform: scaleX(1);
    }
    100% {
        transform: scaleX(0);
    }
}
@keyframes kf_loading_line_inner--1 {
    0% {
        transform: scaleX(0);
    }
    25% {
        transform: scaleX(1);
    }
    100% {
        transform: scaleX(1);
    }
}
@keyframes kf_loading_line_inner--2 {
    0% {
        transform: scaleX(0);
    }
    25% {
        transform: scaleX(0);
    }
    50% {
        transform: scaleX(1);
    }
    100% {
        transform: scaleX(1);
    }
}

.product-advertise-wrapper {
    max-height: 165px;
}

.product-advertise-content + .product-advertise-content {
    margin-top: var(--m-number);
    border-top: 1px solid #e1e1e1;
    padding-top: var(--m-number);
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 21px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 19px;
    width: 20px;
    left: 1px;
    bottom: 1px;
    background-color: white;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

input:checked + .slider {
    background-color: #2196f3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196f3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(18px);
    -ms-transform: translateX(18px);
    transform: translateX(18px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.pad-20 {
    padding: 20px 0 20px 0;
}

.product-react tr {
    min-height: 80px;
    height: 45px;
    vertical-align: middle !important;
}

.content table td,
.content table th {
    line-height: 1.05;
}

.column-right {
    text-align: right;
}

.sort-image {
    cursor: pointer;
}

.row-discount-form {
    position: relative;
    overflow: visible;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    flex-wrap: wrap;
}

.info-discount-box {
    position: sticky;
    top: 112px;
}

.box {
    border-top: none;
}

input[type="radio"] {
    margin: 2px 0 0;
}

.input-qty {
    width: 35%;
}

.form-group {
    padding: 0 10px 0 10px;
}

.box-header {
    padding: 10px 10px 10px 20px;
}

.product-config-action {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    margin-bottom: 25px;
}
.edit-config-action {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}
.show-variables-label {
    position: relative;
    user-select: none;
    margin: 0 10px 0 6px;
    height: 22px;
    cursor: pointer;
}
.show-variables-input {
    position: absolute;
    opacity: 0;
}
.show-variables-toggle {
    width: 40px;
    transform: translateY(5px);
    height: 14px;
    border: 1px solid #d1d1d1;
    position: relative;
    border-radius: 16px;
    transition: all 300ms ease-in-out;
}

.show-variables-label:hover .show-variables-toggle {
    border-color: #00c0ef !important;
}
.show-variables-toggle span {
    width: 22px;
    height: 22px;
    border-radius: 24px;
    display: block;
    position: absolute;
    top: -5px;
    left: -1px;
    transition: all 300ms ease-in-out;
    background-color: #fff;
    border: 1px solid #d1d1d1;
}

.show-variables-input:checked ~ .show-variables-toggle {
    border-color: #00c0ef !important;
    background-color: #00c0ef;
}

.show-variables-input:checked ~ .show-variables-toggle span {
    left: calc(100% - 21px);
    background-color: #00c0ef;
    border-color: #fff;
    box-shadow: 0 2px 6px rgba(11 11 11 / 8%);
}

.product-config-action .remove-this-config {
    display: flex!important;
    justify-content: center;
    align-items: center;;
    width: 24px;
    height: 24px;
    border-radius: 32px;
    background-color: #fc0a03;
    line-height: 1;
    font-size: 14px;
    font-weight: 400;
    color: #fff !important;
    cursor: pointer;

}