/* NMEDIA — изолированный адаптивный прайс. Шрифты и базовая палитра наследуются от темы. */
.nmpp {
  --nmpp-accent: var(--e-global-color-accent, var(--global-palette-highlight, var(--wp--preset--color--primary, #161616)));
  --nmpp-border: rgba(25, 25, 25, .11);
  --nmpp-soft: #f7f7f7;
  --nmpp-muted: #747474;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  color: inherit;
  font-family: inherit;
  line-height: 1.45;
  box-sizing: border-box;
}
.nmpp *, .nmpp *::before, .nmpp *::after { box-sizing: border-box; }
.nmpp__intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.nmpp__heading { margin: 0 0 9px !important; padding: 0; color: inherit; font-family: inherit; font-weight: 700; font-size: clamp(26px, 2.4vw, 36px); letter-spacing: -.035em; line-height: 1.16; }
.nmpp__lead { margin: 0 !important; color: var(--nmpp-muted); font-size: 15px; line-height: 1.6; }
.nmpp__selector { display: flex; align-items: center; gap: 22px; padding: 20px 22px; background: var(--nmpp-soft); border: 1px solid var(--nmpp-border); border-radius: 16px; margin-bottom: 40px; }
.nmpp__selector-label { font-size: 14px; font-weight: 700; flex-shrink: 0; white-space: nowrap; }
.nmpp__quantities { display: flex; flex-wrap: wrap; gap: 8px; }
.nmpp .nmpp__quantity { appearance: none; -webkit-appearance: none; display: inline-flex; align-items: center; justify-content: center; min-width: 83px; min-height: 43px; padding: 9px 16px; border: 1px solid #dedede; border-radius: 9px; background: #fff; color: #252525; font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1.2; letter-spacing: 0; text-decoration: none; cursor: pointer; white-space: nowrap; box-shadow: none; transition: border-color .17s ease, background-color .17s ease, box-shadow .17s ease; }
.nmpp .nmpp__quantity:hover { border-color: var(--nmpp-accent); background: #fff; color: #252525; }
.nmpp .nmpp__quantity.is-active { border-color: var(--nmpp-accent); box-shadow: inset 0 0 0 1px var(--nmpp-accent); background: #fff; color: #111; }
.nmpp .nmpp__quantity:focus-visible { outline: 3px solid var(--nmpp-accent); outline-offset: 3px; }
.nmpp__group { margin: 0 0 34px; }
.nmpp__group-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 13px; }
.nmpp__group-title { margin: 0 !important; padding: 0; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.3; font-weight: 700; letter-spacing: -.025em; color: inherit; font-family: inherit; }
.nmpp__group-count { color: #888; font-size: 13px; white-space: nowrap; }
.nmpp__items { border: 1px solid var(--nmpp-border); border-radius: 15px; overflow: hidden; background: #fff; }
.nmpp__item { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 21px 24px; min-height: 92px; background: #fff; color: #181818; }
.nmpp__item + .nmpp__item { border-top: 1px solid var(--nmpp-border); }
.nmpp__product { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.nmpp__product-name { display: block; font-size: 17px; line-height: 1.33; font-family: inherit; font-weight: 650; overflow-wrap: anywhere; }
.nmpp__product-details { display: block; color: var(--nmpp-muted); font-size: 13px; font-weight: 400; line-height: 1.5; }
.nmpp__price-area { display: flex; flex-direction: column; gap: 3px; align-items: flex-end; text-align: right; flex-shrink: 0; }
.nmpp__price { display: block; color: #181818; font-size: clamp(21px, 2vw, 25px); font-weight: 750; line-height: 1.2; letter-spacing: -.035em; white-space: nowrap; font-family: inherit; }
.nmpp__per-unit { display: block; color: var(--nmpp-muted); font-size: 13px; line-height: 1.4; white-space: nowrap; }
.nmpp__footnote { margin: 2px 0 0 !important; color: var(--nmpp-muted); font-size: 13px; line-height: 1.6; }
.nmpp__empty { color: var(--nmpp-muted); }
.nmpp__sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .nmpp__selector { flex-direction: column; align-items: flex-start; gap: 12px; padding: 17px; margin-bottom: 30px; }
  .nmpp__quantities { gap: 7px; width: 100%; }
  .nmpp .nmpp__quantity { flex: 1 1 calc(33.33% - 10px); min-width: 75px; }
  .nmpp__group { margin-bottom: 29px; }
  .nmpp__item { padding: 18px; min-height: 84px; }
  .nmpp__product-name { font-size: 16px; }
  .nmpp__price { font-size: 21px; }
}
@media (max-width: 460px) {
  .nmpp__intro { margin-bottom: 19px; }
  .nmpp__selector { border-radius: 13px; }
  .nmpp__group-count { display: none; }
  .nmpp__item { align-items: flex-start; gap: 12px; padding: 17px 15px; }
  .nmpp__product { max-width: 55%; }
  .nmpp__product-name { font-size: 15px; }
  .nmpp__product-details { font-size: 12px; }
  .nmpp__price { font-size: 19px; }
  .nmpp__per-unit { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .nmpp .nmpp__quantity { transition: none; }
}
