/* ====================================================================================================================
 * General
 * ====================================================================================================================
 */

body.page.page-template-oneshop-BuildPC main#oneshop-main {
    background: none;
}
footer.footer {
    display: none;
}
body {
    padding-bottom: 60px;
}
body.modal-open {
    overflow: hidden;
}
.form-check-input[type="checkbox"]+label {
    width: 100%;
}
.form-check-input[type="checkbox"]:checked+label {
    font-weight: 500;
    color: var(--theme-color);
}
.form-check-input[type="checkbox"]+label:hover {
    color: var(--theme-color);
}
.form-check-input[type="checkbox"].filled-in:checked+label:after {
    background-color: var(--theme-color);
    border-color: var(--theme-color);
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
}
.btn-BuildPC {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 15px;
    background: var(--theme-color);
    font-size: 14px;
    text-transform: none;
    font-weight: 500;
    -webkit-box-shadow: 0 3px 1px -2px rgba(0, 0, 0, .2), 0 2px 2px 0 rgba(0, 0, 0, .14), 0 1px 5px 0 rgba(0, 0, 0, .12) !important;
    box-shadow: 0 3px 1px -2px rgba(0, 0, 0, .2), 0 2px 2px 0 rgba(0, 0, 0, .14), 0 1px 5px 0 rgba(0, 0, 0, .12) !important;
}
.btn-BuildPC .btn i {
    font-size: 18px;
}
#oneshop-BuildPC .btn.btn-close {
    box-shadow: none !important;
    width: 40px;
    height: 40px;
    padding: 0;
    margin-left: -8px !important;
}
#oneshop-BuildPC .btn.btn-close i {
    margin: 0 !important;
}
@media(min-width:1200px) {
    footer.footer {
        display: block;
    }
    body {
        padding-bottom: 0;
    }
}

/* ====================================================================================================================
 * CFG
 * ====================================================================================================================
 */

.oneshop-cfgs {
    border-top: 1px solid #e8e8e8;
}
.oneshop-cfgs .oneshop-cfg-item {
    border-bottom: 1px solid #e8e8e8;
}
.oneshop-cfgs .oneshop-cfg-item .oneshop-cfg-item-name {
    flex: 1;
    font-weight: 500;
    color: var(--theme-color);
    padding: 10px;
}
.oneshop-cfgs .oneshop-cfg-item .oneshop-cfg-item-content {
    padding: 10px;
}
.oneshop-cfgs .oneshop-cfg-item .oneshop-cfg-item-content .btn-open-modal {
    margin: 0;
}
.oneshop-cfgs .modal-dialog .modal-content {
    height: 100vh;
}
@media(min-width:1200px) {
    .oneshop-cfgs .oneshop-cfg-item .oneshop-cfg-item-name {
        max-width: 20%;
        border-right: 1px solid #e8e8e8;
    }
    .oneshop-cfgs .oneshop-cfg-item .oneshop-cfg-item-content {
        flex: 1;
        padding: 10px;
    }
    .oneshop-cfgs .modal-dialog .modal-content {
        height: 75vh;
    }
}

/* ====================================================================================================================
 * Action
 * ====================================================================================================================
 */

.oneshop-top-action {
    padding: 15px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.oneshop-top-action .btn-rebuild i {
    margin: 0 8px 0 0 !important;
}
.estimate-price {
    color: #f10000;
}
.oneshop-bottom-action {
    display: grid;
    grid-gap: 5px;
    grid-template-columns: 1fr 1fr;
    padding: 5px;
}
.oneshop-bottom-action .btn {
    width: 100%;
    margin: 0;
}
.oneshop-fixed-bottom-action {
    height: 50px;
    background-color: #fff;
}
.oneshop-fixed-bottom-action .btn {
    background: #d10a00 !important;
    height: 100% !important;
    text-transform: uppercase !important;
    margin: 0;
    width: 125px;
    border-radius: 0;
}
.oneshop-fixed-bottom-action .estimate-price {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    text-align: right;
    color: #333;
    padding: 8px 15px;
    line-height: 18px;
    font-weight: 700;
    border-top: 1px solid #e8e8e8;
}
.oneshop-fixed-bottom-action .estimate-price b {
    color: #f10000;
    margin-left: 8px;
    font-size: 16px;
}
.oneshop-fixed-bottom-action .estimate-price span {
    font-style: italic;
    display: block;
    width: 100%;
    font-size: 12px;
    font-weight: 400;
}
.oneshop-modal .modal-dialog .modal-content .modal-header {
    flex-wrap: wrap;
}
#oneshop-BuildPC .btn.btn-close {
    margin: 8px 0 8px -8px !important;
}
#oneshop-BuildPC .oneshop-div-search .btn {
    height: 40px;
    width: 40px;
    padding: 0;
    background: #fff !important;
    box-shadow: none !important;
}
#oneshop-BuildPC .oneshop-div-search .btn i {
    margin: 0;
}
@media(min-width:1200px) {
    .oneshop-top-action {
        padding: 15px;
    }
    .oneshop-bottom-action {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding: 15px;
    }
    .oneshop-bottom-action .btn {
        width: auto;
        margin: 0 0 0 10px;
    }
    .oneshop-wrap-search {
        max-width: 60%;
    }
    .estimate-price b {
        font-size: 17px;
    }
}

/* ====================================================================================================================
 * Modal filter
 * ====================================================================================================================
 */

#oneshop-BuildPC .btn.btn-open-modal-filter {
    margin: 0 0 0 15px;
    width: 40px;
    height: 40px;
    padding: 0;
    box-shadow: none !important;
}
#oneshop-BuildPC .btn.btn-open-modal-filter i {
    margin: 0;
    font-size: 24px;
}
.oneshop-modal.oneshop-modal-filter .modal-dialog .modal-content .modal-header {
    background: #d10a00;
}
#oneshop-BuildPC .oneshop-modal.oneshop-modal-filter .modal-dialog .modal-content .modal-header .btn-close {
    background: none;
}
#oneshop-BuildPC .oneshop-modal.oneshop-modal-filter .modal-dialog .modal-content .modal-header .btn-close i {
    font-size: 24px;
}
.oneshop-modal-filter .modal-dialog {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
}
.oneshop-product-filter {
    padding: 15px 0 50px;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    overflow: auto;
}
.oneshop-product {
    padding: 15px 0 50px;
    margin-top: 110px;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    overflow: auto;
}
.oneshop-product-filter .form-check {
    padding: 0 15px 10px;
}
.oneshop-product-filter .form-check:last-child {
    padding-bottom: 0;
}
@media(min-width:1200px) {
    .oneshop-product {
        position: absolute;
        margin-top: 0;
    }
    .oneshop-modal-filter {
        visibility: visible;
        transform: none;
        display: none !important;
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 40%;
    }
    .modal-open .modal.show .oneshop-modal-filter {
        display: block !important;
    }
    .oneshop-modal.oneshop-modal-filter .modal-dialog .modal-content .modal-header {
        display: none;
    }
    .oneshop-modal-filter .modal-dialog {
        width: 100%;
    }
    .oneshop-cfgs .oneshop-modal-filter .modal-dialog .modal-content {
        height: 100%;
    }
}

/* ====================================================================================================================
 * products
 * ====================================================================================================================
 */

.oneshop-product-item {
    padding: 10px;
    border-bottom: 1px solid #e8e8e8;
}
.oneshop-product-item .image {
    flex: 0 0 20%;
    max-width: 20%;
}
.oneshop-product-item .info {
    flex: 1;
    padding: 0 10px;
}
.oneshop-product-item .info .title {
    font-size: 14px;
    max-height: 40px;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    line-height: inherit;
}
.oneshop-product-item .info .price {
    display: block;
    color: #f10000;
    font-size: 15px;
    font-weight: 500;
    margin-top: 10px;
}
.oneshop-product-item .btn {
    margin: 0;
}
.oneshop-product-item .btn:disabled {
    background: #ed1b24 !important;
    opacity: 1;
}
@media(min-width:1200px) {
    .oneshop-product {
        left: 40%;
        width: 60%;
        border-left: 1px solid #e8e8e8;
    }
}

/* ====================================================================================================================
 * Item result
 * ====================================================================================================================
 */

.oneshop-item-result {
    flex: 0 0 100%;
}
.oneshop-item-result .oneshop-product-item {
    border-bottom: none;
}
.oneshop-product-item .calc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}
.oneshop-product-item .quantity {
    display: flex;
    align-items: center;
    margin-left: -8px;
}
.oneshop-product-item .quantity .btn {
    background: #fff !important;
    box-shadow: none !important;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #888;
    border-radius: 50%;
}
.oneshop-product-item .quantity .qty {
    width: 50px;
    height: 25px;
    text-align: center;
    border-radius: 4px;
    border: 1px solid #ccc;
}
.oneshop-item-result .oneshop-product-item .info .price {
    margin-top: 0;
}
.oneshop-item-result div.action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: absolute;
    right: 0;
    top: -40px;
}
div.action .btn {
    box-shadow: none;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
}
div.action .btn i {
    font-size: 20px;
    color: var(--blue);
}
div.action .btn.btn-remove i {
    font-size: 20px;
    color: var(--danger);
}
.selected .btn-open-modal {
    display: none !important;
}
@media(min-width:992px) {
    .selected .oneshop-cfg-item-content {
        padding: 0 !important;
        max-width: 0;
    }
    .selected .oneshop-item-result {
        max-width: 80%;
    }
    .oneshop-item-result .oneshop-product-item .image {
        max-width: 100px;
    }
    .oneshop-item-result .info {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .oneshop-item-result .oneshop-product-item .info .name {
        width: 40%;
    }
    .oneshop-item-result .oneshop-product-item .info .calc {
        width: 30%;
        margin: 0;
    }
    .oneshop-item-result .oneshop-product-item .action {
        position: static;
        width: 10%;
    }
}