/* "Рекламни стикери по ваш дизайн" — product page (inc/custom-sticker.php). */
.mm-stk-layout {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: start;
  gap: clamp(20px, 3vw, 40px);
  clear: both;
  margin-bottom: 28px;
}
.mm-stk-layout > * { min-width: 0; }
.mm-stk-layout > .mm-stk-stage { grid-column: 1; }
.mm-stk-page.single-product div.product .mm-stk-layout > div.summary {
  float: none !important;
  grid-column: 2;
  width: 100% !important;
  margin: 0;
}

.mm-stk-stage {
  position: sticky;
  top: 20px;
  padding: clamp(12px, 2vw, 20px);
  border: 1px solid #ddd9d8;
  border-radius: 18px;
  background: #f2efee;
}
.admin-bar .mm-stk-stage { top: 52px; }
.mm-stk-stage__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-bottom: 10px; }
.mm-stk-badge, .mm-stk-size {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.mm-stk-badge { background: #181314; color: #fff; }
.mm-stk-size { background: #fff; color: #181314; }
.mm-stk-size:empty { display: none; }
.mm-stk-stage canvas#mm-stk-canvas {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 0 auto;
  cursor: pointer;
}
.mm-stk-stage__hint { margin: 8px 0 0; color: #655b5e; font-size: 13px; text-align: center; }

.mm-stk-roll { margin-top: 16px; padding: 12px; border-radius: 12px; background: #fff; }
.mm-stk-roll__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-bottom: 8px; font-size: 13px; }
.mm-stk-roll__head b { color: #181314; }
.mm-stk-roll__head span { color: #655b5e; }
.mm-stk-roll canvas {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e3dddd;
  border-radius: 4px;
}

.mm-stk { margin: 0 0 18px; }
.mm-stk__step { margin-bottom: 18px; }
.mm-stk-label { display: block; margin-bottom: 8px; color: #181314; font-size: 15px; font-weight: 700; }

.mm-stk-drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 2px dashed #d7cfd0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.mm-stk-drop:hover, .mm-stk-drop:focus-within { border-color: #e30613; background: #fff7f7; }
.mm-stk-drop[hidden] { display: none; }
.mm-stk-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mm-stk-drop__icon { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border-radius: 50%; background: #e30613; }
.mm-stk-drop__icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mm-stk-drop b, .mm-stk-file b { display: block; color: #181314; }
.mm-stk-drop small, .mm-stk-file small { display: block; color: #655b5e; font-size: 13px; }

.mm-stk-file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #ebe5e6; border-radius: 12px; background: #fff; }
.mm-stk-file[hidden] { display: none; }
.mm-stk-file img {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: contain;
  background: repeating-conic-gradient(#e6e1e2 0 25%, #fff 0 50%) 0 0 / 12px 12px;
}
.mm-stk-file > div { flex: 1; min-width: 0; }
.mm-stk-file b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-stk-link { padding: 8px 10px; border: 0; background: none; color: #e30613; font-weight: 700; cursor: pointer; }
.mm-stk-remove {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #ebe5e6;
  border-radius: 50%;
  background: #fff;
  color: #655b5e;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.mm-stk-remove:hover, .mm-stk-remove:focus-visible { border-color: #e30613; background: #fdecee; color: #e30613; }

/* Shape cards. */
.mm-stk-shapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mm-stk-shapes label, .mm-stk-fit label { position: relative; margin: 0; cursor: pointer; }
.mm-stk-shapes input, .mm-stk-fit input { position: absolute; opacity: 0; pointer-events: none; }
.mm-stk-shapes span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 12px 8px;
  border: 2px solid #e3dddd;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  transition: border-color .15s, background .15s;
}
.mm-stk-shapes b { color: #181314; font-size: 13px; line-height: 1.25; }
.mm-stk-shapes input:checked + span { border-color: #e30613; background: #fff7f7; }
.mm-stk-shapes input:focus-visible + span, .mm-stk-fit input:focus-visible + span { outline: 2px solid #e30613; outline-offset: 2px; }
.mm-stk-ico { display: block; width: 36px; height: 36px; border: 2px dashed #e30613; background: #f6f3f4; }
.mm-stk-ico--round { border-radius: 50%; }
.mm-stk-ico--rect { width: 44px; height: 32px; margin: 2px 0; }
.mm-stk-ico--contour { border-radius: 46% 54% 38% 62% / 55% 40% 60% 45%; }

.mm-stk-fit { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.mm-stk-fit[hidden] { display: none; }
.mm-stk-fit span {
  display: block;
  padding: 7px 12px;
  border: 1px solid #e3dddd;
  border-radius: 999px;
  background: #fff;
  color: #3a3132;
  font-size: 13px;
  font-weight: 600;
}
.mm-stk-fit input:checked + span { border-color: #181314; background: #181314; color: #fff; }

.mm-stk-note { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; background: #fff6e5; color: #6b4b00; font-size: 13px; }
.mm-stk-note[hidden] { display: none; }

/* Size and count. */
.mm-stk-dims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mm-stk-num { display: block; margin: 0; }
.mm-stk-num[hidden] { display: none; }
.mm-stk-num > span:first-child { display: block; margin-bottom: 4px; color: #3a3132; font-size: 13px; font-weight: 600; }
.mm-stk-num__in { position: relative; display: block; }
.mm-stk-num input {
  width: 100%;
  min-height: 46px;
  padding: 10px 40px 10px 12px;
  border: 1px solid #d7cfd0;
  border-radius: 10px;
  background: #fff;
  color: #181314;
  font-size: 16px;
  font-weight: 700;
}
.mm-stk-num input:focus { border-color: #e30613; outline: 2px solid rgba(227, 6, 19, .15); }
.mm-stk-num em { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); color: #8a8081; font-size: 13px; font-style: normal; pointer-events: none; }
.mm-stk-check { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: #3a3132; font-size: 13px; }
.mm-stk-check[hidden] { display: none; }
.mm-stk-check input { accent-color: #e30613; }

.mm-stk-lam {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 2px solid #e3dddd;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.mm-stk-lam:has(input:checked) { border-color: #e30613; background: #fff7f7; }
.mm-stk-lam input { width: 18px; height: 18px; margin-top: 2px; accent-color: #e30613; }
.mm-stk-lam b { display: block; color: #181314; }
.mm-stk-lam small { display: block; color: #655b5e; font-size: 13px; }

.mm-stk-error { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #fdecee; color: #b0000c; font-weight: 600; }
.mm-stk-error[hidden] { display: none; }

/* Live sum under the button (inside form.cart, a flex row). */
.mm-stk-page.single-product div.product .summary form.cart .mm-stk-sum {
  flex: 0 0 100%;
  width: 100%;
  margin: 4px 0 0;
  padding: 12px 14px;
  border: 1px solid #ebe5e6;
  border-radius: 12px;
  background: #fff;
  color: #181314;
  font-size: 14px;
}
.mm-stk-sum__row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.mm-stk-sum__row small { color: #8a8081; }
.mm-stk-sum__total { margin-top: 4px; padding-top: 8px; border-top: 1px solid #ebe5e6; font-size: 16px; }
.mm-stk-sum__total b { color: #e30613; font-size: 20px; }
.mm-stk-sum__note { display: block; color: #8a8081; font-size: 12px; }
.mm-stk-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: 8px 0 4px;
  padding: 10px 12px;
  border: 1px dashed #12813a;
  border-radius: 10px;
  background: #effaf2;
  color: #145c2c;
  font-size: 13px;
}
.mm-stk-offer b { color: #0d5f2a; }
.mm-stk-offer__btn {
  padding: 7px 12px;
  border: 0;
  border-radius: 8px;
  background: #12813a;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.mm-stk-offer__btn:hover { background: #0e6a2f; }
.mm-stk-sum__bad { color: #b0000c; font-weight: 600; }
.mm-stk-unit { color: inherit; font-size: .7em; font-weight: 600; }

@media (max-width: 768px) {
  .mm-stk-layout { grid-template-columns: 1fr; }
  .mm-stk-layout > .mm-stk-stage,
  .mm-stk-page.single-product div.product .mm-stk-layout > div.summary { grid-column: 1; }
  .mm-stk-stage { position: static; }
  .mm-stk-shapes b { font-size: 12px; }
}
@media (max-width: 420px) {
  .mm-stk-dims { grid-template-columns: 1fr 1fr; }
}
