/* STORE 16.09.2025
Developer: t.me/moretheme
Screen resolution: 460, 860, 1440, 1920 */
.store-modal > div {
    position: fixed;
    max-width: 450px;
    width: 100%;
    top: 0;
    right: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg2);
    padding: 30px;
    z-index: 9;
}

.store-modal_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
    margin-bottom: 30px;
}

.store-modal_header .fa-xmark {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: var(--dark);
    border-radius: var(--radius);
    text-align: center;
}

.store-modal_header > span {
    display: inline-block;
    background: var(--dark);
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 50px;
}

.store-cart_item {
    display: grid;
    grid-gap: 20px;
    grid-auto-rows: max-content;
    grid-template-columns: 100px 1fr;
    align-items: center;
}

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

.store-cart_item > img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    border-radius: 10px;
    object-fit: contain;
}

.store-cart_title {
}

.store-cart_item #cart_del {
    width: 40px;
    height: 40px;
    line-height: 40px;
    color: red;
    text-align: center;
}

.store-cart_title > span {
    display: block;
    color: var(--text2);
    font-size: 14px;
    margin-top: 5px;
}

.store-cart_title > div {
    display: flex;
    flex-flow: wrap;
    align-items: center;
    grid-gap: 5px;
    font-size: 10px;
    font-weight: 500;
    color: #2196F3;
    margin-top: 5px;
}

.store-cart_count {
    display: flex;
    align-items: center;
    background: #eee;
    border-radius: 50px;
    margin-left: auto;
}

.store-cart_count > a {
    min-width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
}

.store-cart_count > input {
    background: transparent;
    width: 20px;
    padding: 0;
    text-align: center;
}

.store-modal_sums {
    margin-top: auto;
}

.store-modal_sums > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-gap: 8px;
    font-size: 18px;
    font-weight: 500;
    margin: 10px 0;
    padding: 10px 0;
    border-top: 1px dotted var(--dark);
}

.store-modal_sums > div > span:first-child {
    margin-right: auto;
}

.store-modal > div > a {
    display: block;
    background: #2196F3;
    border-radius: 50px;
    color: #fff;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

/* STORE BASK */
.store-bask {
    display: grid;
    grid-gap: 80px;
    grid-auto-rows: max-content;
    grid-template-columns: 1fr 450px;
}

@media (max-width: 860px) {
    .store-bask {
        grid-template-columns: 1fr;
        grid-gap: 10px;
    }
}

.store-bask_detal {
}

.store-bask_detal > div:not(.store-bask_detal .e-field) {
    margin-bottom: 40px;
}

.store-bask_detal > div > b {
    display: block;
    font-size: 22px;
    margin-bottom: 20px;
}

.store-bask_detal .delivery > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    grid-gap: 20px;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 500;
}

.store-bask_detal .delivery > div > span:first-child {
    display: inline-block;
    background: #2196F3;
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 12px;
}

.store-bask_detal .payment > div {
    display: grid;
    grid-gap: 20px;
    grid-auto-rows: max-content;
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 860px) {
    .store-bask_detal .payment > div {
        grid-template-columns: repeat(2, 1fr);
    }
}

.store-bask_detal .payment > div label {
    position: relative;
    color: var(--text2);
    font-weight: 500;
    overflow: hidden;
}

.store-bask_detal .payment > div label input {
    position: absolute;
    margin: 12px;
}

.store-bask_detal .payment > div label input + img, .store-bask_detal .payment > div > 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;
}

.store-bask_detal .payment > div label input:checked + img {
    opacity: 1;
    border: 2px solid var(--color1);
}

.store-bask_detal .payment > div label span, .store-bask_detal .payment > div > a span {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 10px;
}

.store-bask_detal .promo > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    grid-gap: 10px;
}

.store-bask_detal .promo > div button {
    background: var(--color1);
    color: #fff;
    padding: 15px 20px;
    border-radius: var(--radius);
}

.store-bask_buy {
    background: var(--bg2);
    padding: 30px;
    height: max-content;
    border-radius: var(--radius);
}

.store-bask_buy > b {
    display: block;
    font-size: 18px;
    margin-bottom: 20px;
}

.store-bask_bonus {
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-gap: 10px;
    margin: 20px 0 20px;
    background: var(--light);
    padding: 5px 20px;
    border-radius: 10px;
}

.store-bask_bonus > div > span {
    display: block;
    color: #8BC34A;
    font-size: 12px;
    margin-top: 3px;
}

.store-bask_promo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-gap: 20px;
    font-size: 14px;
    margin-bottom: 20px;
}

.store-bask_promo input {
    background: transparent;
    border-bottom: 1px solid var(--light2);
    padding: 10px 0;
    border-radius: 0;
}

.store-bask_promo > button {
    display: inline-block;
    background: var(--color1);
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
}

.store-bask_sums > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-gap: 8px;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    padding-top: 10px;
    border-top: 1px dotted #b4b4b4;
}

.store-bask_sums > div > span:first-child {
    margin-right: auto;
}

.store-bask_sums #cart_bonusb > span:last-child {
    color: #8BC34A;
}

.store-bask_buy > button {
    width: 100%;
}

/* 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;
    color: #000;
    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;
    color: #000;
    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(--dark);
    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;
    border: 2px solid var(--dark);
}

.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;
}

/* 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(--light);
    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(--light);
    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;
}

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

/* STORE PATTERN */
.store-pattern {
    display: flex;
    align-items: center;
    background: var(--light);
    padding: 3px;
    border-radius: var(--radius);
    max-width: max-content;
    color: var(--text2);
    font-size: 12px;
}

.store-pattern label {
    position: relative;
    border-radius: var(--radius);
    padding: 5px 20px;
    overflow: hidden;
}

.store-pattern label.active {
    background: #fff;
    color: #000;
    font-weight: bold;
}

.store-pattern label input {
    position: absolute;
    visibility: hidden;
    width: 100%;
    height: 100%;
    margin: 0;
}

.store-pattern label.selected {
    background: var(--color1);
    color: #fff;
}

/* ============================================================
   Совместимость с темой Repost (добавлено 23.08.2026)
   Модуль рассчитан на переменные темы MoreTheme — маппим их
   на переменные Repost, чтобы работали светлая и тёмная темы
   ============================================================ */
:root {
    --bg2: var(--card-bg, #ffffff);
    --dark: var(--btn-light-bg, #f1f3f5);
    --light: var(--box-bg, #f8f9fa);
    --light2: var(--box-bg, #eef0f2);
    --radius: var(--card-border-radius, 8px);
    --color1: var(--color-primary, #1e40af);
    --color2: var(--color-red, #e53935);
    --text: var(--color-title, #111111);
    --text2: #78828c;
}

/* Каркас модального окна корзины: нейтрализуем Bootstrap .modal */
.e-none {
    display: none;
}

.store-modal.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10500;
    overflow: hidden;
    outline: 0;
    background: rgba(0, 0, 0, 0.45);
}

.store-modal > div {
    z-index: 10501;
    background: var(--bg2, #ffffff);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    color: var(--color-text, inherit);
}

.e-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10499;
}

/* Иконки: FontAwesome в теме не подключен, рисуем символами */
.store-modal_header .fa-xmark,
.store-deliv .fa-xmark,
.store-deliv1 .fa-xmark {
    cursor: pointer;
}

.store-modal_header .fa-xmark::before,
.store-deliv .fa-xmark::before,
.store-deliv1 .fa-xmark::before {
    content: "\2715";
    font-style: normal;
}

.store-cart_item #cart_del {
    cursor: pointer;
}

.store-cart_item #cart_del::before {
    content: "\1F5D1";
    font-style: normal;
}

.header-store {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.header-store .fa-bag-shopping::before {
    content: "\1F6D2";
    font-style: normal;
}

#cart_counts {
    background: var(--color1, #1e40af);
    color: #fff;
    border-radius: 50px;
    padding: 1px 8px;
    font-size: 12px;
    min-width: 20px;
    text-align: center;
}

/* Кнопка в блоках статуса оплаты ([check=N]) */
.e-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 24px;
    background: var(--color1, #1e40af);
    color: #fff;
    border-radius: var(--radius, 8px);
    text-decoration: none;
}

.store-check img {
    width: 90px;
    margin-bottom: 20px;
}

/* === Страница оформления заказа: поля формы и кнопка оплаты (23.08.2026) === */
.e-field {
    display: block;
    margin-bottom: 16px;
}

.e-field label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text, inherit);
}

.e-field input,
.e-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: var(--radius, 8px);
    background: var(--form-bg, #fff);
    color: var(--form-color, inherit);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.e-field input:focus,
.e-field textarea:focus {
    border-color: var(--color1, #1e40af);
}

.store-bask_detal .payment > b,
.store-bask_detal .delivery > b {
    display: block;
    margin: 20px 0 12px;
    font-size: 16px;
}

.store-bask_buy > button {
    display: block;
    padding: 14px 24px;
    background: var(--color1, #1e40af);
    color: #fff;
    border: none;
    border-radius: var(--radius, 8px);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: opacity 0.2s;
}

.store-bask_buy > button:hover {
    opacity: 0.9;
}

.store-bask_buy > b {
    display: block;
    font-size: 18px;
    margin-bottom: 15px;
}

/* === Читаемость цен в корзине и заказе (23.08.2026) === */
.store-cart_title > span {
    color: var(--color-title, #111);
    font-weight: 700;
    font-size: 16px;
}

.store-modal_sums > div,
.store-bask_sums > div {
    color: var(--color-title, #111);
    font-size: 16px;
}

.store-modal_sums > div:last-child,
.store-bask_sums > div:last-child {
    font-weight: 700;
    font-size: 18px;
}

/* === Плашки способов оплаты: фиксированный размер, без сжатия (23.08.2026) === */
.store-bask_detal .payment > div {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.store-bask_detal .payment > div label {
    flex: 0 0 210px;
    max-width: 210px;
}

.store-bask_detal .payment > div label input + img,
.store-bask_detal .payment > div > a img {
    padding: 12px 16px 12px 44px;
    height: 64px;
    border: 2px solid var(--bs-border-color, #dee2e6);
    background: #fff;
    margin-bottom: 0;
}

.store-bask_detal .payment > div label input {
    margin: 8px;
    accent-color: var(--color1, #1e40af);
    z-index: 1;
}

.store-bask_detal .payment > div label span {
    margin-top: 6px;
    text-align: center;
}

/* === Панель корзины: оставляем ~270px свободного места снизу (23.08.2026) === */
.store-modal > div {
    height: calc(100% - 270px);
    min-height: 380px;
    border-radius: 0 0 0 16px;
}

@media (max-height: 750px) {
    .store-modal > div {
        height: 100%;
        border-radius: 0;
    }
}

/* ============================================================
   Редизайн страницы оформления заказа по макету (23.08.2026)
   ============================================================ */
.st-checkout_title {
    font-family: var(--font-inter, Inter, sans-serif);
    font-size: 34px;
    font-weight: 700;
    color: var(--text, #000);
    margin: 0 0 28px;
}

.store-bask {
    grid-template-columns: 1fr 420px;
    grid-gap: 32px;
    align-items: start;
}

.st-card {
    background: var(--bg2, #fff);
    border-radius: var(--radius, 12px);
    box-shadow: var(--card-box-shadow, rgba(149, 157, 165, 0.1) 0px 8px 24px 0px);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.store-bask_detal > .st-card {
    margin-bottom: 24px;
}

.store-bask .st-card > .st-card_title {
    font-family: var(--font-inter, Inter, sans-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--text, #000);
    margin: 0;
}

.st-fields2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.st-card .e-field {
    margin-bottom: 0;
}

.st-hint {
    display: block;
    font-size: 12px;
    color: var(--text2, #7a828a);
    margin-top: 4px;
}

.st-opt {
    color: var(--text2, #9aa0a6);
    font-weight: 400;
}

/* Плашка способа оплаты по макету */
.store-bask_detal .payment > div label {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid var(--color-gray, #eee);
    border-radius: 12px;
    padding: 12px 16px;
    background: var(--bg2, #fff);
    cursor: pointer;
    overflow: visible;
    flex: 0 1 420px;
    max-width: 420px;
    font-weight: 700;
    color: var(--text, #26264d);
    transition: border-color 0.2s;
}

.store-bask_detal .payment > div label input {
    position: static;
    margin: 0;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    accent-color: var(--color1, #0d6efd);
}

.store-bask_detal .payment > div label input + img {
    width: auto;
    height: 34px;
    padding: 0;
    border: none;
    background: none;
    margin-bottom: 0;
    border-radius: 0;
}

.store-bask_detal .payment > div label:has(input:checked) {
    border-color: var(--color1, #0d6efd);
}

.store-bask_detal .payment > div label input:checked + img {
    border: none;
}

.st-trust,
.st-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--text2, #7a828a);
    font-size: 13px;
    line-height: 1.4;
}

.st-trust svg,
.st-note svg {
    flex: 0 0 16px;
    margin-top: 1px;
}

.st-divider {
    height: 1px;
    background: var(--color-gray, #eee);
}

/* Промокод и бонусы по макету */
.store-bask_promo {
    display: flex;
    gap: 10px;
}

.store-bask_promo input {
    flex: 1 1 0;
    min-width: 0;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    background: var(--form-bg, #fff);
    color: var(--form-color, #212529);
    font-size: 14px;
    font-family: inherit;
}

.store-bask_promo > button {
    height: 42px;
    padding: 0 18px;
    border: none;
    border-radius: 10px;
    background: var(--btn-light-bg, #f7f7f7);
    color: var(--text, #212529);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
}

.store-bask_bonus {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--light, #f7f7f7);
    border-radius: 10px;
    padding: 12px 14px;
}

.store-bask_bonus > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.store-bask_bonus > div > b {
    font-size: 14px;
    font-weight: 500;
    color: var(--text, #212529);
}

.store-bask_bonus > div > span {
    font-size: 12px;
    color: var(--text2, #7a828a);
}

.store-bask_bonus input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color1, #0d6efd);
}

/* Суммы по макету */
.store-bask_sums > div {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text2, #7a828a);
    margin-bottom: 8px;
}

.store-bask_sums > div.st-total {
    align-items: baseline;
    color: var(--text, #000);
    margin-bottom: 0;
}

.store-bask_sums > div.st-total > span:first-child {
    font-family: var(--font-inter, Inter, sans-serif);
    font-size: 16px;
    font-weight: 600;
}

.store-bask_sums > div.st-total > span:last-child {
    font-family: var(--font-inter, Inter, sans-serif);
    font-size: 24px;
    font-weight: 700;
}

.st-paylogin {
    display: block;
    text-align: center;
    padding: 14px 24px;
    background: var(--color1, #0d6efd);
    color: #fff !important;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
}

@media (max-width: 860px) {
    .store-bask {
        grid-template-columns: 1fr;
    }

    .st-fields2 {
        grid-template-columns: 1fr;
    }

    .st-checkout_title {
        font-size: 24px;
        margin-bottom: 18px;
    }

    .st-card {
        padding: 18px;
    }
}

/* === Фиксы страницы оформления по скриншотам (23.08.2026) === */

/* Убираем дублирующийся текст названия платежки — логотип уже содержит имя */
.store-bask_detal .payment > div label {
    font-size: 0;
}

/* На странице оформления скрываем сайдбар темы; контент центрируем,
   чтобы правая колонка не упиралась в край и не пересекалась с рекламой */
.global__container:has(.store-bask) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "content";
    max-width: 1120px;
    margin: 0 auto;
}

.global__container:has(.store-bask) .sidebar {
    display: none;
}

/* === Компактная карточка «Ваш заказ»: убираем лишний воздух (23.08.2026) === */
.store-bask_buy.st-card {
    gap: 12px;
    padding: 22px 24px;
}

/* Гасим унаследованные отступы модуля — они складывались с gap карточки */
.store-bask_buy .store-bask_promo {
    margin-bottom: 0;
}

.store-bask_buy .store-bask_bonus {
    margin: 0;
    padding: 10px 14px;
}

.store-bask_buy > b {
    margin-bottom: 0;
}

.store-bask_sums > div {
    padding-top: 0;
    border-top: none;
    margin-bottom: 6px;
}

.store-bask_sums > div:last-child {
    margin-bottom: 0;
}

.store-bask_buy > button {
    margin-top: 4px;
}

.store-cart_item {
    grid-gap: 14px;
}

/* === Блок «Товар куплен» — общий для fullstory.tpl и fullstory-magazin.tpl (23.08.2026) === */
.store-purchased {
    margin-top: 12px;
    padding: 16px;
    border: 1px solid #4caf50;
    border-radius: 8px;
    background: rgba(76, 175, 80, 0.08);
}

.store-purchased__label {
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text, inherit);
}

.store-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #2e7d32, #43a047);
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(46, 125, 50, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(46, 125, 50, 0.35);
}

/* === Блок «Товар куплен»: строка с кнопкой справа, в стиле панели товара (23.08.2026) === */
.store-purchased {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 22px;
    border-radius: 12px;
    margin-top: 12px;
}

.store-purchased__label {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .store-purchased {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .store-download-btn {
        justify-content: center;
    }
}

/* Вторая ссылка на странице успеха оплаты */
.store-check_home {
    margin-top: 14px;
    color: var(--text2, #78828c);
    font-size: 14px;
}

/* ============================================================
   Подписка: скрытый контент, тарифы, бейдж (23.08.2026)
   ============================================================ */

/* Контент для подписчиков */
.sub-content {
    margin-top: 16px;
    padding: 18px 22px;
    border: 1px solid var(--color1, #0d6efd);
    border-radius: 12px;
    background: rgba(13, 110, 253, 0.04);
}

.sub-content_label {
    font-weight: 600;
    font-size: 13px;
    color: var(--color1, #0d6efd);
    margin-bottom: 10px;
}

/* Заглушка для тех, у кого нет подписки */
.sub-locked {
    margin-top: 16px;
    padding: 32px 24px;
    border: 1px dashed var(--bs-border-color, #ced4da);
    border-radius: 12px;
    background: var(--light, #f7f7f7);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    color: var(--text2, #78828c);
}

.sub-locked_title {
    font-family: var(--font-inter, Inter, sans-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--text, #000);
}

.sub-locked_text {
    font-size: 14px;
    max-width: 420px;
}

.sub-locked_btn {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 32px;
    background: var(--color1, #0d6efd);
    color: #fff !important;
    border-radius: 10px;
    font-weight: 600;
}

/* Бейдж подписки в шапке */
.sub-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 10px;
    padding: 4px 12px;
    background: rgba(13, 110, 253, 0.1);
    color: var(--color1, #0d6efd) !important;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

/* Страница тарифов */
.st-tariffs_intro {
    color: var(--text2, #78828c);
    max-width: 640px;
    margin: 0 0 24px;
}

.st-sub-active {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 18px;
    border: 1px solid #4caf50;
    border-radius: 12px;
    background: rgba(76, 175, 80, 0.08);
    margin-bottom: 24px;
    font-size: 14px;
}

.st-tariffs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
    margin-bottom: 24px;
}

.st-tariff {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg2, #fff);
    border: 1px solid var(--bs-border-color, #e2e8f0);
    border-radius: 14px;
    padding: 28px 24px;
    box-shadow: var(--card-box-shadow, rgba(149, 157, 165, 0.1) 0px 8px 24px 0px);
}

.st-tariff--hit {
    border: 2px solid var(--color1, #0d6efd);
}

.st-tariff_badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color1, #0d6efd);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 14px;
    border-radius: 50px;
}

.st-tariff_name {
    font-family: var(--font-inter, Inter, sans-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--text, #000);
}

.st-tariff_price {
    font-family: var(--font-inter, Inter, sans-serif);
    font-size: 34px;
    font-weight: 700;
    color: var(--text, #000);
}

.st-tariff_price > span {
    font-size: 20px;
    color: var(--text2, #78828c);
    font-weight: 500;
}

.st-tariff_term {
    font-size: 14px;
    color: var(--text2, #78828c);
}

.st-tariff_list {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: var(--text, #212529);
    flex: 1 1 auto;
}

.st-tariff_list li {
    padding-left: 22px;
    position: relative;
}

.st-tariff_list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: 700;
}

.st-tariff_btn {
    display: block;
    margin-top: 14px;
    padding: 13px 20px;
    background: var(--color1, #0d6efd);
    color: #fff !important;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}

.st-sub-login {
    padding: 14px 18px;
    background: var(--light, #f7f7f7);
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
}

.st-tariffs_note {
    color: var(--text2, #78828c);
    font-size: 13px;
    max-width: 640px;
}

@media (max-width: 860px) {
    .st-tariffs {
        grid-template-columns: 1fr;
    }

    .sub-badge {
        display: none;
    }
}

/* ============================================================
   Меню подкатегорий раздела в три столбика (24.08.2026)
   ============================================================ */
.subcats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.subcats-grid:empty {
    display: none;
}

.subcats-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--card-bg, #fff);
    border: 1px solid rgba(120, 130, 140, 0.18);
    font-size: 14px;
    font-weight: 500;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease;
}

.subcats-link:hover {
    border-color: var(--color-primary, #0d6efd);
}

.subcats-link.active {
    border-color: var(--color-primary, #0d6efd);
    color: var(--color-primary, #0d6efd);
}

.subcats-count {
    font-size: 12px;
    opacity: 0.55;
    font-weight: 400;
}

@media (max-width: 640px) {
    .subcats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Выбор категории в форме добавления поста */
.addpost__catselect {
    margin: 4px 0 8px;
}

.addpost__catselect select {
    width: 100%;
    max-width: 460px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(120, 130, 140, 0.25);
    background: var(--card-bg, #fff);
    color: inherit;
    font-size: 14px;
}

/* ============================================================
   Сетка карточек в категории Магазин (24.08.2026)
   ============================================================ */
.magazin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: stretch;
}

/* Многоколоночная витрина — только когда в сетке карточки товара */
.magazin-grid:has(.product-card) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Всё, что не карточка (пагинация, служебные блоки) — на всю ширину */
.magazin-grid > *:not(.post) {
    grid-column: 1 / -1;
}

.magazin-grid > .post {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
}

.magazin-grid > .post .post__footer {
    margin-top: auto !important;
}

@media (max-width: 700px) {
    .magazin-grid:has(.product-card) {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Витрина магазина: сайдбар категорий + карточки товаров (24.08.2026)
   ============================================================ */
.magazin-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.magazin-aside {
    position: sticky;
    top: 80px;
    background: var(--card-bg, #fff);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--card-box-shadow, rgba(149, 157, 165, 0.1) 0px 8px 24px 0px);
}

.magazin-aside_title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
}

.subcats-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.subcats-list_link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 14px;
    color: inherit;
    text-decoration: none;
}

.subcats-list_link:hover {
    background: rgba(13, 110, 253, 0.08);
}

.subcats-list_link.active {
    background: rgba(13, 110, 253, 0.1);
    color: var(--color-primary, #0d6efd);
    font-weight: 600;
}

.subcats-alllink {
    margin-bottom: 4px;
    font-weight: 500;
}

/* Карточка товара */
.product-card {
    overflow: hidden;
    padding: 0 !important;
}

.product-card_img {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--light, #f2f4f7);
}

.product-card_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.product-card_film_img {
    display: block;
    aspect-ratio: 16 / 24;
    overflow: hidden;
    background: var(--light, #f2f4f7);
}

.product-card_film_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.product-card:hover .product-card_img img {
    transform: scale(1.03);
}

.product-card_body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px 16px;
    flex: 1 1 auto;
}

.product-card_meta {
    display: flex;
    gap: 6px;
    font-size: 12px;
    color: var(--text2, #78828c);
}

.product-card_title {
    font-family: var(--font-inter, Inter, sans-serif);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: inherit;
    text-decoration: none;
}

.product-card_title:hover {
    color: var(--color-primary, #0d6efd);
}

.product-card_text {
    font-size: 13.5px;
    color: var(--text2, #78828c);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card_bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 8px;
}

.product-card_price {
    font-family: var(--font-inter, Inter, sans-serif);
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}

.product-card_price > span {
    font-size: 14px;
    color: var(--text2, #78828c);
    font-weight: 500;
}

.product-card_price--free {
    color: #4caf50;
    font-size: 15px;
}

.product-card_btn {
    padding: 9px 16px;
    border: 1px solid rgba(120, 130, 140, 0.3);
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.product-card_btn:hover {
    border-color: var(--color-primary, #0d6efd);
    color: var(--color-primary, #0d6efd);
}

@media (max-width: 860px) {
    .magazin-layout {
        grid-template-columns: 1fr;
    }

    .magazin-aside {
        position: static;
    }

    .subcats-list {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* Магазин: без правого сайдбара, витрина на всю ширину */
.layout:has(.magazin-layout) {
    display: block;
}

@media (min-width: 1100px) {
    .magazin-grid:has(.product-card) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
