/* "Стикери за смяна на масло с ваше лого" — product page customizer (inc/custom-oil.php). */
.mm-oil-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: start;
  gap: clamp(20px, 3vw, 40px);
  clear: both;
  margin-bottom: 28px;
}
.mm-oil-layout > * { min-width: 0; }
.mm-oil-layout > .mm-oil-stage { grid-column: 1; }
.mm-oil-page.single-product div.product .mm-oil-layout > div.summary {
  float: none !important;
  grid-column: 2;
  width: 100% !important;
  margin: 0;
}
.mm-oil-stage {
  position: sticky;
  top: 20px;
  padding: clamp(12px, 2vw, 20px);
  border: 1px solid #ddd9d8;
  border-radius: 18px;
  background: #f6f3f4;
  text-align: center;
}
.admin-bar .mm-oil-stage { top: 52px; }
.mm-oil-stage canvas {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 72vh;
  margin: 0 auto;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(24, 19, 20, .14);
}
.mm-oil-stage__hint {
  margin: 10px 0 0;
  color: #655b5e;
  font-size: 13px;
}

.mm-oil { margin: 0 0 18px; }
.mm-oil__step { margin-bottom: 18px; }
.mm-oil-label {
  display: block;
  margin-bottom: 8px;
  color: #181314;
  font-weight: 700;
  font-size: 15px;
}
.mm-oil-label small { color: #655b5e; font-weight: 400; }

.mm-oil-drop {
  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-oil-drop:hover, .mm-oil-drop:focus-within { border-color: #e30613; background: #fff7f7; }
.mm-oil-drop[hidden] { display: none; }
.mm-oil-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mm-oil-drop__icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  border-radius: 50%;
  background: #e30613;
}
.mm-oil-drop__icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mm-oil-drop b, .mm-oil-file b { display: block; color: #181314; }
.mm-oil-drop small, .mm-oil-file small { display: block; color: #655b5e; font-size: 13px; }

.mm-oil-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #ebe5e6;
  border-radius: 12px;
  background: #fff;
}
.mm-oil-file[hidden] { display: none; }
.mm-oil-file img {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 8px;
  background: #f6f3f4;
}
.mm-oil-file > div { flex: 1; min-width: 0; }
.mm-oil-file b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-oil-link {
  padding: 8px 10px;
  border: 0;
  background: none;
  color: #e30613;
  font-weight: 700;
  cursor: pointer;
}

.mm-oil-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-oil-remove:hover, .mm-oil-remove:focus-visible { border-color: #e30613; background: #fdecee; color: #e30613; }

.mm-oil-field { display: block; margin-top: 12px; }
.mm-oil-field[hidden] { display: none; }
.mm-oil-field span { display: flex; justify-content: space-between; color: #181314; font-size: 14px; font-weight: 600; }
.mm-oil-field input[type=range] { width: 100%; accent-color: #e30613; }

.mm-oil-input {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid #d7cfd0;
  border-radius: 10px;
  background: #fff;
  color: #181314;
  font-size: 16px;
}
.mm-oil-input:focus { border-color: #e30613; outline: 2px solid rgba(227, 6, 19, .15); }

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


/* Promotion banner with the offer text retained for screen readers. */
.mm-oil-page.single-product div.product .summary .mm-oil-promo {
  margin: 0 0 14px;
  aspect-ratio: 3.6;
  border-radius: 10px;
  background: url("../../../uploads/2026/11/Стикери-за-смяна-на-масло-с-лого-1024x349.png") center 46% / 103% 110% no-repeat;
  font-size: 0;
  line-height: 0;
}
.mm-oil-page.single-product div.product .summary form.cart .mm-oil-sum {
  flex: 0 0 100%;
  width: 100%;
  margin: 0;
  color: #181314;
  font-size: 14px;
}
.mm-oil-sum__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; }
.mm-oil-sum b { color: #181314; }
.mm-oil-sum__total { font-size: 18px; }
.mm-oil-sum small { color: #655b5e; }
.mm-oil-sum__ok, .mm-oil-sum__hint { display: block; margin-top: 2px; font-size: 13px; font-weight: 700; }
.mm-oil-sum__ok { color: #12813a; }
.mm-oil-sum__hint { color: #e30613; }

@media (max-width: 768px) {
  .mm-oil-layout { grid-template-columns: 1fr; }
  .mm-oil-layout > .mm-oil-stage,
  .mm-oil-page.single-product div.product .mm-oil-layout > div.summary { grid-column: 1; }
  .mm-oil-stage { position: static; }
  .mm-oil-stage canvas { max-height: 60vh; }
}
