@charset "UTF-8";
.app--section.zn-cart-section {
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.zn-cart-page {
  width: 100%;
  padding: 0.5rem 0 2rem;
}
.zn-cart-page .zn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  padding: 10px 16px;
  transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
  background: none;
}
.zn-cart-page .zn-btn:hover {
  opacity: 0.85;
}
.zn-cart-page .zn-btn--primary {
  background: #111;
  color: #fff;
  border-color: #111;
}
.zn-cart-page .zn-btn--outline {
  background: #fff;
  color: #111;
  border-color: #ccc;
}
.zn-cart-page .zn-btn--outline:hover {
  border-color: #999;
}
.zn-cart-page .zn-btn--danger {
  background: #fff;
  color: #c33;
  border-color: #c33;
}
.zn-cart-page .zn-btn--lg {
  font-size: 16px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
}

.zn-cart__items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.zn-cart__empty {
  color: #777;
  padding: 1.5rem 0;
  font-size: 15px;
}

.zn-cart-line {
  display: flex;
  gap: 16px;
  padding: 16px;
  border: 1px solid #eee;
  border-radius: 14px;
  background: #fff;
  align-items: flex-start;
}
.zn-cart-line__media {
  flex: 0 0 96px;
  width: 96px;
}
.zn-cart-line__img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 10px;
  background: #f6f6f6;
}
.zn-cart-line__body {
  flex: 1 1 auto;
  min-width: 0;
}
.zn-cart-line__name {
  font-weight: 700;
  font-size: 16px;
  color: #111;
  text-decoration: none;
}
.zn-cart-line__name:hover {
  text-decoration: underline;
}
.zn-cart-line__cfg, .zn-cart-line__size, .zn-cart-line__unit {
  font-size: 13px;
  color: #666;
  margin-top: 3px;
}
.zn-cart-line__size {
  color: #444;
}
.zn-cart-line__extras {
  list-style: none;
  margin: 10px 0 0;
  padding: 10px 0 0;
  border-top: 1px dashed #e6e6e6;
  font-size: 13px;
}
.zn-cart-line__extras-title {
  color: #999;
  margin-bottom: 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.zn-cart-line__extra {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 0;
  color: #333;
}
.zn-cart-line__extra-meta {
  color: #888;
  white-space: nowrap;
}
.zn-cart-line__controls {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 150px;
}
.zn-cart-line__per {
  font-size: 12px;
  color: #888;
  white-space: nowrap;
}
.zn-cart-line__total {
  font-weight: 800;
  font-size: 20px;
  color: #111;
  white-space: nowrap;
}
.zn-cart-line__remove {
  background: none;
  border: none;
  color: #c33;
  font-size: 13px;
  cursor: pointer;
  padding: 2px 0;
}
.zn-cart-line__remove:hover {
  text-decoration: underline;
}

.zn-cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.zn-cart-qty__btn {
  width: 36px;
  height: 40px;
  border: 1px solid #111;
  background: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #111;
  border-radius: 10px;
  transition: background 0.15s ease;
}
.zn-cart-qty__btn:hover {
  background: #f2f2f2;
}
.zn-cart-qty__input {
  width: 50px;
  height: 40px;
  border: 1px solid #ccc;
  border-radius: 10px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #111;
  -moz-appearance: textfield;
}
.zn-cart-qty__input::-webkit-outer-spin-button, .zn-cart-qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.zn-cart-qty__input:focus {
  outline: none;
  border-color: #111;
}

.zn-cart__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #eee;
  border-radius: 14px;
  background: #fafafa;
  gap: 16px;
}

.zn-cart__total {
  font-size: 22px;
  font-weight: 800;
  color: #111;
}
.zn-cart__total span {
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .zn-cart-line {
    flex-wrap: wrap;
  }
  .zn-cart-line__media {
    flex: 0 0 72px;
    width: 72px;
  }
  .zn-cart-line__img {
    width: 72px;
    height: 72px;
  }
  .zn-cart-line__controls {
    flex: 1 1 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    border-top: 1px dashed #e6e6e6;
    padding-top: 12px;
    min-width: 0;
  }
  .zn-cart__footer {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  .zn-cart__footer .zn-btn {
    width: 100%;
  }
  .zn-cart__total {
    text-align: center;
  }
}
.zn-checkout {
  margin-top: 28px;
}
.zn-checkout__h {
  font-size: 22px;
  font-weight: 800;
  color: #111;
  margin: 0 0 16px;
}
.zn-checkout__go {
  margin-top: 8px;
}

.zn-co-section {
  border: 1px solid #eee;
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  margin-bottom: 12px;
}
.zn-co-section__title {
  font-weight: 700;
  font-size: 15px;
  color: #111;
  margin-bottom: 12px;
}
.zn-co-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: 24px;
  align-items: start;
}
.zn-co-section__note {
  font-size: 13px;
  color: #555;
  line-height: 1.55;
}
@media (max-width: 767.98px) {
  .zn-co-section__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.zn-co-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zn-co-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}
.zn-co-radio input {
  width: 18px;
  height: 18px;
  accent-color: #111;
}
.zn-co-radio b {
  font-weight: 700;
  color: #111;
}

.zn-co-extra {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.zn-co-extra .zn-co-field {
  margin-bottom: 0;
}

.zn-co-typeswitch {
  display: flex;
  gap: 18px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.zn-co-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  color: #555;
  margin-bottom: 10px;
}

.zn-co-input {
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  color: #111;
  background: #fff;
  min-width: 220px;
}
.zn-co-input:focus {
  outline: none;
  border-color: #111;
}

textarea.zn-co-input {
  resize: vertical;
  min-height: 64px;
}

.zn-co-input--sm {
  min-width: 0;
  width: 110px;
}

.zn-co-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.zn-co-hint {
  font-size: 12px;
  color: #888;
}

.zn-co-summary {
  border: 1px solid #eee;
  border-radius: 14px;
  background: #fafafa;
  padding: 16px;
  margin: 12px 0 16px;
}

.zn-co-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  color: #444;
  padding: 4px 0;
}
.zn-co-row b {
  color: #111;
}
.zn-co-row--total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 2px solid #e6e6e6;
  font-size: 19px;
  font-weight: 800;
  color: #111;
}
.zn-co-row--total b {
  font-size: 19px;
}

.zn-co-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.zn-co-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.zn-co-modal__box {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.zn-co-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
  color: #888;
  line-height: 1;
}
.zn-co-modal__close:hover {
  color: #111;
}

.zn-co-step__h {
  font-size: 19px;
  font-weight: 800;
  color: #111;
  margin: 0 0 16px;
}
.zn-co-step .zn-co-input {
  width: 100%;
  min-width: 0;
}
.zn-co-step .zn-btn {
  margin-top: 4px;
}

.zn-co-check {
  display: block;
  font-size: 13px;
  color: #555;
  margin: 8px 0 14px;
  cursor: pointer;
}
.zn-co-check input {
  margin-right: 8px;
  accent-color: #111;
  vertical-align: middle;
}

.zn-co-error {
  color: #c33;
  font-size: 13px;
  margin-top: 10px;
  min-height: 16px;
}

.zn-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.zn-cart-side {
  position: sticky;
  top: 16px;
  border: 1px solid #eee;
  border-radius: 14px;
  background: #fff;
  padding: 18px;
}
.zn-cart-side .zn-co-summary {
  border: 0;
  background: none;
  padding: 0;
  margin: 0 0 14px;
}
.zn-cart-side .zn-checkout__go {
  width: 100%;
  margin: 0;
}

@media (max-width: 991.98px) {
  .zn-cart-layout {
    grid-template-columns: 1fr;
  }
  .zn-cart-side {
    position: static;
  }
}
.zn-co-modal .zn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  padding: 10px 16px;
  border: 1px solid transparent;
  background: none;
  text-decoration: none;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}
.zn-co-modal .zn-btn:hover {
  opacity: 0.85;
}
.zn-co-modal .zn-btn--primary {
  background: #111;
  color: #fff;
  border-color: #111;
}
.zn-co-modal .zn-btn--outline {
  background: #fff;
  color: #111;
  border-color: #ccc;
}
.zn-co-modal .zn-btn--lg {
  font-size: 16px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  width: 100%;
}
.zn-co-modal .zn-btn.is-loading {
  pointer-events: none;
  opacity: 0.9;
}
.zn-co-modal .zn-btn.is-loading::before {
  content: "";
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: znSpin 0.7s linear infinite;
  flex: 0 0 auto;
}

@keyframes znSpin {
  to {
    transform: rotate(360deg);
  }
}
#znCoCodeWrap {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
}

.zn-cart-col--side {
  align-self: stretch;
}

.zn-co-policy {
  color: #dc3545;
  text-decoration: underline;
  cursor: pointer;
}
.zn-co-policy:hover {
  color: #b02a37;
}

.zn-policy-modal__box {
  max-width: 560px;
}

.zn-policy-text {
  max-height: 60vh;
  overflow-y: auto;
  margin: 10px 0 18px;
  font-size: 14px;
  line-height: 1.55;
  color: #333;
}
.zn-policy-text p {
  margin: 0 0 10px;
}

.zn-policy-note {
  color: #999;
  font-size: 12px;
  font-style: italic;
}

/* ===== Смета: тулбар, шаринг, тост, печать ===== */
.zn-cart__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.zn-cart__subtotal {
  font-size: 16px;
}
.zn-cart__subtotal b {
  font-size: 20px;
}

.zn-cart__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zn-cart__print-head {
  display: none;
}

.zn-share-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
}

.zn-share-row .zn-co-input {
  flex: 1;
}

.zn-cart-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(16px);
  background: #222;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 12000;
}
.zn-cart-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media print {
  @page {
    margin: 1.4cm;
  }
  body * {
    visibility: hidden;
  }
  #znCartPage, #znCartPage * {
    visibility: visible;
  }
  #znCartPage {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  /* чисто: без теней, скруглений и заливок — экономим тонер */
  #znCartPage, #znCartPage * {
    box-shadow: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #000 !important;
  }
  /* убираем всё нерелевантное для печати */
  .zn-checkout, .zn-cart-side, .zn-cart__toolbar, .zn-co-modal,
  .zn-cart-qty__btn, .zn-cart-line__remove, .zn-cart-line__per {
    display: none !important;
  }
  .zn-cart, .zn-cart__items {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .zn-cart__print-head {
    display: block !important;
    visibility: visible !important;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #000;
  }
  /* позиция — простая строка с нижней линейкой, без «карточки» */
  .zn-cart-line {
    display: flex !important;
    gap: 14px;
    align-items: flex-start;
    padding: 12px 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #999 !important;
    page-break-inside: avoid;
  }
  .zn-cart-line__media {
    flex: 0 0 auto;
  }
  .zn-cart-line__img {
    width: 64px !important;
    height: auto !important;
    border: 1px solid #ccc !important;
  }
  .zn-cart-line__body {
    flex: 1;
    border: none !important;
  }
  .zn-cart-line__name {
    font-weight: 700;
    text-decoration: none;
  }
  .zn-cart-line__controls {
    display: block !important;
    text-align: right;
    margin-left: auto;
    min-width: 120px;
  }
  .zn-cart-line__total {
    font-weight: 700;
    font-size: 15px;
    margin-top: 4px;
  }
  /* количество — просто число + «шт.», без рамки и кнопок */
  .zn-cart-qty {
    display: inline-block !important;
    border: none !important;
  }
  .zn-cart-qty::after {
    content: " шт.";
  }
  .zn-cart-qty__input {
    border: none !important;
    width: 2em !important;
    padding: 0 !important;
    font-size: 14px;
    text-align: right;
    -webkit-appearance: none;
    -moz-appearance: textfield;
  }
  /* итог — линия сверху, выравнивание вправо */
  .zn-cart__footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline;
    border: 0 !important;
    border-top: 2px solid #000 !important;
    padding-top: 12px !important;
    margin-top: 4px;
  }
  .zn-cart__subtotal b {
    font-size: 20px;
  }
}
