/* Чистый калькулятор порезки. Стили ограничены .mi-porezka — не задевают карточку. */
.mi-porezka {
  --orange: #E29E3B;
  --orange-dark: #d6902a;
  --blue: #2a3486;
  --text: #333;
  --muted: #666;
  --muted2: #a4adc1;
  --border: #e1e4e8;
  --bg: #f8f9fb;
  --danger: #ea580c;
  --accent: #E85A29;
  --btn-blue: #157BD7;
  font-family: 'Commissioner', system-ui, sans-serif;
  color: var(--text);
  width: 100%;
  box-sizing: border-box;
}
.mi-porezka, .mi-porezka * { box-sizing: border-box; }
.mi-porezka #root,
.mi-porezka.mi-porezka { max-width: none; margin: 0; padding: 0; }

/* на карточке блок покупки калькулятора живёт в правой колонке, вровень с фото */
.product-layout-with-calc:has(.mi-porezka) .product-right-col-sticky { display: block; }
.product-layout-with-calc:has(.mi-porezka) .buy-block-col { display: none; }
.product-layout-with-calc:has(.mi-porezka) #miPorezkaSideSlot {
  display: block;
  font-family: 'Commissioner', system-ui, sans-serif;
  color: #333;
}
.product-layout-with-calc:has(.mi-porezka) #miPorezkaSideSlot .calc-side {
  width: 100%;
  position: static;
  top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mi-porezka .calc-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.mi-porezka .calc-main { flex: 1; min-width: 0; }
.mi-porezka .calc-side {
  width: 320px;
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mi-porezka .cut-wizard-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  padding: 28px 24px;
  font-family: 'Commissioner', sans-serif;
}

.mi-porezka .wizard-header { margin-bottom: 16px; border-bottom: none; }
.mi-porezka .wiz-tab-container {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.mi-porezka .calc-type-label {
  font-family: 'Commissioner', sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  color: #6f7b91;
  flex-shrink: 0;
}
.mi-porezka .step-title-inline {
  font-family: 'Commissioner', sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  color: #1f1f1f;
  margin-right: 0;
  padding-bottom: 0;
}
.mi-porezka .qty-counter-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  flex-shrink: 0;
}
.mi-porezka .qty-counter-label {
  font-family: 'Commissioner', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #1f1f1f;
  text-align: center;
  margin-bottom: 4px;
  line-height: 16px;
}
.mi-porezka .counterGroup-wide {
  min-width: 200px;
}
.mi-porezka .counterInputWrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 80px;
  gap: 4px;
}
.mi-porezka .counterInputWrap .counterInput {
  width: 48px;
  flex: 0 0 auto;
}
.mi-porezka .counterUnit {
  font-family: 'Commissioner', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #6f7b91;
  line-height: 1;
}
.mi-porezka .wiz-tab {
  font-family: 'Commissioner', sans-serif !important;
  font-weight: 500 !important;
  font-size: 18px !important;
  line-height: 24px !important;
  cursor: pointer;
  border: none !important;
  border-bottom: 3px solid transparent !important;
  border-radius: 0 !important;
  color: #6f7b91 !important;
  background: none !important;
  padding: 0 0 1px !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  box-shadow: none !important;
  outline: none;
  vertical-align: baseline;
  text-transform: none !important;
}
.mi-porezka .wiz-tab.active {
  border-bottom: 3px solid #E29E3B !important;
  color: #2a3486 !important;
  background: none !important;
  font-weight: 600 !important;
}

.mi-porezka .step-title { display: none; }
.mi-porezka .qty-counter-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  flex-shrink: 0;
}
.mi-porezka .step-subtitle {
  font-family: 'Commissioner', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #1f1f1f;
  text-align: center;
  margin: 0;
  line-height: 16px;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  margin-top: 4px;
  pointer-events: none;
}

.mi-porezka .qty-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.mi-porezka .qty-block-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 28px;
  width: 100%;
}
.mi-porezka .qty-block-wrap .qty-counter-label {
  margin-bottom: 4px;
  width: 200px;
  text-align: center;
}
.mi-porezka .qty-row-cut {
  flex-wrap: nowrap;
  align-items: center;
  margin-bottom: 0;
  width: 100%;
}
.mi-porezka .qty-row-cut .qty-counter-block {
  flex-shrink: 0;
}
.mi-porezka .dist-info {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 15px;
  height: 40px;
  background: #f4f6fa;
  border-radius: 6px;
  flex-shrink: 0;
}
.mi-porezka .dist-text {
  font-family: 'Commissioner', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #6f7b91;
}
.mi-porezka .dist-num {
  font-family: 'Commissioner', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #6f7b91;
}
.mi-porezka .dist-remain {
  font-family: 'Commissioner', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #6f7b91;
  margin-left: 4px;
}
.mi-porezka .btn-cut-sizes {
  flex: 1 1 auto;
  min-width: 140px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid #2a3486;
  border-radius: 10px;
  background: #fff;
  color: #2a3486;
  font-family: 'Commissioner', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-sizing: border-box;
  margin-left: auto;
}
.mi-porezka .btn-cut-sizes:hover { background: #f0f2ff; }
.mi-porezka .btn-cut-sizes svg { flex-shrink: 0; }
.mi-porezka .group-tpls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
}
.mi-porezka .group-tpls .tpl-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 8px;
  font-family: 'Commissioner', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #e6e6e6;
  background: #fff;
  color: #6f7b91;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.mi-porezka .group-tpls .tpl-btn-nocut {
  border-color: #4487c4;
  color: #4487c4;
}
.mi-porezka .group-tpls .tpl-btn-clear {
  margin-left: auto;
  border-color: #e6e6e6;
  color: #e53935;
  font-weight: 400;
}
.mi-porezka .group-tpls .tpl-btn:hover,
.mi-porezka .group-tpls .tpl-btn.active {
  background: #4487c4;
  border-color: #4487c4;
  color: #fff;
}
.mi-porezka .group-tpls .tpl-btn:hover svg,
.mi-porezka .group-tpls .tpl-btn.active svg { color: #fff; }
.mi-porezka .group-tpls .tpl-btn svg { flex-shrink: 0; }
.mi-porezka .group-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mi-porezka .group-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}
.mi-porezka .group-toggle-arrow {
  transition: transform 0.2s;
}
.mi-porezka .group-toggle-arrow.open {
  transform: rotate(180deg);
}
.mi-porezka .group-name {
  font-family: 'Commissioner', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #333333;
}
.mi-porezka .group-whips {
  font-family: 'Commissioner', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #666666;
}
.mi-porezka .group-card.collapsed .group-header {
  border-bottom: none;
  border-radius: 8px;
}
.mi-porezka .whip-bar {
  position: relative;
  height: 48px;
  background: #fff;
  border: 1px solid #1f1f1f;
  border-radius: 4px;
  cursor: crosshair;
  user-select: none;
}
.mi-porezka .whip-length-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Commissioner', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #8b93a0;
  pointer-events: none;
  z-index: 1;
  white-space: nowrap;
}
.mi-porezka .whip-segment {
  position: absolute; top: 0; bottom: 0;
  border-right: 1px solid #2a3486;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #1e293b;
  background: #fff;
  z-index: 2;
}
@media (max-width: 700px) {
  .mi-porezka .qty-row-cut { flex-wrap: wrap; }
  .mi-porezka .btn-add-scheme-inline { width: 100%; margin-left: 0; margin-top: 8px; }
}
.mi-porezka .qty-label {
  font-family: 'Commissioner', sans-serif;
  font-weight: 500;
  color: #1f1f1f;
  font-size: 12px;
  min-width: 0;
  padding-top: 0;
  flex-shrink: 0;
  line-height: 1;
}
.mi-porezka .btn-add-scheme-inline {
  flex: 1 1 auto;
  min-width: 140px;
  height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid #2a3486;
  border-radius: 10px;
  background: #fff;
  color: #2a3486;
  font-family: 'Commissioner', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-sizing: border-box;
  margin-left: auto;
  margin-top: 0;
}
.mi-porezka .btn-add-scheme-inline:hover {
  background: #f0f2ff;
}

.mi-custom-box .counterGroup,
.mi-porezka .counterGroup {
  display: flex;
  align-items: center;
  border: 1px solid #e1e4e8;
  border-radius: 12px;
  background: #fff;
  padding: 4px;
}
.mi-custom-box .counterBtn,
.mi-porezka .counterBtn {
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #2a3486;
  cursor: pointer;
  font-family: 'Commissioner', sans-serif;
}
.mi-custom-box .counterInput,
.mi-porezka .counterInput {
  width: 64px;
  height: 30px;
  text-align: center;
  border: none;
  font-size: 16px;
  font-weight: 700;
  color: #2a3486;
  outline: none;
  font-family: 'Commissioner', sans-serif;
}
.mi-custom-box .tpl-btn,
.mi-porezka .tpl-btn {
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #2a3486;
  color: #2a3486;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  font-family: 'Commissioner', sans-serif;
}
.mi-custom-box .tpl-btn:hover,
.mi-porezka .tpl-btn:hover,
.mi-custom-box .tpl-btn.active,
.mi-porezka .tpl-btn.active { background: #2a3486; color: #fff; }

.mi-porezka .templates { display: flex; gap: 8px; margin: 10px 0 16px; flex-wrap: wrap; }
.mi-porezka .tpl-btn {
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #2a3486;
  color: #2a3486;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
}
.mi-porezka .tpl-btn:hover, .mi-porezka .tpl-btn.active { background: #2a3486; color: #fff; }

.mi-porezka .group-card {
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  margin-bottom: 14px;
  overflow: visible;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.mi-porezka .group-card.active {
  border-color: #E29E3B;
  box-shadow: 0 0 0 2px rgba(226, 158, 59, 0.35);
}
.mi-porezka .group-card.scheme-zero {
  border-color: #f5c16c;
  box-shadow: 0 0 0 2px rgba(245, 193, 108, 0.55);
  background: #fffaf3;
}
.mi-porezka .group-card:hover { border-color: #c8872a; }
.mi-porezka .group-header {
  padding: 12px 16px;
  background: #fafafa;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  border-bottom: 1px solid #eeeeee;
  border-radius: 8px 8px 0 0;
}
.mi-porezka .group-header-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}
.mi-porezka .group-body { padding: 28px 16px 22px; }

.mi-porezka .whip-wrap { margin: 8px 0 36px; position: relative; }
.mi-porezka .whip-label { display: none; }
.mi-porezka .whip-bar {
  position: relative;
  height: 48px;
  background: #fff !important;
  border: 1px solid #1f1f1f;
  border-radius: 4px;
  cursor: crosshair;
  user-select: none;
}
.mi-porezka .whip-length-label {
  color: #8b93a0;
}
.mi-porezka .whip-cut-del {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  background: #fff !important;
  color: transparent !important;
  border: 1px solid #1f1f1f !important;
  border-radius: 2px !important;
  font-size: 0 !important;
  line-height: 0 !important;
  cursor: pointer;
  padding: 0 !important;
  margin: 0 !important;
  display: block;
  box-sizing: border-box;
  overflow: visible;
}
.mi-porezka .whip-cut-del::before,
.mi-porezka .whip-cut-del::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 1.5px;
  background: #1f1f1f;
  border-radius: 1px;
}
.mi-porezka .whip-cut-del::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.mi-porezka .whip-cut-del::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.mi-porezka .whip-segment {
  position: absolute; top: 0; bottom: 0;
  border-right: 1px solid #2a3486;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #1e293b;
  background: #fff;
  z-index: 2;
}
.whip-segment.last,
.mi-porezka .whip-segment.remainder,
.mi-porezka .whip-segment.last {
  border-right: none;
  background: #fff;
}
.mi-porezka .whip-segment.remainder {
  background: repeating-linear-gradient(
    -45deg,
    rgba(140, 140, 140, 0.45),
    rgba(140, 140, 140, 0.45) 3px,
    rgba(255, 255, 255, 0.9) 3px,
    rgba(255, 255, 255, 0.9) 7px
  ) !important;
  color: #666;
  border-right: none;
  z-index: 2;
}
.mi-porezka .whip-cut {
  position: absolute; top: -6px; bottom: -6px; width: 14px; margin-left: -7px;
  cursor: ew-resize; z-index: 2;
}
.mi-porezka .whip-cut::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px;
  background: #E29E3B; transform: translateX(-50%);
}
.mi-porezka .whip-cut-label {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #E29E3B !important;
  border-radius: 4px;
  padding: 1px 4px !important;
  font-size: 12px !important;
  font-weight: 700;
  color: #c8872a;
  width: 58px !important;
  min-width: 58px !important;
  height: 22px !important;
  text-align: center;
  pointer-events: auto;
  outline: none;
  box-sizing: border-box;
  z-index: 3;
}
.mi-porezka .btn-del {
  background: none !important;
  border: none !important;
  color: #ea580c !important;
  cursor: pointer;
  font-size: 18px !important;
  font-weight: 700;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 24px !important;
  border-radius: 4px !important;
  flex-shrink: 0;
}

.mi-porezka .scheme-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.mi-porezka .scheme-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
  padding: 8px 12px;
  background: #f8f9fb;
  border-radius: 6px;
  border: 1px solid #e1e4e8;
  font-size: 14px;
}
.mi-porezka .scheme-item .len {
  font-weight: 700;
  color: #2a3486;
  flex: 0 0 auto;
}
.mi-porezka .scheme-item > span:nth-child(2) {
  flex: 1 1 auto;
  min-width: 0;
}
.mi-porezka .scheme-item .btn-del {
  flex: 0 0 24px;
  margin-left: auto;
}

.mi-porezka .scheme-summary {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.45;
  color: #333;
}
.mi-porezka .custom-empty {
  color: #6f7b91;
  font-size: 14px;
  padding: 12px 14px;
  background: #fff;
  border: 1px dashed #c5cdd8;
  border-radius: 6px;
  text-align: center;
}
.mi-porezka .custom-alert {
  display: none;
  background: #fff3e0;
  border: 1px solid #E29E3B;
  color: #c8872a;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}

.mi-porezka .btn-add-group {
  padding: 10px 16px; background: #fff; border: 1px dashed #2a3486; color: #2a3486;
  border-radius: 6px; font-weight: 600; cursor: pointer; width: 100%; margin-top: 8px;
}

.mi-porezka .btn-primary {
  padding: 14px 24px;
  background: #E29E3B;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  margin-top: 16px;
  box-shadow: 0 4px 6px rgba(226, 158, 59, 0.2);
}
.mi-porezka .btn-primary:hover { background: #d6902a; }

.mi-porezka .side-buy {
  background: #f4f6fa;
  border-radius: 2px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}
.mi-porezka .buy-price-row { display: flex; align-items: center; gap: 8px; }
.mi-porezka .buy-price-label { font-size: 12px; color: #6f7b91; }
.mi-porezka .buy-price-val { font-size: 18px; font-weight: 500; color: #1f1f1f; }
.mi-porezka .buy-qty {
  display: flex !important;
  align-items: center;
  height: 48px;
  padding: 0 4px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #BCBCBC;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
}
.mi-porezka .buy-qty-btn {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  flex: 0 0 40px !important;
  border: none !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #555 !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  cursor: pointer;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1;
}
.mi-porezka .buy-qty-btn:hover { background: #f0f4ff !important; color: #157BD7 !important; }
.mi-porezka .buy-qty-mid {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: 4px;
}
.mi-porezka .buy-qty-input {
  width: 48px !important;
  min-width: 0 !important;
  max-width: 64px !important;
  flex: 0 1 auto !important;
  border: none !important;
  text-align: center;
  font-family: 'Commissioner', sans-serif;
  font-size: 17px !important;
  font-weight: 600 !important;
  color: #000 !important;
  background: transparent !important;
  outline: none;
  height: 32px !important;
  padding: 0 !important;
  margin: 0 !important;
  pointer-events: auto !important;
  user-select: text !important;
  -webkit-user-select: text !important;
}
.mi-porezka .buy-qty-unit {
  font-family: 'Commissioner', sans-serif;
  font-size: 14px;
  color: #6f7b91;
  flex: 0 0 auto;
  line-height: 1;
}
.mi-porezka .buy-meta {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #6f7b91;
}
.buy-meta > span:first-child,
.mi-porezka .buy-meta > span:last-child {
  flex: 1;
  text-align: center;
}
.mi-porezka .buy-meta-sep {
  width: 1px !important;
  height: 17px;
  background: #BCBCBC;
  flex: 0 0 1px !important;
  min-width: 1px;
  max-width: 1px;
  display: block;
}
.mi-porezka .buy-sum-block { display: flex; flex-direction: column; gap: 4px; }
.mi-porezka .buy-sum-label { font-size: 12px; color: #1f1f1f; }
.mi-porezka .buy-sum-val { font-size: 24px; font-weight: 600; color: #1f1f1f; }
.mi-porezka .buy-btn {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 52px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer;
  font-family: 'Commissioner', sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #fff !important;
  box-sizing: border-box !important;
  padding: 16px 28px !important;
  box-shadow: none !important;
  text-transform: none !important;
}
.mi-porezka .buy-btn-cart { background: linear-gradient(76.7deg, #3284cf 23.72%, #0374db 100%) !important; font-weight: 700 !important; }
.mi-porezka .buy-btn-offer { background: #e85a29 !important; }
.mi-porezka .buy-btn-oneclick { background: linear-gradient(76.7deg, #3284cf 23.72%, #0374db 100%) !important; }
.mi-porezka .buy-btn:hover { filter: brightness(1.05); }
.mi-porezka .buy-cart-icon { width: 28px; height: 26px; flex-shrink: 0; display: block; }

.mi-porezka .side-info {
  background: #fff; border: 1px solid #e1e4e8; border-radius: 8px; padding: 25px;
  display: flex; flex-direction: column; gap: 12px;
}
.mi-porezka .side-info-title { font-size: 16px; font-weight: 700; color: #e85a29; line-height: 22px; }
.mi-porezka .side-info-lines { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: #1f1f1f; }
.mi-porezka .schemes-toggle {
  display: flex; justify-content: center; align-items: center; gap: 6px;
  width: 100%; padding: 8px 0; border: none; border-radius: 4px;
  background: #1f1f1f; color: #fff; font-family: 'Commissioner', sans-serif;
  font-size: 14px; font-weight: 700; cursor: pointer;
}
.mi-porezka .schemes-arrow { transition: transform 0.2s; }
.mi-porezka .schemes-arrow.open { transform: rotate(180deg); }
.mi-porezka .schemes-body { display: none; flex-direction: column; gap: 8px; padding-top: 10px; }
.mi-porezka .schemes-body.open { display: flex; }
.mi-porezka .scheme-line { font-size: 14px; line-height: 18px; color: #1f1f1f; font-family: 'Commissioner', sans-serif; }
.mi-porezka .scheme-line strong { font-weight: 700; }

.mi-modal-box.mi-custom-box {
  max-width: 520px;
  width: 92%;
  padding: 28px 32px;
  box-sizing: border-box;
}
.mi-custom-box .custom-panel {
  background: transparent;
  border: none;
  padding: 8px 0 4px;
  margin: 0;
}
.mi-custom-box .scheme-list {
  max-height: 240px;
  overflow-y: auto;
  margin: 8px 0;
}
.mi-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(2px);
}
.mi-modal-box {
  background: #fff;
  border-radius: 16px;
  padding: 28px 26px;
  width: 420px;
  max-width: 92%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
  font-family: 'Commissioner', sans-serif;
}
.mi-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #2a3486;
  margin-bottom: 14px;
}
.mi-modal-text {
  font-size: 15px;
  color: #333;
  line-height: 1.55;
  margin-bottom: 22px;
}
.mi-modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.mi-modal-btn {
  width: 100%;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  text-align: center;
  box-sizing: border-box;
}
.mi-modal-btn-primary {
  background: #E29E3B;
  color: #fff;
}
.mi-modal-btn-primary:hover { background: #d6902a; }
.mi-modal-btn-secondary {
  background: #f2f2f2;
  color: #2a3486;
}
.mi-modal-btn-secondary:hover { background: #e6e6e6; }

@media (max-width: 900px) {
.mi-porezka .calc-layout { flex-direction: column; }
.mi-porezka .calc-side { width: 100%; position: static; }
.mi-porezka .cut-wizard-container { padding: 18px 14px; }
}
