/* Боковая корзина FunnelKit: подсказка «до бесплатной доставки» над итогом (includes/freeship.php) */
.mrd-freeship { padding: 16px 16px 0; /* сбоку — как у строки «Сумма заказа»; снизу хватает её отступа 16px */ font-size: 14px; line-height: 1.35; color: #24272d; }
.mrd-freeship__text { margin-bottom: 6px; }
.mrd-freeship.is-done .mrd-freeship__text { color: #2d7a1f; font-weight: 500; }
.mrd-freeship__bar { height: 6px; border-radius: 3px; background: #eee; overflow: hidden; }
.mrd-freeship__bar i { display: block; height: 100%; background: #ffc45a; transition: width .3s; }
.mrd-freeship.is-done .mrd-freeship__bar i { background: #2da815; }

/* Своя боковая корзина (includes/side-cart.php, assets/side-cart.js). Вид — пока как у FunnelKit (снимки staging/shots/side-cart-before),
   новый — в переделке дизайна. */
.mrd-sc-toggle { position: fixed; right: 36px; bottom: 36px; z-index: 10; display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; padding: 0; border: 0; border-radius: 50%; background: #ffc45a; color: #602c28; box-shadow: 0 2px 20px -2px rgba(0, 0, 0, .3); cursor: pointer; transition: translate .2s; }
.mrd-sc-toggle svg { width: 30px; height: 30px; }
.mrd-sc-count { position: absolute; top: -5px; left: -5px; box-sizing: border-box; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 999px; background: #fe4641; color: #fff; font: 600 12px/24px Roboto, sans-serif; text-align: center; }
.mrd-sc-count[hidden] { display: none; }
@media (max-width: 600px) {
  .mrd-sc-toggle svg { width: 21px; height: 21px; }
  .mrd-sc-count { min-width: 18px; height: 18px; line-height: 18px; }
}

.mrd-sc { box-sizing: border-box; position: fixed; inset: 0 0 0 auto; display: none; flex-direction: column; width: 420px; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 16px 0; border: 0; border-radius: 24px 0 0 24px; background: #fff; color: #24272d; font: 500 16px/1.35 Roboto, sans-serif; box-shadow: 0 0 30px rgba(0, 0, 0, .15); overscroll-behavior: contain; }
.mrd-sc[open] { display: flex; }
.mrd-sc::backdrop { background: rgba(0, 0, 0, .35); } /* как у FunnelKit: страница под корзиной затемнена */
@media (max-width: 600px) { .mrd-sc { width: 100%; border-radius: 24px 24px 0 0; } }
.mrd-sc button { font-family: inherit; }
.mrd-sc__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 32px; }
.mrd-sc__title { font-size: 16px; font-weight: 600; }
.mrd-sc__close { display: flex; padding: 0; border: 0; background: none; color: #5f6368; cursor: pointer; }
.mrd-sc__items { flex: 1; overflow-y: auto; padding: 12px 16px 0; } /* сверху место под «×», выступающий над фото на 8 px: прокрутка его обрезала */
.mrd-sc__items[hidden], .mrd-sc__foot[hidden], .mrd-sc__empty[hidden], .mrd-sc__hint[hidden] { display: none; }
.mrd-sc__item { position: relative; display: grid; grid-template-columns: 75px minmax(0, 1fr) auto; column-gap: 16px; align-items: start; padding: 0 16px 16px; }
.mrd-sc__media { display: block; width: 75px; height: 75px; overflow: hidden; border: 1px solid #e3e3e3; border-radius: 8px; box-sizing: border-box; }
.mrd-sc__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mrd-sc__remove { position: absolute; top: -8px; left: 8px; display: flex; align-items: center; justify-content: center; width: 25px; height: 25px; padding: 0; border: 0; border-radius: 50%; background: #e3e5ec; color: #353030; cursor: pointer; }
.mrd-sc__name { font-size: 14px; font-weight: 600; line-height: 1.5; }
.mrd-sc__var { font-size: 12px; font-weight: 400; color: #5c6370; }
.mrd-sc__var:empty { display: none; }
.mrd-sc__qtybox { display: inline-flex; align-items: center; height: 24px; margin-top: 8px; border: 1px solid #e3e3e3; border-radius: 6px; }
.mrd-sc__qtybox button { width: 30px; height: 100%; padding: 0; border: 0; background: none; color: #24272d; font-size: 16px; cursor: pointer; }
.mrd-sc__qtybox button:disabled { opacity: .35; cursor: default; }
.mrd-sc__qty { min-width: 30px; height: 100%; border-inline: 1px solid #e3e3e3; text-align: center; font-size: 14px; line-height: 22px; }
.mrd-sc__line { font-size: 14px; font-weight: 400; white-space: nowrap; }
.mrd-sc__foot { padding: 12px 32px 0; } /* при длинном списке подсказка не прилипает к товарам */
.mrd-sc__hint { margin-bottom: 14px; font-size: 14px; } /* компактно, «Сумма заказа» чуть ближе к кнопке (владелец, 2026-11-16) */
.mrd-sc__hint-text { margin-bottom: 6px; }
.mrd-sc__hint.is-done .mrd-sc__hint-text { color: #2d7a1f; font-weight: 500; }
.mrd-sc__bar { height: 6px; overflow: hidden; border-radius: 3px; background: #eee; }
.mrd-sc__bar i { display: block; height: 100%; background: #ffc45a; transition: width .3s; }
.mrd-sc__hint.is-done .mrd-sc__bar i { background: #2da815; }
.mrd-sc__total { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
.mrd-sc__checkout, .mrd-sc__to-menu { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 100%; height: 48px; margin-top: 12px; padding: 0 24px; border: 0; border-radius: 30px; background: #ffc45a; color: #602c28 !important; font: 600 16px/1 Roboto, sans-serif; text-decoration: none !important; cursor: pointer; }
.mrd-sc__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 32px; color: #24272d; }
.mrd-sc__empty svg { width: 56px; height: 56px; }
.mrd-sc__empty-title { margin: 12px 0 0; font-size: 18px; font-weight: 500; }
.mrd-sc__to-menu { max-width: 260px; margin-top: 24px; }
.mrd-sc__checkout.is-loading { opacity: .6; pointer-events: none; }
