/* Quantity input */
.quantity {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 140px;
    padding: 16px 29px;
    border-radius: 4px;
    border: 1px solid #E2E6EB;
}

.quantity input {
    display: block;
    width: 38px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    color: var(--color-dark);
    background: transparent;
    -moz-appearance: textfield;
}

.quantity input::-webkit-outer-spin-button,
.quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity__btn {
    display: block;
    width: 8px;
    height: 21px;
    color: var(--color-dark);
}

.quantity__btn.is-inactive {
    opacity: .5;
    cursor: default;
    pointer-events: none;
}



/* Selectbox */
.js-select { opacity: 0; }

.SumoSelect > .CaptionCont {
    padding: 15px 25px;
    background: #EFF1F4;
    border-radius: 4px;
    border: 0;
    outline: 0;
    transition: box-shadow .2s;
}

.SumoSelect > .CaptionCont > span {
    padding-right: 20px;
    font-weight: 500;
    color: var(--color-text-dark);
}

.SumoSelect > .CaptionCont > label {
    right: 15px;
    height: 100%;
}

.SumoSelect > .CaptionCont > label > i {
    width: 12px;
    height: 7px;
    background-image: url('../../img/arrow-down-small.svg');
    background-size: 100% 100%;
    opacity: 1;
}

.SumoSelect:hover > .CaptionCont,
.SumoSelect.open > .CaptionCont { box-shadow: none; }

.SumoSelect > .optWrapper {
    background: var(--color-light);
    box-shadow: none;
    border: 0;
    border-radius: 0;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.SumoSelect > .optWrapper > .options li.opt {
    padding: 8px 25px;
    color: var(--color-text-dark);
    border: 0;
}


.SumoSelect.open > .CaptionCont {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.SumoSelect.open > .optWrapper { top: 100%; }

.SumoSelect>.optWrapper>.options li.opt {
    background: #EFF1F4;
    margin-bottom: 0;
}

.SumoSelect > .optWrapper > .options li.opt.selected,
.SumoSelect > .optWrapper > .options li.opt:hover {
    color: var(--color-dark);
    background: #EFF1F4;
}
.SumoSelect > .optWrapper > .options li.opt.selected { font-weight: 500; }

@media ( max-width: 767px ) {
    .wc-tool-wrap .SumoSelect > .CaptionCont { padding: 11px 16px; }

    .wc-tool-wrap .SumoSelect > .CaptionCont > span { padding-right: 12px; }

    .wc-tool-wrap .SumoSelect > .CaptionCont > label {
        right: 0;
        padding-right: 43px;
    }
}

/* Custom checkbox */

.option-chip {
    width: 76px;
    height: 38px;
}

.option-item__title {
    color: #5F6163;
    font-size: 15px;
    margin-right: 11px;
}

.option-chip__btn {
    width: 100%;
    height: 100%;
    cursor: pointer;
    background-color: #E2E6EB;
    border-radius: 24px;
    transition: background-color 0.2s;
}

.option-chip input[type="checkbox"]:checked + .option-chip__btn {
    background-color: var(--color-error);
}

.option-chip__btn::before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    left: 5px;
    top: 8px;
    background-color: #B9C0C8;
    border-radius: 50%;
    transition: transform .2s;
}

.option-chip input[type="checkbox"]:checked + .option-chip__btn::before {
    transform: translateX(43px);
    background-color: #fff;
}

.option-chip input[type="checkbox"] {
    display: none;
}

@media ( max-width: 767px ) {
    .quantity {
        width: 121px;
        padding: 16px 20px;
    }

    .option-chip {
        /* width: 64px;
        height: 32px; */
        width: 48px;
        height: 24px;
    }

    .option-item__title {
        font-size: 12px;
        /* margin-right: 15px; */
        margin-right: 12px;
    }

    .option-chip__btn:before {
        /* width: 20px;
        height: 20px; */
        /* top: 6px;
        left: 7px; */
        width: 15px;
        height: 15px;
        top: 4px;
        left: 5px;
    }

    .option-chip input[type=checkbox]:checked + .option-chip__btn:before {
        /* transform: translateX(31px); */
        transform: translateX(24px);
    }

}