/* БыстроМайка — конструктор футболок */
body.bm-ctor-page #main .ct-container-full, body.bm-ctor-page #main .ct-container { padding:0 !important; max-width:none !important; width:100% !important; }
body.bm-ctor-page article > .entry-content { max-width:none !important; margin:0 !important; }
body.bm-ctor-page .entry-content > .bmc { max-width:none !important; margin:0 !important; }

.bmc { width:100% !important; max-width:none !important; margin:0 !important; }
.bmc { --r:20px; font-family:var(--bm-font, Arial, sans-serif); color:var(--bm-ink, #121212); background:var(--bm-paper, #f6f4ee); min-height:calc(100vh - 76px); }
.bmc *, .bmc *::before, .bmc *::after { box-sizing:border-box; }
.bmc h2, .bmc h3 { font-family:var(--bm-font-head, Arial); margin:0; letter-spacing:-.02em; color:var(--bm-ink, #121212); }
.bmc p { margin:0; }
.bmc button { font-family:inherit; }
.bmc button svg, .bmc label svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.bmc-loading { padding:120px 20px; text-align:center; color:var(--bm-muted, #6c6a64); }

.bmc-app { display:grid; grid-template-columns:minmax(0, 1fr) 400px; gap:24px; width:min(1240px, calc(100% - 48px)); margin:0 auto; padding:24px 0 40px; align-items:start; }

/* сцена */
.bmc-main { display:flex; flex-direction:column; gap:14px; min-width:0; }
.bmc-top { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.bmc-sides { display:flex; gap:8px; }
.bmc-sides button { display:flex; align-items:center; gap:10px; padding:6px 14px 6px 6px; border-radius:16px; border:1.5px solid transparent; background:#fff;
  font-weight:700; font-size:15px; color:var(--bm-ink, #121212); cursor:pointer; position:relative; }
.bmc-sides button[aria-selected="true"] { border-color:var(--bm-ink, #121212); }
.bmc-thumb { width:44px; height:48px; border-radius:10px; background:var(--bm-paper, #f6f4ee); display:grid; place-items:center; overflow:hidden; }
.bmc-thumb img { width:100%; height:100%; object-fit:contain; }
.bmc-badge { font-style:normal; font-size:11px; font-weight:700; padding:2px 6px; border-radius:6px; background:var(--bm-accent, #d4ff3f); color:var(--bm-on-accent, #111); }
.bmc-badge:empty { display:none; }
.bmc-hist { display:flex; gap:6px; }
.bmc-hist button, .bmc-iconbtn { width:44px; height:44px; border-radius:50%; border:1px solid var(--bm-line, #e6e3da); background:#fff; display:grid; place-items:center; cursor:pointer; color:var(--bm-ink, #121212); }
.bmc-hist button:disabled { opacity:.35; cursor:default; }

.bmc-stage { position:relative; width:100%; max-width:620px; margin:0 auto; aspect-ratio:400 / 440; border-radius:28px; background:radial-gradient(120% 90% at 50% 40%, #ffffff 0%, #e9e6dd 100%); overflow:hidden; touch-action:none; }
.bmc-stage.is-drop { outline:3px dashed var(--bm-ink, #121212); outline-offset:-10px; }
.bmc-stage.is-busy::after { content:""; position:absolute; inset:0; background:rgba(255,255,255,.5); }
.bmc-tee { position:absolute; inset:0; }
.bmc-tee-svg { display:block; width:100%; height:100%; filter:drop-shadow(0 22px 26px rgba(0,0,0,.1)); }
.bmc-canvases, .bmc-c { position:absolute; inset:0; }
.bmc-c[hidden] { display:none !important; }
.bmc-area { position:absolute; border:1.5px dashed rgba(0,0,0,.28); border-radius:6px; pointer-events:none; }
.bmc-stage.is-dark .bmc-area { border-color:rgba(255,255,255,.4); }
.bmc-area-label { position:absolute; left:50%; bottom:-26px; transform:translateX(-50%); white-space:nowrap; font-size:11px; color:var(--bm-muted, #6c6a64); }
.bmc-warn { padding:10px 14px; border-radius:12px; background:#fff3e0; color:#8a4b00; font-size:14px; font-weight:600; max-width:620px; margin:0 auto; width:100%; }

.bmc-tools { display:flex; align-items:center; gap:10px; flex-wrap:wrap; max-width:620px; width:100%; margin:0 auto; }
.bmc-tool { display:inline-flex; align-items:center; gap:8px; height:48px; padding:0 18px; border-radius:999px; background:var(--bm-ink, #121212); color:#fff; font-weight:700; font-size:15px; border:0; cursor:pointer; }
.bmc-tool:hover { transform:translateY(-1px); }
.bmc-colors { display:flex; gap:8px; margin-left:auto; }
.bmc-colors button { width:34px; height:34px; border-radius:50%; background:var(--c); border:2px solid #fff; box-shadow:0 0 0 1px var(--bm-line, #e6e3da); cursor:pointer; padding:0; }
.bmc-colors button[aria-checked="true"] { box-shadow:0 0 0 2px var(--bm-ink, #121212); }

/* панель */
.bmc-panel { position:sticky; top:96px; display:flex; flex-direction:column; gap:14px; }
.bmc-empty, .bmc-edit, .bmc-sum { padding:22px; border-radius:var(--r); background:#fff; }
.bmc-empty h2 { font-size:22px; line-height:1.15; margin-bottom:10px; }
.bmc-empty p { font-size:15px; line-height:1.5; color:var(--bm-muted, #6c6a64); margin-bottom:16px; }
.bmc-empty-btns { display:grid; gap:10px; }
.bmc-edit-head { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:14px; }
.bmc-edit-title { font:800 18px var(--bm-font-head, Arial); }
.bmc-dim { font-size:13px; color:var(--bm-muted, #6c6a64); font-weight:600; }
.bmc-input { width:100%; padding:12px 14px; border-radius:14px; border:1.5px solid var(--bm-line, #e6e3da); font:700 17px var(--bm-font, Arial); color:var(--bm-ink, #121212) !important; resize:vertical; outline:none; background:#fff; }
.bmc-input:focus { border-color:var(--bm-ink, #121212); }
.bmc-label { margin:14px 0 8px; font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--bm-muted, #6c6a64); }
.bmc-fonts { display:grid; grid-template-columns:repeat(3, 1fr); gap:6px; max-height:176px; overflow:auto; padding:2px; }
.bmc-fonts button { height:48px; padding:0 6px; border-radius:12px; border:1.5px solid var(--bm-line, #e6e3da); background:#fff; font-size:15px; cursor:pointer; color:var(--bm-ink, #121212); overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.bmc-fonts button.is-on { border-color:var(--bm-ink, #121212); background:var(--bm-accent-soft, #f3ffd0); }
.bmc-inks { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.bmc-inks button, .bmc-ink-custom { width:30px; height:30px; border-radius:50%; background:var(--c); border:2px solid #fff; box-shadow:0 0 0 1px var(--bm-line, #d8d5cc); cursor:pointer; padding:0; }
.bmc-inks button.is-on { box-shadow:0 0 0 2px var(--bm-ink, #121212); }
.bmc-ink-custom { position:relative; overflow:hidden; background:conic-gradient(red, yellow, lime, cyan, blue, magenta, red); }
.bmc-ink-custom input { position:absolute; inset:0; opacity:0; cursor:pointer; width:100%; height:100%; }
.bmc-inks--sm button, .bmc-inks--sm .bmc-ink-custom { width:24px; height:24px; }
.bmc-inks.is-off { opacity:.35; }
.bmc-row { display:flex; align-items:center; gap:12px; margin-top:14px; flex-wrap:wrap; }
.bmc-check { display:inline-flex; align-items:center; gap:8px; font-size:14px; font-weight:600; cursor:pointer; }
.bmc-check input { width:18px; height:18px; accent-color:var(--bm-ink, #121212); }
.bmc-align button { width:42px; height:38px; border-radius:10px; border:1.5px solid var(--bm-line, #e6e3da); background:#fff; display:grid; place-items:center; cursor:pointer; color:var(--bm-ink, #121212); }
.bmc-align button.is-on { border-color:var(--bm-ink, #121212); }
.bmc-quality { padding:10px 12px; border-radius:12px; font-size:14px; line-height:1.4; font-weight:600; }
.bmc-quality.is-good { background:#e8f7ec; color:#1d6b33; }
.bmc-quality.is-mid { background:#fff6df; color:#7a5600; }
.bmc-quality.is-bad { background:#ffe9e5; color:#a52a14; }
.bmc-actions { display:grid; grid-template-columns:repeat(3, 1fr); gap:6px; margin-top:16px; }
.bmc-actions button { display:flex; flex-direction:column; align-items:center; gap:4px; padding:10px 4px; border-radius:12px; border:1px solid var(--bm-line, #e6e3da); background:#fff; font-size:12px; font-weight:600; cursor:pointer; color:var(--bm-ink, #121212); }
.bmc-actions button[hidden] { display:none; }
.bmc-actions .is-danger { color:#c62f1d; }

.bmc-sum { display:flex; flex-direction:column; gap:14px; }
.bmc-formats { display:flex; flex-wrap:wrap; gap:6px; font-size:13px; }
.bmc-formats span { padding:5px 10px; border-radius:999px; background:var(--bm-paper, #f6f4ee); }
.bmc-price { margin-top:8px; font-size:15px; color:var(--bm-ink-2, #2a2a2a); }
.bmc-price b { font:800 24px var(--bm-font-head, Arial); }
.bmc-ready { margin-top:6px; font-size:14px; font-weight:600; color:#1d6b33; }
.bmc-ready::before { content:"⏱ "; }
.bmc-sum-btns { display:flex; gap:8px; }
.bmc-btn { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:52px; padding:0 22px; border-radius:999px; border:2px solid var(--bm-ink, #121212);
  background:var(--bm-ink, #121212); color:#fff; font-weight:700; font-size:16px; cursor:pointer; text-decoration:none; }
.bmc-btn--accent { background:var(--bm-accent, #d4ff3f); border-color:var(--bm-accent, #d4ff3f); color:var(--bm-on-accent, #111); flex:1; }
.bmc-btn--ghost { background:#fff; color:var(--bm-ink, #121212); }
.bmc-btn:disabled { opacity:.45; cursor:default; }
.bmc-sum .bmc-iconbtn { width:52px; height:52px; }

/* окно заказа */
.bmc-dialog { width:min(480px, calc(100% - 24px)); border:0; border-radius:24px; padding:0; color:var(--bm-ink, #121212); }
.bmc-dialog::backdrop { background:rgba(18,18,18,.5); }
.bmc-dform { position:relative; display:grid; gap:14px; padding:26px; margin:0; font-family:var(--bm-font, Arial); }
.bmc-dform h3 { font-size:22px; }
.bmc-x { position:absolute; right:14px; top:12px; width:38px; height:38px; border-radius:50%; border:0; background:var(--bm-paper, #f6f4ee); font-size:22px; cursor:pointer; }
.bmc-sizes { display:grid; grid-template-columns:repeat(auto-fill, minmax(120px, 1fr)); gap:8px; }
.bmc-size { display:flex; align-items:center; justify-content:space-between; gap:6px; padding:8px 8px 8px 14px; border-radius:14px; background:var(--bm-paper, #f6f4ee); }
.bmc-step { display:flex; align-items:center; }
.bmc-step button { width:30px; height:30px; border-radius:50%; border:0; background:#fff; font-size:18px; cursor:pointer; }
.bmc-step input { width:38px; text-align:center; border:0; background:transparent; font:700 16px var(--bm-font, Arial); -moz-appearance:textfield; padding:0; }
.bmc-step input::-webkit-inner-spin-button { -webkit-appearance:none; }
.bmc-total { font-size:15px; }
.bmc-note { font-size:14px; line-height:1.5; color:var(--bm-muted, #6c6a64); }
.bmc-leadf { display:grid; gap:10px; }
.bmc-leadf[hidden] { display:none; }
.bmc-2 { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.bmc-leadf input:not([type=checkbox]), .bmc-leadf textarea { width:100%; min-height:48px; padding:10px 14px; border-radius:12px; border:1.5px solid var(--bm-line, #e6e3da); font:500 16px var(--bm-font, Arial); color:var(--bm-ink, #121212) !important; outline:none; background:#fff; }
.bmc-consent { font-size:13px; font-weight:500; color:var(--bm-muted, #6c6a64); align-items:flex-start; }
.bmc-consent a { color:inherit; text-decoration:underline; }
.bmc-msg { font-size:15px; font-weight:600; min-height:1em; }
.bmc-msg.is-err { color:#c62f1d; }
.bmc-msg.is-ok { color:#1d6b33; }
.bmc-toast { position:fixed; left:50%; bottom:24px; transform:translateX(-50%); z-index:999; padding:12px 18px; border-radius:14px; background:var(--bm-ink, #121212); color:#fff; font-weight:600; font-size:15px; box-shadow:0 12px 30px rgba(0,0,0,.2); }
.bmc-toast[hidden] { display:none; }

@media (max-width:1000px) {
  .bmc-app { grid-template-columns:1fr; width:calc(100% - 32px); padding-top:14px; gap:16px; }
  .bmc-panel { position:static; }
  .bmc-sum { position:fixed; left:0; right:0; bottom:0; z-index:80; border-radius:20px 20px 0 0; padding:12px 16px calc(12px + env(safe-area-inset-bottom)); box-shadow:0 -10px 30px rgba(0,0,0,.08);
    flex-direction:row; align-items:center; gap:12px; }
  .bmc-sum-info { flex:1; min-width:0; }
  .bmc-formats { display:none; }
  .bmc-price { margin:0; font-size:13px; } .bmc-price b { font-size:18px; }
  .bmc-ready { font-size:12px; margin-top:2px; }
  .bmc-sum-btns .bmc-btn { min-height:46px; padding:0 16px; font-size:15px; }
  .bmc-sum .bmc-iconbtn { width:46px; height:46px; }
  .bmc { padding-bottom:90px; }
}
@media (max-width:560px) {
  .bmc-stage { border-radius:20px; }
  .bmc-tools { gap:8px; }
  .bmc-tool { height:44px; padding:0 14px; font-size:14px; }
  .bmc-colors { margin-left:0; width:100%; justify-content:space-between; }
  .bmc-top { gap:6px; }
  .bmc-sides { gap:6px; min-width:0; }
  .bmc-sides button { padding:4px 8px 4px 4px; gap:6px; font-size:14px; border-radius:14px; }
  .bmc-thumb { width:30px; height:34px; border-radius:8px; }
  .bmc-badge { display:none; }
  .bmc-hist { gap:4px; }
  .bmc-hist button { width:36px; height:36px; }
  .bmc-hist button svg { width:17px; height:17px; }
  .bmc-quote { display:none; }
  .bmc-fonts { grid-template-columns:repeat(2, 1fr); }
  .bmc-2 { grid-template-columns:1fr; }
}
