/* STORE 2.0
Developer: t.me/moretheme
Screen resolution: 460, 860, 1440, 1920 */
.modal-store {
    display: none;
    position: fixed;
    max-width: 500px;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
    background: var(--bg);
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    z-index: 9;
}

.modal-store h2 + span {
    display: block;
    color: #747474;
    margin-top: -20px;
    margin-bottom: 30px;
    font-size: 14px;
    line-height: 1.5;
}

.modal-store .fa-xmark {
    position: absolute;
    width: 40px;
    height: 40px;
    line-height: 40px;
    top: -60px;
    right: 0;
    border: 1px solid var(--light2);
    border-radius: 50%;
    color: rgb(255 255 255 / 80%);
    text-align: center;
    cursor: pointer;
}

.modal-store > .fa-chevron-left {
    position: absolute;
    top: 30px;
    left: 40px;
    font-size: 20px;
}

.modal-store > label {
    display: block;
    border: 1px solid #E9E1E5;
    padding: 8px 10px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: bold;
    text-align: left;
}

.modal-store > label + label {
    margin-top: 5px;
}

.modal-store > label:hover {
    background: #E9E1E5;
}

.modal-store > ul {
}

.modal-store > ul li {
    display: flex;
    align-items: center;
    grid-gap: 10px;
    border: 1px solid #E9E1E5;
    padding: 15px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: bold;
    line-height: 1.5;
    text-align: left;
    margin-bottom: 15px;
}

.modal-store > ul li .delete-address-btn {
    display: inline-block;
    background: #f44336;
    border-radius: 50%;
    color: #fff;
    min-width: 30px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
}

.modal-store > ul li .select-address-btn {
    background: var(--color1);
    color: #fff;
    padding: 5px 12px;
    border-radius: var(--radius);
}

/* MODAL DEVIL */
.modal-deliv {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
    z-index: 9;
}

.modal-deliv .fa-xmark {
    position: absolute;
    width: 40px;
    height: 40px;
    line-height: 40px;
    top: -60px;
    right: 0;
    border: 1px solid var(--light2);
    border-radius: 50%;
    color: rgb(255 255 255 / 80%);
    text-align: center;
    cursor: pointer;
}

.modal-deliv_grid {
    display: grid;
    grid-gap: 20px 20px;
    grid-auto-rows: max-content;
    grid-template-columns: 450px 1fr;
    background: var(--bg);
    border-radius: 20px;
    overflow: hidden;
}

@media (max-width: 860px) {
    .modal-deliv_grid {
        grid-template-columns: 1fr;
        grid-gap: 0;
        min-width: 400px;
    }
}

.modal-deliv_content {
    padding: 30px;
}

@media (max-width: 860px) {
    .modal-deliv_content .e-grid3 {
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 10px;
    }
}

.modal-deliv_maps {
    position: relative;
    width: 600px;
    height: 100%;
    overflow: hidden;
}

@media (max-width: 860px) {
    .modal-deliv_maps {
        width: 100%;
        height: 210px;
        order: -1;
    }
}

.modal-deliv_maps:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%,-50%);
    background: #000;
    width: 2px;
    height: 15px;
    z-index: 9;
}

.modal-deliv_maps:after {
    content: "";
    position: absolute;
    top: 46%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%,-50%);
    background: var(--color1);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    z-index: 9;
}

/* BASKET */
.basket-content {
    position: fixed;
    max-width: 450px;
    width: 100%;
    top: 0;
    right: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: var(--bg);
    padding: 30px;
    z-index: 9;
}

.basket-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-gap: 20px;
    margin-bottom: 30px;
}

.basket-header h2, .basket-header h3 {
    margin-bottom: 0;
}

.basket-header > a {
    color: var(--text2);
}

.basket-header .fa-xmark {
    display: block;
    background: var(--bg2);
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    color: var(--color1);
    text-align: center;
    margin-left: auto;
    cursor: pointer;
}

.basket-list {
    max-height: 400px;
    min-height: 400px;
    overflow-y: auto;
}

.basket-list li {
    display: grid;
    grid-gap: 20px;
    grid-auto-rows: max-content;
    grid-template-columns: auto 1fr 40px;
    align-items: center;
    background: var(--light);
    padding: 10px;
    border-radius: var(--radius);
}

.basket-list li + li {
    margin-top: 10px;
    border-top: 1px dotted var(--dark);
}

.basket-list li img {
    width: 120px;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 5px;
}

.basket-list .basket-list_title {
    display: block;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.basket-list .basket-list_title + span {
    font-size: 14px;
    color: var(--text2);
}

.basket-list_count {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light2);
    color: var(--color1);
    border-radius: var(--radius);
    font-weight: bold;
}

.basket-list_count > a {
    display: block;
    min-width: 30px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
}

.basket-list_count > input {
    background: transparent;
    border: none;
    width: 15px;
    height: 30px;
    padding: 0;
    font-weight: bold;
    text-align: center;
}

.basket-list .fa-trash {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    color: #F44336;
    font-size: 18px;
    text-align: center;
    cursor: pointer;
}

.basket-delivfree {
    display: flex;
    align-items: center;
    grid-gap: 20px;
    background: var(--bg3);
    border-bottom: 5px solid var(--color1);
    color: #fff;
    padding: 20px;
    border-radius: var(--radius);
    margin: 20px 0;
    font-weight: bold;
}

.basket-delivfree_count {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    text-align: center;
    cursor: pointer;
}

.basket-delivfree_title span:last-child {
    display: block;
    font-size: 12px;
    font-weight: 300;
    margin-top: 3px;
}

.basket-total li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-gap: 20px;
    font-size: 18px;
    font-weight: bold;
}

.basket-total li + li, .basket-total div + li {
    border-top: 1px dotted var(--light2);
    margin-top: 10px;
    padding-top: 10px;
}

.basket-total_sale {
    display: block;
    text-align: right;
    margin: 10px 0 15px;
    color: #4CAF50;
    font-weight: bold;
}

.basket-total + a {
    display: block;
    background: var(--color1);
    border-radius: 80px;
    padding: 15px 20px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin-top: 40px;
}

.basket-total + a:hover {
    background: var(--color2);
}

.basket-delivfree, .basket-total_deliv {
    display: none!important;
}

/* BASKET ORDER */
.basket-order_grid {
    display: grid;
    grid-gap: 80px;
    grid-auto-rows: max-content;
    grid-template-columns: 1fr 400px;
}

@media (max-width: 860px) {
    .basket-order_grid {
        grid-template-columns: 1fr;
        grid-gap: 30px;
    }
}

.basket-order {
    background: var(--bg2);
    color: #fff;
    box-shadow: 0 0 20px 0 rgb(0 0 0 / 10%);
    padding: 30px;
    border-radius: var(--radius);
    height: max-content;
}

@media (max-width: 860px) {
    .basket-order {
        order: -1;
    }
}

/* BASKET FORM */
.basket-form_deliv {
}

.basket-form_deliv > span {
    display: block;
    color: #7f7f7f;
    font-size: 14px;
    margin-bottom: 9px;
}

.basket-form_deliv > span b {
    color: var(--color1);
}

.basket-form_deliv > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-gap: 20px;
}

.basket-form_deliv > div > a {
    display: inline-block;
    min-width: max-content;
    background: var(--color1);
    color: #fff;
    padding: 15px 20px;
    border-radius: var(--radius);
}

.basket-form_promo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    grid-gap: 20px;
    margin-bottom: 30px;
}

.basket-form_promo button {
    display: inline-block;
    min-width: max-content;
    background: var(--color1);
    color: #fff;
    padding: 15px 20px;
    border-radius: 10px;
}

.promo-code-info {
    margin: 12px 0;
}

.basket-form_payment {
}

h2 + .basket-form_payment > span {
    display: block;
    margin-top: -20px;
    margin-bottom: 25px;
}

.basket-form_payment > span {
    display: block;
    color: #7f7f7f;
    font-size: 14px;
    margin-bottom: 9px;
}

.basket-form_payment label {
    position: relative;
    color: var(--text2);
    font-weight: 500;
    overflow: hidden;
}

.basket-form_payment label input {
    position: absolute;
    margin: 12px;
}

.basket-form_payment label input + img, .basket-form_payment > a img {
    display: inline-block;
    padding: 10px 20px 10px 50px;
    border-radius: var(--radius);
    border: 2px solid var(--bg2);
    width: 100%;
    height: 80px;
    object-fit: contain;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 10px;
}

.basket-form_payment label input:checked + img {
    opacity: 1;
    border: 2px solid var(--color1);
}

.basket-form_payment label span, .basket-form_payment > a span {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 10px;
}

/* BASKET CHECK */
.basket-check {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 60px;
}

/* ORDER */
.store-order {
    max-width: 800px;
}

.store-order_items {
}

.store-order_items li + li {
    margin-top: 20px;
}

.store-order_head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-gap: 20px;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    overflow: hidden;
}

.store-order_head:before {
    content: "";
    position: absolute;
    width: 90%;
    border: 1px dotted var(--color1);
    z-index: -1;
}

.store-order_title, .store-order_title + span {
    background: var(--bg);
    padding-right: 10px;
}

.store-order_title + span {
    padding-left: 10px;
    padding-right: 0;
}

.store-order_items li > a {
    display: flex;
    align-items: center;
    grid-gap: 10px;
    color: var(--color1);
}

.store-order_items li > a:hover {
    color: var(--color2);
}
