/* Оформление заказа — layout как WB buy-now */
.zp-checkout {
  --zp-checkout-purple: #6440bf;
  --zp-checkout-purple-deep: #4c3191;
  --zp-checkout-bg: #f3f3f7;
  --zp-checkout-card: #fff;
  --zp-checkout-text: #242424;
  --zp-checkout-muted: #8b8798;
  min-height: 100vh;
  background: var(--zp-checkout-bg);
  color: var(--zp-checkout-text);
  font-family: var(--zp-font-ui, Nunito, sans-serif);
}

.zp-checkout__top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid rgba(36, 22, 74, 0.08);
  box-shadow: 0 1px 0 rgba(36, 22, 74, 0.02);
}

.zp-checkout__top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
  width: min(1180px, 100%);
  margin: 0 auto;
  box-sizing: border-box;
}

.zp-checkout__back {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(36, 22, 74, 0.12);
  background: #fff;
  color: var(--zp-checkout-text);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(36, 22, 74, 0.04);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.zp-checkout__back:hover,
.zp-checkout__back:focus-visible {
  background: rgba(100, 64, 191, 0.06);
  border-color: rgba(100, 64, 191, 0.28);
  outline: none;
}

.zp-checkout__back:active {
  transform: scale(0.96);
}

.zp-checkout__back::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-left: 3px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.zp-checkout__brand {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  color: var(--zp-checkout-purple);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
}

.zp-checkout__brand-img {
  display: block;
  height: 36px;
  width: auto;
  max-width: min(200px, 42vw);
  object-fit: contain;
}

.zp-checkout__top-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.zp-checkout__login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--zp-checkout-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.zp-checkout__login:hover,
.zp-checkout__login:focus-visible {
  background: rgba(100, 64, 191, 0.08);
  outline: none;
}

.zp-checkout__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
}

.zp-checkout__nav a {
  color: #3a3550;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.zp-checkout__nav a:hover,
.zp-checkout__nav a:focus-visible {
  color: var(--zp-checkout-purple);
  outline: none;
}

/* FAB меню над кнопкой «Написать нам» */
.zp-checkout-menu-fab {
  position: fixed;
  right: max(20px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + 56px + 12px + env(safe-area-inset-bottom, 0px));
  z-index: 12045;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #17122f;
  color: #fff;
  box-shadow: 0 8px 22px rgba(36, 22, 74, 0.28);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.zp-checkout-menu-fab:hover,
.zp-checkout-menu-fab:focus-visible {
  background: #2a2148;
  outline: none;
  transform: scale(1.04);
}

.zp-checkout-menu-fab__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.zp-checkout-menu-fab__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

body.zp-site-chat-open .zp-checkout-menu-fab,
body.zp-site-chat-launcher-open .zp-checkout-menu-fab {
  opacity: 0.35;
  pointer-events: none;
}

body.zp-site-chat-open .zp-checkout-menu-fab {
  display: none;
}

body.zp-checkout-menu-open .zp-checkout-menu-fab__bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
body.zp-checkout-menu-open .zp-checkout-menu-fab__bars span:nth-child(2) {
  opacity: 0;
}
body.zp-checkout-menu-open .zp-checkout-menu-fab__bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.zp-checkout-menu-fab__bars span {
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.zp-checkout-menu {
  position: fixed;
  inset: 0;
  z-index: 12050;
}

.zp-checkout-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 18, 47, 0.45);
}

.zp-checkout-menu__panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(340px, 88vw);
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 8px 0 32px rgba(36, 22, 74, 0.18);
  transform: translateX(0);
}

.zp-checkout-menu__head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(36, 22, 74, 0.08);
}

.zp-checkout-menu__close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: rgba(36, 22, 74, 0.06);
  cursor: pointer;
  position: relative;
}

.zp-checkout-menu__close::before,
.zp-checkout-menu__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: #17122f;
  border-radius: 2px;
}

.zp-checkout-menu__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.zp-checkout-menu__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.zp-checkout-menu__brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.zp-checkout-menu__brand img {
  display: block;
  height: 32px;
  width: auto;
  max-width: 180px;
}

.zp-checkout-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 10px 24px;
  overflow: auto;
}

.zp-checkout-menu__link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  color: #242424;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.zp-checkout-menu__link:hover,
.zp-checkout-menu__link:focus-visible {
  background: rgba(100, 64, 191, 0.08);
  color: var(--zp-checkout-purple);
  outline: none;
}

@media (max-width: 720px) {
  .zp-checkout__nav {
    display: none;
  }

  .zp-checkout__login {
    padding: 0 8px;
    font-size: 13px;
  }

  .zp-checkout__brand-img {
    height: 30px;
  }
}

.zp-checkout__shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 48px;
}

.zp-checkout__title {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.2;
}

.zp-checkout__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

.zp-checkout__main,
.zp-checkout__aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.zp-checkout__card {
  padding: 18px 18px 16px;
  border-radius: 20px;
  background: var(--zp-checkout-card);
  box-shadow: 0 4px 18px rgba(36, 22, 74, 0.05);
}

.zp-checkout__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}

.zp-checkout__card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.zp-checkout__edit {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--zp-checkout-muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}

.zp-checkout__product {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.zp-checkout__photo {
  width: 88px;
  height: 118px;
  overflow: hidden;
  border-radius: 12px;
  background: #f3f3f7;
}

.zp-checkout__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zp-checkout__name {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.zp-checkout__meta {
  margin: 0 0 10px;
  color: var(--zp-checkout-muted);
  font-size: 13px;
  font-weight: 600;
}

.zp-checkout__qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border-radius: 12px;
  background: #f3f3f7;
  overflow: hidden;
}

.zp-checkout__qty button {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--zp-checkout-text);
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
}

.zp-checkout__qty span {
  min-width: 28px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.zp-checkout__prices {
  text-align: right;
  white-space: nowrap;
}

.zp-checkout__price {
  margin: 0;
  color: var(--zp-checkout-purple);
  font-size: 18px;
  font-weight: 700;
}

.zp-checkout__price-old {
  margin: 4px 0 0;
  color: var(--zp-checkout-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: line-through;
}

.zp-checkout__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.zp-checkout__row--muted {
  color: var(--zp-checkout-muted);
  font-weight: 500;
}

.zp-checkout__free {
  color: #0a8f4d;
  font-weight: 700;
}

.zp-checkout__pvz-label {
  display: block;
  margin: 4px 0 6px;
  font-size: 13px;
  font-weight: 600;
}

.zp-checkout__pvz {
  position: relative;
  margin: 0 0 12px;
}

.zp-checkout__pvz-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 11px 40px 11px 12px;
  border: 1.5px solid rgba(36, 22, 74, 0.14);
  border-radius: 12px;
  background: #fff;
  color: var(--zp-checkout-text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}

.zp-checkout__pvz.is-open .zp-checkout__pvz-input {
  border-color: var(--zp-checkout-purple);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  outline: none;
}

.zp-checkout__pvz-input:focus {
  outline: 2px solid rgba(100, 64, 191, 0.28);
  border-color: var(--zp-checkout-purple);
}

.zp-checkout__pvz.is-open .zp-checkout__pvz-input:focus {
  outline: none;
}

.zp-checkout__pvz::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 14px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--zp-checkout-muted);
  border-bottom: 2px solid var(--zp-checkout-muted);
  transform: rotate(45deg);
  pointer-events: none;
}

.zp-checkout__pvz.is-open::after {
  top: 22px;
  transform: rotate(225deg);
}

.zp-checkout__pvz-suggest {
  position: absolute;
  z-index: 8;
  left: 0;
  right: 0;
  top: 100%;
  max-height: 280px;
  overflow: auto;
  margin: 0;
  border: 1.5px solid var(--zp-checkout-purple);
  border-top: 1px solid rgba(36, 22, 74, 0.1);
  border-radius: 0 0 12px 12px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(36, 22, 74, 0.12);
}

.zp-checkout__pvz-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid rgba(36, 22, 74, 0.06);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}

.zp-checkout__pvz-item:last-child {
  border-bottom: 0;
}

.zp-checkout__pvz-item small {
  color: var(--zp-checkout-muted);
  font-weight: 500;
}

.zp-checkout__pvz-item:hover,
.zp-checkout__pvz-item.is-on {
  background: rgba(100, 64, 191, 0.06);
}

.zp-checkout__pvz-empty {
  padding: 12px;
  color: var(--zp-checkout-muted);
  font-size: 13px;
}

/* Старый select больше не используем — один combobox */
.zp-checkout__pvz-select {
  display: none !important;
}

.zp-checkout__hint {
  margin: 8px 0 0;
  color: #b42318;
  font-size: 13px;
  font-weight: 600;
}

.zp-checkout__city-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(100, 64, 191, 0.18);
  border-radius: 12px;
  background: rgba(100, 64, 191, 0.04);
  color: var(--zp-checkout-text);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

.zp-checkout__city-btn:hover {
  border-color: rgba(100, 64, 191, 0.35);
  background: rgba(100, 64, 191, 0.07);
}

.zp-checkout__city-change {
  flex-shrink: 0;
  color: var(--zp-checkout-purple);
  font-size: 13px;
  font-weight: 700;
}

.zp-checkout__extras {
  list-style: none;
  margin: 12px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid rgba(36, 22, 74, 0.08);
}

.zp-checkout__extras li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  color: var(--zp-checkout-muted);
  font-size: 13px;
  font-weight: 600;
}

.zp-checkout__extras li:last-child {
  margin-bottom: 0;
}

.zp-checkout__extras-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  min-width: 0;
  flex: 1;
}

.zp-checkout__extras-gross {
  color: var(--zp-checkout-muted);
  font-weight: 600;
  text-decoration: line-through;
  white-space: nowrap;
}

.zp-checkout__extras-net {
  flex-shrink: 0;
  min-width: 4.5em;
  color: var(--zp-checkout-text);
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.zp-checkout__extras-remove {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(36, 22, 74, 0.06);
  color: var(--zp-checkout-muted);
  cursor: pointer;
  font-size: 0;
  line-height: 1;
}

.zp-checkout__extras-remove::before {
  content: "\00D7";
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.zp-checkout__extras-remove:hover {
  background: rgba(180, 35, 24, 0.12);
  color: #b42318;
}

.zp-checkout__ship-money {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}

.zp-checkout__ship-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 16px;
}
.zp-checkout__ship-method {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 0;
  padding: 12px 10px;
  border: 1px solid #e3e3e4;
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  color: #242424;
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.zp-checkout__ship-method:hover:not(:disabled) {
  border-color: #cfcfd4;
}
.zp-checkout__ship-method.is-on {
  border-color: #242424;
  box-shadow: inset 0 0 0 1px #242424;
}
.zp-checkout__ship-method:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.zp-checkout__ship-method-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}
.zp-checkout__ship-method-meta {
  font-size: 12px;
  line-height: 1.35;
  color: #6c6c6c;
}
.zp-checkout__ship-panel {
  display: grid;
  gap: 8px;
}
.zp-checkout__personal-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(26, 43, 77, 0.73);
}
.zp-checkout__split {
  margin: 0 0 12px;
}
.zp-checkout__yapay-badge {
  min-height: 48px;
}
.zp-checkout__share {
  display: block;
  width: 100%;
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid #e3e3e4;
  border-radius: 12px;
  background: #fff;
  color: #242424;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.zp-checkout__share:hover {
  background: #f7f7f8;
}
@media (max-width: 720px) {
  .zp-checkout__ship-methods {
    grid-template-columns: 1fr;
  }
}

.zp-checkout__ship-tariff {
  color: var(--zp-checkout-text);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.zp-checkout__ship-tariff.is-struck {
  color: var(--zp-checkout-muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: line-through;
}

.zp-checkout__ship-pay {
  color: var(--zp-checkout-text);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.zp-checkout__ship-pay.is-free {
  color: var(--zp-checkout-purple);
}

.zp-checkout__upload {
  margin: 12px 0 16px;
}

.zp-checkout__upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 132px;
  padding: 20px 16px;
  border: 2px dashed rgba(100, 64, 191, 0.55);
  border-radius: 18px;
  background: rgba(100, 64, 191, 0.04);
  box-shadow: 0 8px 22px rgba(100, 64, 191, 0.08);
  color: var(--zp-checkout-text);
  cursor: pointer;
  font: inherit;
  text-align: center;
}

.zp-checkout__upload.is-drag .zp-checkout__upload-zone,
.zp-checkout__upload-zone:hover {
  border-color: var(--zp-checkout-purple);
  background: rgba(100, 64, 191, 0.08);
}

.zp-checkout__upload-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--zp-checkout-purple);
  color: #fff;
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}

.zp-checkout__upload-title {
  color: #1f1838;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.zp-checkout__upload-hint {
  color: var(--zp-checkout-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.zp-checkout__upload-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
}

.zp-checkout__upload-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #f3f3f7;
  border: 1px solid rgba(31, 24, 56, 0.08);
}

.zp-checkout__upload-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #e8e6f0;
}

.zp-checkout__upload-thumb--empty {
  background: linear-gradient(135deg, #ebe7f7, #f3f3f7);
}

.zp-checkout__upload-name {
  display: block;
  padding: 4px 8px 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--zp-checkout-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.zp-checkout__upload-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(31, 24, 56, 0.72);
  color: #fff;
  cursor: pointer;
  font-size: 0;
  line-height: 1;
}

.zp-checkout__upload-remove::before {
  content: "\00D7";
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.zp-checkout__upload-remove:hover {
  background: #b42318;
  color: #fff;
}

.zp-checkout__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.zp-checkout__pay {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 10px;
}

.zp-checkout__pay-option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  border: 1.5px solid rgba(36, 22, 74, 0.12);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.zp-checkout__pay-option:hover {
  border-color: rgba(100, 64, 191, 0.35);
}

.zp-checkout__pay-option:has(.zp-checkout__pay-input:checked),
.zp-checkout__pay-option.is-checked {
  border-color: var(--zp-checkout-purple);
  background: rgba(100, 64, 191, 0.06);
  box-shadow: 0 0 0 1px rgba(100, 64, 191, 0.18);
}

.zp-checkout__pay-input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.zp-checkout__pay-radio {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 2px solid rgba(36, 22, 74, 0.22);
  border-radius: 50%;
  box-sizing: border-box;
  background: #fff;
  pointer-events: none;
}

.zp-checkout__pay-option:has(.zp-checkout__pay-input:checked) .zp-checkout__pay-radio,
.zp-checkout__pay-option.is-checked .zp-checkout__pay-radio {
  border-color: var(--zp-checkout-purple);
  background:
    radial-gradient(circle at center, var(--zp-checkout-purple) 0 5px, #fff 6px 100%);
}

.zp-checkout__pay-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  pointer-events: none;
}

.zp-checkout__pay-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.zp-checkout__pay-logo {
  flex: 0 0 auto;
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.zp-checkout__pay-logo--sbp {
  width: 24px;
  height: 28px;
}

.zp-checkout__pay-title {
  color: var(--zp-checkout-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.zp-checkout__pay-desc {
  color: var(--zp-checkout-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  padding-left: 34px;
}

.zp-checkout__aside-card {
  position: sticky;
  top: 72px;
}

.zp-checkout__summary-card {
  padding: 20px 24px;
  border-radius: 20px;
  background: #fff;
  box-shadow: none;
}

.zp-checkout__summary {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.zp-checkout__summary-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zp-checkout__summary-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  color: #1e242e;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}

.zp-checkout__summary-line--muted {
  color: #1e242e;
  font-weight: 400;
}

.zp-checkout__summary-line--discount,
.zp-checkout__summary-line--benefit {
  color: #1e242e;
}

.zp-checkout__summary-line--benefit > span:last-child,
.zp-checkout__summary-line--discount > span:last-child {
  color: #f04130;
}

.zp-checkout__summary-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.zp-checkout__summary-details:empty,
.zp-checkout__summary-details:not(:has(:not([hidden]))) {
  display: none;
}

.zp-checkout__summary-detail {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  color: rgba(26, 43, 77, 0.73);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

.zp-checkout__summary-detail[hidden] {
  display: none !important;
}

.zp-checkout__summary-line[hidden],
.zp-checkout__summary-line--benefit[hidden] {
  display: none !important;
}

.zp-checkout__summary-value.is-free,
.zp-checkout__free {
  color: #1e242e;
}

.zp-checkout__summary-total-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.zp-checkout__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  color: #1e242e;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
}

.zp-checkout__total strong {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.zp-checkout__personal-note {
  margin: 0;
  color: rgba(26, 43, 77, 0.73);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  text-align: right;
}

.zp-checkout__pay-card,
.zp-checkout__extras-card {
  padding: 20px 24px;
  border-radius: 20px;
  background: #fff;
  box-shadow: none;
}

.zp-checkout__aside-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.zp-checkout__field-label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
}

.zp-checkout__field {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 12px;
  padding: 11px 12px;
  border: 1px solid rgba(36, 22, 74, 0.14);
  border-radius: 12px;
  background: #fff;
  color: var(--zp-checkout-text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}

/* C.3b: ширины по контексту (как профиль) — не full-bleed «простыня» */
.zp-checkout__field[name="full_name"],
.zp-checkout__field[data-checkout-name] {
  max-width: 28rem;
}

.zp-checkout__field[name="phone"],
.zp-checkout__field[data-checkout-phone],
.zp-checkout__field[type="tel"] {
  max-width: 16rem;
}

.zp-checkout__field[name="email"],
.zp-checkout__field[data-checkout-email] {
  max-width: 22rem;
}

.zp-checkout__field[name="address_line"],
.zp-checkout__field[data-checkout-address],
.zp-checkout__field[data-courier-address] {
  max-width: 36rem;
}

@media (max-width: 640px) {
  .zp-checkout__field[name="full_name"],
  .zp-checkout__field[data-checkout-name],
  .zp-checkout__field[name="phone"],
  .zp-checkout__field[data-checkout-phone],
  .zp-checkout__field[type="tel"],
  .zp-checkout__field[name="email"],
  .zp-checkout__field[data-checkout-email],
  .zp-checkout__field[name="address_line"],
  .zp-checkout__field[data-checkout-address],
  .zp-checkout__field[data-courier-address] {
    max-width: none;
  }
}

.zp-checkout__field:focus {
  outline: 2px solid rgba(100, 64, 191, 0.28);
  border-color: var(--zp-checkout-purple);
}

.zp-checkout__field--readonly {
  background: #f3f3f7;
  color: var(--zp-checkout-muted);
  cursor: default;
}

.zp-checkout__field-note {
  margin: -4px 0 0;
  color: var(--zp-checkout-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.zp-checkout__comment-label {
  display: block;
  margin: 4px 0 6px;
  color: var(--zp-checkout-muted);
  font-size: 13px;
  font-weight: 700;
}

.zp-checkout__comment {
  box-sizing: border-box;
  width: 100%;
  min-height: 72px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(36, 22, 74, 0.12);
  border-radius: 12px;
  resize: vertical;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
}

.zp-checkout__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;
  border: 0;
  border-radius: 16px;
  background: var(--zp-checkout-purple);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.zp-checkout__submit:hover,
.zp-checkout__submit:focus-visible {
  background: var(--zp-checkout-purple-deep);
  outline: none;
}

.zp-checkout__legal {
  margin: 12px 0 0;
  color: var(--zp-checkout-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.zp-checkout__empty {
  padding: 40px 24px;
  border-radius: 20px;
  background: #fff;
  text-align: center;
}

.zp-checkout__empty p {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
}

.zp-checkout__empty a {
  color: var(--zp-checkout-purple);
  font-weight: 700;
}

.zp-checkout__empty-hint {
  margin: -8px 0 18px;
  color: var(--zp-checkout-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}
.zp-checkout__empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.zp-checkout__empty-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--zp-checkout-purple);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
}
.zp-checkout__empty-cta--ghost {
  background: #fff;
  color: var(--zp-checkout-purple) !important;
  border: 1px solid rgba(100, 64, 191, 0.35);
}
.zp-checkout__empty-cta:hover,
.zp-checkout__empty-cta:focus-visible {
  filter: brightness(1.05);
  outline: none;
}


@media (max-width: 991px) {
  .zp-checkout__layout {
    grid-template-columns: 1fr;
  }

  .zp-checkout__aside-card {
    position: static;
  }

  .zp-checkout__split {
    grid-template-columns: 1fr;
  }

  .zp-checkout__product {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .zp-checkout__prices {
    grid-column: 2;
    text-align: left;
  }
}

/* ——— Yandex Kit–like checkout shell ——— */
.zp-kit-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px max(20px, env(safe-area-inset-right)) 12px max(20px, env(safe-area-inset-left));
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.zp-kit-header__back {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #111;
  text-decoration: none;
}

.zp-kit-header__back::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-left: 3px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.zp-kit-header__brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.zp-kit-header__logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: min(200px, 50vw);
  object-fit: contain;
}

body.zp-checkout--kit {
  background: #0b0b0b;
}

body.zp-checkout--kit .zp-checkout__shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.zp-checkout--kit .zp-checkout__title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

body.zp-checkout--kit .zp-checkout__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  gap: 0;
  align-items: stretch;
  min-height: calc(100vh - 72px);
}

body.zp-checkout--kit .zp-checkout__main {
  gap: 16px;
  padding: 28px clamp(16px, 4vw, 48px) 48px;
  background: #0b0b0b;
  color: #f5f5f5;
}

body.zp-checkout--kit .zp-checkout__aside {
  gap: 16px;
  padding: 28px clamp(16px, 3vw, 36px) 48px;
  background: #eff2f7;
  color: #242424;
}

body.zp-checkout--kit .zp-checkout__card {
  background: #fff;
  color: #242424;
  border-radius: 20px;
  box-shadow: none;
}

body.zp-checkout--kit .zp-checkout__card--ghost {
  background: transparent;
  box-shadow: none;
  padding: 0;
  color: #f5f5f5;
}

body.zp-checkout--kit .zp-checkout__card--ghost .zp-checkout__card-title,
body.zp-checkout--kit .zp-checkout__card--ghost .zp-checkout__name,
body.zp-checkout--kit .zp-checkout__card--ghost .zp-checkout__price {
  color: #fff;
}

body.zp-checkout--kit .zp-checkout__card--ghost .zp-checkout__meta,
body.zp-checkout--kit .zp-checkout__card--ghost .zp-checkout__price-old,
body.zp-checkout--kit .zp-checkout__card--ghost .zp-checkout__row {
  color: rgba(255, 255, 255, 0.62);
}

body.zp-checkout--kit .zp-checkout__recipient {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.zp-checkout--kit .zp-checkout__recipient-avatar {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #efe8ff;
  color: #6440bf;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

body.zp-checkout--kit .zp-checkout__recipient-body {
  min-width: 0;
  flex: 1 1 auto;
}

body.zp-checkout--kit .zp-checkout__recipient-name {
  margin: 0;
  font-weight: 700;
  font-size: 15px;
}

body.zp-checkout--kit .zp-checkout__recipient-meta {
  margin: 4px 0 0;
  color: #6b647c;
  font-size: 13px;
}

body.zp-checkout--kit .zp-checkout__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 8px;
  padding-top: 8px;
}

body.zp-checkout--kit .zp-checkout__legal-links a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  text-decoration: none;
}

body.zp-checkout--kit .zp-checkout__legal-links a:hover {
  color: #fff;
}

body.zp-checkout--kit .zp-checkout__aside-card,
body.zp-checkout--kit .zp-checkout__summary-card {
  position: sticky;
  top: 88px;
}

body.zp-checkout--kit .zp-checkout__summary-line--discount,
body.zp-checkout--kit .zp-checkout__summary-line--discount span,
body.zp-checkout--kit .zp-checkout__summary-line--benefit > span:last-child {
  color: #f04130;
}

body.zp-checkout--kit .zp-checkout__submit {
  background: #17122f;
  border-radius: 16px;
  min-height: 54px;
}

body.zp-checkout--kit .zp-checkout__trust {
  margin: 8px 0 0;
  text-align: center;
  color: #6b647c;
  font-size: 12px;
}

body.zp-checkout--kit .zp-checkout__city-btn,
body.zp-checkout--kit .zp-checkout__pvz-input,
body.zp-checkout--kit .zp-checkout__field,
body.zp-checkout--kit .zp-checkout__comment {
  background: #fff;
}

@media (max-width: 991px) {
  body.zp-checkout--kit .zp-checkout__layout {
    grid-template-columns: 1fr;
  }

  body.zp-checkout--kit .zp-checkout__aside-card,
  body.zp-checkout--kit .zp-checkout__summary-card {
    position: static;
  }
}


/* ——— Site chrome + KIT OrderForm main (2026-08-12.18) ——— */
body.home-layout-ref.zp-checkout {
  background: #fff;
  min-height: 100vh;
}
body.home-layout-ref.zp-checkout .zp-checkout__shell {
  width: min(1440px, calc(100% - 48px));
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 0 64px;
  box-sizing: border-box;
}
body.home-layout-ref.zp-checkout .zp-checkout__layout {
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(300px, 420px);
  justify-content: center;
  gap: 40px;
  align-items: start;
}
body.home-layout-ref.zp-checkout .zp-checkout__main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
body.home-layout-ref.zp-checkout .zp-checkout__aside {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: start;
  padding: 16px;
  border-radius: 24px;
  background: #eff2f7;
  box-sizing: border-box;
}
body.home-layout-ref.zp-checkout .zp-checkout__summary-card,
body.home-layout-ref.zp-checkout .zp-checkout__pay-card,
body.home-layout-ref.zp-checkout .zp-checkout__extras-card {
  border-radius: 20px;
  background: #fff;
  box-shadow: none;
  border: 0;
  padding: 20px 24px;
}
body.home-layout-ref.zp-checkout .zp-checkout__aside-card {
  border-radius: 20px;
  background: #fff;
  box-shadow: none;
  border: 0;
  padding: 20px 24px;
}
body.home-layout-ref.zp-checkout .zp-checkout__kit-block {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
body.home-layout-ref.zp-checkout .zp-checkout__kit-recipient {
  background: #f2f4f7;
  border-radius: 16px;
  padding: 14px 16px;
}
body.home-layout-ref.zp-checkout .zp-checkout__recipient {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 36px;
  gap: 12px;
  align-items: center;
}
body.home-layout-ref.zp-checkout .zp-checkout__recipient-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #d9dee7;
  color: #3a3f4b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}
body.home-layout-ref.zp-checkout .zp-checkout__recipient-body {
  min-width: 0;
}
body.home-layout-ref.zp-checkout .zp-checkout__recipient-line {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  color: #1a1a1a;
}
body.home-layout-ref.zp-checkout .zp-checkout__recipient-kicker {
  margin: 0;
  font-size: inherit;
  font-weight: 400;
  color: #1a1a1a;
}
body.home-layout-ref.zp-checkout .zp-checkout__recipient-name {
  margin: 0;
  font-size: inherit;
  font-weight: 700;
  line-height: inherit;
  color: #1a1a1a;
}
body.home-layout-ref.zp-checkout .zp-checkout__recipient-name.is-empty {
  color: #c62828;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(198, 40, 40, 0.35);
}
body.home-layout-ref.zp-checkout .zp-checkout__recipient-name.is-empty:hover,
body.home-layout-ref.zp-checkout .zp-checkout__recipient-name.is-empty:focus-visible {
  color: #b71c1c;
  outline: none;
}
body.home-layout-ref.zp-checkout .zp-checkout__recipient-meta {
  margin: 4px 0 0;
  font-size: 14px;
  color: #757575;
  line-height: 1.35;
}
body.home-layout-ref.zp-checkout .zp-checkout__recipient-edit {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  align-self: flex-start;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%239e9e9e' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='M4 20h4L20 8l-4-4L4 16v4Z'/%3E%3Cpath stroke='%239e9e9e' stroke-linecap='round' stroke-width='1.75' d='m14 6 4 4'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
  cursor: pointer;
}
body.home-layout-ref.zp-checkout .zp-checkout__kit-profile {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
body.home-layout-ref.zp-checkout .zp-checkout__kit-delivery {
  padding-top: 4px;
}
body.home-layout-ref.zp-checkout .zp-checkout__kit-delivery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
body.home-layout-ref.zp-checkout .zp-checkout__kit-delivery .zp-checkout__card-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1a1a1a;
}
body.home-layout-ref.zp-checkout .zp-checkout__city-link {
  border: 0;
  background: transparent;
  color: #1a1a1a;
  font: inherit;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  padding: 0;
  text-align: right;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(56%, 280px);
}
body.home-layout-ref.zp-checkout .zp-checkout__city-link::before {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: center / 18px 18px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%231a1a1a' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='M21 3 10.5 13.5M21 3l-7 18-2.5-7.5L4 11 21 3Z'/%3E%3C/svg%3E");
}
body.home-layout-ref.zp-checkout .zp-checkout__city-link [data-ship-city] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.home-layout-ref.zp-checkout .zp-checkout__ship-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 8px;
}
body.home-layout-ref.zp-checkout .zp-checkout__provider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}
body.home-layout-ref.zp-checkout .zp-checkout__provider-label {
  font-size: 13px;
  color: #6c6c6c;
  flex: 0 0 auto;
}
body.home-layout-ref.zp-checkout .zp-checkout__provider-seg {
  display: inline-flex;
  gap: 0;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  background: #f7f7f8;
}
body.home-layout-ref.zp-checkout .zp-checkout__provider-btn {
  margin: 0;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  color: #242424;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
body.home-layout-ref.zp-checkout .zp-checkout__provider-btn.is-on {
  background: #fff;
  box-shadow: 0 0 0 1px #1a1a1a inset;
}
body.home-layout-ref.zp-checkout .zp-checkout__provider-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
body.home-layout-ref.zp-checkout .zp-checkout__ship-method {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  margin: 0;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  box-sizing: border-box;
}
body.home-layout-ref.zp-checkout .zp-checkout__ship-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
body.home-layout-ref.zp-checkout .zp-checkout__ship-method.is-on {
  border-color: #1a1a1a;
  border-width: 2px;
  padding: 11px 13px;
  box-shadow: none;
}
body.home-layout-ref.zp-checkout .zp-checkout__ship-method.is-disabled {
  opacity: 1;
  cursor: not-allowed;
  color: #9e9e9e;
}
body.home-layout-ref.zp-checkout .zp-checkout__ship-method.is-disabled .zp-checkout__ship-method-title,
body.home-layout-ref.zp-checkout .zp-checkout__ship-method.is-disabled .zp-checkout__ship-method-meta {
  color: #9e9e9e;
}
body.home-layout-ref.zp-checkout .zp-checkout__ship-method-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.25;
}
body.home-layout-ref.zp-checkout .zp-checkout__ship-method:not(.is-on) .zp-checkout__ship-method-title {
  font-weight: 600;
}
body.home-layout-ref.zp-checkout .zp-checkout__ship-method-meta {
  font-size: 13px;
  color: #757575;
  line-height: 1.3;
}
body.home-layout-ref.zp-checkout .zp-checkout__ship-panel {
  margin-top: 4px;
}
body.home-layout-ref.zp-checkout .zp-checkout__ship-method-meta {
  min-height: 1.35em;
}
body.home-layout-ref.zp-checkout .zp-checkout__pvz-trigger-value {
  min-height: 1.35em;
}
body.home-layout-ref.zp-checkout .zp-checkout__pvz-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 16px 4px;
  border: 0;
  border-top: 1px solid #ececec;
  border-radius: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
body.home-layout-ref.zp-checkout .zp-checkout__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");
}
body.home-layout-ref.zp-checkout .zp-checkout__pvz-trigger-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
body.home-layout-ref.zp-checkout .zp-checkout__pvz-trigger-label {
  font-size: 13px;
  color: #757575;
  line-height: 1.3;
}
body.home-layout-ref.zp-checkout .zp-checkout__pvz-trigger-value {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.home-layout-ref.zp-checkout .zp-checkout__pvz-trigger-trail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
body.home-layout-ref.zp-checkout .zp-checkout__pvz-provider {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #ff5a1f
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%23fff' d='M2 3.2h4.2L7.8 7 6.2 10.8H2L3.6 7 2 3.2Zm5.2 0H11.4L13 7l-1.6 3.8H7.2L8.8 7 7.2 3.2Z'/%3E%3C/svg%3E")
    center / 12px 12px no-repeat;
}
body.home-layout-ref.zp-checkout .zp-checkout__pvz-provider--cdek {
  border-radius: 50%;
  background: #1faa4b;
  background-image: none;
  position: relative;
}
body.home-layout-ref.zp-checkout .zp-checkout__pvz-provider--cdek::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;
}
body.home-layout-ref.zp-checkout .zp-checkout__pvz-provider--yandex {
  border-radius: 6px;
  background: #ff5a1f
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%23fff' d='M2 3.2h4.2L7.8 7 6.2 10.8H2L3.6 7 2 3.2Zm5.2 0H11.4L13 7l-1.6 3.8H7.2L8.8 7 7.2 3.2Z'/%3E%3C/svg%3E")
    center / 12px 12px no-repeat;
}
body.home-layout-ref.zp-checkout .zp-checkout__row-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");
}
body.home-layout-ref.zp-checkout .zp-checkout__eta-card {
  display: none !important;
}
body.home-layout-ref.zp-checkout .zp-checkout__kit-product {
  padding: 16px;
  border-radius: 20px;
  background: #1a1a1a;
  color: #fff;
}
body.home-layout-ref.zp-checkout .zp-checkout__kit-product .zp-checkout__name,
body.home-layout-ref.zp-checkout .zp-checkout__kit-product .zp-checkout__price {
  color: #fff;
}
body.home-layout-ref.zp-checkout .zp-checkout__kit-product .zp-checkout__meta,
body.home-layout-ref.zp-checkout .zp-checkout__kit-product .zp-checkout__price-old {
  color: rgba(255, 255, 255, 0.65);
}
body.home-layout-ref.zp-checkout .zp-checkout__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 4px;
}
body.home-layout-ref.zp-checkout .zp-checkout__legal-links a {
  color: #6c6c6c;
  text-decoration: none;
  font-size: 14px;
}
body.home-layout-ref.zp-checkout .zp-checkout__legal-links a:hover {
  color: #242424;
}
@media (max-width: 991px) {
  body.home-layout-ref.zp-checkout .zp-checkout__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  body.home-layout-ref.zp-checkout .zp-checkout__aside {
    position: static;
  }
  body.home-layout-ref.zp-checkout .zp-checkout__ship-methods {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  body.home-layout-ref.zp-checkout .zp-checkout__ship-method {
    min-height: 68px;
    padding: 10px 8px;
  }
  body.home-layout-ref.zp-checkout .zp-checkout__ship-method.is-on {
    padding: 9px 7px;
  }
  body.home-layout-ref.zp-checkout .zp-checkout__ship-method-title {
    font-size: 13px;
  }
  body.home-layout-ref.zp-checkout .zp-checkout__ship-method-meta {
    font-size: 11px;
  }
  body.home-layout-ref.zp-checkout .zp-checkout__kit-delivery .zp-checkout__card-title {
    font-size: 22px;
  }
  body.home-layout-ref.zp-checkout .zp-checkout__shell {
    width: min(100%, calc(100% - 32px));
  }
}

/* Корзина / checkout на узких экранах — не раздувать min-content сеткой доставки */
@media (max-width: 640px) {
  body.home-layout-ref.zp-checkout main.zp-cart-page,
  body.home-layout-ref.zp-checkout .zp-cart-page__checkout-main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
  }
  body.home-layout-ref.zp-checkout .zp-checkout__kit-block,
  body.home-layout-ref.zp-checkout .zp-checkout__kit-delivery-head,
  body.home-layout-ref.zp-checkout .zp-checkout__ship-panel,
  body.home-layout-ref.zp-checkout .zp-checkout__provider-row {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  body.home-layout-ref.zp-checkout .zp-checkout__kit-delivery-head {
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 8px;
  }
  body.home-layout-ref.zp-checkout .zp-checkout__kit-delivery .zp-checkout__card-title {
    font-size: 20px;
    flex: 1 1 auto;
    min-width: 0;
  }
  body.home-layout-ref.zp-checkout .zp-checkout__city-link {
    max-width: 100%;
    flex: 1 1 100%;
    justify-content: flex-start;
    text-align: left;
  }
  body.home-layout-ref.zp-checkout .zp-checkout__ship-methods {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  body.home-layout-ref.zp-checkout .zp-checkout__ship-method {
    min-height: 56px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
  }
  body.home-layout-ref.zp-checkout .zp-checkout__ship-method.is-on {
    padding: 9px 11px;
  }
  body.home-layout-ref.zp-checkout .zp-checkout__ship-method-title,
  body.home-layout-ref.zp-checkout .zp-checkout__ship-method-meta {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.home-layout-ref.zp-checkout .zp-checkout__provider-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  body.home-layout-ref.zp-checkout .zp-checkout__provider-seg {
    flex: 0 0 auto;
    margin-left: auto;
  }
  body.home-layout-ref.zp-checkout .zp-checkout__pvz-trigger {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  body.home-layout-ref.zp-checkout .zp-checkout__pvz-trigger-text,
  body.home-layout-ref.zp-checkout .zp-checkout__pvz-trigger-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.home-layout-ref.zp-checkout .zp-checkout__recipient {
    grid-template-columns: 40px minmax(0, 1fr) 32px;
    gap: 10px;
  }
  body.home-layout-ref.zp-checkout .zp-checkout__recipient-line,
  body.home-layout-ref.zp-checkout .zp-checkout__recipient-meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
