/* mfshare — кнопки в корзине/избранном, окна и страница подборки */
.mfsh-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 16px; padding: 12px 14px; border: 1px solid #ece7e0; border-radius: 14px; background: #faf8f5; font-family: inherit; }
.mfsh-bar__t { flex: 1 1 260px; font-size: 14px; line-height: 1.4; color: #5b6370; }
.mfsh-bar--compact { display: inline-flex; margin: 0 16px 0 auto; padding: 0; border: 0; background: none; }
.mfsh-bar--block { display: flex; margin: 0 0 16px; padding: 0; border: 0; background: none; }
.mfsh-chip { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 1.5px solid #dcdfe4; border-radius: 19px; background: #fff; color: #1f2329; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: border-color .15s; }
.mfsh-chip:hover { border-color: #1f2329; }
.topic__heading .mfsh-bar--compact + .js_clear_favorits { margin-left: 0; }

.mfsh-ov { position: fixed; inset: 0; z-index: 2147483600; background: rgba(15,18,24,.55); display: flex; align-items: center; justify-content: center; padding: 16px; font-family: inherit; }
.mfsh-sh { position: relative; width: 100%; max-width: 460px; background: #fff; color: #1f2329; border-radius: 20px; padding: 24px 22px 20px; box-shadow: 0 20px 60px rgba(15,18,24,.3); box-sizing: border-box; max-height: 100%; overflow: auto; animation: mfshUp .2s ease; }
.mfsh-sh *, .mfsh-page * { box-sizing: border-box; }
@keyframes mfshUp { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.mfsh-x { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: 0; background: none; font-size: 26px; line-height: 1; color: #8a8f98; cursor: pointer; }
.mfsh-ttl { font-size: 20px; font-weight: 700; line-height: 1.25; margin: 0 36px 12px 0; }
.mfsh-txt { font-size: 14px; line-height: 1.45; color: #5b6370; margin: 0 0 14px; }
.mfsh-load { padding: 30px 0; text-align: center; color: #5b6370; font-size: 15px; }
.mfsh-bigcode { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; background: #f7f5f2; border-radius: 14px; padding: 14px 16px; margin: 0 0 12px; }
.mfsh-bigcode span { font-size: 13px; color: #6b7078; }
.mfsh-bigcode b { font-size: 26px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.mfsh-link { display: flex; gap: 8px; margin: 0 0 10px; }
.mfsh-link input { flex: 1; min-width: 0; height: 46px; padding: 0 12px; border: 1.5px solid #dcdfe4; border-radius: 12px; font-size: 14px; color: #1f2329; background: #fff; }
.mfsh-link button, .mfsh-apps > * { height: 46px; padding: 0 16px; border: 0; border-radius: 12px; background: #1f2329; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.mfsh-apps { display: flex; gap: 8px; margin: 0 0 14px; }
.mfsh-apps > * { flex: 1; display: inline-flex; align-items: center; justify-content: center; text-decoration: none !important; background: #f1f2f4; color: #1f2329 !important; }
.mfsh-apps [data-a="tg"] { background: #e6f3fb; color: #1677b8 !important; }
.mfsh-apps [data-a="wa"] { background: #e6f7ec; color: #148a3c !important; }
.mfsh-link-btn { display: block; width: 100%; padding: 10px 0 0; border: 0; border-top: 1px solid #eee; background: none; color: var(--theme-base-color, #e5303d); font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.mfsh-fld { display: block; font-size: 12px; color: #6b7078; margin: 0 0 10px; font-weight: 400; }
.mfsh-sh input[type=text]:not([readonly]), .mfsh-sh input[type=tel] { display: block; width: 100%; height: 50px; margin: 4px 0 0; padding: 0 14px; border: 1.5px solid #dcdfe4; border-radius: 12px; background: #fff; font-size: 17px; color: #1f2329; outline: none; -webkit-appearance: none; appearance: none; }
.mfsh-sh input:focus { border-color: #1f2329; }
.mfsh-sh input.bad { border-color: #d93025; }
.mfsh-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.mfsh-err { min-height: 18px; font-size: 13px; color: #d93025; margin: 0 0 6px; }
.mfsh-go { display: block; width: 100%; height: 54px; border: 0; border-radius: 14px; background: var(--theme-base-color, #e5303d); color: #fff; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.mfsh-go[disabled] { opacity: .5; cursor: default; }
.mfsh-note { font-size: 12px; line-height: 1.45; color: #6b7078; margin: 12px 0 0; }
.mfsh-sh .mfsh-note { text-align: center; }
.mfsh-done { text-align: center; padding: 10px 0 4px; }
.mfsh-done .mfsh-ttl { margin: 0 0 8px; }
.mfsh-done i { display: inline-flex; width: 56px; height: 56px; border-radius: 50%; background: #e8f6ee; color: #1a9b53; align-items: center; justify-content: center; font-size: 28px; font-style: normal; margin-bottom: 12px; }

/* страница /share/<код>/ */
.mfsh-page { font-family: inherit; color: #1f2329; margin: 0 0 40px; }
.mfsh-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 20px; font-size: 14px; color: #5b6370; }
.mfsh-code { display: inline-block; padding: 6px 12px; border-radius: 10px; background: #f7f5f2; color: #1f2329; font-weight: 700; font-size: 16px; letter-spacing: .04em; }
.mfsh-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.mfsh-list { border: 1px solid #ece7e0; border-radius: 16px; overflow: hidden; }
.mfsh-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 16px; padding: 16px; border-top: 1px solid #ece7e0; align-items: start; }
.mfsh-row:first-child { border-top: 0; }
.mfsh-row.is-gone { opacity: .55; }
.mfsh-img { display: block; width: 120px; height: 120px; border-radius: 12px; overflow: hidden; background: #f1eee9; }
.mfsh-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mfsh-name { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; color: #1f2329 !important; text-decoration: none !important; margin: 0 0 4px; }
.mfsh-name:hover { color: var(--theme-base-color, #e5303d) !important; }
.mfsh-art { font-size: 13px; color: #8a8f98; margin: 0 0 6px; }
.mfsh-props { list-style: none; margin: 0; padding: 0; font-size: 13px; line-height: 1.5; color: #1f2329; }
.mfsh-props li { margin: 0; padding: 0; }
.mfsh-props li:before { display: none; }
.mfsh-props span { color: #8a8f98; }
.mfsh-warn { margin: 6px 0 0; font-size: 13px; color: #d93025; }
.mfsh-price { text-align: right; white-space: nowrap; display: flex; flex-direction: column; gap: 2px; }
.mfsh-price b { font-size: 17px; }
.mfsh-muted { font-size: 13px; color: #8a8f98; }
.mfsh-old { font-size: 12px; color: #8a8f98; text-decoration: line-through; }
.mfsh-side { position: sticky; top: 90px; border: 1px solid #ece7e0; border-radius: 16px; padding: 20px; background: #fff; }
.mfsh-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 16px; font-size: 15px; }
.mfsh-total b { font-size: 24px; }
.mfsh-btn { display: block; width: 100%; min-height: 50px; margin: 0 0 10px; padding: 10px 14px; border: 1.5px solid #1f2329; border-radius: 14px; background: #fff; color: #1f2329; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.mfsh-btn--main { border-color: var(--theme-base-color, #e5303d); background: var(--theme-base-color, #e5303d); color: #fff; }
.mfsh-btn--ghost { border-color: #dcdfe4; font-weight: 600; }
.mfsh-btn[disabled] { opacity: .6; cursor: default; }
.mfsh-empty { max-width: 520px; }
.mfsh-lead { font-size: 16px; line-height: 1.5; margin: 0 0 18px; }
.mfsh-find { display: flex; gap: 10px; align-items: flex-end; margin: 0 0 12px; }
.mfsh-find label { flex: 1; font-size: 13px; color: #6b7078; }
.mfsh-find input { display: block; width: 100%; height: 50px; margin: 4px 0 0; padding: 0 14px; border: 1.5px solid #dcdfe4; border-radius: 12px; font-size: 18px; letter-spacing: .04em; }
.mfsh-find button { height: 50px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--theme-base-color, #e5303d); color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }

@media (max-width: 991px) {
  .mfsh-grid { grid-template-columns: minmax(0, 1fr); }
  .mfsh-side { position: static; }
}
@media (max-width: 600px) {
  .mfsh-ov { align-items: flex-end; padding: 0; }
  .mfsh-sh { border-radius: 20px 20px 0 0; max-width: none; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
  .mfsh-row { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 14px 12px; }
  .mfsh-img { width: 84px; height: 84px; }
  .mfsh-price { grid-column: 2; text-align: left; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
  .mfsh-bar--compact { margin: 10px 0 0; width: 100%; }
  .topic__heading { flex-wrap: wrap; }
  .mfsh-bigcode b { font-size: 22px; }
  .mfsh-apps { flex-wrap: wrap; }
}

/* печать и PDF: только подборка, без шапки и подвала сайта */
.mfsh-phead { display: none; }
.mfsh-printmode .mfsh-phead { display: flex; }
.mfsh-phead { flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 0 0 12px; margin: 0 0 16px; border-bottom: 2px solid #1f2329; font-size: 13px; color: #1f2329; }
@media print {
  @page { margin: 12mm; }
  body * { visibility: hidden !important; }
  .mfsh-page, .mfsh-page * { visibility: visible !important; }
  .mfsh-page { position: absolute; left: 0; top: 0; width: 100%; margin: 0; }
  .mfsh-phead { display: flex !important; }
  .mfsh-meta, .mfsh-btn, .mfsh-note { display: none !important; }
  .mfsh-grid { display: block; }
  .mfsh-side { position: static; border: 0; padding: 12px 0 0; }
  .mfsh-total { justify-content: flex-end; gap: 20px; }
  .mfsh-list { border-color: #ccc; }
  .mfsh-row { break-inside: avoid; grid-template-columns: 90px minmax(0, 1fr) auto; }
  .mfsh-img { width: 90px; height: 90px; }
  .mfsh-name { color: #000 !important; }
  .jivo-iframe-container, #jivo-iframe-container, jdiv, .mfbk-toast { display: none !important; }
}
/* шапка корзины: наши действия вместо формы Аспро */
.btn_basket_heading[data-mfsh-h] .mfsh-hico { display: inline-flex; width: 16px; height: 16px; }
.mfsh-chip[hidden] { display: none !important; }
.mfsh-apps--col { flex-direction: column; }
.mfsh-apps--col > * { flex: none; height: auto; min-height: 54px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; padding: 8px 16px; text-align: left; }
.mfsh-apps--col small { font-size: 12px; font-weight: 400; opacity: .75; }
.mfsh-apps [data-a="mail"] { background: #f4f1ec; }
.mfsh-apps [data-a="pdf"] { background: #f1f2f4; }
