.nm-auth {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  max-width: 980px;
  margin: 28px auto 64px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.nm-auth-aside {
  min-height: 100%;
  background: #f3f6ef;
}

.nm-auth-aside img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nm-auth-form {
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  line-height: 1.4;
}

.nm-auth-form h1 {
  margin: 0;
  color: #6BB252;
  font-size: 1.6rem;
  line-height: 1.2;
}

.nm-auth-lead {
  margin: 8px 0 18px;
  color: #5f5f5f;
  font-size: 0.95rem;
}

.nm-auth-form label {
  margin: 12px 0 6px;
  color: #6BB252;
  font-size: 0.84rem;
  font-weight: 700;
}

.nm-auth-form input[type="text"],
.nm-auth-form input[type="tel"],
.nm-auth-form input[type="email"],
.nm-auth-form input[type="password"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #d7ddd2;
  border-radius: 8px;
  background: #fff;
  color: #6BB252;
  font-size: 1rem;
}

.nm-auth-form input:focus {
  outline: 2px solid rgba(107, 178, 82, 0.35);
  border-color: #6BB252;
}

.nm-auth-field,
.nm-auth-secret {
  position: relative;
}

.nm-field-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  color: #6BB252;
  pointer-events: none;
  transform: translateY(-50%);
}

.nm-auth-form .nm-auth-field input,
.nm-auth-form .nm-auth-secret input {
  padding-left: 44px;
}

.nm-auth-form .nm-auth-secret input {
  padding-right: 48px;
}

.nm-auth-secret button {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6BB252;
}

.nm-auth-secret button .nm-eye-off {
  display: none;
}

.nm-auth-secret button[aria-pressed="true"] .nm-eye {
  display: none;
}

.nm-auth-secret button[aria-pressed="true"] .nm-eye-off {
  display: block;
}

.nm-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.nm-auth-row a,
.nm-auth-switch a {
  color: #6BB252;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.nm-auth-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #4d4d4d;
  font-size: 0.88rem;
  font-weight: 600;
}

.nm-auth-check input {
  width: 18px;
  height: 18px;
  accent-color: #6BB252;
}

.nm-auth-terms {
  margin-top: 14px;
}

.nm-auth-submit,
.nm-auth-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  margin-top: 16px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.nm-auth-submit {
  border: 0;
  background: #6BB252;
  color: #fff;
}

.nm-auth-ghost {
  border: 1px solid #c5d4bc;
  background: #fff;
  color: #6BB252;
}

.nm-auth-switch {
  margin: 14px 0 0;
  color: #5f5f5f;
  font-size: 0.92rem;
  text-align: center;
}

.nm-otp {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.nm-otp input {
  height: 56px;
  padding: 0;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
}

.nm-otp-timer {
  margin: 12px 0 0;
  color: #5f5f5f;
  font-size: 0.88rem;
  text-align: center;
}

.nm-profile {
  display: grid;
  grid-template-columns: 260px minmax(0, 820px);
  justify-content: center;
  gap: 18px;
  width: 100%;
  margin: 0;
  padding: 24px 16px 56px;
  background: #fff;
}

.nm-profile-side,
.nm-profile-card {
  background: #fff;
  border: 1px solid #e4e8e1;
  border-radius: 8px;
}

.nm-profile-side {
  align-self: start;
  overflow: hidden;
}

.nm-profile-who {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
  border-bottom: 1px solid #eef1ea;
}

.nm-profile-who p {
  margin: 0;
  color: #6BB252;
  font-size: 0.8rem;
}

.nm-profile-who strong {
  color: #6BB252;
  font-size: 1rem;
  font-weight: 700;
}

.nm-profile-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e8f3e3;
  color: #6BB252;
  font-size: 1.2rem;
  font-weight: 700;
  object-fit: cover;
}

.nm-profile-nav {
  display: flex;
  flex-direction: column;
  padding: 8px;
}

.nm-profile-nav a {
  padding: 12px 12px;
  border-radius: 6px;
  color: #6BB252;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
}

.nm-profile-nav a.is-active,
.nm-profile-nav a:hover {
  background: #f3f8f0;
  color: #6BB252;
}

.nm-profile-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.nm-profile-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff4f2;
  color: #9a3412;
}

.nm-profile-card {
  padding: 8px 20px 20px;
}

.nm-profile-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.nm-profile-card h1,
.nm-profile-card h2,
.nm-address-form h3 {
  margin: 16px 0 8px;
  color: #6BB252;
  font-size: 1.15rem;
  font-weight: 700;
}

.nm-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.nm-profile label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #6BB252;
  font-size: 0.8rem;
  font-weight: 700;
}

.nm-checkout {
  grid-template-columns: minmax(0, 760px);
}

.nm-bill {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.nm-bill li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eef1ea;
  color: #6BB252;
}

.nm-bill li > div:first-child {
  flex: 1;
  min-width: 0;
}

.nm-bill li.is-basket {
  flex-wrap: wrap;
}

.nm-bill li.is-basket > span:first-child {
  flex: 1 1 100%;
  align-items: flex-start;
}

.nm-bill li > span:first-child > span {
  min-width: 0;
  flex: 1;
}

.nm-bill .nm-strip {
  width: 100%;
  margin-top: 8px;
}

.nm-bill .nm-combo {
  margin: 6px 0 0;
  padding: 0;
  border: 0;
  list-style: none;
}

.nm-bill .nm-combo li {
  display: block;
  padding: 2px 0;
  border: 0;
  color: #6BB252;
  font-size: 0.84rem;
  font-weight: 400;
}

.nm-bill li > span:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.nm-bill small {
  display: block;
  color: #6BB252;
  font-size: 0.8rem;
}

.nm-bill .is-total {
  border-bottom: 0;
  font-size: 1.05rem;
}

.nm-bill form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nm-bill-thumb {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
  background: #f6f7f4;
}

.nm-promo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.nm-promo-list button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 12px;
  border: 1px dashed #6BB252;
  border-radius: 8px;
  background: #f7fbf5;
  color: #6BB252;
  text-align: left;
}

.nm-promo-list button.is-on {
  border-style: solid;
  background: #e8f3e3;
}

.nm-promo-list span {
  color: #6BB252;
  font-size: 0.78rem;
  font-weight: 600;
}

.nm-promo-apply {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}

.nm-promo-apply label {
  flex: 1 1 180px;
}

.nm-pay-address {
  margin-top: 10px;
}

.nm-profile input[type="text"],
.nm-profile input[type="tel"],
.nm-profile input[type="email"],
.nm-profile input[type="number"],
.nm-profile input[type="file"] {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid #cfd6c8;
  border-radius: 6px;
  background: #fff;
  color: #6BB252;
  font-size: 0.98rem;
  font-weight: 500;
}

.nm-bill input[type="number"] {
  width: 72px;
}

.nm-profile input[type="file"] {
  padding: 10px 12px;
  line-height: 1.4;
}

.nm-profile input:focus {
  outline: 2px solid rgba(107, 178, 82, 0.35);
  border-color: #6BB252;
}

.nm-profile input[readonly] {
  background: #f6f7f4;
  color: #6BB252;
}

.nm-profile-save,
.nm-profile-ghost {
  height: 40px;
  padding: 0 16px;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 700;
}

.nm-profile-save {
  border: 0;
  background: #6BB252;
  color: #fff;
}

.nm-profile-ghost {
  border: 1px solid #c5d4bc;
  background: #fff;
  color: #6BB252;
}

.nm-cart-remove {
  border-color: #ead8d4;
  color: #a34a3d;
}

.nm-address-list {
  display: grid;
  gap: 10px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.nm-address-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e4e8e1;
  border-radius: 8px;
}

.nm-address-list strong {
  color: #6BB252;
}

.nm-address-list em {
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e8f3e3;
  color: #6BB252;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
}

.nm-address-list p {
  margin: 2px 0 0;
  color: #6BB252;
  font-size: 0.9rem;
}

.nm-address-list button {
  border: 0;
  background: transparent;
  color: #9a3412;
  font-size: 0.84rem;
  font-weight: 700;
}

.nm-address-form {
  margin-top: 8px;
  padding-top: 4px;
  border-top: 1px solid #eef1ea;
}

.nm-profile label.nm-profile-check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: #6BB252;
  font-size: 0.9rem;
}

.nm-profile-check input {
  width: 18px;
  height: 18px;
  accent-color: #6BB252;
}

.nm-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.nm-profile-empty {
  margin: 0 0 8px;
  color: #6BB252;
}

@media (max-width: 991.98px) {
  body.nm-page-account .nm-cats,
  body.nm-page-account .nm-site-footer,
  body.nm-page-account #footer-bottom {
    display: none;
  }

  body.nm-page-account {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  body.nm-page-account {
    background: #f4f6f2;
  }

  .nm-auth {
    display: block;
    max-width: 440px;
    margin: 40px auto 28px;
    padding: 0 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .nm-auth-aside {
    display: none;
  }

  .nm-auth-form {
    padding: 32px 20px 24px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(23, 51, 28, 0.08);
  }

  .nm-auth-form h1,
  .nm-auth-lead {
    text-align: center;
  }

  .nm-auth-form h1 {
    font-size: 1.6rem;
  }

  .nm-auth-lead {
    margin-bottom: 8px;
  }

  .nm-auth-form input[type="text"],
  .nm-auth-form input[type="tel"],
  .nm-auth-form input[type="email"],
  .nm-auth-form input[type="password"] {
    height: 52px;
    border-radius: 12px;
    background: #f7f8f6;
  }

  .nm-auth-submit {
    position: static;
    width: 100%;
    height: 52px;
    margin-top: 22px;
    border-radius: 12px;
    box-shadow: none;
  }

  .nm-profile {
    grid-template-columns: 1fr;
    margin: 12px auto 32px;
  }

  .nm-profile-nav {
    flex-direction: row;
    overflow-x: auto;
  }

  .nm-profile-nav a {
    white-space: nowrap;
  }

  .nm-profile-grid {
    grid-template-columns: 1fr;
  }
}
