.zp-profile {
  --zp-p-purple: #6440bf;
  --zp-p-bg: #f5f5f7;
  --zp-p-text: #242424;
  --zp-p-muted: #8b8798;
  min-height: 70vh;
  padding: 28px 0 48px;
  background: var(--zp-p-bg);
  color: var(--zp-p-text);
  font-family: var(--zp-font-ui, Nunito, sans-serif);
}

/* Отступ под фиксированную шапку сайта */
body.page-profil .zp-profile,
body.page-lk .zp-lk {
  padding-top: 28px;
}

.zp-lk {
  --zp-p-purple: #6440bf;
  --zp-p-bg: #f5f5f7;
  --zp-p-text: #242424;
  --zp-p-muted: #8b8798;
  min-height: 70vh;
  padding: 28px 0 48px;
  background: var(--zp-p-bg);
  color: var(--zp-p-text);
  font-family: var(--zp-font-ui, Nunito, sans-serif);
}

.zp-lk__shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.zp-lk__aside {
  position: sticky;
  top: 88px;
}

.zp-lk__nav {
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: 24px;
  background: #fff;
  box-shadow: none;
  border: 0;
}

.zp-lk__link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid #f0f0f2;
  border-radius: 12px;
  background: transparent;
  color: #1a1a1a;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.zp-lk__link:last-child {
  border-bottom: 0;
}

.zp-lk__link:hover {
  color: var(--zp-p-purple);
  background: #f7f5fc;
}

.zp-lk__link.is-active {
  color: var(--zp-p-purple);
  background: #f3effc;
  font-weight: 700;
}

.zp-lk__content {
  min-width: 0;
}

.zp-lk__mob-bar {
  display: none;
  align-items: center;
  gap: 8px;
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto 12px;
  min-height: 44px;
}

.zp-lk__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 40px;
  height: 40px;
  margin-left: -8px;
  padding: 0 8px 0 4px;
  border-radius: 12px;
  color: var(--zp-p-text);
  text-decoration: none;
  flex-shrink: 0;
}

.zp-lk__back::before {
  content: "\2190";
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
}

.zp-lk__back-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.zp-lk__mob-title {
  margin: 0;
  flex: 1;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding-right: 32px;
}

.zp-lk__user {
  margin-bottom: 12px;
}

@media (min-width: 901px) {
  .zp-lk__hub-bonus {
    display: none !important;
  }

  body.page-lk:not(.page-lk-hub) .zp-lk__user {
    display: none;
  }
}

.zp-lk__user-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 14px;
  color: var(--zp-p-text);
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.zp-lk__user-link::after {
  content: "\203A";
  font-size: 28px;
  font-weight: 400;
  color: var(--zp-p-muted);
  line-height: 1;
}

.zp-lk__hub-bonus {
  display: none;
  margin-bottom: 12px;
  padding: 18px 18px 16px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(36, 22, 74, 0.06);
  text-decoration: none;
  color: inherit;
}

.zp-lk__hub-bonus-val {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.zp-lk__hub-bonus-label {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--zp-p-muted);
}

/* Бонусы — карточки как в ЛК-референсе */
.zp-bonus-sum {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 0 12px;
  padding: 18px 16px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(36, 22, 74, 0.06);
}

.zp-bonus-sum__col {
  flex: 1;
  min-width: 0;
  padding: 0 10px;
}

.zp-bonus-sum__col:first-child {
  padding-left: 4px;
}

.zp-bonus-sum__divider {
  width: 1px;
  align-self: stretch;
  min-height: 48px;
  background: rgba(36, 22, 74, 0.1);
  flex-shrink: 0;
}

.zp-bonus-sum__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--zp-p-muted);
}

.zp-bonus-sum__info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  border-radius: 50%;
  border: 1px solid rgba(36, 22, 74, 0.25);
  font-size: 10px;
  font-weight: 700;
  color: var(--zp-p-muted);
  vertical-align: middle;
}

.zp-bonus-sum__value {
  margin-top: 4px;
  font-size: clamp(28px, 6vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.zp-bonus-sum__pct {
  margin-top: 4px;
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.zp-bonus-hint {
  margin: -4px 0 14px;
  padding: 0 4px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--zp-p-muted);
}

.zp-bonus-hint strong {
  color: var(--zp-p-text);
  font-weight: 700;
}

.zp-bonus-expire {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(36, 22, 74, 0.06);
}

.zp-bonus-expire__flame {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 70%, #ffb347 0%, #ff6a00 45%, #e31c23 100%);
  position: relative;
}

.zp-bonus-expire__flame::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 28%;
  width: 14px;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 50% 50% 45% 45%;
  background: #fff6;
}

.zp-bonus-expire__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.zp-bonus-expire__text strong {
  color: #e24b2d;
  font-size: 15px;
  font-weight: 800;
}

.zp-bonus-expire__text span {
  color: var(--zp-p-muted);
  font-size: 13px;
  font-weight: 600;
}

.zp-bonus-expire__cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 12px;
  background: #eef0f3;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.zp-bonus-expire__cta:hover {
  background: #e4e7ec;
}

.zp-bonus-more {
  display: block;
  width: 100%;
  margin-top: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  color: #1a1a1a;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.zp-bonus-hist__ico.is-flame {
  background: #fff3e8;
}

.zp-bonus-hist__ico.is-flame::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 28%;
  width: 10px;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 50% 50% 40% 40%;
  background: #ff8a3d;
}

.zp-bonus-card {
  margin: 0 0 12px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(36, 22, 74, 0.06);
  overflow: hidden;
}

.zp-bonus-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  border: 0;
  background: transparent;
  color: var(--zp-p-text);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.zp-bonus-card__chev::before {
  content: "\203A";
  display: inline-block;
  font-size: 22px;
  font-weight: 400;
  color: var(--zp-p-muted);
  transform: rotate(90deg);
  transition: transform 0.18s ease;
}

.zp-bonus-card.is-open .zp-bonus-card__chev::before {
  transform: rotate(-90deg);
}

.zp-bonus-card__body {
  display: none;
  padding: 0 18px 16px;
}

.zp-bonus-card.is-open .zp-bonus-card__body {
  display: block;
}

.zp-bonus-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0 4px;
}

.zp-bonus-detail__ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.zp-bonus-detail__ico--plus {
  background: #e7f7ee;
}

.zp-bonus-detail__ico--plus::before,
.zp-bonus-detail__ico--plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #0a8f4d;
  border-radius: 1px;
}

.zp-bonus-detail__ico--plus::before {
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.zp-bonus-detail__ico--plus::after {
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.zp-bonus-detail__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.zp-bonus-detail__text strong {
  font-size: 14px;
  font-weight: 700;
}

.zp-bonus-detail__text span {
  font-size: 12px;
  font-weight: 500;
  color: var(--zp-p-muted);
}

.zp-bonus-detail__val {
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.zp-bonus-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding: 0 2px 12px;
  margin: 0 -2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-padding-inline: 4px;
}

.zp-bonus-filters::-webkit-scrollbar {
  display: none;
}

.zp-bonus-filters::after {
  content: "";
  flex: 0 0 12px;
}

.zp-bonus-chip {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: #ececf1;
  color: var(--zp-p-text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.zp-bonus-chip.is-active {
  background: #2a2a32;
  color: #fff;
}

.zp-bonus-empty {
  margin: 8px 0 4px;
  color: var(--zp-p-muted);
  font-size: 14px;
  font-weight: 500;
}

.zp-bonus-hist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.zp-bonus-hist__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(36, 22, 74, 0.08);
}

.zp-bonus-hist__row:first-child {
  border-top: 0;
}

.zp-bonus-hist__ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.zp-bonus-hist__ico.is-plus {
  background: #e7f7ee;
}

.zp-bonus-hist__ico.is-minus {
  background: #f0f0f3;
}

.zp-bonus-hist__ico.is-plus::before,
.zp-bonus-hist__ico.is-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #0a8f4d;
  border-radius: 1px;
}

.zp-bonus-hist__ico.is-plus::before {
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.zp-bonus-hist__ico.is-plus::after {
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.zp-bonus-hist__ico.is-minus::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  background: #8b8798;
  border-radius: 1px;
  transform: translate(-50%, -50%);
}

.zp-bonus-hist__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.zp-bonus-hist__main strong {
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.zp-bonus-hist__main span {
  font-size: 12px;
  font-weight: 500;
  color: var(--zp-p-muted);
  overflow-wrap: anywhere;
}

.zp-bonus-hist__amount {
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.zp-bonus-hist__amount.is-pos {
  color: #0a8f4d;
}

.zp-bonus-hist__amount.is-neg {
  color: #c0392b;
}

.zp-profile__shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
}

.zp-lk .zp-profile__shell,
.zp-lk__content.zp-profile__shell {
  width: 100%;
  margin: 0;
}

.zp-lk-empty {
  text-align: center;
}

.zp-lk-orders {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.zp-lk-orders__item {
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(36, 22, 74, 0.06);
}

.zp-lk-orders__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.zp-lk-orders__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.zp-lk-orders__num {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--zp-p-muted, #6b6580);
}

.zp-lk-orders__detail {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: #4a4560;
}

.zp-lk-orders__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0 0 14px;
}

.zp-lk-orders__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(36, 22, 74, 0.08);
}

.zp-lk-orders__sum {
  display: flex;
  flex-direction: column;
  margin-right: auto;
  min-width: 0;
}

.zp-lk-orders__sum-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--zp-p-muted, #6b6580);
}

.zp-lk-orders__sum-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1f1638;
}

.zp-lk-orders__pay {
  min-height: 44px;
}

.zp-lk-orders__chat {
  min-height: 44px;
}

.zp-lk-orders__cancel {
  min-height: 44px;
  color: #9b1c1c;
  border-color: rgba(155, 28, 28, 0.35);
}

.zp-lk-orders__cancel:hover,
.zp-lk-orders__cancel:focus-visible {
  background: rgba(155, 28, 28, 0.06);
}

.zp-lk-orders__paid-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(46, 160, 90, 0.12);
  color: #1b7a3d;
  font-size: 13px;
  font-weight: 700;
}

.zp-lk-orders__meta dt {
  margin: 0;
  color: var(--zp-p-muted);
  font-size: 12px;
  font-weight: 600;
}

.zp-lk-orders__meta dd {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 700;
}

.zp-lk-bonus-balance {
  margin: 0 0 16px;
  padding: 22px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #6440bf 0%, #4c3191 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(100, 64, 191, 0.28);
}

.zp-lk-bonus-balance__label {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.85;
}

.zp-lk-bonus-balance__value {
  margin-top: 4px;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.zp-lk-bonus-rules__title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
}

.zp-lk-bonus-rules__list {
  margin: 0;
  padding-left: 1.15em;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: #3a3550;
}

.zp-lk-bonus-rules__list a {
  color: var(--zp-p-purple);
  font-weight: 700;
}

.zp-lk-ledger {
  list-style: none;
  margin: 0;
  padding: 0;
}

.zp-lk-ledger__row {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr auto auto;
  gap: 8px 12px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(36, 22, 74, 0.08);
  font-size: 13px;
}

.zp-lk-ledger__row:last-child {
  border-bottom: 0;
}

.zp-lk-ledger__type {
  font-weight: 700;
}

.zp-lk-ledger__note {
  color: var(--zp-p-muted);
}

.zp-lk-ledger__date {
  color: var(--zp-p-muted);
  white-space: nowrap;
}

.zp-lk-ledger__amount {
  font-weight: 800;
  white-space: nowrap;
  text-align: right;
}

.zp-lk-ledger__amount.is-pos {
  color: #0a8f4d;
}

.zp-lk-ledger__amount.is-neg {
  color: #c0392b;
}

.zp-profile__title {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
}

.zp-profile__lead {
  margin: 0 0 20px;
  color: var(--zp-p-muted);
  font-size: 15px;
  font-weight: 500;
}

.zp-profile__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.zp-profile__block {
  padding: 28px 24px;
  border-radius: 24px;
  background: #fff;
}

.zp-profile__block-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1a1a1a;
}

.zp-profile__block-lead {
  margin: 0 0 18px;
  color: #8b8798;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.zp-profile__stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.zp-profile__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.zp-profile__row--birth {
  grid-template-columns: minmax(0, 1.2fr) minmax(140px, 0.8fr);
  align-items: end;
}

.zp-profile__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.zp-profile__field--full {
  grid-column: 1 / -1;
}

.zp-profile__label {
  font-size: 13px;
  font-weight: 700;
  color: #6b6680;
}

.zp-profile__optional {
  font-weight: 600;
  color: #a8a3b5;
}

.zp-profile__input,
.zp-profile__select {
  min-height: 52px;
  padding: 12px 16px;
  border: 0;
  border-radius: 14px;
  background: #f3f3f7;
  color: var(--zp-p-text);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  width: 100%;
  box-sizing: border-box;
}

.zp-profile__input:focus,
.zp-profile__select:focus {
  outline: 2px solid rgba(100, 64, 191, 0.35);
  outline-offset: 0;
  background: #fff;
}

.zp-profile__input--locked,
.zp-profile__input[readonly] {
  color: #5c5470;
  background: #eceaf2;
  padding-right: 44px;
}

.zp-profile__phone-wrap {
  position: relative;
  display: block;
}

.zp-profile__lock {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%238b8798' stroke-width='1.8' d='M7 11V8a5 5 0 0 1 10 0v3'/%3E%3Crect width='14' height='10' x='5' y='11' rx='2' stroke='%238b8798' stroke-width='1.8'/%3E%3C/svg%3E");
  pointer-events: none;
}

.zp-profile__gender {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.zp-profile__gender-btn {
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: #f3f3f7;
  color: #1a1a1a;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.zp-profile__gender-btn.is-on {
  background: #6440bf;
  color: #fff;
}

.zp-profile__ac-list--pvz {
  z-index: 2800;
  max-height: 320px;
}

.zp-profile__select--sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.zp-profile__pvz-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 10px 0 0;
  padding: 14px 12px;
  border: 1px solid #e6e4ee;
  border-radius: 14px;
  background: #faf9fc;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.zp-profile__pvz-trigger:hover {
  border-color: #cfc8e4;
  background: #f3f0fa;
}

.zp-profile__pvz-trigger-ico {
  width: 24px;
  height: 24px;
  background: center / 22px 22px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%231a1a1a' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='M12 21s7-5.4 7-11a7 7 0 1 0-14 0c0 5.6 7 11 7 11Z'/%3E%3Ccircle cx='12' cy='10' r='2.5' stroke='%231a1a1a' stroke-width='1.75'/%3E%3C/svg%3E");
}

.zp-profile__pvz-trigger-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.zp-profile__pvz-trigger-label {
  font-size: 13px;
  color: #757575;
  line-height: 1.3;
}

.zp-profile__pvz-trigger-value {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zp-profile__pvz-trigger-trail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.zp-profile__pvz-provider {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1faa4b;
  position: relative;
}

.zp-profile__pvz-provider--cdek::before,
.zp-profile__pvz-provider::before {
  content: "C";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
}

.zp-profile__pvz-chev {
  width: 10px;
  height: 16px;
  background: center / 8px 14px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='14' fill='none' viewBox='0 0 8 14'%3E%3Cpath stroke='%23bdbdbd' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='m1 1 6 6-6 6'/%3E%3C/svg%3E");
}

.zp-profile__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.zp-profile__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.zp-profile__btn--primary {
  background: var(--zp-p-purple);
  color: #fff;
}

.zp-profile__btn--primary:hover {
  background: #4c3191;
}

.zp-profile__btn--ghost {
  background: #f3f3f7;
  color: var(--zp-p-purple);
}

.zp-profile__hint {
  margin: 0;
  color: #8b8798;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.zp-profile__row--street {
  grid-template-columns: minmax(0, 1.6fr) minmax(100px, 0.5fr);
  align-items: start;
  overflow: visible;
}

.zp-profile__field--house {
  min-width: 0;
}

.zp-profile__ac {
  position: relative;
  z-index: 5;
  overflow: visible;
}

.zp-profile__ac:focus-within {
  z-index: 2600;
}

.zp-profile__ac-list {
  position: absolute;
  z-index: 2600;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow: auto;
  padding: 6px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(23, 18, 47, 0.18);
  border: 1px solid #ebe7f3;
}

.zp-profile__stack,
.zp-profile__block,
.zp-profile__field {
  overflow: visible;
}

.zp-profile__ac-list[hidden] {
  display: none !important;
}

.zp-profile__ac-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #1a1a1a;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.zp-profile__ac-item:hover,
.zp-profile__ac-item:focus-visible,
.zp-profile__ac-item.is-on {
  background: #f3f0fa;
  outline: none;
}

.zp-profile__ac-item-main {
  line-height: 1.35;
}

.zp-profile__ac-item--muted {
  cursor: default;
  color: #8b8798;
  font-weight: 600;
  pointer-events: none;
}

.zp-profile__ac-item-sub {
  color: #8b8798;
  font-size: 12px;
  font-weight: 500;
}

.zp-profile__ac-empty {
  padding: 14px;
  color: #8b8798;
  font-size: 13px;
  font-weight: 500;
}

.zp-profile__member-since {
  margin: 0 0 16px;
  color: #8b8798;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.zp-profile__member-since[hidden] {
  display: none;
}

.zp-profile__block--account .zp-profile__block-title {
  margin-bottom: 8px;
}

.zp-profile__btn--account {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  min-height: 48px;
  margin-top: 0;
  padding: 12px 22px;
  background: #f3f3f7;
  color: #1a1a1a;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
}

.zp-profile__btn--account:hover {
  background: #ebe9f0;
}

.zp-profile__status {
  min-height: 20px;
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 600;
}

.zp-profile__status.is-ok {
  color: #0a8f4d;
}

.zp-profile__status.is-err {
  color: #c0392b;
}

.zp-profile__gate {
  padding: 36px 24px;
  border-radius: 24px;
  background: #fff;
  text-align: center;
}

@media (max-width: 720px) {
  .zp-profile__block {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .zp-profile__block-title {
    font-size: 20px;
  }

  .zp-profile__row,
  .zp-profile__row--birth {
    grid-template-columns: 1fr;
  }

  .zp-profile__actions {
    flex-direction: column;
  }

  .zp-profile__actions .zp-profile__btn {
    width: 100%;
  }
}

@media (max-width: 900px) {
  body.page-lk {
    padding-top: 0;
  }

  body.page-lk .zp-lk {
    padding-top: 12px;
  }

  .zp-lk__shell {
    grid-template-columns: 1fr;
    width: min(1100px, calc(100% - 24px));
    gap: 12px;
  }

  /* Подстраницы ЛК: только контент + «Назад» в хаб */
  body.page-lk:not(.page-lk-hub) .zp-lk__mob-bar {
    display: flex;
    width: min(1100px, calc(100% - 24px));
  }

  /* Заголовок уже в mob-bar — не дублировать в контенте */
  body.page-lk:not(.page-lk-hub) .zp-lk__content > .zp-profile__title,
  body.page-lk:not(.page-lk-hub) .zp-lk__content > .zp-profile__head .zp-profile__title {
    display: none;
  }

  body.page-lk:not(.page-lk-hub) .zp-lk__aside {
    display: none;
  }

  .zp-bonus-sum {
    padding: 16px 12px;
  }

  .zp-bonus-sum__col {
    padding: 0 8px;
  }

  .zp-bonus-sum__label {
    font-size: 12px;
    line-height: 1.25;
  }

  .zp-bonus-hint {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .zp-bonus-filters {
    gap: 6px;
    padding-bottom: 10px;
  }

  .zp-bonus-chip {
    padding: 8px 12px;
    font-size: 12px;
  }

  .zp-bonus-hist__row {
    gap: 10px;
    align-items: flex-start;
  }

  .zp-bonus-hist__amount {
    padding-top: 2px;
  }

  /* Хаб: меню как в референсе */
  body.page-lk-hub .zp-lk__content {
    display: none;
  }

  body.page-lk-hub .zp-lk__aside {
    position: static;
    width: 100%;
  }

  body.page-lk-hub .zp-lk__hub-bonus {
    display: block;
  }

  body.page-lk-hub .zp-lk__nav {
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 8px 12px;
  }

  body.page-lk-hub .zp-lk__link {
    flex: none;
    min-width: 0;
    width: 100%;
    border-bottom: 1px solid rgba(36, 22, 74, 0.08);
    border-radius: 0;
    justify-content: flex-start;
    min-height: 52px;
    padding: 14px 4px;
    font-size: 16px;
    font-weight: 600;
  }

  body.page-lk-hub .zp-lk__link:last-child {
    border-bottom: 0;
  }

  body.page-lk-hub .zp-lk__link.is-active {
    color: var(--zp-p-text);
    background: transparent;
    font-weight: 600;
  }
}

@media (max-width: 380px) {
  .zp-bonus-sum {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    text-align: left;
  }

  .zp-bonus-sum__divider {
    width: 100%;
    min-height: 0;
    height: 1px;
  }

  .zp-bonus-sum__col {
    padding: 0 4px;
  }
}

@media (max-width: 767px) {
  .zp-profile__grid {
    grid-template-columns: 1fr;
  }

  .zp-lk-orders__meta {
    grid-template-columns: 1fr;
  }

  .zp-lk-ledger__row {
    grid-template-columns: 1fr auto;
  }

  .zp-lk-ledger__note,
  .zp-lk-ledger__date {
    grid-column: 1 / -1;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
