/* STORE 28.05.2025
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(--bg2);
    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 #del-addr {
    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-addr {
    background: var(--color1);
    color: #fff;
    padding: 5px 12px;
    border-radius: var(--radius);
}

.modal-store_filial > label, .modal-store_addr > li {
    display: flex;
    align-items: center;
    grid-gap: 10px;
    background: var(--bg);
    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_filial > label #del-addr, .modal-store_addr > li #del-addr {
    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_filial > label #select-addr, .modal-store_addr > li #select-addr {
    background: var(--color1);
    color: #fff;
    padding: 5px 12px;
    border-radius: var(--radius);
}

/* STORE DEVIL */
.store-deliv {
    display: none;
    position: fixed;
    max-width: 500px;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
    background: var(--bg2);
    padding: 30px;
    border-radius: var(--radius);
    z-index: 9;
}

.store-deliv .fa-xmark, .store-deliv1 .fa-xmark {
    position: absolute;
    width: 40px;
    height: 40px;
    line-height: 40px;
    top: 0;
    right: -60px;
    border: 1px solid var(--light2);
    border-radius: 50%;
    color: rgb(255 255 255 / 80%);
    text-align: center;
    cursor: pointer;
}

@media (max-width: 860px) {
    .store-deliv .fa-xmark, .store-deliv1 .fa-xmark {
        top: 20px;
        right: 20px;
        z-index: 3;
        background: #fff;
        color: #000;
    }
}

.store-deliv_title {
    display: block;
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 10px;
}

.store-deliv_subtitle {
    color: var(--text2);
    font-size: 14px;
}

.store-deliv_link {
    display: flex;
    align-items: center;
    grid-gap: 20px;
    margin-top: 20px;
}

.store-deliv_link > a {
    display: inline-block;
    background: var(--color1);
    border-radius: var(--radius);
    color: #fff;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}

.store-deliv1 {
    display: none;
    position: fixed;
    width: 70vw;
    height: 85vh;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: var(--radius);
    z-index: 9;
}

@media (max-width: 860px) {
    .store-deliv1 {
        width: 100vw;
        height: 100vh;
    }
}

.store-deliv1 #center-marker:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%,-50%);
    background: #000;
    width: 2px;
    height: 15px;
    z-index: 9;
}

.store-deliv1 #center-marker: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;
}

.store-deliv1 #map {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

@media (max-width: 860px) {
    .store-deliv1 #map {
        height: 450px!important;
    }
}

.store-deliv1_tabs {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    background: #fff;
    box-shadow: 0 0 20px rgb(0 0 0 / 10%);
    border-radius: var(--radius);
    padding: 4px;
    font-weight: 500;
    z-index: 2;
}

.store-deliv1_tabs > span {
    padding: 8px 20px;
    border-radius: var(--radius);
}

.store-deliv1_tabs > span.active {
    background: var(--color1);
    color: #fff;
}

.store-deliv1_content {
    display: none;
    position: absolute;
    max-width: 400px;
    left: 20px;
    bottom: 20px;
    background: #fff;
    box-shadow: 0 0 20px rgb(0 0 0 / 10%);
    padding: 20px 30px;
    border-radius: var(--radius);
}

@media (max-width: 860px) {
    .store-deliv1_content {
        width: 100%;
        max-width: none;
        max-height: 500px;
        height: 500px;
        border-radius: var(--radius) var(--radius) 0 0;
        left: 0;
        bottom: 0;
        overflow-y: auto;
    }
}

.store-deliv1_content.active {
    display: block;
}

.store-deliv1_head {
    display: flex;
    align-items: center;
    grid-gap: 20px;
    margin-bottom: 25px;
}

.store-deliv1_head > b {
    display: block;
    font-size: 20px;
    font-weight: bold;
}

.store-deliv1_head > span {
    background: var(--bg3);
    padding: 8px 15px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
}

.store-deliv1_list {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    margin: 20px 0;
}

.store-deliv1_list > label {
    display: flex;
    align-items: end;
    font-size: 14px;
    font-weight: 500;
}

.store-deliv1_list > label input {
    min-width: 24px;
}

.store-deliv1_list > label > div > span {
    display: block;
    color: var(--text2);
    font-size: 12px;
    font-weight: 400;
    margin-top: 2px;
}

.store-deliv1_list > label > div > #del {
    display: inline-block;
    color: red;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
}

.store-deliv1_content [type="submit"] {
    font-size: 14px;
    padding: 14px 30px;
}

/* 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(--bg2);
    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;
    height: 100%;
    overflow: hidden;
    overflow-y: auto;
    margin-bottom: 30px;
}

.basket-list > li {
    display: grid;
    grid-gap: 20px;
    grid-auto-rows: max-content;
    grid-template-columns: 80px 1fr;
    align-items: center;
    background: var(--bg);
    padding: 10px;
    border-radius: var(--radius);
}

.basket-list > li + li {
    margin-top: 10px;
    border-top: 1px dotted var(--dark);
}

.basket-list > li img {
    width: 80px;
    height: auto;
    aspect-ratio: 16/16;
    object-fit: cover;
    border-radius: 5px;
}

.basket-list_title {
    display: block;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.basket-list_title > span {
    display: block;
    color: var(--color1);
}

.basket-list_title + span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text2);
}

.basket-list_pattern {
    display: flex;
    flex-direction: column;
    grid-gap: 5px;
    font-size: 12px;
    color: var(--text2);
    margin: 10px 0;
}

.basket-list_pattern > span span {
    display: block;
    color: var(--color2);
    font-weight: bold;
}

.basket-list_count {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg2);
    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 li .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(--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-mincount {
    display: flex;
    align-items: center;
    grid-gap: 20px;
    background: var(--color1);
    color: #fff;
    padding: 20px;
    border-radius: var(--radius);
    margin: 20px 0;
    font-weight: bold;
}

.basket-mincount_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-mincount_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(--dark);
    margin-top: 10px;
    padding-top: 10px;
}

.basket-total .basket-total_delivoffice, .basket-total .basket-total_delivkm {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 10px;
    padding-top: 0;
    border-top: 0;
}

.basket-total_sale {
    display: block;
    text-align: right;
    margin: 10px 0 15px;
    color: #4CAF50;
    font-weight: bold;
}

.basket-total .basket-total_bonus, .basket-total .basket-total_bonus span {
    display: block;
    font-size: 16px;
    text-align: right;
}

.basket-total .basket-total_bonus span:first-child {
    color: #8BC34A;
}

.basket-total .basket-total_bonus span:nth-child(2) {
    color: #FF5722;
}

.basket-total .basket-total_bonus span:last-child {
    color: #a1a1a1;
    font-size: 14px;
}

.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 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: #000;
    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;
        overflow: hidden;
    }
}

/* BASKET FORM */
.basket-form_deliv #delivery_type {
    display: block;
    color: var(--color1);
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.basket-form_deliv [name="delivery_address"] {
    margin-bottom: 10px;
}

.basket-promo {
    background: var(--bg2);
    padding: 20px;
    border-radius: var(--radius);
}

.basket-promo input {
    background: var(--bg);
}

.basket-form_promo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    grid-gap: 20px;
}

.basket-form_promo button {
    display: inline-block;
    min-width: max-content;
    background: var(--color1);
    color: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    cursor: pointer;
}

.basket-promo #promoresult {
    display: block;
    color: var(--text2);
    font-size: 12px;
    margin-top: 10px;
}

.basket-bonus {
    background: var(--bg2);
    padding: 20px;
    border-radius: var(--radius);
}

.basket-bonus > span {
    display: flex;
    align-items: center;
    grid-gap: 10px;
    color: var(--text2);
    font-size: 14px;
    font-weight: 300;
    margin-top: -20px;
    margin-bottom: 20px;
}

.basket-bonus > div > div b {
    display: block;
    color: #6dd772;
    font-size: 16px;
}

.basket-bonus > div > div span {
    color: var(--text2);
    font-size: 12px;
    font-weight: 300;
}

.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;
    background: var(--bg2);
    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-order_price {
    display: block;
    font-size: 20px;
    font-weight: bold;
}

.basket-order_price > span {
    color: var(--text2);
    font-size: 16px;
    font-weight: 300;
    margin-right: 5px;
}

/* BASKET CHECK */
.basket-check {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 60px;
}

/* ORDER */
.store-order {
}

.store-order_items {
    display: grid;
    grid-gap: 20px 20px;
    grid-auto-rows: max-content;
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 860px) {
    .store-order_items {
        grid-template-columns: none;
    }
}

.store-order_items li {
    position: relative;
    background: var(--bg2);
    padding: 20px;
    border-radius: var(--radius);
    overflow: hidden;
}

.store-order_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-gap: 20px;
    padding: 0 20px 10px;
    margin: -10px -20px 10px -20px;
    border-bottom: 1px solid var(--dark);
    font-size: 14px;
    color: var(--text2);
}

.store-order_head > span:first-child {
    font-weight: bold;
}

.store-order_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-gap: 10px;
    color: var(--color1);
    margin-bottom: 5px;
}

.store-order_item:hover {
    color: var(--color2);
}

.store-order_price {
    display: block;
    font-size: 25px;
    font-weight: bold;
    margin: 10px 0 20px;
}

.store-order_meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    grid-gap: 20px;
}

.store-order_meta > a, .store-order_meta > span {
    display: inline-block;
    background: var(--color1);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
}

.store-order_meta > span {
    background: #dee2fd;
    color: var(--color1);
}

.store-order_meta .status {
    color: var(--text2);
    font-size: 14px;
}

.store-order_meta .status span {
    display: block;
    color: var(--text);
    font-size: 16px;
    font-weight: bold;
}

.store-order_comm {
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-gap: 20px;
    padding: 10px 20px 0;
    margin: 20px -20px 0 -20px;
    border-top: 1px solid var(--dark);
    color: var(--text2);
    font-size: 14px;
}

.store-order_comm span {
    color: var(--text);
    font-weight: bold;
}

/* STORE RECEP */
.store-recep {
    background: #fff;
    color: #000;
    padding: 20px;
    border-radius: var(--radius);
}

.store-recep_head {
    display: grid;
    grid-gap: 15px;
    grid-auto-rows: max-content;
    grid-template-columns: repeat(2, 1fr);
}

.store-recep_head span {
    font-weight: bold;
}

.store-recep table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.store-recep th, .store-recep td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.store-recep th {
    background-color: #f2f2f2;
}

.store-recep tr:nth-child(even) {
    background-color: #f2f2f2;
}

.store-recep tr:hover {
    background-color: #ddd;
}

.store-recep_sign {
    display: grid;
    grid-gap: 15px;
    grid-auto-rows: max-content;
    grid-template-columns: repeat(2, 1fr);
}

.store-recep_sign > div {
    display: flex;
    align-items: flex-end;
    grid-gap: 20px;
}

.store-recep_sign > div span {
    width: 200px;
    background: #000;
    height: 1px;
}

/* STORE PATTERN */
.store-pattern {
    display: flex;
    align-items: center;
    grid-gap: 10px;
    background: var(--bg);
    padding: 3px;
    border-radius: var(--radius);
    max-width: max-content;
    color: var(--text2);
    font-size: 12px;
    margin: 10px 0;
}

.store-pattern label {
    position: relative;
    border-radius: var(--radius);
    padding: 3px 8px;
    font-size: 12px;
    overflow: hidden;
}

.store-pattern label input {
    position: absolute;
    visibility: hidden;
    width: 100%;
    height: 100%;
    margin: 0;
}

.store-pattern label.selected {
    background: var(--color1);
    color: #fff;
}
